How 140k becomes 5Mb... a strange error

AvecPardon
26 Mar 2012, 00:42
Okay, so I finally got things running pretty smoothly so far. In editing mode, everything acts just fine (I mostly work in the GUI with the occasional pop over to Code View when the GUI chokes on some script).

The file size is currently 140+ kilobytes. The problem occurs when I publish it to a .quest file and try to test run it.

Suddenly, the file inflates to 5 Megs and I get this Error:

System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.Combine(String path1, String path2)
at Ionic.Zip.ZipEntry.ValidateOutput(String basedir, Stream outstream, String& OutputFile)
at Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password)
at Ionic.Zip.ZipFile._InternalExtractAll(String path, Boolean overrideExtractExistingProperty)
at AxeSoftware.Quest.PackageReader.LoadPackage(String filename)
at AxeSoftware.Quest.GameLoader.LoadCompiledFile(String filename)
at AxeSoftware.Quest.GameLoader.Load(String filename)
at AxeSoftware.Quest.WorldModel.InitialiseInternal(GameLoader loader)
at AxeSoftware.Quest.WorldModel.Initialise(IPlayer player)
at AxeSoftware.Quest.Player.FinishInitialise()
at AxeSoftware.Quest.Player._Lambda$__28()

Now, I have no clue what it's choking on, so I'm posting the .aslx file and hoping someone can take a look and see what the heck I did wrong this time. Also posting the Score Lib that goes with it, otherwise opening it in editing is gonna pop up another error.



Pertex
26 Mar 2012, 09:06
strange! I dont have any problem with your gamefile

Alex
26 Mar 2012, 09:35
It compiles to a 51K .quest file for me with no problems. Can you also attach your 5MB version so I can see what the difference is?

AvecPardon
27 Mar 2012, 08:08
Hmm, it won't let me attach a 5mb file. Should I email it?

Alex
27 Mar 2012, 08:20
Yes, please email it to me at alex@axeuk.com

Alex
27 Mar 2012, 10:49
Just for the benefit of everybody else, I'll paste my email reply here too:

The .quest file contains all files from your game folder - so your game will automatically include any pictures, sounds etc. that it needs.

It looks like you've put some extra files in your game folder which aren't needed, so this will be inflating the file size. One of the files is called "textadventures.co.uk Forums  View topic - Scoring system.htm", and this contains an invalid character which is causing the file reader to fail.

If you move these files out of your game folder, it should build a good .quest file for you.