Jump to content

KTyJLXy

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by KTyJLXy

  1. So, i'm trying to make Joint:Ball script and so far i have joint script: Script.parent = nil --entity Script.child = nil --entity Script.position = self.model:GetPosition --Vec3 function Script:Start() App:Joint(self.position, self.child, self.parent) end And app function for creating joints: function App:Joint(parent_position, child, parent) joint = Joint:Ball(self.parent_position, self.child, self.parent) end All it does now - just crashes the game. What i did wrong?
  2. Well were is http://lame.sourceforge.net/ lame encoder. Afair it can be used for commercial under LGPL licence. But .acc or .ogg would be nice too.
  3. Any chance we could see some compressed audio formats support, like .mp3? It's really a pain then project gets twice the size, just from adding music.
  4. That helps, thanks a lot
  5. Can you be little more specific, please? How do i implement ball joint mechanic in the leadwerks? (Sorry if that questions is kinda stupid...)
  6. Sup guys, long time no see. I've just wanted to know, if there anyway to get chain physics for the model? For swinging things around on the end of that chain, you know, all that stuff. I can't think of any good method to do this. Any tips?
  7. You might wanna read this http://www.leadwerks.com/werkspace/topic/8845-selfworldclear-bug/
  8. Yep, issue seems to be with unloading the standart FPSplayer.lua script. I've used TPS/FPS player script from here http://www.leadwerks.com/werkspace/files/file/436-fps-and-tps-controller/ And it works fine now. I can't say what is the key difference between these two scripts, but then again, i don't know how world:clear works, since i have indie edition.So i just don't know where to look. I'll try to poke around in the player script and see if i can make it unload properly. Thanks for the advise by the way
  9. Yep, and that Level is in the project i've attached to the post. Well, you've seen lua code, and said it's nothing wrong with it, so i assume it is a bug, since there is no other way to unload the world. Besides, windows critical is definatly a bug, if you ask me. Here's the screenshot btw.
  10. Here's some of my systems specs, if it helps. Just got the time to post these.
  11. By the way, Rick, i wonder if you could sent me empty project with just level change somewhere in it. That way i could check if it is just my leadwerks creating projects wrongly.
  12. I'm using leadwerks steam edition. Had windows critical on attempt to clear world before, now it fail on the self.world:Clear() line with following output: and here is the project i've created just to test that http://yadi.sk/d/7oKiE7UEK2cgM aaand the thread there it all started. http://www.leadwerks.com/werkspace/topic/8840-levelchange-problems/
  13. Btw, how do i submit bugreport in here?
  14. I've opted into beta and have created project just for testing. I've got following error now, instead of windows critical: Object reference count error. And output like
  15. Should i submit bugreport to the engine devs or smth? Btw, if i comment 52 line it loads next lvl. Lags as hell, but it gets it done.
  16. Yep, that would be line 52 in app.lua, which now is self.world:Clear()
  17. I've tried to use that like self.camera = Camera:Create() self.camera:EnablePostEffects(true) self.camera:AddPosteffect("Shaders/PostEffects/toon.shader") and i keep having this error: "attempt to call method 'EnablePostEffects' (a nil value)" any tips?
  18. Maps/second_map.map If i understand your question correctly.
  19. Hi guys. Yep, that's me again. I've got windows critical error (and it says nothing? like bla-bla programm should be closed) on attempt to change level. Lua debug says nothing on this account. Here's the app code --This function will be called once when the program starts function App:Start() --Initialize Steamworks (optional) Steamworks:Initialize() --Set the application title self.title="DungeonScrolls" --Create a window self.window=Window:Create(self.title,0,0,1366,768,Window.Titlebar+Window.Center+8) self.window:HideMouse() --Create the graphics context self.context=Context:Create(self.window,0) if self.context==nil then return false end self.menumusic=Sound:Load("Sound/Music/Main theme.wav") if self.menumusic~=nil then self.musicsource = Source:Create() self.musicsource:SetSound(self.menumusic) self.menumusic:Release() self.menumusic=nil self.musicsource:SetVolume(1) self.musicsource:SetLoopMode(true) self.musicsource:Play() end --Create settings table and add defaults self.settings={} self.settings.vsync=True --Create a world self.world=World:Create() --Load a map --local mapfile = System:GetProperty("map","Maps/start.map") self.mapfile = "Maps/start.map" if Map:Load(self.mapfile)==false then return false end self.mapfile = "" return true end function App:SwitchLevel(name) self.mapfile = name end function App:LevelCheck() if self.mapfile ~= "" then self.world:Release() self.world = World:Create() Map:Load(self.mapfile) self.mapfile = "" end end --This is our main program loop and will be called continuously until the program ends function App:Loop() self:LevelCheck() --If window has been closed, end the program if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end --Update the app timing Time:Update() --Update the world self.world:Update() --Render the world self.world:Render() --Render statistics self.context:SetBlendMode(Blend.Alpha) if DEBUG then self.context:SetColor(1,0,0,1) self.context:DrawText("Debug Mode",2,2) self.context:SetColor(1,1,1,1) self.context:DrawStats(2,22) self.context:SetBlendMode(Blend.Solid) else --Toggle statistics on and off if (self.window:KeyHit(Key.F11)) then self.showstats = not self.showstats end if self.showstats then self.context:SetColor(1,1,1,1) self.context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) end end --Refresh the screen self.context:Sync(false) --Returning true tells the main program to keep looping return true end And here's the trigger code Script.entered = false Script.exited = false Script.hadCollision = false Script.Map = "" --path function Script:UpdatePhysics() if self.entered then if self.hadCollision == false then if self.exited == false then self.exited = true self.component:CallOutputs("OnExit") self.entered = false end end end self.hadCollision = false end function Script:Collision(entity, position, normal, speed) self.hadCollision = true self.component:CallOutputs("OnCollide") if self.entered == false then self.component:CallOutputs("OnEnter") App:SwitchLevel(self.Map) self.entered = true self.exited = false end end
  20. Thank you kind sir, problem solved. I need a new pair of eyes. And a coffee.
  21. So, i've tried to do a simple spawner script, like in the video here ( ) and i keep having that error. If i change argument for mob.SetPosition to entity (at least by simply adding Script.SpawnPlace) it wants Vec3. I have no idea what went wrong
×
×
  • Create New...