Jump to content

CustomZ02

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by CustomZ02

  1. Yeah I got that part here:

     

    flo.PNG

     

    What Im trying to figure out is how to tell the fpsplayer script how many healthpoints to receive from the healthpack. Cause I see the script in FPSPlayer is calculating health + healthpoints; but dont see how I send that value of healthpoints to FPSPlayer from the healthpack.

     

    As you can tell im a bit confused, I tried to look up some other scripts to see how this would work but I couldnt find anything. Do I need to create a different output in my healthpack script named healthpoints?

  2. Still trying to understand how lua works. Im trying to create a script for an object to add health to the player. I created a USE that if enabled it would play a sound, but I also want it to output health to the receive health on the player script.

     

    function Script:Use()
    if self.enabled then
    if self.sound then
    self.entity:EmitSound(self.sound)
    end
    self.component:CallOutputs("Use")
    end
    end

     

    Im assuming I want it inside the use function to then send to ReceiveHealth() im confused as to how that is done.

     

    --Increase health
    function Script:ReceiveHealth(healthPoints)--in
    --Increase health
    health = health + healthPoints;
    
    --Health can not be more then maximum health
    if health > maxHealth then
    health = maxHealth
    end
    
    --Call Health received output
    self.component:CallOutputs("HealthReceived")
    end

  3. LE 3.1 Crash loading FPS demo level.

    I changed some values and put in crawler target script slot : Player

     

    demobugs.jpg

     

    It's at map loading that it crashes sad.png

     

    Could it be possible to have the engine loading the map and not verifying or lauching scripts attached to entities at map loading ?

    (I just deleted the testmap to have LE3 beeing able to work and be able to choose a new project or map)

     

    I had this happen to me before as well, your .map file may have gotten corrupted. According to Josh you can find a backup of your map in the Backup folder.

     

    Josh[developer]6 hours ago

     

    You can completely restore the Leadwerks configuration by passing the -"restoreconfig" switch in the command line, or by deleting the file "C:\Users\username\AppData\Local\Leadwerks\Leadwerks.cfg"

     

    Leadwerks automatically backs up your maps every five minutes, by default. The backup files are located in "C:\Users\username\Documents\Leadwerks\Backup".

     

    If you have a serious project going, it's a good idea to create an SVN repository, or even use DropBox.

  4. Thanks, yea I did was YouGroove said and combined the model then recalculated the normals in blender. That fixed the flipped normals, but using his export settings gives an unknown chunk error for the model. So I just exported as default settings and set the scale to .25 to fit what I needed in leadwerks.

     

    Ive got one more problem if you guys don't mind helping me with this. I added a shape to the model in Leadwerks so that I could grab and pick it up. It seems to flip out literally. Any idea what causes this? Check the video below.

     

  5. I export objects from Blender to LE3 without normals problem (old version 2.49 and last 2.68 version)

    What version of Blender do you use ? What settings do you use at export ?

    Attach the object file here if you want i take a look.

     

    Im using the latest version of Blender 2.69. It could just be that I did something wrong in blender. I also used the default settings for the fbx export.

     

    blender file attached below.

     

    https://dl.dropboxusercontent.com/u/44779095/werks/medkit.rar

  6. Are you able to run the game from the project folder? I think the publish button just packs it into an installer which can also be done by using 7zip. That is all i saw when i published something.

     

    Game runs fine, just seems that publishing quit working. I would use 7zip but my project folder is about 8gigs now, and publishing would reduce the size to like 150-200mb installer file.

  7. Hey guys I made a quick model in blender which I have uv mapped and exported. Only problem Im seeing is that the faces are inverted? What do I need to do in blender to fix this?

     

    model1_blender.PNG

     

    model1.png

     

    Well I seem to have fixed it. For some reason the model normals look fine in blender. But when I export one of the objects normals get flipped. So to fix it, I had to flip the normals in blender which doesnt look right. But when exported and brought into Leadwerks the model appears perfectly fine.

     

    model1_fixed.png

  8. I recently started getting this randomly, when I go to the project manager and click publish it ends prematurely. And only creates a 4.4mb executable. Have only been able to successfully publish twice and both times the file size was around the 150mb range.

     

    Anyone have any ideas as to what could be causing this? It does not display any errors, it just closes within 2 secs after clicking the publish button.

  9. You have pass the ammo varible to the draw command. And set the physics charactor angle to 180 degrees

     

    Sorry, but where would I find the ammo variable. I see a few things in the FPSweaopn script "Script.ammo=200". Im sorry for the dumb questions but im confused here >.<

     

    NVM figured it out:

     

    local ammocount = self.ammo //to set the variable

    drawtext(ammocount,92,650) // to display ammo

  10. How did you get the ammo counter to work? I tried the above codes and all I get is ammo: displayed but no actual information. And if you don't mind me asking, whats the code for displaying the health bar. Im new to lua myself only ever touched visual basic stuff.

     

    Also, anyone know why the AI runs backwards? I tried rotating the enemy 180 but it doesnt seem to do anything.

  11. So here's a bit of information first. This was running on my pc fine earlier today, but I had been having issues with my computer for quite some time. I decided to do a fresh install of Windows 7 Home Premium today and start with a clean slate.

     

    So I got the install done, installed all the updates and drivers required for my system. Installed steam and installed Leadwerks agian. This is where my issues started.

     

    First came along a message stating that I was missing MSVCR100.dll. I searched online and came to the conclusion I had to reinstall vcredist_x64, which I tried and nothing happened. I then proceeded to find an download of the missing file which I was able to obtain. I plugged in the file into the Leadwerks main directory. I then attempted to launch the software again and was welcomed by a new error.

     

    This new error "The application was unable to start correctly (0xc000007b). Click OK to close the application." I have yet to figure out what is causing this issue.

     

    Any ideas as to what I need to do to correct this error?

     

    Any help would be greatly appreciated!

     

    Found the fix, the vcredist that were included didnt seem to work. I used the one posted @ http://www.leadwerks.com/werkspace/topic/6004-leadwerks-3-beta-evaluation-kit/ and this one has fixed the issue.

     

    Thanks,

    Z02

     

    System Info:

     

    i7 920 @ 2.67GHz

    Dual GTX480 w/ latest drivers 332.21

    6.00 GB of Ram

    Windows 7 Home Premium with SP1

×
×
  • Create New...