Frictional Games Forum (read-only)

Full Version: Editor thumbnails, sounds, and opening a door
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have 3 problems.

/////solved

No thumbnails are showing up for static objects or entities in my level editor.

/////////////////////

Sometimes sounds I play from script with the PlaySoundAtEntity() don't seem to play when others do, what is the cause of this?

///////////////////// solved

And I'm trying to get this swing door to open through script, and I've tried a few things, none of them work. I opened up the script from the Rainy Hall and copied it for my own door, but it has no effect. I also tried PropImpulses and Forces and still it does nothing. Right now all I have is

SetSwingDoorDisableAutoClose("nightmare_door", true);
SetSwingDoorClosed("nightmare_door", false, false);


If anyone could help me with any of these issues, that would be much appreciated.
From all of this problems I can only tell you this.
Re-install the game.
Yes. Reinstall the game, and check if there are no caches in your /maps folder.
What would reinstalling the game do? I just installed it from steam and put the editor in and it doesn't work
Verify integrity of game cache on steam, hopefully that'll work Big Grin
or re-install the editor, the game doesn't have to do anything about this.


Do this:

-Check your LevelEditor.log in Documents/HPL2/ and post it
-Re-install editors

If it doesn't work, send the game to full s**t (disinstall) and re-install.

For the door thing:

Make sure it's:

-The good direction and axis for force
-Having "world" at the end of the AddPropForce thing
Alright well, the issue with the thumbnail is fixed. But the sounds still aren't playing when I tell them to play in a script, for example this:

PlaySoundAtEntity("","explosion_rock_large", "Player", 0, false);

Normally I wouldn't have it set to create it at "player" but I wanted to see if it would work on the player and it doesn't, just the same as if I put it on a script area
(03-14-2013, 06:41 AM)Damascus Rose Wrote: [ -> ]Alright well, the issue with the thumbnail is fixed. But the sounds still aren't playing when I tell them to play in a script, for example this:

PlaySoundAtEntity("","explosion_rock_large", "Player", 0, false);

Normally I wouldn't have it set to create it at "player" but I wanted to see if it would work on the player and it doesn't, just the same as if I put it on a script area

You'll need to put the extension for the sound file (.snt).

PlaySoundAtEntity("","explosion_rock_large.snt", "Player", 0, false);
I will test that one later, but what about this one? I'm trying to get the insanity effect of the babies crying so I used this code

PlayGuiSound("insanity_baby_cry_1.ogg", 1);

And it doesn't play a thing, what's wrong with it?
(03-14-2013, 06:52 AM)Damascus Rose Wrote: [ -> ]I will test that one later, but what about this one? I'm trying to get the insanity effect of the babies crying so I used this code

PlayGuiSound("insanity_baby_cry_1.ogg", 1);

And it doesn't play a thing, what's wrong with it?

Hmm.. that looks fine to me. Maybe the function that it's in doesn't actually get called? Try adding a debug message (AddDebugMessage) and make sure that the function the sound is in gets called.
Pages: 1 2