I start the game, two rooms so far.
Looking/interacting/talking to objects and talking with characters... both play speech files (ogg format).
Walking towards second room, entering second room.
Looking/interacting/talking to objects doesn't play speech files.
Dialogues have no problems.
Rooms were coded in the same way...
Room 1 example
function hHotspot1_Interact()
{
if (player == cKauff) {
cKauff.FaceLocation(154, 639);
cKauff.Say("&46 Use ...the ...crops.");
cKauff.Say("&47 I don't get it.");
}
else {
cGustav.FaceLocation(154, 639);
cGustav.Say("I don't have to pee right now.");
}}
Room 2 example
function hHotspot2_Look()
{
if (player == cKauff) {
cKauff.FaceLocation(710, 187);
cKauff.Say("&50 Oh, a pretty cloud!");
cKauff.Say("&51 Looks like icecream!");
}
else {
cGustav.FaceLocation(710, 187);
cGustav.Say("Hm, just a cloud...");
cGustav.Say("Reminds me of Kauff's hair.");
}}
Yes, there are two player-characters... but that shouldn't matter. It simply doesn't take the "&50" command before the lines.
Command "&47" from room one is played correctly, text and sound.
Command "&48" from room two is not played... ...no sound, but the text appears.
I've checked 3 times on each line... they all have been named correctly, no errors, no nothing.
What could be the issue here?
Is there a "warnings.log" file generated when you run/test the game? As long as the speech files are indeed named correctly (i.e., "KAUF50.ogg") and placed in the Speech folder, then there's no reason for them to not be getting played.
No log, no nothing.
Should I post the entire room code for both rooms?
I just changed the value of the "&50" to "&1" to test if it's from the file or not.
Nothing changed, the character won't speak in the second room.
Try doing a "Rebuild all files" and see if that makes any difference. As I said as long as the file is properly named, there's no reason why the speech file shouldn't be playing just because you're in another room. Does speech file 50 play in room 1?
Aha!!
Thanks, now it works. I didn't know I could rebuild all files. Very useful tool.
There was a parenthesis forgotten in a corner somewhere. Thanks!