Damascus Rose
Posting Freak
Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation:
24
|
Editor thumbnails, sounds, and opening a door
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.
(This post was last modified: 03-14-2013, 06:48 AM by Damascus Rose.)
|
|
02-28-2013, 05:40 AM |
|
No Author
Posting Freak
Posts: 962
Threads: 10
Joined: Jun 2012
Reputation:
13
|
RE: Editor thumbnails, sounds, and opening a door
From all of this problems I can only tell you this.
Re-install the game.
|
|
02-28-2013, 06:48 AM |
|
OriginalUsername
Posting Freak
Posts: 896
Threads: 42
Joined: Feb 2013
Reputation:
34
|
RE: Editor thumbnails, sounds, and opening a door
Yes. Reinstall the game, and check if there are no caches in your /maps folder.
|
|
02-28-2013, 07:55 AM |
|
Damascus Rose
Posting Freak
Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation:
24
|
RE: Editor thumbnails, sounds, and opening a door
What would reinstalling the game do? I just installed it from steam and put the editor in and it doesn't work
|
|
03-07-2013, 10:51 PM |
|
ExpectedIdentifier
Member
Posts: 234
Threads: 10
Joined: Sep 2012
Reputation:
11
|
RE: Editor thumbnails, sounds, and opening a door
Verify integrity of game cache on steam, hopefully that'll work
|
|
03-08-2013, 06:49 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Editor thumbnails, sounds, and opening a door
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
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
03-08-2013, 09:40 PM |
|
Damascus Rose
Posting Freak
Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation:
24
|
RE: Editor thumbnails, sounds, and opening a door
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 |
|
NaxEla
Senior Member
Posts: 415
Threads: 5
Joined: Dec 2012
Reputation:
28
|
RE: Editor thumbnails, sounds, and opening a door
(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);
|
|
03-14-2013, 06:48 AM |
|
Damascus Rose
Posting Freak
Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation:
24
|
RE: Editor thumbnails, sounds, and opening a door
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 |
|
NaxEla
Senior Member
Posts: 415
Threads: 5
Joined: Dec 2012
Reputation:
28
|
RE: Editor thumbnails, sounds, and opening a door
(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.
|
|
03-14-2013, 06:54 AM |
|
|