PDA

View Full Version : IL2 Script


Zamdrang
16-03-2005, 02:41 AM
First try...heres what happens:

Downloaded Michaels IL2 script. Created a new map with CMS capability.

Pasted script into the map with CM editor, run script check and get:

ERROR: (0) SCRIPT expected but "Elevator" found

So I realize I must have erased the blue "SCRIPT" and "END SCRIPT" when I pasted it. SO...I insert "script" into the map right above "Elevator_UP" and "end script" at the end of the text(assuming this is correct??)

Run script check again and get:

ERROR: U5: Unrecognized statement at "Elevator"

I tried inserting "SCRIPT" below the date and above "//Aircraft Controls" as well....same error. And of course it will not download...I get "Error compiling CMScript"....seems logical.

This is my first shot at the CM editor...not even sure what it was gonna do when I was finished...:) But this would seem like the logical first step (check it and see if it works) and im already stuck.... :(

What am I missing???

All I need is a working map for IL2 (yes the original game...im off to a slow start :D ), didnt see one here. Will the Forgotten Battles or Pacific Fighters maps work??

Bob Church
16-03-2005, 03:43 AM
Hi Zamdrang,

It sounds to me like you tried to compiler the CMC file. That's not the script, it's a list of definitions to give names to key sequence, e.g. the CMC file can say:

LandingGear g

and if you program a button in the GUI to send characters and you put "LandingGear" in the press string box, it will actually send the "g" when you click the button. If the program specifies a CMC file on the Program Settings tab, it will include that and you can edit it with the same editor, it's on a different tab than the CMS script file. It's just not the script itself, and really you may not even need a script. If Michael's file had a ".CMC" extension, then select it in the box on the Program Settings tab, the editor will allow you to edit it if you want to, you can use it to fill in the "press" strings, etc. and you won't really need a script to do it.

If that doesn't help, post what you've got here along with what you're trying to do and we'll see if we can't sort it out for you.

Best regards,

- Bob

The StickWorks
http://www.stickworks.com

Zamdrang
21-03-2005, 03:46 PM
Hi Bob,
Thanks, that helps a lot....once again I wasnt fully understanding the software before I posted. Your correct in that I dont need a script at all. Ive managed to create a map that does what I need for the most part, a couple of things I cant figure out....but Ill post those in the programming forum.

Thanks for your help! :cheers: