Jump to content

Genebris

Members
  • Posts

    517
  • Joined

  • Last visited

Everything posted by Genebris

  1. Why don't you just take default player prefab?
  2. This height value is what you need. Set it to 999 (maximum) and it will be very high.
  3. I think I also had this problem once and solved by deleting last opened map.
  4. I think I also have had a big frame drop after installing new Nvidia driver in Skyrim once, so this can happen even with AAA games I guess.
  5. Not sure if this can help you, but I have made basic dungeon generation shown on this video: I have five models (painted in different colors in video) and specified each enter and exit spot with pivot point. Here is code:
  6. You probably need to press "Fit shape" in barrel physics settings, it will give it a physics shape.
  7. Nice, thanks! I already was afraid there is no solution for this ) But is there something else I should create in start? Other types of variables are fine?
  8. That's unexpected. What if I want to make an inventory for NPCs? And what else is shared besides tables?
  9. Something weird is happening. I have two objects with the scame script on them. Here is the code: Script.enabled=0 --bool "enabled" Script.int=0 Script.tab={1} function Script:UpdateWorld() System:Print("------------starts "..self.entity:GetKeyValue("name")) System:Print("int="..self.int) System:Print("#="..#self.tab) System:Print("[#]="..self.tab[#self.tab]) if not self.enabled then return end self.int=self.int+1 self.tab[#self.tab+1]=math.random(1,9) System:Print("-----------END "..self.entity:GetKeyValue("name")) end It has boolean variable which is set to true for one entity and to false for another entity in the editor. it also has one number variable (int) and one table (tab). Script with "enabled" entity ads +1 to int variable and one extra table element with random value each update. And here is what I get in output: ------------starts Pivot 1 (enabled) int=0 #=1 [#]=1 -----------END Pivot 1 (enabled) ------------starts Pivot 2 (disabled) int=0 #=2 [#]=4 ------------starts Pivot 1 (enabled) int=1 #=2 [#]=4 -----------END Pivot 1 (enabled) ------------starts Pivot 2 (disabled) int=0 #=3 [#]=8 ------------starts Pivot 1 (enabled) int=2 #=3 [#]=8 -----------END Pivot 1 (enabled) ------------starts Pivot 2 (disabled) int=0 #=4 [#]=7 ------------starts Pivot 1 (enabled) int=3 #=4 [#]=7 -----------END Pivot 1 (enabled) ------------starts Pivot 2 (disabled) int=0 #=5 [#]=9 ... (Added space after each update for easier reading) As you can see int variable increases in "enabled" entity and doesn't change in "disabled". Also disabled entity doesn't print last ("---END") line, so it is really disabled. But for some reason the table changes for both of those entities. It has same amount of elements and the last element is the same (it was generated randomly) for both scripts. Can you please explain me what is going on here?
  10. You can make randomly generated levels, but you can't involve terrain into this as there are currently no methods to edit terrain at runtime (correct me if i'm wrong please). But you can also create a terrain in the editor and dynamically put objects onto it at runtime. The world size isn't limited, but terrain size is limited by 4000x4000 and you can't have more than 1 terrain. I wouldn't try making huge open worlds like Skyrim on Leadwerks. At least not with Lua only. For modelling you can use Blender which is free and has everything you could ever need. But you will need image editor such as Photoshop to work with textures. For exporting from blender use blender exporter. It's more convenient than exporting FBX.
  11. http://www.leadwerks.com/werkspace/topic/9663-introduction-to-steam-code-in-leadwerks/ It seems like in this thread gamecreator showed how to transfer coordinates between players via steamworks and he used default AppID. Am I missing something or does this mean you can make fully working multiplayer with Spacewar ID?
  12. Does this mean you can make a multiplayer game entierly on Steamworks and it will work without even enabling Steam client (and ofc without getting game greenlit)? Doesn't steam need to recognise your game at least as Spacewar?
  13. Yes, that's not realistic, but I'm making a a monster that has a black smoke instead of head and when he runs he leaves a long trail of particles behind instead of having thick smoke in place of head. I'll make simple particles system myself and upload to workshop if it works.
  14. But it doesn't help me. Velocity settings apply only on new particles. Particles that already was released won't change. I guess I can just write particle system myself. Hope it won't be too bad for performance.
  15. Is therer a way to make particles move in emitter's local space? So when emitter moves, it's particles move with it, while still having their own speed?
  16. Everything you named is not hard to do. The only problem I see is different footsteps while walking on terrain: you won't be able to check the texture you are standing on. But if you use different objects with different materials instead of terrain (and I think you don't really need terrain because player will be sneaking inside buildings and not in the forest at least most of the time), then there should be no problem to change footsteps.
  17. I'm not going to use this mainly because it doesn't let me work with files for my game, but I hope it will help Leadwerks grow.
  18. entity:SetPickMode(0) and picking won't work on this entity.
  19. Yes, just take the default door swing and make rotation angle depending on the mouse position.
  20. Easiest way: Place your key on a table mark it as hidden in it's properties (Appearance tab). Add this script to your lever: Script.key=nil --entity "Key" function Script:Use() self.key:Show() end And drag the key from scene tree window to a script variable field called "Key".
  21. Before updating projeck files Leadwerks always asks you if you want to update the project. I don't remember if you can reject updating, but you sure can't miss the update.
  22. Never had a problem with upadtes that forced me to redesign everything from scratch. And I'm sure noone else had. Because it's simply not possible. I have once got FPSPlayer script restored to default because of update, so I simply took backup file from script directory and made another player script that won't be updated. Few times App.lua was updated, I always was able to simply take backup file from it's dirrectory.
  23. Similar in my inventory code for example. I guess it would be better to simply allow users to select folders that they don't want to export, so they can place all their currently unneeded textures there. Also, why do you even keep files that you don't need in the project folder?
  24. Yes, I guess instead of this collider box I can place two pivots and launch a cylinder raycast beetwen them every frame, nice idea, thanks. But this probably won't work if the whole sword is inside the enemy mesh. Will test it later, don't have time now.
×
×
  • Create New...