The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Entity crashing game
grasmann Offline
Junior Member

Posts: 5
Threads: 2
Joined: Sep 2012
Reputation: 0
#1
Custom Entity crashing game

Hi

I got a problem here. I'm planning to create a total conversation, in an isolated folder, nice and clean.
So far so good, everything works how it should, with some starting problems that I already solved myself.

I added the "DigiByteFlashLight" and thought it was a great addition to the game, if I include the model into the isolated folder there isn't even anything replaced. Cool. The flashlight is actually working ... so no problem here.

If I place the lantern on the ground it still looks like the standard lantern from the game, but if I pick it up I have the modded flashlight. I think that's not yet acceptable. I want the flashlight to look like it even if it's lying on the ground.

So I opened the provided entity from "DigiByteFlashLight" in the model editor.
- I created a shape that fits the flashlight well enough and created a body from it
- I attached the two lights, the billboard, the particle effect and the sub mesh, so in other words everything
- I tested the flashlight in the model editor, and the physics are working pretty good, no problem
- BUT ... if I place the new flashlight entity in my map and try to load it, the game crashes Sad

Attached files:
- zip file with the flashlight files, the file "flashlight_hand.ent" is the entity I changed and attached a body to
- error log ( pretty unclear XD )
- hpl.log

I would appreciate if somebody could help me Big Grin.

EDIT:
Well, I got it working now Big Grin.
Apparently I just had to set some userdefined variables for the entity ( I changed it to "Item" and left the Sub Item "Puzzle" ).
The only problem that is left now is that the flashlight seems to fly away with the speed of light if I accidently walk over it XD. So, something with the physics seems to be a bit oversensitive. Is it possible to deactive physical interaction with the player? >_>


Attached Files
.zip   DigiByteFlashLight.zip (Size: 186.57 KB / Downloads: 93)
.log   errorlog-01-09-2012(14.30.54).log (Size: 29.44 KB / Downloads: 92)
.log   hpl.log (Size: 5.02 KB / Downloads: 93)
(This post was last modified: 09-01-2012, 04:03 PM by grasmann.)
09-01-2012, 03:37 PM
Find


Messages In This Thread
Custom Entity crashing game - by grasmann - 09-01-2012, 03:37 PM
RE: Custom Entity crashing game - by Zaffre - 09-01-2012, 07:06 PM
RE: Custom Entity crashing game - by grasmann - 09-01-2012, 07:09 PM
RE: Custom Entity crashing game - by Obliviator27 - 09-02-2012, 01:06 AM



Users browsing this thread: 1 Guest(s)