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.
need help with big ol' wip-y broken lua mess
Moderator: Moderators
Re: need help with big ol' wip-y broken lua mess
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
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!
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.
Re: need help with big ol' wip-y broken lua mess
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.
Re: need help with big ol' wip-y broken lua mess
Start by making nfs.lua not look for a piece called "body" when such piece does not exist 

Re: need help with big ol' wip-y broken lua mess
Alright, I fixed that and it's still not doing anything.