Jump to content

Imchasinyou

Members
  • Posts

    240
  • Joined

  • Last visited

Posts posted by Imchasinyou

  1. Well, I fixed it. . . . During one of my sessions, banging on the keyboard like a drunk chimp, I some how make a copy of every single artifact in my scene! How I managed this is beyond me but I had 2 cameras and obviously, the script didnt know which one to use so it just blacked me out. . . .

     

    Note to self, stop banging the KB like a drunk chimp!

    • Upvote 1
  2. OK, now randomly, there seems to be an issue where as I set my pivot, assign te player script to it, set the camera and sometimes it will work then out of no where with out making any changes to the script, only the scene, it tells me that the camera cant be found. This started yesterday. I have to set the player pivot and camera again and sometimes it works, other times it wont. The scene is just CSG boxes and textures witha few models thrown in. Ill make a video after work to show this.

  3. Well, Ive tried to export the project and here is what i got. . . .

     

    Must be me cause all I have is issue after issue any more. . . .

     

    I can try to rip and pack up the project folder that has all my assets that Ive purchased but Im thinking thats Probably not the way to go. Im even willing to garbage can ALL of my projects that have been started!

     

    Is there a way to delete leadwerks and all of its associated files and just reinstall it? This is getting old and its half the reason i left another engine.

    post-12522-0-15467600-1416354606_thumb.png

  4. Sorry, i use the Beta and you have the map in question as I sent it to you for testing my map rotation issues. Which Ive fixed by using Ricks method of the flowgraph. Since I can not seem to get programs to export once again, i can not send another at this time. . . Ill see what I can do though.

  5. So, I came home from work with some ideas as to where another invisable wall has occured in my zombie map and began to delete PHY shapes from recent additions. Med packs from which I generated the shape from the editor. Then went to run the map to test and it just gives me a blank white screen with the frame and the game name on the top left corner of the frame as normal but the game will not load. Ive allowed it to sit for nearly 15 minutes with no progress towards loading the map. Ive tested a few other projects and gotten the same result. Is this me or?

     

    Irregardless, the editor will notload any of my projects for me to test them. I can make a new project and its fine.

     

    Ideas?

  6. I still get the access violation on occasion. I could be doing almost anything and from time to time, It decides what I was doing wasnt important and pokes me with the violation error as if I was doing something I shouldnt be. . . .

     

    The latest was on exporting my level for a tester of mine. For some reason, it slapped my face with the error and sent me off mad. after 2 other attempts, I was able to export the project how ever, it wont run for anything. The only way i cant get it to run is to pack the project folder up and do it that way.

     

    No biggy right now but ya, it still kicks me out once in a while. Albiet, it has reduced quite a bit.

  7. Thanks for the mention Hayden.

     

    Hey Josh, would it hurt to ask for a scripts forums as a child of the programming forums. Id hate to see scripts like these get lost in the conversations when they could easily help out those that need it. . . . . . im one of those ppl BTW.

    • Upvote 1
  8. Got myself an error. Nothing new for me but I got

    attempt to perform arithemetic on field "crouchedheight" (a nil value) line 646

     

    if it needs to be broken, let me play with it. I copied and pasted the new section into my FPSPlayer.lua file as there are changes made to mine already. Here is the new part pasted.

    -- Check for crouching
    if window:KeyHit(Key.C) then
    self.crouched = not self.crouched
    end
    
    --With smoothing
    --Position camera at correct height and playerPosition
    self.entity:SetInput(self.camRotation.y, playerMovement.z, playerMovement.x, jump , self.crouched, 1.0, 0.5, true)
    local playerPos = self.entity:GetPosition()
    local newCameraPos = self.camera:GetPosition()
    --local playerTempHeight = ((self:IsCrouched() == 1) and crouchHeight or playerHeight)
    newCameraPos = Vec3(playerPos.x, newCameraPos.y ,playerPos.z)
    
    if self.crouched==true then
    if newCameraPos.y<playerPos.y + self.crouchedheight then
    newCameraPos.y = Math:Curve(playerPos.y + self.crouchedheight, newCameraPos.y, self.camSmoothing)
    else
    newCameraPos.y = playerPos.y + self.crouchedheight
    end
    elseif newCameraPos.y<playerPos.y + self.eyeheight then
    newCameraPos.y = Math:Curve(playerPos.y + self.eyeheight, newCameraPos.y, self.camSmoothing)
    else
    newCameraPos.y = playerPos.y + self.eyeheight
    end
    
    self.camera:SetPosition(newCameraPos)
    end
    

     

    Here is my entire file if interested in looking at it.FPSPlayer.lua

  9. If it were me, and Im no expert by any means, Id probably use a grey steel for the torch. Experiment some with different textures. I actually buy a lot of assets so I have several some where in my library.

    In the material editor, you can adjust the shine with the color selectors for the diffuse and specular?. again, experiment with this. Its a real time adjustment so you can see it as you do it. Search on Google or other browser for "steel texture" save one to your desktop and then import it to the project files. Right clicking the texture will allow you to generate a "normal map" which you can adjust for its depth which will create the actual bumpiness of the texture. Ill be happy to make a short video if you think it will help some. . . .

    • Upvote 1
  10. Thats great Hayden. Something i just figured wasnt quite ready even if its just moving the camera down to a lower level. How might we assign a specific key for this? I think its control in the script when i was looking at it. Id rather it be "C". Ill try to figure that out on my own unless you pass along a secret to us all. BTW, GREAT contributions like this will make the community stronger!

     

    lines 592-595 appears to be for setting the crouch button so-

    -- Check for crouching
    if window:KeyHit(Key.ControlKey) then
     self.crouched = not self.crouched
    end
    
    

    could be made into

    -- Check for crouching
    if window:KeyHit(Key.C) then
     self.crouched = not self.crouched
    end
    
    

     

    Then it appears as if lines 597 - 618 are the crouch function.?

×
×
  • Create New...