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!
I've attached a map.
Debugged the hell out of it.
But still can't figure out why it fatals.
All I know it's connected with a struct.
And it can read HDD? O_O
Please give me any clues, I'm lost. Sorry for a wall of text.
@TriggerHappy,
The problem is in last trigger, RacePool, in struct method create. I don't know why it fatals even with proper debugging and/or commenting. No effect!
If I'm not mistaken, spamming two dimmensional array syntax is unappropriate when used with jass natives.string array RaceColor [MAX_INDEX_RACES][MAX_INDEX_SUBRACES] is forbidden.
Use TableArray instead.
After commenting out Init function found within RacePool, map no longer aborts wc3 process.
static method create takes nothing returns thistype
local thistype this = thistype.allocate()
local integer i = 0
loop
exitwhen i > @16@
call CreateRaceDialog(Player(i))
// (...)
set i = i + 1
endloop
// (...)
return this
endmethod
Calling any player function with incorrect index range automaticaly aborts wc3 process. Proper range is: 0 - 15.
16th player's index is 15 instead of 16. Note that its 0-indexed based system.
@TH I'd rather use table/table array instead of those 2-D arrays anyway.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.