Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Montano on Wed 14/07/2010 18:53:11

Title: Error: pack_fopen: unable to change datafile
Post by: Montano on Wed 14/07/2010 18:53:11
I'm having a problem with my compiled game.  The game tests fine before I build the .EXE, but afterwards i get the following error:

---------------------------
Adventure Game Studio
---------------------------
An internal error has occurred. Please note down the following information.
If the problem persists, post the details on the AGS Technical Forum.
(ACI version 3.12.1074)

Error: pack_fopen: unable to change datafile: not found: D:\Game\BA2\Compiled\BA2.exe

I saw in the other threads about this error that non-ASCII characters or long file/folder names can cause problems, but my game has none of these.

I would appreciate any insight.
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Gilbert on Thu 15/07/2010 02:29:23
Maybe there're such characters in your "My Documents" folder? As recent versions of AGS would create save games (among other things) there, so it may cause some problems. What language are your Windows in?

The path problem seems to be fixed in the newest (not-released-yet) version though. You may try 3.2 Final 5 (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=37668.0) and check whether your problem persists. (Right, V3.2 is not officially released yet, but I think it's stable enough for one to upgrade to in case there is some problems from previous versions. Always back up the game files before upgrading of course.)
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Montano on Thu 15/07/2010 06:05:30
C:\Documents and Settings\Lev.LEVI\My Documents

is the path for the "My Documents" folder.  My version of Windows is in English.  I did try loading it with 3.2 Final 5, but it doesn't seem stable enough.  A lot of stuff (Icon bar, Inventory window) doesn't show up at all when I tried to test my game.
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Montano on Thu 15/07/2010 06:22:12
Just finished trying to compile it with 3.2 and still got the same error. :(
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Montano on Mon 19/07/2010 15:29:38
I didn't mention that I started creating the game in version 3.0 and upgraded to 3.1 a little while before I finished it.  Could that have anything to do with it?
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Pumaman on Tue 20/07/2010 22:24:59
Hmm, this is strange. Which version of Windows are you running?
Does this error happen immediately at startup, or later on during the game?
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Montano on Wed 21/07/2010 04:00:08
I'm running windows XP home SP 3.  The error happens right when I try to launch the game.  Works fine when I run it from the editor, but after I compile and try to run it I get the error.
Title: Re: Error: pack_fopen: unable to change datafile
Post by: Pumaman on Tue 10/08/2010 17:26:54
Hmm, strange. Has anyone else had a problem like this?