forte
New Member
Posts: 6
|
Post by forte on Dec 27, 2008 10:55:04 GMT -5
My OS is Windows XP Traditional Chinese version I'm running the latest version of Brutus2D When I click the 'Run' button in Brutus2D IDE the game/script runs perfectly but if I compile the game/script into an exe file and double click it an error message in Chinese appears I've read brutus2d.proboards44.com/index.cgi?board=general&action=display&thread=115and I think Microsoft's AppLocale ( en.wikipedia.org/wiki/Microsoft_AppLocale ) would work however that error message still appears, it just changes from Chinese to English the error message is : --------------------------- stub --------------------------- Run-time error '1002': Syntax error --------------------------- OK --------------------------- What's wrong? I don't want to change my OS Regional Settings Is there another way to run the exe?
|
|
|
Post by u9 on Dec 27, 2008 20:06:34 GMT -5
It could actually be a normal syntax error. If you like, you can send me your project, and i can try it out on my computer.
|
|
forte
New Member
Posts: 6
|
Post by forte on Dec 28, 2008 1:15:17 GMT -5
I don't think it is a syntax error because the same error message appears when I try to run the games I've downloaded from the Brutus2D Homepage (PACMAN, MINIBOULDER, Panic II, etc)
The scripts that I try to compile and run are actually the *.b2d files in the examples and template folders, and I can run these examples in the B2D IDE
|
|
|
Post by Guilect on Dec 28, 2008 16:34:55 GMT -5
The error translates into " argument missing". Not much help there. I don't know why a program would run for you in the IDE but not as an exe. I just looked at the code and really they are 99% the same; IDE vs. exe. The 1% difference is what has to be different between the two.
There was a similar problem with a German user. It turn out to be the fact that their OS used numbers with a comma and B2D used numbers with a period (e.g. 3,145 vs. 3.145). That was addressed in B2D and should not be this issue exactly, but maybe something similar. It could be related to Unicode api calls that happen on a Chinese OS.
I would like to help you but am at a loss without a development setup on a Chinese OS so the issue could be tracked down and debugged.
As a stab in the dark, try compiling and running the most simple of programs. Not even a comment and see if that works?
Anyone else have any ideas?
|
|
forte
New Member
Posts: 6
|
Post by forte on Dec 29, 2008 23:38:24 GMT -5
I try to compile and run this simple program: msgbox "Hello World"
I can run it in the IDE but still can't get it work as an exe However, the error message of the exe this time changes, it is now 'Invalid Character'
I also try to run the exes on another computer running Win Vista Home Basic Traditional Chinese version, the same error message appears.
I think these errors are related to VBscript,but I don't what's the differences between the VBscript of Chinese and Eng OS
|
|
|
Post by Guilect on Dec 31, 2008 6:53:23 GMT -5
One thing that is different from running code in the IDE to an exe is that in the IDE the code is plain text.
When the the code is then made into an exe the source code is encrypted to protect your work.
I will make a sample .exe that does not use the encryption and you can give that a try.
|
|
|
Post by Guilect on Dec 31, 2008 7:20:01 GMT -5
|
|
forte
New Member
Posts: 6
|
Post by forte on Dec 31, 2008 8:38:01 GMT -5
Hello Guilect, Thanks for your help The exe works for me
|
|
|
Post by Guilect on Dec 31, 2008 13:17:20 GMT -5
|
|
forte
New Member
Posts: 6
|
Post by forte on Jan 1, 2009 0:06:26 GMT -5
I can now compile and run the scripts Thank you Guilect
|
|