AGP
Senior Member
Posts: 448
Threads: 45
Joined: Dec 2012
Reputation:
23
|
RE: Bizarre Music Error
(02-03-2013, 03:27 AM)JustAnotherPlayer Wrote: I think i found the problem.
It should have been:
PlaySoundAtEntity("Player", "hallking.snt", "hallking_area", 0.5, false);
]
NOT
PlaySoundAtEntity("HallKing", "hallking.snt", "hallking_area", 0.5, false);
Or if that didn't work, delete the void OnLeave and OnEnter. And wasn't it supposed to be 0.0, not 0.5?
Neither worked.
I'm wondering if maybe the sound file is corrupt or something, because I've been copying and pasting scripts that work from previous files and just exchanging names. I've reviewed all the names multiple times, but nothing is out of place with them.
EDIT:
I attempted to change the music to see if it was a corrupt file and no. It just doesn't play.
(This post was last modified: 02-03-2013, 03:53 AM by AGP.)
|
|
02-03-2013, 03:46 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Bizarre Music Error
Here, try the .hps that i've made. If it didn't work, your .ogg file may be corrupted or your sound isn't in your /redist/sounds folder.
http://www.mediafire.com/?5453kakyq77cxx7
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-03-2013, 03:54 AM |
|
AGP
Senior Member
Posts: 448
Threads: 45
Joined: Dec 2012
Reputation:
23
|
RE: Bizarre Music Error
(02-03-2013, 03:54 AM)JustAnotherPlayer Wrote: Here, try the .hps that i've made. If it didn't work, your .ogg file may be corrupted or your sound isn't in your /redist/sounds folder.
http://www.mediafire.com/?5453kakyq77cxx7
I used your hps file and it didn't work, so I just went and restarted the computer and guess what! It works now.
When in doubt: try turning it off and on again.
Thank you very much for your help! =D The music now plays and work can continue!
|
|
02-03-2013, 04:18 AM |
|
No Author
Posting Freak
Posts: 962
Threads: 10
Joined: Jun 2012
Reputation:
13
|
RE: Bizarre Music Error
Just asking, did you save the script before you run the game ?
|
|
02-03-2013, 05:18 AM |
|
AGP
Senior Member
Posts: 448
Threads: 45
Joined: Dec 2012
Reputation:
23
|
RE: Bizarre Music Error
(02-03-2013, 05:18 AM)No Author Wrote: Just asking, did you save the script before you run the game ?
Yep. Always do, and then I reload the map to make sure saves went through.
|
|
02-03-2013, 05:20 AM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Bizarre Music Error
Map caches, pls-is there any .map_cache? If you save the script and map and there isn't any change, it's possibly because of that.
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
02-03-2013, 11:55 AM |
|
No Author
Posting Freak
Posts: 962
Threads: 10
Joined: Jun 2012
Reputation:
13
|
RE: Bizarre Music Error
(02-03-2013, 11:55 AM)The chaser Wrote: Map caches, pls-is there any .map_cache? If you save the script and map and there isn't any change, it's possibly because of that.
I thought map_caches only effect maps. But scripts too ?
|
|
02-03-2013, 12:00 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Bizarre Music Error
yeah, they affect scripts too, but at their way:
When the script is compiled, it applies itself to the map. As the .map_cache determines how the map is, the script cannot change what there was.
For more information, read this:
http://www.frictionalgames.com/forum/thread-19933.html
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
02-03-2013, 12:20 PM |
|
|