Mission Scripter

Releasing the source files for your mod or map? Post em' here. (Applies to both SWBF1 & SWBF2)

Moderator: Moderators

Post Reply
Skip

Mission Scripter

Post 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".
Last edited by Skip on Sat Dec 01, 2007 7:28 pm, edited 1 time in total.
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Re: MISSION-SCRIPTER

Post by EGG_GUTS »

Wow this looks useful :)

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

Re: MISSION-SCRIPTER

Post by Death_Commando »

Nice downloading for sure :thumbs:

EDIT:Welcome to GT
Adjuntant_Reflex
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Fri Aug 31, 2007 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Home... Where else?

Re: Mission Scripter

Post by Adjuntant_Reflex »

Very nice looking,welcome to GameToast. (P.S. Get another photohosting site,I got swarmed by pop-ups :? )
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Mission Scripter

Post by authraw »

Excellent! I just started working on a campaign mode yesterday--I'm sure this will come in handy. :)
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Mission Scripter

Post by trainmaster611 »

Wow, this is an enourmous breakthrough. Campaign maps were a rarity because they were so hard to make until now :P
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Mission Scripter

Post 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.
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Mission Scripter

Post 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.
User avatar
Moonwolf=SotG=
Private First Class
Posts: 78
Joined: Wed Oct 25, 2006 9:23 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Deventer, Holland
Contact:

Re: Mission Scripter

Post 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
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Mission Scripter

Post 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)
Adjuntant_Reflex
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Fri Aug 31, 2007 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Home... Where else?

Re: Mission Scripter

Post by Adjuntant_Reflex »

Look at the featured utility: http://starwarsbattlefront.filefront.com/
User avatar
guru
Jawa Admin
Jawa Admin
Posts: 2390
Joined: Thu Oct 14, 2004 8:45 pm
Projects :: swbf 1 vanilla
Games I'm Playing :: any mobile rpg

Re: Mission Scripter

Post by guru »

looks like a great app. something nimlot would have been proud to make , fo sho!
Skip

Re: Mission Scripter

Post 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
Hazimgovina
Posts: 1
Joined: Sat Nov 11, 2017 10:10 pm
Projects :: Working on a stranded island map
Games I'm Playing :: SWBF2
xbox live or psn: PSN: LordHotzen
Location: Šići Tuzla, Federation of Bosnia and Herzegovina, Bosnia

Re: Mission Scripter

Post by Hazimgovina »

Do I extract the files? Or what do I do with them?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mission Scripter

Post 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
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Mission Scripter

Post by thelegend »

Nooo....why didn't you wait until Dec 6 then it woulda been a beautiful decade bump :D
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Mission Scripter

Post by CT108 »

Windows XP right ?

Image

Geez it's quite old
Post Reply