- Joined
- Jan 7, 2005
- Messages
- 7,550
Hi. I came across a really weird, and apparently UNFIXABLE bug in the Editor...
So I have been scripting in my map and such, and I decide to save the map. JASSHelper tells me that it has 100 compile bugs. Guess what the editor decided to do? For some reason, when declaring sounds it decided to bug it's own functions and use an extra argument.
(I didn't copy it all)
If you didn't figure it out already, for some reason it is using an extra argument on SetSoundPitch(),
The most interesting of it all is that I deleted a sound I was using afterwards and I still had 100 compile errors.
In this one, it's the CreateDestructable() function. Those three 0s. Later on, the CreateUnit() also has those three weird zeros.
I am really... shocked.
What I did unusual, or what I did that I don't usually do...
Sorry if this is already known and fixable.
EDIT: Restarting the editor fixed it... but it sure was a hell of a bug. Is there a cause for this...?
So I have been scripting in my map and such, and I decide to save the map. JASSHelper tells me that it has 100 compile bugs. Guess what the editor decided to do? For some reason, when declaring sounds it decided to bug it's own functions and use an extra argument.
JASS:
set gg_snd_DarkAgents = CreateSound("Sound\\Music\\mp3Music\\DarkAgents.mp3" , false , false , false , 10 , 10 , "")
call SetSoundDuration(gg_snd_DarkAgents , 64950)
call SetSoundChannel(gg_snd_DarkAgents , 0)
call SetSoundVolume(gg_snd_DarkAgents , 127)
call SetSoundPitch(gg_snd_DarkAgents , 1 , 0)
set gg_snd_DarkVictory = CreateSound("Sound\\Music\\mp3Music\\DarkVictory.mp3" , false , false , false , 10 , 10 , "")
call SetSoundDuration(gg_snd_DarkVictory , 75111)
call SetSoundChannel(gg_snd_DarkVictory , 0)
call SetSoundVolume(gg_snd_DarkVictory , 127)
call SetSoundPitch(gg_snd_DarkVictory , 1 , 0)
set gg_snd_TragicConfrontation = CreateSound("Sound\\Music\\mp3Music\\TragicConfrontation.mp3" , false , false , false , 10 , 10 , "")
call SetSoundDuration(gg_snd_TragicConfrontation , 72264)
call SetSoundChannel(gg_snd_TragicConfrontation , 0)
call SetSoundVolume(gg_snd_TragicConfrontation , 127)
call SetSoundPitch(gg_snd_TragicConfrontation , 1 , 0)
set gg_snd_MalGanisRevival = CreateSound("Sound\\Dialogue\\HumanCampaign\\Human06\\H06MalGanis41.mp3" , false , false , false , 10 , 10 , "DefaultEAXON")
call SetSoundParamsFromLabel(gg_snd_MalGanisRevival , "H06MalGanis41")
call SetSoundDuration(gg_snd_MalGanisRevival , 2456)
call SetSoundVolume(gg_snd_MalGanisRevival , 127)
set gg_snd_Rescue = CreateSound("Sound\\Interface\\Rescue.wav" , false , false , false , 10 , 10 , "DefaultEAXON")
call SetSoundParamsFromLabel(gg_snd_Rescue , "Rescue")
call SetSoundDuration(gg_snd_Rescue , 3796)
call SetSoundVolume(gg_snd_Rescue , 100)
set gg_snd_Frostmourne = CreateSound("Sound\\Ambient\\DoodadEffects\\FrostmourneChant1.wav" , false , false , false , 10 , 10 , "DefaultEAXON")
call SetSoundParamsFromLabel(gg_snd_Frostmourne , "FrostmourneChantSound")
call SetSoundDuration(gg_snd_Frostmourne , 5039)
(I didn't copy it all)
If you didn't figure it out already, for some reason it is using an extra argument on SetSoundPitch(),
The most interesting of it all is that I deleted a sound I was using afterwards and I still had 100 compile errors.
JASS:
function CreateAllDestructables takes nothing returns nothing
local destructable d
local trigger t
local real life
set gg_dest_ATg1_5102 = CreateDestructable('ATg1' , - 11072 , 0 , 5632 , 0 , 270 , 000 , 0 , 900 , 0)
set gg_dest_B000_1482 = CreateDestructable('B000' , 12928 , 0 , 12224 , 0 , 322 , 000 , 1 , 516 , 9)
set gg_dest_B000_0602 = CreateDestructable('B000' , 13056 , 0 , 12288 , 0 , 94 , 000 , 1 , 417 , 4)
set gg_dest_B002_0283 = CreateDestructable('B002' , 12192 , 0 , 15968 , 0 , 180 , 000 , 0 , 750 , 0)
set gg_dest_B003_0480 = CreateDestructable('B003' , 10688 , 0 , 9856 , 0 , 270 , 000 , 0 , 574 , 0)
set gg_dest_B005_2739 = CreateDestructable('B005' , 7456 , 0 , - 2144 , 0 , 180 , 000 , 0 , 750 , 0)
set gg_dest_B006_3044 = CreateDestructable('B006' , 16032 , 0 , 13024 , 0 , 270 , 000 , 0 , 850 , 0)
set gg_dest_DTg2_3750 = CreateDestructable('DTg2' , 14112 , 0 , - 10976 , 0 , 270 , 000 , 0 , 900 , 0)
set gg_dest_DTg5_1936 = CreateDestructable('DTg5' , 2624 , 0 , 11136 , 0 , 270 , 000 , 0 , 900 , 0)
set gg_dest_DTg5_3174 = CreateDestructableZ('DTg5' , 8960 , 0 , - 960 , 0 , 397 , 2 , 270 , 000 , 0 , 900 , 0)
set gg_dest_DTg7_7126 = CreateDestructable('DTg7' , 14592 , 0 , - 4096 , 0 , 0 , 000 , 0 , 900 , 0)
set gg_dest_LT00_0314 = CreateDestructable('LT00' , 10752 , 0 , 13888 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_LT01_1308 = CreateDestructable('LT01' , 5792 , 0 , 10720 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_LT03_1563 = CreateDestructable('LT03' , 4320 , 0 , 11616 , 0 , 90 , 000 , 1 , 000 , 0)
set gg_dest_LT06_0346 = CreateDestructable('LT06' , 13632 , 0 , 15904 , 0 , 90 , 000 , 1 , 000 , 0)
set gg_dest_LTrc_5873 = CreateDestructable('LTrc' , - 12224 , 0 , 2688 , 0 , 95 , 000 , 1 , 000 , 4)
set gg_dest_LTrc_0520 = CreateDestructable('LTrc' , 12096 , 0 , 12160 , 0 , 5 , 000 , 1 , 000 , 4)
set gg_dest_LTrc_0519 = CreateDestructable('LTrc' , 11968 , 0 , 12096 , 0 , 340 , 000 , 1 , 000 , 1)
set gg_dest_LTrc_6758 = CreateDestructable('LTrc' , - 13120 , 0 , 16064 , 0 , 28 , 000 , 1 , 000 , 0)
set gg_dest_LTrc_0318 = CreateDestructable('LTrc' , - 10048 , 0 , - 1920 , 0 , 123 , 000 , 1 , 000 , 4)
set gg_dest_LTrc_0317 = CreateDestructable('LTrc' , - 10176 , 0 , - 1920 , 0 , 282 , 000 , 1 , 000 , 4)
set gg_dest_LTrc_6757 = CreateDestructable('LTrc' , - 13120 , 0 , 15936 , 0 , 273 , 000 , 1 , 000 , 1)
set gg_dest_LTrc_7202 = CreateDestructable('LTrc' , - 11968 , 0 , - 2624 , 0 , 228 , 000 , 1 , 000 , 4)
set gg_dest_LTrc_5872 = CreateDestructable('LTrc' , - 12352 , 0 , 2688 , 0 , 11 , 000 , 1 , 000 , 5)
set gg_dest_LTrc_6759 = CreateDestructable('LTrc' , 7936 , 0 , 6976 , 0 , 341 , 000 , 1 , 000 , 1)
set gg_dest_NTtw_4362 = CreateDestructableZ('NTtw' , 1152 , 0 , 14592 , 0 , 329 , 3 , 242 , 851 , 1 , 450 , 5)
set gg_dest_NTtw_4289 = CreateDestructableZ('NTtw' , 1216 , 0 , 14720 , 0 , 304 , 2 , 5 , 000 , 1 , 610 , 6)
set gg_dest_YT00_7066 = CreateDestructable('YT00' , - 13120 , 0 , - 10048 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_YT00_7001 = CreateDestructable('YT00' , - 15936 , 0 , - 9472 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_YT16_2088 = CreateDestructable('YT16' , 5664 , 0 , 3904 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_YT37_0808 = CreateDestructable('YT37' , 9760 , 0 , 12512 , 0 , 0 , 000 , 1 , 000 , 0)
set gg_dest_YT39_1020 = CreateDestructableZ('YT39' , 9120 , 0 , 9184 , 0 , 32 , 3 , 0 , 000 , 1 , 000 , 0)
set gg_dest_YT42_5695 = CreateDestructable('YT42' , - 8448 , 0 , 480 , 0 , 0 , 000 , 1 , 000 , 0)
endfunction
In this one, it's the CreateDestructable() function. Those three 0s. Later on, the CreateUnit() also has those three weird zeros.
I am really... shocked.
What I did unusual, or what I did that I don't usually do...
- Imported two icons, Reign of Chaos icons I exported from RoC's .mpq file. After I removed them, I still had the errors.
- I used Undo Terrain <action>, by permanently pressing the hotkeys, which means it worked VERY fast.
- I created 2 more sounds.
- I raised some terrain I had previously lowered in WEU, but I think that's not a problem? I didn't use WEU triggers at all.
Sorry if this is already known and fixable.
EDIT: Restarting the editor fixed it... but it sure was a hell of a bug. Is there a cause for this...?
Last edited: