Frictional Games Forum (read-only)

Full Version: really strange bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so i have been working on this map for a couple of hours and for some reason one sledge hammer crashes the whole game the aim was to get the player to go into a room door closes behind them and the locked message was that the sledge hammer could break it down i did the scripting but for some reason the sledge crashes the whole game i went back and deleted it and the map loaded fine any one have any clues as to why this is happining???? if not i guess i can just use a shovel Smile
(04-05-2012, 11:23 AM)zombiehacker595 Wrote: [ -> ]so i have been working on this map for a couple of hours and for some reason one sledge hammer crashes the whole game the aim was to get the player to go into a room door closes behind them and the locked message was that the sledge hammer could break it down i did the scripting but for some reason the sledge crashes the whole game i went back and deleted it and the map loaded fine any one have any clues as to why this is happining???? if not i guess i can just use a shovel Smile

I would suggest pasting the scripting from your .hps file here, so that the coders can point out which bit of coding you've written is causing the crash. I don't think it's the actual item, more, how you've added it to the game and how you've told the game you want the player to use it =]


(04-05-2012, 11:25 AM)Tekkie Wrote: [ -> ]
(04-05-2012, 11:23 AM)zombiehacker595 Wrote: [ -> ]so i have been working on this map for a couple of hours and for some reason one sledge hammer crashes the whole game the aim was to get the player to go into a room door closes behind them and the locked message was that the sledge hammer could break it down i did the scripting but for some reason the sledge crashes the whole game i went back and deleted it and the map loaded fine any one have any clues as to why this is happining???? if not i guess i can just use a shovel Smile


I would suggest pasting the scripting from your .hps file here, so that the coders can point out which bit of coding you've written is causing the crash. I don't think it's the actual item, more, how you've added it to the game and how you've told the game you want the player to use it =]


AddEntityCollideCallback("cellar_wood01_2", "sledge_1", "BreakDoor", true, 1);
}

void BreakDoor(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cellar_wood01_2", false);
}
and i got no error message saying the script was wrong i got that huge game crash message saying something is wrooooong so yea i dont know what is going on
nvm script is fucked a shovel was already on the map i just replaced the sledges name with the shovels on the script and got major crash i think im gonna have to ditch it Sad

Instead of
SetEntityActive("cellar_wood01_2", false);, try SetPropHealth("cellar_wood01_2", 0.0f);
There's another glitch I found when testing my story.
The bucket entity you can grab. If you grab it by the handle and hold it up it will fly every where.
Enable NoCollide?
nah i fixed it i just added a script area and made it work Smile
Sweet, sorry I couldnt be more helpful! Tongue
(04-06-2012, 04:24 AM)JetlinerX Wrote: [ -> ]Sweet, sorry I couldnt be more helpful! Tongue


haha thats ok Big Grin