• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Game Wont Continue to Player Slot Screen

Status
Not open for further replies.
Level 4
Joined
Sep 15, 2013
Messages
53
Hello Guys! I wanna ask do any of you encounter after inserting a new function in the jass script of a map, when creating a game in wacraft, the game wont continue to the player slot screen instead it returns to the creating a game screen? Note that i placed the variable, init and the function in the right place. Somebody help please!
 
Level 4
Joined
Sep 15, 2013
Messages
53
No. I mean.. I have a working function to be inserted in a jass script of a map. I inserted it and want to test it on a game. Whenever I try to create a game, it doesnt continue to the player slot screen instead it returns me to the create game screen.
 
Level 13
Joined
May 10, 2009
Messages
868
Seems like the issue is caused by some code that is not correct, and your game can't properly compile the necessary functions for creating a lobby (player name, number of players, forces, etc). Check if there isn't any syntax error in your code, or you could post your custom function using [code=jass][/code] tags.
 
Last edited:
Level 4
Joined
Sep 15, 2013
Messages
53
JASS:
function VictorySoundA takes nothing returns nothing
if GetUnitTypeId(GetDyingUnit()) == 'etol' then
set VictorySound=CreateSound("Sound\\Announcer\\announcer_victory_dire.mp3",false,false,false,10,10,"HeroAcksEAX")
call SetSoundDuration(VictorySound,5)
call SetSoundParamsFromLabel(VictorySound,"Victory")
call SetSoundVolume(VictorySound,150)
call PlaySoundBJ(VictorySound)
set VictoryMusic=CreateSound("Sound\\Announcer\\dire_win.mp3",false,false,false,10,10,"HeroAcksEAX")
call SetSoundDuration(Victorymusic,5)
call SetSoundParamsFromLabel(Victorymusic,"Victory")
call SetSoundVolume(Victorymusic,150)
call PlaySoundBJ(VictoryMusic)
endif
if GetUnitTypeId(GetDyingUnit()) == 'unpl' then
set VictorySound=CreateSound("Sound\\Announcer\\announcer_victory_rad.mp3",false,false,false,10,10,"HeroAcksEAX")
call SetSoundDuration(VictorySound,5)
call SetSoundParamsFromLabel(VictorySound,"Victory")
call SetSoundVolume(VictorySound,150)
call PlaySoundBJ(VictorySound)
set VictoryMusic=CreateSound("Sound\\Announcer\\radiant_win.mp3",false,false,false,10,10,"HeroAcksEAX")
call SetSoundDuration(Victorymusic,5)
call SetSoundParamsFromLabel(Victorymusic,"Victory")
call SetSoundVolume(Victorymusic,150)
call PlaySoundBJ(VictoryMusic)
endif
endfunction
function VictorySound takes nothing returns nothing
local trigger victory
set victory = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( victory, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( victory, function VictorySoundA)
endfunction

Here!
 
Last edited:
Level 13
Joined
May 10, 2009
Messages
868
The problem seems to be related to this variable: VictorySound

Where are you declaring it? If you created it via Variable Editor (Ctrl + X), then add the prefix udg_ to it:

udg_VictorySound = Create[...]

EDIT: And do the same for VictoryMusic.
 
Last edited:
Status
Not open for further replies.
Top