Jump to content

Slimwaffle

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by Slimwaffle

  1. Sorry I will have a crack at this again later today and post my code here.
  2. Even if I simply use; terrain:SetScale(1,100,1) if window:KeyDown(key.PageUP) then terrain:SetHeight(512,512, 10) end Nothing Happens. On a 1024 x 1024 map this should be affecting 0,0. But there is no change. Even adding in; terrain:UpdateNormals() Time:Update() world:Update() world:Render() does nothing to help. Even if I system print the height for 0, 0 there is change but you can't physically see it in the world.
  3. Yue that screen shot looks amazing nice work on that lighting.
  4. I think it depends on your version of triple AAA. Triple A usually means made by a big studio. I have yet to see if there is a way to port from leadwerks to console. But for indie projects this engine works amazingly. I am currently working on an indie title for steam and love; how easy to use lua is, how easy to use leadwerks is (especially when creating custom textures and assets) and the community here is amazing (when I get stuck on some code I never have to wait more then a few days for a response). Apart from the console exporting I can't see any reason why it wouldn't be possible. But with the console porting thing I am not saying its not possible, I just haven't found a solution yet.
  5. Its all good thanks anyway mate. I will have to just wait.
  6. Same thing again stops the crashing but doesn't actually change anything
  7. So doing this stopped the crashing but its still not changing the terrain elevation.
  8. I am wondering what the correct way to use this Undocumented command is? I am trying to make digging scripts for my game. I will post the code here. If I use SetElevation I get an error saying argument 5 needs to be a boolean and if I use SetHeight nothing changes and the game crashes. Getting the elevation works fine setting it is the issue. I want to be able to raise and lower the ground in game.
  9. damn thats a shame. I would really have loved to be able to port the current project
  10. ohh can't wait for p2p multiplayer. My current project would greatly benefit from a multiplayer mode that doesn't require server hosting.
  11. I was wondering if someone could help me out. I will provide the script. But for some reason enemies even when set to team id good and are not in an attack state are causing damage when walking into the collision box of their arms. HumanAI.lua
  12. ohh thank you soo much. Yeah I can see everything but can't open or extract it without the password.
  13. ok cause when I open the zip without using the game it lets me straight in. Is it like a only my pc can do it thing?
  14. So I have noticed that when I publish my project as standalone it puts everything into a zip folder with all of my scripts, code and assets available to the user. When playing other games everything is encrypted into .bin files and what not. I want to release this game on steam and then later on, on xbox one. How do I go about encrypting the files? Or is this something steam does after I upload it?
  15. ohh thanks heaps I didn't even think of that
  16. So I was finding that delaying things for x amount of seconds was way harder then it needed to be. And I wanted to be able to make things trigger at set times. So I made a simple script for an in game clock. I am going to post it here for all to use. If you can't get it to work just remove the code that loads and draws the clock.tex file to screen. hours and minutes are globals. So you will be able to reference them from your other scripts. Clock.lua
  17. Thanks mate much appreciated. I will look these over now.
  18. So I have some odd questions that I feel like might be aimed out the more advanced members of our community. I had some ideas for the project I am working on and just wanted to see if they are do-able. First Idea; Is there some kind of parameter for detecting if an entity or location is located in shadow? I was thinking it would be cool to make enemies spawn out of shadows. Second Idea; Pretty much the same thing as number 1 but for detecting if light is being cast on an entity. So I could make it that; If player is in direct sunlight then hunger and thirst reduce at a greater rate and apply heatwaves to the screen. Last Idea; What is the correct method for getting the terrain height? Is there a way I can set terrain height at location while playing the game? So that the player can hold a button to bring up an overlay to show terrain elevations and then use a second button to raise or lower the terrain. So they can dig raise or flatten ground similar to the way life is feudal does it. Note; I tried getting the terrain height using code from other forum posts but kept getting error messages and couldn't figure it out.
  19. Thanks mate. I am almost at the point with this thing where I can just build the map.
  20. Thanks mate. I am just going to do bars for now. And re-address this circle thing after getting this game more built. But I will let you know how I go and you were 100% right swapping back to bars fixed the fps drop. Running back at 60 fps now. Got it looking like this for now.
  21. Is there anyway to draw a circle without doing this? The only shape I could find in the API was DrawRect.
  22. Hey guys. I need help again. So I rewrote the scripts for my HUD to look a little nicer. Using Circles instead of bars. And for some reason I am getting crazy FPS drop. With bars I was able to sit at 60fps very comfortably but using circles I drop to between 5-10fps. Can someone please help? I have looked over the code and can't figure it out. As usual I will provide the code and a screen shot. This fps drop happens even when only using one of the new scripts. Hungerbar.lua Health.lua ThirstBar.lua Staminabar.lua
  23. hmm interesting. I will look into it. I am hoping to keep the minimap. Its a really nice feature. I may have to change the way enemies spawn in then if I can't fix this.
  24. I have two scripts for AI. Doesn't matter which I use I get the same problem with both. No matter how low I set the sight range and hearing range enemies will target me anywhere on the map and move towards me no matter the distance. Here is the script I have mainly been using. HUD AI.lua
  25. The methods I have been using are; Importing the second script, Making variables global, and using a pick to get the value. The method varies depending on how you want the code to work. If you want the script to attach to multiple entities but the functions to be per entity I find the best way is using a pick. And if I want to add multiple scripts the best method I have seen is using pivots and making them children of the entity.
×
×
  • Create New...