Welcome Guest [Log In] [Register]
Welcome to NHL04 Rebuilt 2017. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Script error when quitting a match; SOLVED
Topic Started: May 29 2016, 11:01 PM (546 Views)
hockeyheimer
Rookie
Hi all!

By chance I found your community and your hockey mods. I am deeply impressed. Thank you for making this trusty old game even better. You made a very, very good job!

Nevertheless I have a question and I hope you don't bother. I am at my wit's end and it's hard for me to understand those issues from a technical point of view (and it's even harder for me since English is not my native language).

I installed your great NHL2004 Rebuilt 2016 on a rig with Windows 10 Pro 64bit. Everything works fine, despite a script error, which appears whenever I when I quit/finish a match.
You can see the the script error screen in this post:
http://z15.invisionfree.com/NHL04Rebuilt/i...?showtopic=4727
For my game copy is in German, I try to give you a rough translation here:
"There's a script error on this page. Line 198, character 3, error: The file is already there, Code 0, URL "file:///D:/Programme/EA%20Sports/NHL%202004/fe/nhl/html/return.html"

Then I hardly can kill the programme in task manager (and only when I play in windowed mode), there's no chance to "revive" the game.
It doesn't matter, whether I use the above mentioned installation path or the path D:/NHL 2004 as it is strictly recommended. I proved it. I tried both. The issue is all the same. Installation was realized as admin, my antivirus program was deactivated, so as far as i can see there are no missing or blocked files.
Please help! Any advice is very much appreciated.

Jens
Offline Profile Quote Post Goto Top
 
trent
Member Avatar
Project Leader
Sence might be able to help you. It's the thumbnails converting code that's giving you problems. Meanwhile you can continue playing as this is annoying but it doesn't affect on anything.

Code:
 
}
 var MyFileInst1 = MyFSO.CreateTextFile(MyFileRoot, true);
 MyFileInst1.WriteLine(wShell.CurrentDirectory);
 MyFileInst1.Close();
 MyFSO.CopyFile("convert.exe", screenFolderExh+"convert.exe");
 MyFSO.CopyFile("convert.bat", screenFolderExh+"convert.bat");
 MyFSO.MoveFile("installdirectory", screenFolderExh+"installdirectory");
 wShell.CurrentDirectory = screenFolderExh;
 wShell.Run("convert.bat", 0);
 var MyFileInst2 = MyFSO.OpenTextFile(MyFileRoot, 1);
 MyData=MyFileInst2.ReadLine();
 MyFileInst2.Close();
 wShell.CurrentDirectory = MyData;
 MyFSO.DeleteFile(screenFolderExh+"installdirectory");
}
else
{
 var screenFolderSeaName = screenFolderSea+getSeason_Name()+"\\";
 var screenFolderSeaNameThumb = screenFolderSea+getSeason_Name()+"\\THUMBNAILS\\";
 var screenFolderSeaNameGallery = screenFolderSea+getSeason_Name()+"\\GALLERY\\";
 if (!MyFSO.FolderExists(screenFolderSeaName))
 {
  MyFSO.CreateFolder(screenFolderSeaName);
 }
 if (!MyFSO.FolderExists(screenFolderSeaNameThumb))
 {
  MyFSO.CreateFolder(screenFolderSeaNameThumb);
 }
 if (!MyFSO.FolderExists(screenFolderSeaNameGallery))
 {
  MyFSO.CreateFolder(screenFolderSeaNameGallery);
 }
 var MyFolderSeaName = MyFSO.GetFolder(screenFolderSeaName);
 var MyScreensSeaName = new Enumerator(MyFolderSeaName.files);
 var xSeaName = 0;
 for (; !MyScreensSeaName.atEnd(); MyScreensSeaName.moveNext())
 {
My Blues 1995-1996 Season Report
My Blues 1998-1999 Season Report
My Flyers 1998-1999 Season Report
Online Profile Quote Post Goto Top
 
hockeyheimer
Rookie
Ah, trent, thank you very much for your extremely fast response.

:worship:


But it's become late now. Time to go to bed.

Best regards


Now I pin all my hopes on Sence.
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
Damn! :D

At least I have to recommend the short path (D:/NHL 2004) to decrease the amount of new script errors in the future. :)

Also, if you set german language to your game language, that might cause problems in the future.

Anyway, now the problem. So the error happens in the line:
Code:
 

MyFSO.MoveFile("installdirectory", screenFolderExh+"installdirectory");


I know that you checked that already, but you can still find the RusPatch.exe from the installation directory and it's not deleted?
A video is worth of thousand pictures.

http://www.youtube.com/watch?v=bFq2dGSVdOI
My Sharks 2015-16 season (finished)
Offline Profile Quote Post Goto Top
 
trent
Member Avatar
Project Leader
Yeah that might be the issue too. Crappy antivirus programs keep deleting Project2.EXE and RusPatch.EXE. If they're deleted the mod will NOT function.

I switched to Panda Free Antivirus and never had any of these idiotic false positive issues.
My Blues 1995-1996 Season Report
My Blues 1998-1999 Season Report
My Flyers 1998-1999 Season Report
Online Profile Quote Post Goto Top
 
hockeyheimer
Rookie
Hi, Trent and Sence, first of all thanks to both of you. I don't take your helpfulness for granted.
And please excuse my delayed response (timeshift!).

1. I chose English as language during installation. Also the game language is set to English in order to avoid possible indication errors.
In my post I translated the error message dealing with the script error. As I run a german copy of Windows, the error message in German.

2. I tried the short installation path (D:/NHL 2004), too - unfortunately to no avail. The issue stays the same.

3. Project2.EXE and RusPatch.EXE are in the main folder. During installation, I deactivated my antivirus program. I excluded the NHL 2004 files from the programs' searchlist, too. I don't believe that this issue is caused by a blocked or missing file.

Perhaps you have another idea how to stay in the game (menu) after quitting a match?!
Thanks in advance!
Jens
Offline Profile Quote Post Goto Top
 
zata
Charter Member
Hey Jens,

I ran into this script problem too in both exhibition and season mode. I don't know if it's a sure "fix" but I checked the Documents\NHL 2004\SCREENSHOTS\Exhibition folder and found 3 files (can't remember the exact name, but one of them was named "install" I'm pretty sure) and two folders called "Gallery" and "Thumbnails" . I deleted those 3 files and the error disappeared. I also checked my season folder and found those three files and deleted them as well.

You should look at the folder I mentioned and see if you have those weird files too. Hope you get it to work
Offline Profile Quote Post Goto Top
 
hockeyheimer
Rookie
Zata! Great! That did the trick!

In the Documents\NHL 2004\SCREENSHOTS\Exhibition folder I found 3 files:
convert.bat, convert.exe, installdirectory.
After deleting those files, the problem has gone.

You made my day!
:good:

THANKS to you, Zata, Trent, Sence! I really appreciate your help.

Keep up your awesome work!

Greetings from Germany

Jens
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create your own social network with a free forum.
« Previous Topic · Problem Reports / Tech Support · Next Topic »
Add Reply