last step, scripting -1 reply

  • 1
  • 2

Please wait...

L1nK

The Hero Of Time!

50 XP

21st March 2006

0 Uploads

109 Posts

0 Threads

#1 12 years ago

well im making a map, to get everyone excited its my last version of a Troy map. Its gonna have more vehicles, more CP's, water, paths, more city, a palace and new vehicles and new teams BUT! scripting is really annoying, can someone give me a full scale tut or something. i go to the common/scripts and edit the files, (im still a little confused which ones i edit) i eddited the ones that end in .lua but for some reason, nothing ever comes out right HELP ME!!:bawl: and ill give u a bear :beer:




UnixPwnix

Your lack of faith disturbs me

50 XP

21st July 2004

0 Uploads

193 Posts

0 Threads

#2 12 years ago
L1nK HELP ME!!:bawl: and ill give u a bear :beer:

I'll help you if you dont give me the huge snarling animal, anyway what precisly is the problem anyway?




L1nK

The Hero Of Time!

50 XP

21st March 2006

0 Uploads

109 Posts

0 Threads

#3 12 years ago

everything, i try putting in the command post thing cp5 = CommandPost:New(name = "cp5") cp6 = CommandPost:New(name = "cp6") cp7 = CommandPost:New(name = "cp7") cp8 = CommandPost:New(name = "cp8") cp9 = CommandPost:New(name = "cp9") cp10 = CoomandPost:New(name = "cp10") and i do the conquest:AddCommandPost(cp5) conquest:AddCommandPost(cp6) conquest:AddcommandPost(cp7) conquest:AddcommandPost(cp8) conquest:AddcommandPost(cp9) conquest:AddcommandPost(cp10) and those never worked then i tried editting the heroes and they never showed up i tried changing teams, nothing ever happens ep3 clones to ep2, nothing happens HELP!




xXxDuMbBoYxXx

I don't spend enough time here

50 XP

25th May 2004

0 Uploads

15 Posts

0 Threads

#4 12 years ago

first consult the missionluascript.doc or whatever in the mod tools documentation, it really helps a lot. and if you dont understand upload your script and ill take a look at it for ya, im decent at scripting




Commander Keller

GF Pwns Me!

50 XP

9th March 2006

0 Uploads

49 Posts

0 Threads

#5 12 years ago

i really don´t have much clue of modding especially of scripting but maybe my wisenheimering can even help... here´s what buster kinkade wrote in his nice tut: "Create a new map, copy the race you want to edit (example: republic) into the sides folder of the new map. Now go to assets/shell and copy all of the folders in it, but not the .req, then paste it in the _Build/shell folder in the newmap you created. Now Copy the “Common” folder from within the mod-tool “assets/sides” directory and place it in the sides folder of your new map, edit the texture, now, go into common > script > newmapname and open the LUA file named newmapnamec_con.lua (for me that was BS1c_con.lua ). Now if you look down the LUA file you will see ReadDataFile("SIDE\\rep.lvl", change this to ReadDataFile("dc:SIDE\\rep.lvl , then copy 2 .bat files in the side you got, these are: clean.bat and munge.bat , these can be aquired from the _BUILD > Sides > ALL in the newmap you created. Finally we munge the your new map (see Jedi Creation doc for more info) we select the new race in the drop down menu on the left, and select the race you edited (mine was rep) you alos have to tick the "common" check box, then munge! P.S: You can get the race from the assets > sides folder ! P. P.S: The textures are in the msh of your copied side folder." perhaps one has to do this thing with the "dc:SIDE\\..." in the lua file with everything you got in your map especially with the command posts. okay, that´s all i can give you as a kinda hint. i don´t know any more. good luck with your project!




UnixPwnix

Your lack of faith disturbs me

50 XP

21st July 2004

0 Uploads

193 Posts

0 Threads

#6 12 years ago

Yeh, read the documentation on getting scripts to work, It always helps.




L1nK

The Hero Of Time!

50 XP

21st March 2006

0 Uploads

109 Posts

0 Threads

#7 12 years ago

LOL the thing commander keller submitted was a tut on making new sides, thanks for your support but maybe you shouldve at least look over it, thanks anyway how do i submit the file to u?.. eh, ill just email it or something ok?




L1nK

The Hero Of Time!

50 XP

21st March 2006

0 Uploads

109 Posts

0 Threads

#8 12 years ago

well i went over the documentation, munged my map and selected ALL for any errors to make sure i didnt have any besides the sound errors and stuff, i got this from what i think is the problem to my map C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TRO\TROc_con.lua:25: `)' expected near `=' ERROR[scriptmunge scripts\TRO\TROc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TRO\TROc_con.lua]:Could not read input file. [continuing] C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TRO\TROg_con.lua:23: `)' expected near `=' ERROR[scriptmunge scripts\TRO\TROg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TRO\TROg_con.lua]:Could not read input file. [continuing] 4 Errors 0 Warnings ERROR[levelpack mission\TROc_con.req]:Expecting bracket, but none was found. File : munged\pc\troc_con.script.req(1)... ucft <-- ERROR[levelpack mission\TROc_con.req]:Expecting bracket, but none was found. File : munged\pc\troc_con.script.req(1)... ucft <-- 2 Errors 0 Warnings well maybe u could solve my problem now




Commander Keller

GF Pwns Me!

50 XP

9th March 2006

0 Uploads

49 Posts

0 Threads

#9 12 years ago

um... link, i did read the whole thread and i thought the priciples might be the same of either adding modded sides or cp´s. i had similar problems with my map. then i did exactly what kinkade described in this tut and... boo hoo... it worked. i can even take the modded files, copy them into my regular side folder and so it works on each and every map of the game. sorry if i couldn´t help.




L1nK

The Hero Of Time!

50 XP

21st March 2006

0 Uploads

109 Posts

0 Threads

#10 12 years ago

still no one has answered me, if anyone knows how to get the script working please some, post as the documentations i read dont state anything on the CP's




  • 1
  • 2