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
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#2
RE: Custom Entity crashing game

(09-01-2012, 03:37 PM)grasmann Wrote: 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? >_>
You could probably set the entity to have static physics, so it can't move.

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
09-01-2012, 07:06 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)