OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Lone~Wolf on 24 Dec 2010, 19:27:02
-
Hi again all, ;)
I've recently purchased ArmA 2 (at last) and immediately set about attempting to convert my favourite works in OFP into ArmA2. The only problem is that they've revised the programming language...
There seem to be innumerable tweaks here and there and it is infuriating trying to convert these things! On my first script I hit the vicious wall that is script-fails-to-work-but-displays-no-error-message.
Gah!
If there was such a thing as a standalone program which could read through an OFP script and highlight lines containing outdated commands and suggest alternatives, this would be PERFECT. I can program outside OFP and ArmA and if this ineffable community could help me familiarise myself with script conversion, then I will write said standalone program and release it freeware to y'all to convert your favourite scripts.
What do you guys say?
-
Try adding -showscripterrors into your Arma2 shortcut target line, after that the game should show scripting errors on the screen.
Regardless of that all errors are stored in a arma2.rpt file which is stored in a folder (can't remember if it was a hidden folder or not): in XP user\Local Settings\Application Data\ArmA 2, in Vista/7 user\AppData\Local\ArmA 2.
As far as I know sqs scripts should work the same although it's kinda outdated, sqf is the way to go..
-
And use Squint to check your SQF files for errors. That may help to switch the language.
-
I'm just going to do my usual thing of reverse engineering other people's files to learn the language. It's how I became good at scripting OFP.
But thanks, I'll check out Squint. :good:
-
AFAIK CAA1 for ArmA1 used a script/tool to convert some of the OFP campaign scripts to ArmA1 script codes, atleast that's the way I remember it :scratch: .