FOnline Development > Questions and Answers
Missing sounds (doors, containers, etc)
ffsake:
Alright, so I've got a problem with the SDK.
A lot of the sounds are missing, such as the ones for opening and closing doors. Music and various combat sounds still play. I tried extracting some of the Fallout 2 .acm files to \Client\data\sound\sfx, which didn't fix the issue.
The protos for doors and such just have these SoundIDs but these aren't really defined anywhere in the server files. At least, a thorough search with Notepad++ didn't reveal anything at all.
Are these sounds just something that wasn't implemented in the earlier revisions? (I'm using 408 because later revisions don't work well for me for some reason) Or am I just missing something simple?
JovankaB:
The door and locker sounds are played from scripts, check out lockers.fos.
At least in 2238 but it's probably taken from original SDK.
ffsake:
Hm, okay. I guess I'll just have to figure out how to do it via script then.
Can you tell me though what purpose do SoundIDs have?
JovankaB:
As far as I remember in some cases these are used in some weird way to identify the correct sound file to play (it's ascii code of the last letter of the sound file, or something like that). I only needed it once and then I quickly forgot how it works. I only remember that I thought "that's stupid" when I learned about it.
ffsake:
Decided to try something as simple as making the doors play AIRSIREN.ogg when you open them on lockers.fos.
At times it worked when I compiled the script but now it just throws me the "Expected expression value" error.
--- Code: --- // Change state
if( FLAG( locker.LockerCondition, LOCKER_ISOPEN ) )
locker.LockerClose();
map@ map = GetMap(locker.MapId);
map.PlaySound( "AIRSIREN.ogg" );
else
locker.LockerOpen();
--- End code ---
Strangely enough at one point I got it to work with more or less similar lines, though the sound was only supposed to play when the door opened. It played when the door was both opened and closed.
Might be just some stupid newbie mistake I've made, I'm not that good at AS yet.
Navigation
[0] Message Index
[#] Next page
Go to full version