Rick Posted March 3, 2010 Posted March 3, 2010 What am I missing here? I load the mesh, but when I try to SetPosition() it says object.characterModel is nil. So the mesh isn't getting loaded, but the Notify I have shows the correct filename and the model is under the Model directory on the LE SDK. Is there a typo I'm not seeing? function object:SetKey(key,value) if key=="model" then local pos = self.model:GetPosition() object.characterModel = LoadMesh("abstract::"..value) Notify("abstract::"..value) object.characterModel:SetPosition(Vec3(pos.x, pos.y, pos.z)) else return self.super:SetKey(key,value) end return 1 end Quote
VicToMeyeZR Posted March 3, 2010 Posted March 3, 2010 Whats the Notify you get? is it abstract::c:\program files\leadwerks SDK\..... ? Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Rick Posted March 3, 2010 Author Posted March 3, 2010 It's abstract::character.gmf The model does load in the model viewer. Quote
VicToMeyeZR Posted March 3, 2010 Posted March 3, 2010 change object.characterModel to self.characterModel Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Rick Posted March 3, 2010 Author Posted March 3, 2010 That's what it originally was It seems LoadMesh() or LoadModel() aren't working on this model or for some reason it can't find it. Quote
VicToMeyeZR Posted March 3, 2010 Posted March 3, 2010 so it works fine with another gmf file then? Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Rick Posted March 3, 2010 Author Posted March 3, 2010 Well now I'm really confused. Now when I open my scene it's there. grrr, I hate stuff like that. Quote
wh1sp3r Posted March 3, 2010 Posted March 3, 2010 yes Rick .. there are lots of mysteries in lua ... strange crashes, strange errors, strange object disappearng .. Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com
VicToMeyeZR Posted March 3, 2010 Posted March 3, 2010 yeah. frustrating... The lua doesn't refresh/reload like it should. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.