Jump to content

Ttiki

Developers
  • Posts

    64
  • Joined

  • Last visited

Everything posted by Ttiki

  1. Ttiki

    No MacOS version?

    Yes, I see. Thank you very much and good luck for the future of Ultra!
  2. Ttiki

    No MacOS version?

    Hi. I thought Leadwerks was available to run on Mac OS? Am I crazy? Also, I know about Ultra App Kit being Mac OS ready, will Ultra Engine be accessible on Mac OS one day? I was wondering if I could use my Mac for developing my game or not. Thanks.
  3. Thank you so much. I didn't think self.entity:SetPickMode(Entity.BoxPick,true) self.entity:SetPickMode(Entity.BoxPick,true) would be the problem. Might have to check the documentation more thoroughly. As well as for the scale. Thank you very very much ! Have a nice day.
  4. Yeah, I already tried that. but the returned string was empty.
  5. There are two maps included: the first one, n1, represents the normal gameplay level or the first level. To reduce file size, I've removed most models from this map. It features a hospital bed with a pivot point to which the PlayerController.lua script is attached. This is where the Pick event occurs. Please bear in mind that the code might not be optimal as it's still under heavy development, and I haven't started optimizing it yet. At both ends of the corridor, you'll find two empty pivots named HallwayWaypointA and HallwayWaypointB. Just below, there's a black box containing the monster with the Nurse.lua script attached. Essentially, her script starts a random counter, and when the counter hits a certain value, she will spawn randomly at one of the two points in the hallway and then proceed to move to the other point. The test inside the PlayerController.lua script is to check if the player has their flashlight on and whether the nurse passes through the raycast. There's another box outside the map with a simple FPSController. When you try the game, you'll find that you can only move the camera. Press 'F' to turn the flashlight on/off, and 'q' to enter sleep mode, which enables the FPSController. Press 'q' again to return to the default game mode. The second map is a stripped-down version of the level without the outside box and without any brushes or models except for the floor. This map is better suited for testing purposes since it contains only the essential entities and brushes. Thank you very much for your help! If you have any questions, feel free to ask. I'm here to assist you! 2132315131_T3-L4-Dev.zip
  6. I can create an empty project with everything you need to test on your end if you want / have the time?
  7. No, it's not a child of anything. It a simple Pivot I've placed to avoid any confusion with the end point (i.e I'm sure what is the endpoint of the ray). Yeah, i've tried that as well with the new I've just made, no concluent changes happen. Do you mean something like World:GetCurrent():Pick() ?
  8. Ok, so after some more testing, I'm left even more confused. I know it's me again being stupid and missing something obvious, but I can't find the problem. When trying to hide the picked entity, it got hidden, but I couldn't see any changement. I thought it could have been a problem with some of my point entities. So I gave all my entities a KeyValue and logged which entity was being caught, but even then, the picked entity returned a KeyValue of nothing (" "). As I said, I'm on a map with just simple brush for the floor for the entity to walk on, the enemy, and my pivot which handles the player controller part by creating the light and the camera and which is used to detect if the enemy is passing through the light. I thought it could have been with the model of my enemy which has lots of children and different materials. So I deleted the model and attached my enemy script to a simple cylinder brush with Character collision and characters controller as physics mode. Each entity in the world, each brush have a simple script attached to it to set a key value for classname, which I log into the console in the Pick test. And now, the Pick entity is not even picking anything from the scene. I tried removing the Collision.Character and set a radius, nothing worked. I logged every position of the Pick (Pick start point and Pick end Point as well as the enemy position in the world, but still nothing. The enemy passes through the raycast, the coordinates tell me it should be picked up by the Pick method.
  9. The origin of the lightning is a spotlight I create inside the player controller script at the Start method. And thanks, I did not think of testing to hide the picked entity... I will try that...
  10. Hi everyone, I'm currently encountering an issue with a Pick operation in my Lua code and I'm hoping someone can help me figure out what I'm missing. Here's the context: I have a player controller, which is essentially a pivot that creates a light and a camera. The player controller doesn't involve any movement, the mouse position on the screen simply influences the camera rotation. I also have an enemy that randomly spawns and passes in front of the light, down a corridor. I want to check two things - if the light is on, and if the enemy crosses the light's path. If both conditions are met, I want to call a method from the player script to the enemy script. Here's the relevant part of my player controller code which handles the light being on and the Pick operation: function Script:UpdateWorld() [...] if not self.flashlight:Hidden() then local pickInfo = PickInfo() local i**** = self.entity.world:Pick( self.entity:GetPosition(), self.lightRayEnd:GetPosition(), pickInfo, .25, false, Collision.Character ) if i**** and pickInfo.entity:GetKeyValue("classname") == "npc_nurse" then pickInfo.entity.script:SetPlayerIsShiningLight() end end end The flashlight check works as expected. However, I'm having trouble with the Pick method. It seems to correctly pick up the enemy when it crosses the ray's path. But it also appears to pick up another entity. I've simplified my map to include only a floor for the enemy to walk on and the basic set-up for the player controller. I've confirmed that the KeyValue is being correctly set in the enemy script (in the Start method), and that the collision is set to Character. Through debugging (I've removed all the console debug statements from the code above for clarity), I found that when I test for the pick position, it returns 0,0,0. To make sure I wasn't missing something in my calculations, I created another pivot to mark the end of the raycast (self.lightRayEnd). Does anyone have any idea what I could be doing wrong, or what might be causing this issue? I appreciate any input or suggestions. Thanks!
  11. Hi! I've got a problem with my sprite sheet and particle emitter. I've already used sprite sheet that were smaller than 8 in terms of width and height. However, I've got a new sprite sheet which is 12 width by 12 height. However, in the editor, the value are stuck at 8 max. Is there a way to change this value ? Thank for your help.
  12. I didn't try midjourney yet, but it really interests me. I saw some really cool concept images made with it. However, I've been playing with Dall-e recently for some basic concept images. Here's some test for some Horror Lovecraftian realistic images (I can't remember the actual keywords I've inputed) However, just like @chsch because I wanted some horror related images, I got threaten of being banned from using DALL-E, even though I didn't ask for gory stuff.
  13. Thanks very much. I had the same ideas, but was hoping for a quicker way…
  14. Hello. I'm currently designing how my A.I. will work and one mechanic I would like to implement is to have my monsters go into sleep mode when they are idling and when the light level < n However, I can't find anything inside the API about checking the light levels. Can I retrieve this information with a pick info? Kind regards, Ttiki
  15. Ttiki

    Transparency Effects

    Looks awesome! Can't wait to play it Congrats on your work!
  16. https://www.leadwerks.com/learn?page=API-Reference_Object_Joint_Hinge Does creating a hinge and attaching it to the bone as parent wouldn't work?
  17. Source 2 handles world geometry differently than Source. It doesn't use CSG any more but meshes. Creating a level with Source 2 is more like making a big model (composed of different models). You don't need to create 3 brush to create a doorway now, only one block you cut out and extrude (just like in blender and other modeling software.) That's the reason they could make the world so good, they didn't have the limitation of simple CSGs and could model things directly into the level editor.
  18. Ttiki

    Leadwerks 4 Glass

    I can't get this effect. The phong part is not that hard (thanks to havenphillip), however I can't wrap my head around transparency... Whenever I achieve transparency I get lots of refractions on drugs. Could anyone pinpoint how to get to this result? I'm losing my mind over this one
  19. Hello. I wanted to download some workshop content but the SSL Certificate is invalid. I think it has been forgotten for Steam when it was changed a few days ago for Leadwerks.com
  20. Ttiki

    Texture.IO

    I know it's an old image / post, but are you using a custom widget for displaying textures with a preview image?
  21. Hello. That's pretty easy to do, you just have to change the background color and pass a Vec4 for each channel (red, green, blue and alpha) Here is a little example in Lua : --A little example of panel creation with a transparent background local panel=Widget:Panel(0,0,64,64,gui:GetBase()) panel:SetBool("border",true) panel:SetObject("backgroundcolor",Vec4(0.15,0.15,0.15,0.75)) --Vec4(r,g,b,a) And here is the result :
  22. Worked well, no problem launching the game. I just had a bug with my mouse being visible at the center of the screen. (And option button is disable in menus.) It looks really promising, can't wait to see what you'll do in the future with this game.
  23. If you post your log, we'll be able to find your problem and help you. (You can find your log inside C:\Users\<USER>\AppData\Local\<YOURGAME'SNAME>.
  24. It didn't change, anything sadly.
  25. I've tried this, it didn't work. Nothing seems to have changed. They still disappear when the player look away. Thank you, I completely forgot about this MyGame example, even though I've played with it a lot. Now, I made some testing, and they work correctly, even stretch out a lot like mine. And I couldn't reproduce the bug. No matter how much I would stretch a decal, it would not disappear. I made sure my materials were set up correctly, even copying the one from the example. But no matter what, mine still disappeared. I've used a technic from the demo and put all origins in the floor to extend the height as much as I could. I've compiled a quick project with everything needed. If you want to try by yourself with my assets. I will let this problem aside at the moment and finish my demo. DecalCullingTest.zip Thank you very much for your help!
×
×
  • Create New...