Please, what does this mean?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At RCTC
Contact:

Please, what does this mean?

Post by Master Fionwë »

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'
How could I fix this?
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Please, what does this mean?

Post by Ace_Azzameen_5 »

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.
Last edited by Ace_Azzameen_5 on Sun Aug 19, 2007 5:24 pm, edited 1 time in total.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At RCTC
Contact:

RE: Please, what does this mean?

Post by Master Fionwë »

Okay, thanks. I got it fixed now.
Post Reply