How could I fix this?Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: bad argument #1 to `SetAmbientMusic' (number expected, got nil)
stack traceback:
[C]: in function `SetAmbientMusic'
(none): in function `ScriptInit'
Please, what does this mean?
Moderator: Moderators
-
Master Fionwë
- Rebel Colonel

- Posts: 598
- Joined: Wed May 30, 2007 3:33 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At RCTC
- Contact:
Please, what does this mean?
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Please, what does this mean?
Somewhere in your LUA you have something like this:
SetAmbientMusic
and you should comment it out to fix it
--SetAmbientMusic
Also, doing this should fix the map but the music might not work. The actual problem is that you're using a bad setting or calling a non-existent music stream or something to be ambient music.
Since it says "Number expected, got nil[blank; nothing]" I guess its probably SetAmbientMusic(1) FOR ON and SetAmbientMusic(0) for off.
SetAmbientMusic
and you should comment it out to fix it
--SetAmbientMusic
Also, doing this should fix the map but the music might not work. The actual problem is that you're using a bad setting or calling a non-existent music stream or something to be ambient music.
Since it says "Number expected, got nil[blank; nothing]" I guess its probably SetAmbientMusic(1) FOR ON and SetAmbientMusic(0) for off.
Last edited by Ace_Azzameen_5 on Sun Aug 19, 2007 5:24 pm, edited 1 time in total.
-
Master Fionwë
- Rebel Colonel

- Posts: 598
- Joined: Wed May 30, 2007 3:33 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At RCTC
- Contact:
RE: Please, what does this mean?
Okay, thanks. I got it fixed now.
