Jump to content
Sign in to follow this  
mahuja

Standalone script compiler/syntax checker?

Recommended Posts

Currently, the situation is as follows: You write the script, load the game (which is not very alt-tab friendly, particularly with these graphics drivers of mine) and the mission - and you get a message in the corner which you can't make use of unless you take a screenshot of it and paste in ms paint or similar outside the game.

There are two solutions: One is to provide a good script editor as part of the game (if so, please add autocompletion lists, and autoindentation) - and the other is to allow us to compile and get error messages outside the game.

I suspect the latter is all about (presuming C++) setting which files are to be compiled, provide a new #ifdef-ed main, and compile it to a new executable; the editor will require a lot more work (editor interface, backend, file browser) though it may be a better solution in the long run.

I have this bad habit of writing a script in its entirety before a compiler gets a first look at it right now - and with alt-tab being as costly as it is, that isn't going to change.

Not that it'll be looking for runtime errors, it's just those unnecessary direct compilation errors (indirect being compile format ... style).

BIS, Please consider adding this to your array of mod tools to be released.

Share this post


Link to post
Share on other sites

You can run the game in a window, rather than alt-tabing.

Share this post


Link to post
Share on other sites

You can see the errors outside via the debug log. Look in your docs/sets, Local Settings\Application Data\ArmA\ARMA.RPT

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×