Jump to content

Search the Community

Showing results for tags 'lua'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Blogs

  • Development Blog
  • Canardian's Blog
  • Beyond Civilization Blog Ext
  • Tyler's Blog
  • macklebee's Blog
  • B-Byrnes' Blog
  • Marleys Ghost's Blog
  • omid3098's Blog
  • Richardsimpo123456's Blog
  • DJDD's Blog
  • Rick's Blog
  • --
  • xtreampb's Blog
  • Economically Disadvantaged
  • klepto2's Blog
  • Old Blog
  • Chris Paulson's Blog
  • Davaris' Blog
  • nil
  • Rekindled Phoenix's Blog
  • Flexman's Blog
  • Kattemaksu Online
  • Marcousik's Creations Blog
  • EVE LBS Studio
  • Rendering puzzles
  • Screen Size Utility
  • Niosop's Blog
  • 1299 RTS Game Project
  • Blitzbat's Blog
  • gordonramp's Blog
  • Andy Gilbert's Blog
  • Marcus' Blog
  • JornAggror Blog
  • diedir's Blog
  • wayneg's Blog
  • Masterxilo's Blog
  • Dave Lee's Blog
  • peubuy's blog
  • OD Arts -Leadwerks Blog
  • The progression......
  • Ultra Software Company Blog
  • The Progression
  • Pancake's Blog
  • Test Blog
  • BLaBZ Blog
  • Pure³d's Blog
  • dreamhead Blog
  • RVL's Blog
  • DB's Blog
  • Toxin Games Development Blog
  • CombatHelo Blog (RSS Import)
  • Foolish's Blog
  • ZioRed's Corner
  • Toxin Games Twitter
  • Shard - Third Initiative
  • Shard's Blog
  • Soamp's Blog
  • Soamp's Blog
  • Laurens' Blog
  • JT`s warehouse district
  • Kennar's Blog
  • KiteFuchs' Blog
  • KiteFuchs' Blog
  • Rachel's Dev-Blog
  • Eagle's Blog
  • zaphos' Blog
  • please delete this blog
  • Afke's Blog
  • Richard Simpson
  • knowledgegranted's Blog
  • EdzUp(GD)'s Blog
  • aGameLife's Kelasel MMORPG Blog
  • tournamentdan's Blog
  • Beyond Civilization Blog
  • smashthewindow
  • AnniXa's Blog
  • AnniXa's Blog
  • Elemental Development
  • DigitalHax Blog
  • Aria's Blog
  • Strogg76's Blog
  • Clackdor's Blog
  • Leadwerks Project Status
  • simpleprogrammer's Blog
  • Pathfinding in LE.2.x
  • Naughty Alien's Blog
  • smashthewindow's Blog
  • Ali Salehi's Blog
  • Jardar's Blog
  • Chris Vossen's Development Blog
  • Scarlet Thread Studios' Blog
  • Kronos' Blog
  • Benton's Blog
  • ChrisV's Blog
  • tjheldna's Blog
  • shadmar's Blog
  • 3D Masons, LLC
  • Andy Gilbert's Enviro Models
  • ParaToxic's Blog
  • NarkLord's Blog
  • ChrisMAN's Blog
  • ChrisMAN's Blog
  • CGMan's Blog
  • The Game
  • Chris Tutorials
  • Leadwerks 3 Experience
  • An Alien Saga
  • klepto2 & Leadwerks 3
  • Inside the mind of eternal insomniac
  • josk's Blog
  • Shader Development in Leadwerks 3.1
  • 3D Coat : Column game making of
  • Einlander's Blog
  • Ginger George's Blog
  • I have a problem
  • Michael_J's Blog
  • nasamydifol's Blog
  • Digman's Blog
  • noesisGUI
  • SavageDogg38's Blog
  • Built from Ruins
  • Remaining Days
  • test_external_blog
  • The Hunt For Food Blog
  • Crazy Minnow Studio
  • CrazyMinnowStudio
  • Guppy's Blog
  • Playing Online
  • Evayr's Blog
  • DerRidda's Blog
  • Karl's Blog
  • whiterabbit's Blog
  • Tinyboss Games
  • abendkleider's Blog
  • sacguccireplica's Blog
  • Arena
  • Imchasinyou's Blog
  • xtom's Blog
  • Lua is better than you think.
  • mdgunn's Blog
  • Crime Closer
  • lxFirebal69xl's Blog
  • Wedmer's Blog
  • Lockdown, going forward.
  • Pump-Action Captain
  • Igor's Blog
  • Dead Anyway
  • Runenrise and more
  • reepblue's Blog
  • Slippy's Corner
  • LUA Musings
  • severjack's Blog
  • mikeporter's Blog
  • miko93's Blog
  • Megalocerous' Blog
  • lxFirebal69xl's Blog
  • aiaf's Blog
  • Lostghbear's Blog
  • echo $BLOG_NAME > blog_title.tmpl
  • johnadam111's Blog
  • Dwarf Beard
  • burgelkat's Blog
  • Charrua's Blog
  • peterpaul's Blog
  • joshmathews' Blog
  • Martin Kearl's Blog
  • Brutile's blog
  • tipforeveryone's Blog
  • Glushchenko Blog
  • Express Lab Games Blog
  • Blueapples' Blog
  • DooMAGE's Blog
  • Structura devblog
  • UltraEngine - Experiences, add-ons and other Stuff
  • martyj's Blog
  • Dragonfreak's Blog
  • Brutile's Blog
  • assigmenthelp
  • Case Study Assignment Help
  • How to deal with bad grade ?
  • How to deal with bad grade ?
  • GameDev Blog
  • devcjohnson's Blog
  • devcjohnson's Blog
  • THE WHAT? Blog
  • The Demurian Scribe
  • GUI Editor
  • GUI Tutorial
  • noob_shaders
  • The Seventh World
  • Phodex Games Blog
  • Leadwerks VS Source 2
  • Work in Progress - Scifi PBR Media
  • [C++] First Player game start
  • The Blog of Yue
  • Snowboarding Development Blog
  • Ocean: Rendering in Leadwerks 4
  • Game Ready Maps
  • Ultra App Kit (Advanced Custom Widgets)
  • Poking around
  • SALVATIONLAND
  • Blender tutorials
  • Usefull Scripts & Components
  • Thirsty Panther
  • Ultimate Action Game Controller

Forums

  • Software
    • General Discussion
    • Programming
    • Game Artwork
    • Showcase
    • Suggestion Box
    • Bug Reports
  • Addons
    • Extensions & Plugins
    • Components
    • Addon Development
  • Platforms
    • Windows
    • Linux
    • macOS

Categories

  • Streams and Events
  • Tutorials
  • Games
  • Work in Progress

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location

  1. I've been making a AI spawning system and I'm finding that there are situations where the spawn location ends up in another entity. I would like to be able to programmatically detect this and move the spawn location. How would I go about this?
  2. Hey! During the time of me playing around to get controllers to work in Leadwerks, I came across SDL bindings for Lua. So I compiled and tried it and it worked fine without problems. But, when I later try to require it from Leadwerks, I get the following error: "error loading module 'SDL' from file './SDL.so'" : 0 : undefined symbol When running outside of Leadwerks, I'm running it with Lua 5.1, which afaik, is what Leadwerks uses. Any help is much appreciated! Thanks! Regards, Krax
  3. 5 years ago I wanted to learn programming. Still don't know how they make a script for a game. I mean i know how to make make up a website with HTML and CSS. But i guess that is something totally different. A lot of people say that programming is pretty easy once you know the basics. Like Variables Loops and something new I've learned Tables. i mean u can tell me what a Loop is but i will never shake this out of my head >>> --Create a window window = Window:Create() --Create a rendering context context = Context:Create(window) --While loop while window:KeyHit(Key.Escape)==false do --Set the drawing color and clear the screen context:SetColor(0,0,0) context:Clear() --Set the drawing color and blend mode context:SetColor(1,1,1) context:SetBlendMode(Blend.Alpha) --Draw some text onscreen context:DrawText("PRESS ESCAPE TO END THE PROGRAM.",2,2) --Update the screen context:Sync() end So my point is. Are there any specific ways to learn programming or replace programming in some way for people that are struggling with this problem. This is something that should not make someone give up their idea because he or she can not write a code. thanks for reading, Jefferey Oertel 2D/3D Artist
  4. Hi. I installed a Leadwerks on a Linux Mint 17.1 Cinamon and my game didn't run. Leadwerks don't showing any errors. The console log: Executing "\media\thekkubas\Dev2\Leadwerks\Jube\Jube"... Process Complete. Nothing more. I don't know what can I do. I tried open an app on wine. It runned.
  5. I am making a contraption that is sort of like pistons, and know how to make everything except a timer to keep them moving. I was thinking I could create a pivot to have an output (that I could manage in the FlowGraph editor), and just have it loop the output with a delay of about a second before it loops again. To quickly summarize How to program an output that will be displayed in the FlowGraph editor How to loop it with a delay between outputs How to have it not stop until I want it to. Thank you
  6. When I started the engine I thought I should combine the Lua and C++. For example scripts to do on Lua ,game logic and mechanics on C++. But everything you can write in C++, you can also write and Lua and I thought - does it make sense to combine Lua and C++? Are there any advantages in the combination of two languages?
  7. Hi. i'm new to Leadwerks and I started scrpiting in lua. When i try to make basic controller i discovered that bug (or my mistake). Here is one of scripts which i (try to) make. Script.player = "" --entity "Player" function Script:Start() end function Script:Update() if window:KeyDown(Key.D) then print("D Pressed") right() end end function Script:right() ppos = self.player:GetPosition() self.player:SetPosition(ppos+Vec3(3,0,0)) end When it launched i didn't get any console replys about pressed D and my character didn't move. At the end sorry for my English. That text could have errors.
  8. I have been getting into some frustration with the car script: This is a video of what happens when I make everything right. I have installed the prefab car and made everything just like in the car, tire 0,1,,2,3 at the right positions and name, physics are all the same . When I make the physics shape a box, the tires just disappear and nothing happens :I In the Video the physics shape is a polyhedron, I havent even started the engine and that happens. Also I have tryed all other physics shape but none worked. rover_mesh.fbx
  9. 1. I have been searching in the Internet and found a Rover model: http://opengameart.org/content/mars-rover When I open it up in Blender, it says the rotation is 000, as well as the location. But when I import it inside Leadwerks, it says that the rotation is 90,0,0 (it is rotated right, but it should be 0,0,0). That is why there are some problems with the car script. 2 The car script does not work on the rover, even if all physics are adjusted as same as the prefab car, the rover tires have some weird position and only the starting sound appears to work. 3. So now I taught I will make it like this : SetParent the rover to the car and put an invisible material on the car(also scale it so it handles more realistic). This has workend in parts, when I have no physics on the rover. Now the problem is , when I make this the rotation is 0,0,0 and not 90,0,0 ,so the rover is not rotated correct. http://steamcommunity.com/sharedfiles/filedetails/?id=345315752&searchtext=car Also something else, that is probably caused by the settings file: I cannot select a box (or else shape) for the physics inside the editor. I only see the following: physics mode, collision type, Mass, character angle, swept collision, nav obstacle.
  10. Ive had some problems with Aggros health Bar script. It seems that the Set Color command is no longer scaler. ie a value between 0 and 1 but now takes values between 0 and 255. Is this right?
  11. I have the Lua Version (Indie), and compiled games show an unnecessary DOS Window which the user really doesn't want to read. How to disable it? It gives a bad impression.
  12. Hello My problem is that I have an Pivot which has the platform.lua script attached. when I test it out and select it to be enabled at the program start, everything works just fine. The pivot with all the atttached models are moving right where I want them and at the right speed. But when I select it to be disabled at the start of the program, it just keeps locked. I am pretty sure when you are ingame you cant make it change or just start inside the game. I tested it inside flowgraph editor with multiple ways : collision, pushbotton (none of them work) It am very confused about that since the most part of the script is in update...() functions. So how do you can make it change (via flowgraph) ?
  13. Can someone send me or post a .lua script for the FPSCharacter controller that allows me to crouch? Thanks.
  14. I'm trying to recreate portals Areial Faith Plate. The faith plate has a constant velocity even with gravity in effect. In Leadwerks on the character controller there is allways drag unless you counteract it. So here is my question, How would I go about creating a launcher that would throw the player in a set arc at a constant velocity?
  15. So i was starting a new project and modeled an Player with some bones. It is in a third person view and the problem is that you cant see where the player looks (to pick up objects). So I just started to Insert the camrotation on the x axis inro a SetRotation function. 1. function Script:UpdateWorld() 2. self.entity:SetRotation(Math:self.camRotation.x,0,0) 3. 4. end I get the error: function arguments exspected near "." , (in the 2. line) The herarchy looks sth like this : Player(fpsPlayer) SantaModel ->arms ... -> Head (right here is the Script attached) Camera(this has no script but is attached to Player) I dont know wheres the problem , it is probably some newbie mistake. To make sure, the camRotation.x is in an other script.
  16. So i was starting a new project and modeled an Player with some bones. It is in a third person view and the problem is that you cant see where the player looks (to pick up objects). So I just started to Insert the camrotation on the x axis inro a SetRotation function. 1. function Script:UpdateWorld() 2. self.entity:SetRotation(Math:self.camRotation.x,0,0) 3. 4. end I get the error: function arguments exspected near "." , (in the 2. line) The herarchy looks sth like this : Player(fpsPlayer) SantaModel ->arms ... -> Head (right here is the Script attached) Camera(this has no script but is attached to Player) I dont know wheres the problem , it is probably some newbie mistake. To make sure, the camRotation.x is in an other script.
  17. I'm running into a huge issue, I can't wrap my head around it. Whenever I compile the Lua interpreter (Visual Studio Express 2013, Release mode, Windows-32 bit), I get back an exe about 5.5 MB large. The Lua interpreter that comes in each project is only 4.5 MB large. This fact alone wouldn't be a huge issue, but I have a feeling that it is contributing to perfomance issues. Here's the problem: If I create a map with too many entities, my compiled interpreter will exponentially decrease it's framerate until the game basically freezes. The same map used on the Lua interpreted version does not lead to that (the game runs fine at a constant framerate). I don't think it is a memory leak because if I remove instance of the same mesh, the problem goes away (which means it doesn't have to do with batches either, since that is constant). I've even loaded the map without Lua scripts and I still get the same issue. It sounds like some sort of thrashing is going on due to less memory being allocated, but I'm not sure. I'm also only using 2 lights, and about 120k polys (with a similar amount of shadowed polygons). I think I was using between 400 MB and 700 MB of VRAM, but none of these should be the issue here either as I have 2 GB or VRAM. Anyway, any possible solutions or compiler settings/flags that I might be missing here?
  18. The lua example script used for Camera:GetProjectionMode() and Camera:SetProjectionMode() will cause an error since the variables 'Camera.Perspective' and 'Camera.Orthographic' are nil.
  19. Platform: Windows. Downloads: FPS Player scenario (Preconfigured scenario ready to play Updated 08/may/2015) https://dl.dropboxusercontent.com/u/107114506/Leadwerks/LUA%20XBOX%20360%20controller%20FPS%20Template.rar Marble game ball (Preconfigured scenario ready to play Updated 03/may/2015) https://dl.dropboxusercontent.com/u/107114506/Leadwerks/Marblegame%20XBOX360%20controller%20template.rar Only DLL: (Updated 08/may/2015) https://dl.dropboxusercontent.com/u/107114506/Leadwerks/SDL2.dll%20and%20LuaGamePad.dll.zip Note: - You must have connected the XBOX 360 controller to work. - If you want put the code in you proyect, copy and paste the "LuaGamePad.dll" and "SDL2.dll" in your project folder. ----------------------------------------------------------------------------------------------------------------------------------- New update!! Data: 08/May2015 Working hard on my free time, I developed the LUA FPS XBOX 360 controller. What's new: - The movement is now analog (Left stick). - The view is now analog (Right stick). - The sprint is now analog (Right Trigger). - The sound of the steps are automatically adjusted to the speed of the player, also considers the sprint. It is fully preconfigured and is 100% functional, I've tested with the FPS Weapons Pack and works fine. If you find a bug please send me a report. Open the project and open the "07-AI and Events.map" The "FPSPlayer XBOX360 controller adapted.lua" is in the same folder that "FPSPlayer.lua" The empty template XBOX 360 controller is in the "Scrips / objects / XBOX 360 controller" folder. Controller mapping: ----------------------------------------------------------------------------------------------------------------------------------- Data: 03/May2015 Hello everyone! I work hard to create a Lua XBOX 360 controller template. (Based on the work of Skrakle). http://www.leadwerks.com/werkspace/topic/12476-lua-lib-game-controller-support/ Upgrade Author: Daniel0213 What's new: DRIVER: I have expanded the functions and recompile the driver. I added: - The right analog stick is now functional. - The left and right trigger just happen to be digital to be analog + digital. SCRIPT: - The script is not oriented to App.lua, now is oriented to the object you want to control, the player. (You must insert the script on the object that you want to control). - I created a template fully explained with comments. - I've written and adapted the formulas needed to converter from analog value to Leadwerks. Not any knowledge of analog sensors are required to write your own program. The code gives you automatically a converted analog value. - To change analog values you do not need to enter the code can be changed quickly from outside. - Reduced the death zone of analogue sensors, but can be changed easily. The instruction have a comment. - I separate all the buttons to make it easier to interpret the code. - You can choose externally the number of controller you want to use. ------------------------------------------------------------------------------------------------------------------------------------ I inserted the code in the template marble game, for a practical example of the operation display. Within the project it is the empty template XBOX controller and inserted into the ballplayer template for a practical example. (I have asked permission to Josh to do this) The empty template XBOX 360 controller is in the "Scrips / objects / XBOX 360 controller" folder. The "ballplayer" script has been modified to insert the sample code. Changed the name to "ballplayer Adapted to XBOX 360 controller." I'm using the Leadwerks version 3.5 Beta. ------------------------------------------------------------------------------------------------------------------------- HOW INSTALL: Very simple. 1. Unzip the .rar file. 2. Copy the "XBOX360controllertemplate" folder in your Leadwerks project folder. 3. Open leadwerks, go to "project manager" Push "import" enter to "XBOX360controllertemplate" folder and select the "XBOX 360 controller template.werk" file. 4. Select the project and press "OK". You must disable the sandbox lua libraries to work xbox 360 controller. ----------------------------------------------------------------------------------------------------------------------------------- How analog sensors work: Put the desired maximum values. In this case, when the left stick reaches its peak (up direction), the analog value which will be 15. Decreasing this value progressively until it reaches 0, when you reach the death zone. Don't touch the formula. ------------------------------------------------------------------------------------------------------------------ A bit of theory: The Analog converted formula. (Don't worry, you don't have to create, it is already written in the template code.) ENJOY!!! Future upgrades: - Add left and right vibration. - Linux support. Note: If you want put the code in you proyect, copy and paste the "LuaGamePad.dll" and "SDL2.dll" in your project folder.
  20. At first thought this was an issue with mono vs stereo sounds, but tracked down the issue to Source:SetRange(). Whenever the range of a mono sound is set to 1.0 or below, it will play at full volume no matter how far away the source is from the listener. Using a slightly modified version of the Source:SetRange lua example, the sound will play when the range is greater than 2 (which is the distance from source to listener) and when the range is equal or less than 1.0: function App:Start() self.window = Window:Create("Source SetRange Issue",0,0,400,300) self.context = Context:Create(self.window) local sound = Sound:Load("Sound/doors/fdn_door_automatic_servo_driven_close_short_05.wav") self.source = Source:Create() self.source:SetSound(sound) sound:Release() self.source:SetLoopMode(true) self.source:Play() self.source:SetPosition(Vec3(0,0,2)) local listener = Listener:Create() listener:SetPosition(0,0,0) range = 0.1 toggle = 0.005 return true end function App:Loop() if self.window:Closed() or self.window:KeyHit(Key.Escape) then return false end range = range + toggle if range>=3 then toggle = -0.005 end if range<=0 then toggle = 0.005 end self.source:SetRange(range) Time:Update() self.context:SetColor(0,0,0) self.context:Clear() self.context:SetColor(1,1,1) self.context:SetBlendMode(Blend.Alpha) self.context:DrawText(string.format("Range: %.2f",range),0,2) self.context:Sync(true) return true end
  21. Hi! I noticed a while ago that the Leadworks editor prints the following Setting breakpad minidump AppID = 251810 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198024704964 [API loaded no] Is there actually any way to make use of this? Like, load the ID into a variable or use the API in any other way since it says "API loaded no"? I know that Steamworks is probably impossible, since it's for C++, but yea... Thanks, KraXarN
  22. Hello, guys. I'm coming from Unity and having played around with the Steam demo of Leadwerks 3, I'm very curious about how you normally go about composing your game objects. In Unity, you create components (scripts) where each component adds some kind of functionality to any game object you add it to. I read on a blog about how the devs of Leadwerks want to compatrmentalize logic in small chunks (much like Unity does it I guess), but in the example maps I see no such thing. You have an object (say, a CSG primitive) and you can add a single Lua script to it. So how do I add multiple scripts to a single object where each script adds some functionality? From what I've seen, both FPSPlayer and AIMonster had their own movement, health, and damage handling implementations. A lot of the same (or very similar) code copied over. I find this worrying. Is there a modular way to do this? Note: I'd prefer to work in Lua. Coz Lua rocks!
  23. Here's a new lib that i just finished that will allow game controller support for Lua fans! EDIT: Source: https://onedrive.live.com/redir?resid=1653f4923c37f970!278&authkey=!ABW8a3PdvzR_8cE&ithint=file%2czip Binaries (dll & so): https://onedrive.live.com/redir?resid=1653f4923c37f970!284&authkey=!AM0p2lTBH1mMSzk&ithint=file%2czip A lua example is provided, you can simply overwrite your existing App.lua with mine on a new test project. * Note: Lua sandbox must be disabled to use libs. Unfortunately i don't have linux installed so i couldn't compile it for that platform and I was able to compile it under Linux but i didn't get the chance to test it as i don't have the sdl2 binary libs. I included the full source should anyone want to re-compile it. Those that don't want to, simply copy LuaGamePad.dll file where your game executable is. You'll need to copy SDL2.DLL there as well, it's included. Tested with: - Logitech Rumblepad - Xbox 360 controller (XInput) Cheers!
  24. Hi! So, I have been looking around for a way to make a controller or gamepad work in Leadwerks, but most of the posts here seems to be outdated... Have anyone actually got this working right? Thanks! Regards, KraXarN
  25. I'm looking to see if there is a way to detect if the game is running in the lua sandbox (example: in the game player) or as a standalone game? I would like to detect this so I can use IO to read and write settings in standalone and load the defaults with the sandbox enabled.
×
×
  • Create New...