need help with big ol' wip-y broken lua mess

need help with big ol' wip-y broken lua mess

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

need help with big ol' wip-y broken lua mess

Post by oksnoop2 »

http://www.megaupload.com/?d=CYXGMUC8 what i have so far
http://pastebin.com/m67ab6186 infolog

I was posting stuff in games'n'mods but since i think it's my lua ignorance that's making my project come to a screeching halt i thought i'd post here.

The unit the game starts with it supposed to walk, shoot missiles from the front, and shoot some pew pew lasers from the back. I've tried my hardest to adapt scripts from the roach and the m-6 from CA. So for my latest attempt i made something that is very similarly structured to the roach from scratch, plugged it's script in and tried to add some some script that i thought would make it shoot two different weapon types. So far all I've made it do is...nothing. It won't move and it will not shoot. Please someone at least take a look.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: need help with big ol' wip-y broken lua mess

Post by SpliFF »

Code: Select all

#[      0] Inconsistent movedata 1 for artillery (moveclass hover3): neither canhover nor floater, but not a ground movetype
#[      0] Inconsistent movedata 1 for assaulttank (moveclass hover3): neither canhover nor floater, but not a ground movetype
#[      0] Inconsistent movedata 1 for basicmech (moveclass hover3): neither canhover nor floater, but not a ground movetype
Can't be good

Code: Select all

#LuaRules::RunCallIn: error = 2, UnitCreated, [string "scripts/nfs.lua"]:5: piece not found: body
#stack traceback:
#        [C]: in function 'sp_CallAsUnit'
#        [string "LuaGadgets/Gadgets/unit_script.lua"]:263: in function 'CallAsUnitNoReturn'
#        [string "LuaGadgets/Gadgets/unit_script.lua"]:627: in function 'UnitCreated'
#        [string "LuaRules/gadgets.lua"]:1202: in function <[string "LuaRules/gadgets.lua"]:1200>
#        (tail call): ?
#[      0] LuaRules::RunCallIn: error = 2, UnitCreated, [string "scripts/nfs.lua"]:5: piece not found: body
#stack traceback:
#        [C]: in function 'sp_CallAsUnit'
#        [string "LuaGadgets/Gadgets/unit_script.lua"]:263: in function 'CallAsUnitNoReturn'
#        [string "LuaGadgets/Gadgets/unit_script.lua"]:627: in function 'UnitCreated'
#        [string "LuaRules/gadgets.lua"]:1202: in function <[string "LuaRules/gadgets.lua"]:1200>
#        (tail call): ?
#[      1] Skirmish AI "Bot1" took over control of team 0
#[    411] nfs: Can't reach destination!
#[    411] nfs: Can't reach destination!
#[   1088] nfs: Can't reach destination!
#[   1088] nfs: Can't reach destination!
Can't be good either.

I have a splitting headache so I won't be looking at your code but if I were you I'd start by determining what those errors mean and eliminating them.
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: need help with big ol' wip-y broken lua mess

Post by oksnoop2 »

SpliFF wrote: I have a splitting headache so I won't be looking at your code but if I were you I'd start by determining what those errors mean and eliminating them.

Get well soon. My eyes kind of hurt myself. Anyway i don't think those other units are goofing up what I have because there's no way to get to them in game...My ..crack team... of lua scientists..? (sanada) has not figured out how to make things build things.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: need help with big ol' wip-y broken lua mess

Post by Tobi »

Start by making nfs.lua not look for a piece called "body" when such piece does not exist ;-)
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: need help with big ol' wip-y broken lua mess

Post by oksnoop2 »

Alright, I fixed that and it's still not doing anything.
Post Reply

Return to “Lua Scripts”