Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: kobl on June 19, 2007, 11:47:02 am

Title: Lost when it comes to scripts...
Post by: kobl on June 19, 2007, 11:47:02 am
I just got freespace scp a couple days ago. Amazing game. But I can't get scripts to work in the slightest I' running WMCoolmon's latest build, and made a scripting.tbl file, bur I'm not sure where to put it or how to execute scripts in game. Sorry for being so dumb.

Thanks
Title: Re: Lost when it comes to scripts...
Post by: Mustang19 on June 19, 2007, 12:09:02 pm
:welcome:

\FreeSpace\Data\Tables. The game should automatically use your table files, whether they be script.tbl, weapons.tbl, etc. as long as they're in the Tables directory.
Title: Re: Lost when it comes to scripts...
Post by: kobl on June 19, 2007, 12:16:18 pm
Thanks a ton! I'll let you know how it works out!

Edit: Every time I try to start a mission the game crashes. I'm sure whats going on. I'm using nuke's mouse script and build fs2_open_C05202007_r.exe

Scripting.tbl is in
C:\Games\Freespace 2\data\Tables

Edit 2:

Heres my error info.

Could not find index 'getX' in type 'Controls'

------------------------------------------------------------------
ADE Debug:
------------------------------------------------------------------
Name:      (null)
Name of:   (null)
Function type:   (null)
Defined on:   0
Upvalues:   0

Source:      (null)
Short source:   
Current line:   0
------------------------------------------------------------------


------------------------------------------------------------------
LUA Stack:
------------------------------------------------------------------

1: Userdata [Controls]
2: String [getX]
------------------------------------------------------------------



Title: Re: Lost when it comes to scripts...
Post by: Wanderer on June 19, 2007, 01:33:07 pm
Try the one from this http://www.hard-light.net/forums/index.php/topic,44634.msg913829.html#msg913829 post
Title: Re: Lost when it comes to scripts...
Post by: Nuke on June 19, 2007, 02:34:07 pm
wow, somones actually using one of my scripts. i havent been keeping it up to date with the latest head builds but it should still work. il see about an update later once get this new computer in order. ive been buisy with other side projects like writing my own game engine and doing robot textures for d2xxl, not to mention actual work. so ive been letting nukemod and the mouse script slide.

that link should be the most recent version. but i think an update is in order to make the user interface a bit easyer to use. also i need to tweak my cfg format, because if you want to edit it manually, it wont work if you use note/wordpad. you can use run->edit or something like notepad++, which shouldnt delete any special hidden chars im using.
Title: Re: Lost when it comes to scripts...
Post by: kobl on June 19, 2007, 02:57:47 pm
Now its working great, I'm just nervouse 'bout using with my main profile. I'll make a copy of it to play with this script.

Thanks yet again!
Title: Re: Lost when it comes to scripts...
Post by: Nuke on June 20, 2007, 10:29:37 am
thats always a good plan on head builds, script or not. im glad to hear the script still works. sence it seems the controls changes are a little ways out i might still update the script and hopefully make the script suck less :D