Ok, I've looked at a lot of the BA unit scripts and looked at the mod creation tutorial and i cannot figure out why my unit weapon table is broken. As far as I know beam weapons don't have an object name.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
The beamlaser weapon should work without objectname, but the unit needs one. Does the unit itself load?
If your 3d files are in s3o then add .s3o like this: objectName = "simplegravturret.s3o", (BA does not need it because its models are 3do and that is assumed default.)
Now if you're using TGA textures rather than DDS, you'll need one extra step. Click Texture Mapping > Show UV Mapping. It'll show your texture; click Edit > Flip UVs.
Anyway, the unit is loaded with no errors in the console (is there a verbose mode?). However the unit will not fire and the turret will not turn. While I have the constructor selected that builds my unit I get
Quote:
"[f=0001689] Warning: GetLuaCmdDescList() non "actions" table: pos [f=0001689] Warning: GetLuaCmdDescList() non "actions" table: params"
printed every frame.
Is there somthing wrong with the animation file (lua, attached) or does spring not support lua animations?
As a side note when the units is selected from the builder menu and when building is complete there is a small hang in spring(parse/file not found error?).
Attachments:
File comment: .Lua simpleGrav.lua [1014 Bytes]
Downloaded 58 times
Users browsing this forum: No registered users and 3 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum