Page 1 of 1

Mission Scripter

Posted: Sat Dec 01, 2007 7:57 am
by Skip
Hi,
Before 2 weeks, I have begun to write a program, the mission-scripter.
With this program you can you easily script missions for the Battlefront II Mod Tool. If you want to create a objective you only have to type in the needed information about it. To edit the script you need a few skills in lua scripting.
darthD.U.C.K. translated it into english

Image

Image

Image

Image

You can download it HERE

MediaFire

Mission-Scripter_EnglishUpdate.zip

Please post bugs, improvements and your feedback !!!


Staff Edit
Mission Scripter exports scripts with "con" instead of "conquest", like this for example:
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_con")
You'll have to fix this yourself, the above example should be:
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_conquest")
unless you actually made a layer called "con" then it doesn't exist, it's meant to be "conquest".

Re: MISSION-SCRIPTER

Posted: Sat Dec 01, 2007 8:43 am
by EGG_GUTS
Wow this looks useful :)

PS. I wouldn't post in all caps for a title :wink:

Re: MISSION-SCRIPTER

Posted: Sat Dec 01, 2007 8:51 am
by Death_Commando
Nice downloading for sure :thumbs:

EDIT:Welcome to GT

Re: Mission Scripter

Posted: Sat Dec 01, 2007 10:42 am
by Adjuntant_Reflex
Very nice looking,welcome to GameToast. (P.S. Get another photohosting site,I got swarmed by pop-ups :? )

Re: Mission Scripter

Posted: Sat Dec 01, 2007 1:52 pm
by authraw
Excellent! I just started working on a campaign mode yesterday--I'm sure this will come in handy. :)

Re: Mission Scripter

Posted: Sat Dec 01, 2007 1:54 pm
by trainmaster611
Wow, this is an enourmous breakthrough. Campaign maps were a rarity because they were so hard to make until now :P

Re: Mission Scripter

Posted: Sat Dec 01, 2007 1:58 pm
by Maveritchell
trainmaster611 wrote:Wow, this is an enourmous breakthrough. Campaign maps were a rarity because they were so hard to make until now :P
FYI, there is still a learning curve with this, and you're still going to need to understand how to set up .lua scripts. This tool will help minimize typos and maybe make it a little easier (since it's a GUI and not just the text) to script, but don't think it'll magically make you understand .lua. On the other hand, if you use it enough, and you know what you're doing with it, you will start to understand .lua more.

Re: Mission Scripter

Posted: Sat Dec 01, 2007 9:43 pm
by Ace_Azzameen_5
Neat. Hope you expand it.

Suggestion 1:
You could also add an event-creater combo boxes window, where you select an event (ie. OnObjectKill, and the window changes to allow you to select a context (ie. onobjectkillName) if available, and then to type in the context (ie. end, "CP3") value. Next, a similar style window would pop up to let you chose the functions you want executed during this event.

You could then expand the library of available events. And yes, I had something like that working, but it was in JAVA and my GUI got messed up, and I've been working on Acezuraize in my hobby time ever since.

Image
Image

Actually, my window was functions and events all in one. When that closed, the event code gets added just under script post load, and the name of the event (ie. OnObjectKill 1 ) would should up in a list on the left of the main window. I was going to make it so that you could click the event in the list and then click an 'add function' button that would put more functions in the list.

Suggestion 2:
Colour the text, red for strings, green for comments, and blue for certain operates, just like lua edit. I've got the logic for red and green but its in java, coded for my lua loader.

Suggestion 3:
wld/lyr file loader. Allow users to select a data_abc/abc/worlds/world folder and load a list of objects from all the layers and the base layer. Then use this list for forming relevant events and functions. I did that by line by lining the lyrs in a few arrays, first finding lines with object names (IIRC based on if the line had the word 'Object' in it- just now, I realize, that could goof up, so you could also check if the next line had a '{' ), then isolating the names in the line based on quotation marks.

Good to see someone helping out with SWBF2 scripting. Thanks for improving the quality of future maps.

Re: Mission Scripter

Posted: Sun Dec 02, 2007 6:06 am
by Moonwolf=SotG=
amazingly interesting, this is a breakthrough in swbf2 modding, i hope this will mean that there will be improved scipts :P
though i agree with....havvalook......mav, that you sill have to learn how to understand it if you wanna get better, but so far i didnt see many well scripted maps exept those zerted made :P

Re: Mission Scripter

Posted: Mon Dec 03, 2007 8:14 pm
by [RDH]Zerted
A programming tip: Never assume a file exists. For me, the program (english version) throws an exception when it tries to play a certain sound. This prevents the loading of a saved script and makes it impossible to create a new script if one is already opened. I am guessing "Hinweis" is a german word and none of the english users are hearing sounds.

The file exception:
Hidden/Spoiler:
System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
File name: 'C:\Windows\Media\Windows XP-Hinweis.wav'
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at System.Media.SoundPlayer.Play()
at lua_Mission_Scripter.Form1.beendenToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Re: Mission Scripter

Posted: Tue Dec 04, 2007 5:21 pm
by Adjuntant_Reflex
Look at the featured utility: http://starwarsbattlefront.filefront.com/

Re: Mission Scripter

Posted: Tue Dec 04, 2007 5:52 pm
by guru
looks like a great app. something nimlot would have been proud to make , fo sho!

Re: Mission Scripter

Posted: Thu Dec 06, 2007 9:22 am
by Skip
[RDH]Zerted wrote:The program (english version) throws an exception when it tries to play a certain sound. This prevents the loading of a saved script and makes it impossible to create a new script if one is already opened. I am guessing "Hinweis" is a german word and none of the english users are hearing sounds.
Sry, I had forgotten to delete this command ^^ thank you for posting

KLICK HERE TO GET THE FIXED EXE

MediaFire

Re: Mission Scripter

Posted: Sun Nov 12, 2017 7:12 pm
by Hazimgovina
Do I extract the files? Or what do I do with them?

Re: Mission Scripter

Posted: Mon Nov 13, 2017 2:03 am
by Marth8880
Nothing more exhilarating than bumping a decade-old thread, eh? ;^)

All you have to do is extract the ZIP archive, run the self-extractor archive's exe for your language (English "ENG" or German "GER"), then run Mission-Scripter.exe:
Hidden/Spoiler:
Image

Re: Mission Scripter

Posted: Mon Nov 13, 2017 10:05 am
by thelegend
Nooo....why didn't you wait until Dec 6 then it woulda been a beautiful decade bump :D

Re: Mission Scripter

Posted: Tue Nov 14, 2017 11:33 am
by CT108
Windows XP right ?

Image

Geez it's quite old