Jump to content

AggrorJorn

Members
  • Posts

    4,816
  • Joined

  • Last visited

Everything posted by AggrorJorn

  1. I have a level with 2 lua scripts. However only 1 KeyHit (or mouse hit for that matter) returns true in a single frame. --Script1 in UpdateWorld if KeyHit:Key.Q then System:Print("You are in script 1") end --Script2 in UpdateWorld if KeyHit:Key.Q then System:Print("You are in script 2") end I am not flushing any keys. Is this intended behaviour or am I overlooking something obvious?
  2. This is roughly what I do:
  3. The navmesh is calculated by a library called recast. In C++ you have the ability to recalculate segments of the navmesh. This is not exposed to lua I believe. https://github.com/memononen/recastnavigation
  4. Okay some more testing then. replace if fire then if self.carryingEntity then with: System:Print("update") if fire then System:Print("left mouse button") if self.carryingEntity then Also, do you have a weapon assigned? to the player?
  5. This should really be a part of the default shader pack to be honest. Nice work Tim.
  6. okay that is good to know. The if statement is checking an entity variable and not a boolean perse. Maybe that causes trouble. change this line if self.carryingEntity then to this if self.carryingEntity ~= nill then and try again
  7. I want to check wether we actually reach the throwing code and also what the force is. Can you replace the following lines: if self.carryingEntity then local dir = Transform:Vector(0,0,self.throwforce,self.camera,nil) self.carryingEntity:AddForce(dir) self:DropEntityCarrying() else with if self.carryingEntity then System:Print("Carrying item") local dir = Transform:Vector(0,0,self.throwforce,self.camera,nil) System:Print("x " .. dir.x .."-- y " .. dir.y .."-- z " .. dir.z) self.carryingEntity:AddForce(dir) self:DropEntityCarrying() else And then post back here what the output is in the output tab once you ran the game and threw something.
  8. Can you post the FPScontroller script here. I am not at home right now, so I don't have access to Leadwerks.
  9. What happens exactly when you throw it? Possible reasons: cardbox has a higher mass. Throwing force is lower. Throwing functionality no longer exists in the FPS script.
  10. Unfortunately this bug that has been around since the release of LE3.0. It isn't as bad as it used to be, but it can occur from time to time. Sometimes, the script properties from another previously selected object are shown in the script tab. I've had this happening in a few video recordings which sometimes makes things quite complicated. http://www.leadwerks.com/werkspace/topic/7275-script-properties-showing-different-script-properties/page__hl__script+properties
  11. Not sure if it implies to the topic (quick look). http://www.leadwerks.com/werkspace/topic/6887-communicating-from-lua-to-c/
  12. @nick.ace: Couldn't have said it better my self.
  13. AggrorJorn

    FlowGUI

    Hey DerRidda, Sorry to hear that it doesn't work as smooth as it should be. To be honest: I haven't tested it on Linux. FlowGUI doesn't hide the mouse anywhere so this is either somewhere in the scripts that you are using or an issue with Leadwerks on Linux. Could you send me the script that you are using? I will install Ubuntu tonight and investigate the issue.
  14. Not to mention that le2 was Windows only.
  15. The only advantage that LE2 has over LE3 is vegetation painting. Other then that Le3 is more powerful on every aspect.
  16. I have never said that I wouldn't help people with FlowGUI. When people have questions regarding the use of FlowGUI, they can send me a private message. Many have done so already and I am glad to help them out. Making entire gameplay scripts is an entire question. But again if you have a question regarding FlowGUI, you send me a pm about it. I would be happy to happy to have a look at it. If you have a script that doesn't work or when when you have trouble with FlowGUI, this is something I will assist in. Personally I find this not only my responsibility, it also lets gives me direct feedback in to what users want or what they expect. Let us not hijack this topic any further on this.
  17. @imchasinyou: Have you removed the GUI items? I described this in an example in the PM I send you on 29 december. @Thirsty panter: Since so many people have questions about ending the game, I will propably do a quick video tutorial about it.
  18. Ironically someone asked me the same question yesterday evening. Here is my suggestion on how you can do this: 1. In app.lua before the App.Start function, add the following variable: App.quitGame = false 2. in the main loop change the following line if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end with this: if self.window:Closed() or App.quitGame or self.window:KeyDown(Key.Escape) then return false end I simply added a check on whether the quiGame variable is true. Because if it is, then the App.Loop should be stopped. 3. Now, in your object script do the following: App.quitGame = true
  19. Are you inside the Lua sandbox mode? Via the options menu you can disable this.
  20. I think you have to use import instead of require. Not sure though.
  21. Any chance it is a CSG brush? Those get collapsed on scene loading for performace. Only when a script is attached these remain entities.
  22. All my C++ tutorials have a lua counterpart were possible. http://www.leadwerks.com/werkspace/page/tutorials_legacy/_/free-and-spectator-cameras-r12 See here for all the links: http://leadwerks.wikidot.com/wiki:tutorials
  23. This has nothing to do with shaders. The tires are physics objects that are controlled by code. The driving around is done with script and is not an animation.
  24. Don't get wrong, I think it is amazing how 1 person is able to make such a software package like Leadwerks. And I find it very logical that there simply isn't enough time to do all those things. Steam has the focus now which is a strong selling point. I am just realistic in the fact that it has been 2 years since the flowgraph editor itself hasn't changed in the aspect of new features like layers/zooming/organizing. Event he the requested shortcut icon for the Flowgraph editor is still not there. Personally I think the flowgraph editor, in its current state, is only useful for a small test scene.
  25. If payed items are available in the workshop, you should put it up there shadmar. I would be happy to pay for this.
×
×
  • Create New...