-
Posts
240 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by Imchasinyou
-
-
Immediately after making this recording, I got the access violation. I restarted Leadwerks and went through my 3 new and only projects one by one to test the exact same script. Works fine in other projects. Im not sure whats going on here.
-
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.
-
so what do we do to fix it?
-
well, ok. Ill see if I can just send you the entire folder.
-
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.
-
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.
-
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?
-
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.
-
One solution to the border issue you have is to create a csg box (wall) around your area and then apply the invisable.mat to it. Then its there, has a collision but yet cant be seen.
-
Just passing along the little i know. Glad to help out in any way.
-
So, scripts can now be uploaded to the workshop? Is it then possible to add in a text file for instructions? That's where I thought the forums would be handy.
-
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.
- 1
-
Ive made a tutorial on importing weapons if you have not yet gotten it to work. Here is my channel, https://www.youtube.com/channel/UC-zfMu2hnZ4BlzBR-CfQbUA
-
If you attach the flicker script and play with that a bit, it will give the torch a more realistic feel as the light then kind of flickers a bit with the fire.
-
Yep, sure did. . . .
I even removed it and replaced it.
Sent you a PM and a steam invite
-
back to the error on
attempt to index field 'camera' (a nil value)
Attached the edited file. for me, the line in question is 154
self.camera:SetFOV(70)
-
I think its the changes from the weapon pick up script since I added a line that stops the creation of the camera since I set one in the scene.
-
OK, I forgot to add in the top section addition of the file. NOW, it throws an error about:
fpsplayer.lua" : 153 : attempt to index field 'camera' (a nil value)
Shouldnt have anythign to do with this right?
-
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
-
The FPS weapons pack has examples of this. Due out very very soon.
Come on! Stop teasing me and just give it up already.
-
This works perfectly. Now can the player carry 2 weapons and choose between them or is that a seperate function? man I need a dedicated scripter to help me :/. . . .
-
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. . . .
- 1
-
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.?
-
https://www.dropbox.com/sh/0dvu1s6yuwhbnnl/AAC5HHuFpB7s58oXq-Tycjgda?dl=0
This contains my empty map with the weapon pick up script if any one is so inclined to have a peek to see why it wont work.
EXCEPTION_ACCESS_VIOLATION
in Leadwerks Engine Bug Reports
Posted
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!