Mission Scripter

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

Moderator: Moderators

Skip

Mission Scripter

Postby Skip » Sat Dec 01, 2007 7:57 am

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.

Master Bounty Hunter
User avatar
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Location: CANADA!

Re: MISSION-SCRIPTER

Postby EGG_GUTS » Sat Dec 01, 2007 8:43 am

Wow this looks useful :)

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

Death_Commando

Re: MISSION-SCRIPTER

Postby Death_Commando » Sat Dec 01, 2007 8:51 am

Nice downloading for sure :thumbs:

EDIT:Welcome to GT

Rebel Warrant Officer
User avatar
Posts: 312
Joined: Fri Aug 31, 2007 4:47 pm
Location: Home... Where else?

Re: Mission Scripter

Postby Adjuntant_Reflex » Sat Dec 01, 2007 10:42 am

Very nice looking,welcome to GameToast. (P.S. Get another photohosting site,I got swarmed by pop-ups :? )

1st Lieutenant
User avatar
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Mission Scripter

Postby authraw » Sat Dec 01, 2007 1:52 pm

Excellent! I just started working on a campaign mode yesterday--I'm sure this will come in handy. :)

Sith Lord
User avatar
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Location: Building a railway to Coruscant

Re: Mission Scripter

Postby trainmaster611 » Sat Dec 01, 2007 1:54 pm

Wow, this is an enourmous breakthrough. Campaign maps were a rarity because they were so hard to make until now :P

Jedi Admin
User avatar
Posts: 7391
Joined: Mon Aug 21, 2006 11:03 pm

Re: Mission Scripter

Postby Maveritchell » Sat Dec 01, 2007 1:58 pm

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.

Jedi
User avatar
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm

Re: Mission Scripter

Postby Ace_Azzameen_5 » Sat Dec 01, 2007 9:43 pm

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.

Private First Class
User avatar
Posts: 78
Joined: Wed Oct 25, 2006 9:23 am
Location: Deventer, Holland

Re: Mission Scripter

Postby Moonwolf=SotG= » Sun Dec 02, 2007 6:06 am

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

Gametoast Staff
User avatar
Posts: 2966
Joined: Sun Feb 26, 2006 7:36 am
Location: USA
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set

Re: Mission Scripter

Postby [RDH]Zerted » Mon Dec 03, 2007 8:14 pm

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)

Rebel Warrant Officer
User avatar
Posts: 312
Joined: Fri Aug 31, 2007 4:47 pm
Location: Home... Where else?

Re: Mission Scripter

Postby Adjuntant_Reflex » Tue Dec 04, 2007 5:21 pm

Look at the featured utility: http://starwarsbattlefront.filefront.com/

Jawa Admin
User avatar
Posts: 2493
Joined: Thu Oct 14, 2004 8:45 pm
Projects :: swbf 1 vanilla
Games I'm Playing :: any mobile rpg

Re: Mission Scripter

Postby guru » Tue Dec 04, 2007 5:52 pm

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

Skip

Re: Mission Scripter

Postby Skip » Thu Dec 06, 2007 9:22 am

[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

Posts: 1
Joined: Sat Nov 11, 2017 10:10 pm
Location: Šići Tuzla, Federation of Bosnia and Herzegovina, Bosnia
Projects :: Working on a stranded island map
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

Re: Mission Scripter

Postby Hazimgovina » Sun Nov 12, 2017 7:12 pm

Do I extract the files? Or what do I do with them?

Resistance Leader
User avatar
Posts: 4905
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: Mission Scripter

Postby Marth8880 » Mon Nov 13, 2017 2:03 am

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

Sith
User avatar
Posts: 1417
Joined: Thu Jan 23, 2014 6:01 am
Location: You ask? What's your location?
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#

Re: Mission Scripter

Postby thelegend » Mon Nov 13, 2017 10:05 am

Nooo....why didn't you wait until Dec 6 then it woulda been a beautiful decade bump :D

Master Sergeant
User avatar
Posts: 170
Joined: Mon Aug 22, 2016 6:20 am
Location: Dantooine
Projects :: -Secret-
Games I'm Playing :: SBF2 - Empire at War
xbox live or psn: Captain CT108

Re: Mission Scripter

Postby CT108 » Tue Nov 14, 2017 11:33 am

Windows XP right ?

Image

Geez it's quite old

Return to Released Assets

Who is online

Users browsing this forum: EasyOvenOperator and 8 guests