wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
225 stars 30 forks source link

1.26 critical error #955

Closed netVoix closed 4 years ago

netVoix commented 4 years ago

Everything worked fine until i updated my project. I also tried to run it with my fork stdLib adapted to 1.26 and got the same result.

Frotty commented 4 years ago

Logs? Output war3map.j? The issue template is there for a reason. I don't think anything changed recently that would affect this, except maybe https://github.com/wurstscript/WurstScript/pull/921

netVoix commented 4 years ago
Log 2020-05-29 20:41:42 [main] INFO default - ### Started wurst version: (1.8.1.0-jenkins-Wurst-1244) 2020-05-29 20:41:42 [main] INFO default - ### Started wurst version: (1.8.1.0-jenkins-Wurst-1244) 2020-05-29 20:41:42 [main] INFO default - ### With wurst-args --version 2020-05-29 20:41:42 [main] INFO default - ### With wurst-args --version 2020-05-29 20:41:42 [main] INFO default - ### compiler path1: file:/C:/Users/voix/.wurst/wurstscript.jar 2020-05-29 20:41:42 [main] INFO default - ### compiler path1: file:/C:/Users/voix/.wurst/wurstscript.jar 2020-05-29 20:41:42 [main] INFO default - ### ============================================ 2020-05-29 20:41:42 [main] INFO default - ### ============================================ 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - C:\Users\voix\Desktop\213\_build\WurstRunMap.w3x 2020-05-29 20:42:33 [Wurst LanguageWorker] WARN systems.crigges.jmpq3.JMpqEditor - mpq's listfile is incomplete. Blocks without listfile entry will be discarded 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG s.crigges.jmpq3.AttributesFile - parsed attributes 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Building mpq 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Sorted blocks 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added existing files 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added new files 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added listfile 2020-05-29 20:42:33 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Rebuild complete. Took: 11ms 2020-05-29 20:42:35 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - C:\Users\voix\Desktop\213\_build\WurstRunMap.w3x 2020-05-29 20:42:35 [Wurst LanguageWorker] WARN systems.crigges.jmpq3.JMpqEditor - mpq's listfile is incomplete. Blocks without listfile entry will be discarded 2020-05-29 20:42:36 [Wurst LanguageWorker] INFO systems.crigges.jmpq3.JMpqEditor - insert file: dummy.mdx 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Building mpq 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Sorted blocks 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added existing files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added file dummy.mdx 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added file war3map.imp 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added new files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added listfile 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Rebuild complete. Took: 16ms 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - C:\Users\voix\Desktop\213\_build\WurstRunMap.w3x 2020-05-29 20:42:37 [Wurst LanguageWorker] WARN systems.crigges.jmpq3.JMpqEditor - mpq's listfile is incomplete. Blocks without listfile entry will be discarded 2020-05-29 20:42:37 [Wurst LanguageWorker] INFO systems.crigges.jmpq3.JMpqEditor - insert file: war3map.j 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Building mpq 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Sorted blocks 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added existing files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added file war3map.j 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added new files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added listfile 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Rebuild complete. Took: 7ms 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - C:\Users\voix\Desktop\213\_build\WurstRunMap.w3x 2020-05-29 20:42:37 [Wurst LanguageWorker] WARN systems.crigges.jmpq3.JMpqEditor - mpq's listfile is incomplete. Blocks without listfile entry will be discarded 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - C:\Users\voix\Desktop\213\_build\WurstRunMap.w3x 2020-05-29 20:42:37 [Wurst LanguageWorker] WARN systems.crigges.jmpq3.JMpqEditor - mpq's listfile is incomplete. Blocks without listfile entry will be discarded 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Building mpq 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Sorted blocks 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added existing files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added new files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added listfile 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Rebuild complete. Took: 4ms 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Building mpq 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Sorted blocks 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added existing files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added file war3map.j 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added file war3map.w3i 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added new files 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Added listfile 2020-05-29 20:42:37 [Wurst LanguageWorker] DEBUG systems.crigges.jmpq3.JMpqEditor - Rebuild complete. Took: 7ms
compiled.j `// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1244 globals // real bj_GAME_STARTED_THRESHOLD=0. // integer bj_MAX_PLAYERS=0 // integer bj_PLAYER_NEUTRAL_VICTIM=0 // integer bj_MAX_PLAYER_SLOTS=0 // integer bj_MAX_SKELETONS=0 // integer bj_MAX_STOCK_ITEM_SLOTS=0 // integer bj_MAX_STOCK_UNIT_SLOTS=0 // integer bj_MAX_ITEM_LEVEL=0 // real bj_TOD_DAWN=0. // real bj_TOD_DUSK=0. // real bj_STOCK_RESTOCK_INITIAL_DELAY=0. // real bj_STOCK_RESTOCK_INTERVAL=0. // integer bj_STOCK_MAX_ITERATIONS=0 // real bj_RESCUE_PING_TIME=0. // integer bj_MAX_QUEUED_TRIGGERS=0 // real bj_QUEUED_TRIGGER_TIMEOUT=0. // real bj_CORPSE_MAX_DEATH_TIME=0. // force bj_FORCE_ALL_PLAYERS=null // boolean bj_slotControlReady=false // timer bj_gameStartedTimer=null // trigger bj_dncSoundsDay=null // trigger bj_dncSoundsNight=null // sound bj_dayAmbientSound=null // sound bj_nightAmbientSound=null // trigger bj_dncSoundsDawn=null // trigger bj_dncSoundsDusk=null // sound bj_dawnSound=null // sound bj_duskSound=null // boolean bj_useDawnDuskSounds=false // boolean bj_dncIsDaytime=false // sound bj_rescueSound=null // trigger bj_stockItemPurchased=null // timer bj_stockUpdateTimer=null // integer bj_stockPickedItemLevel=0 // itemtype bj_stockPickedItemType=null // trigger bj_rescueUnitBehavior=null // boolean bj_rescueChangeColorUnit=false // boolean bj_rescueChangeColorBldg=false // integer bj_queuedExecTotal=0 // timer bj_queuedExecTimeoutTimer=null // trigger bj_queuedExecTimeout=null // integer bj_groupEnumTypeId=0 // player bj_groupEnumOwningPlayer=null // location bj_enumDestructableCenter=null // real bj_enumDestructableRadius=0. // group bj_suspendDecayFleshGroup=null // group bj_suspendDecayBoneGroup=null // timer bj_delayedSuspendDecayTimer=null // trigger bj_delayedSuspendDecayTrig=null // integer bj_livingPlayerUnitsTypeId=0 // integer PLAYER_NEUTRAL_PASSIVE=0 // integer PLAYER_NEUTRAL_AGGRESSIVE=0 // alliancetype ALLIANCE_PASSIVE=null // version VERSION_REIGN_OF_CHAOS=null // racepreference RACE_PREF_HUMAN=null // mapcontrol MAP_CONTROL_USER=null // mapcontrol MAP_CONTROL_RESCUABLE=null // gametype GAME_TYPE_MELEE=null // gametype GAME_TYPE_FFA=null // gametype GAME_TYPE_USE_MAP_SETTINGS=null // gametype GAME_TYPE_ONE_ON_ONE=null // gametype GAME_TYPE_TWO_TEAM_PLAY=null // gametype GAME_TYPE_THREE_TEAM_PLAY=null // gametype GAME_TYPE_FOUR_TEAM_PLAY=null // placement MAP_PLACEMENT_USE_MAP_SETTINGS=null // playerslotstate PLAYER_SLOT_STATE_PLAYING=null // fgamestate GAME_STATE_TIME_OF_DAY=null // playerstate PLAYER_STATE_GIVES_BOUNTY=null // unitstate UNIT_STATE_LIFE=null // playerunitevent EVENT_PLAYER_UNIT_RESCUED=null // playerunitevent EVENT_PLAYER_UNIT_SELL_ITEM=null // limitop LESS_THAN=null // limitop EQUAL=null // limitop GREATER_THAN_OR_EQUAL=null // unittype UNIT_TYPE_HERO=null // unittype UNIT_TYPE_STRUCTURE=null // itemtype ITEM_TYPE_PERMANENT=null // itemtype ITEM_TYPE_CHARGED=null // itemtype ITEM_TYPE_ARTIFACT=null // integer CAMERA_MARGIN_LEFT=0 // integer CAMERA_MARGIN_RIGHT=0 // integer CAMERA_MARGIN_TOP=0 // integer CAMERA_MARGIN_BOTTOM=0 // originframetype ORIGIN_FRAME_GAME_UI=null real Basics_ANIMATION_PERIOD=0. integer array Colors_PLAYER_COLORS_red integer array Colors_PLAYER_COLORS_green integer array Colors_PLAYER_COLORS_blue string array Colors_hexs integer Colors_decs=0 integer ErrorHandling_MUTE_ERROR_DURATION=0 integer ErrorHandling_PRIMARY_ERROR_KEY=0 hashtable ErrorHandling_HT=null boolean ErrorHandling_suppressErrorMessages=false framehandle Framehandle_GAME_UI=null timer GameTimer_gameTimer=null real GameTimer_currentTime=0. boolean MagicFunctions_compiletime=false real Matrices_ZERO44_m00=0. real Matrices_ZERO44_m01=0. real Matrices_ZERO44_m02=0. real Matrices_ZERO44_m03=0. real Matrices_ZERO44_m10=0. real Matrices_ZERO44_m11=0. real Matrices_ZERO44_m12=0. real Matrices_ZERO44_m13=0. real Matrices_ZERO44_m20=0. real Matrices_ZERO44_m21=0. real Matrices_ZERO44_m22=0. real Matrices_ZERO44_m23=0. real Matrices_ZERO44_m30=0. real Matrices_ZERO44_m31=0. real Matrices_ZERO44_m32=0. real Matrices_ZERO44_m33=0. player Player_localPlayer=null integer Printing_DEBUG_LEVEL=0 real Printing_DEBUG_MSG_DURATION=0. string String_charset=null string String_numberset=null hashtable Table_ht=null integer TypeCasting_typecastdata=0 hashtable hashtable_compiletime=null hashtable hashtable_compiletime_133=null integer array Table_nextFree integer Table_firstFree=0 integer Table_maxIndex=0 integer array Table_typeId integer wurst_stack_depth=0 string array wurst_stack code ref_function_init_Real=null code ref_function_init_Integer=null code ref_function_init_Angle=null code ref_function_init_String=null code ref_function_init_Vectors=null code ref_function_init_Player=null code ref_function_init_Basics=null code ref_function_init_MagicFunctions=null code ref_function_init_Table=null code ref_function_init_Playercolor=null code ref_function_init_Maths=null code ref_function_bridge_init_Colors=null code ref_function_init_Destructable=null code ref_function_init_Printing=null code ref_function_init_GameTimer=null code ref_function_init_ErrorHandling=null code ref_function_init_HashList=null code ref_function_init_Matrices=null code ref_function_init_Quaternion=null code ref_function_init_Framehandle=null code ref_function_init_Group=null code ref_function_init_Lightning=null code ref_function_init_WeatherEffects=null code ref_function_bridge_init_TypeCasting=null code ref_function_bridge_init_EventHelper=null code ref_function_init_Hello=null code ref_function_code__startPeriodic_GameTimer=null endglobals function CreatePlayerBuildings takes nothing returns nothing endfunction function CreateUnitsForPlayer0 takes nothing returns nothing local player p = Player(0) call CreateUnit(p, 1214409837, - 126.6, 102.2, 228.600) set p = null endfunction function CreatePlayerUnits takes nothing returns nothing call CreateUnitsForPlayer0() endfunction function CreateAllUnits takes nothing returns nothing call CreatePlayerBuildings() call CreatePlayerUnits() endfunction function InitGlobals takes nothing returns nothing endfunction function Loglevel_getTag takes integer this returns string local integer temp = this if temp == 0 then return "|cffADADADtrace|r" elseif temp == 1 then return "|cff2685DCdebug|r" elseif temp == 2 then return "|cffFFCC00info|r" elseif temp == 3 then return "|cffF47E3Ewarning|r" else return "|cffFB2700error|r" endif endfunction function printLog takes player showTo, integer loglvl, string msg returns nothing local string compositeMsg if Printing_DEBUG_LEVEL <= loglvl then set compositeMsg = Loglevel_getTag(loglvl) + " - " + msg call DisplayTimedTextToPlayer(showTo, 0., 0., Printing_DEBUG_MSG_DURATION, compositeMsg) endif endfunction function Log_error takes string msg returns nothing call printLog(Player_localPlayer, 4, msg) endfunction function compileError takes string msg returns nothing endfunction function hashtable_hasBoolean takes hashtable this, integer parentKey, integer childKey returns boolean return HaveSavedBoolean(this, parentKey, childKey) endfunction function hashtable_hasInt takes hashtable this, integer parentKey, integer childKey returns boolean return HaveSavedInteger(this, parentKey, childKey) endfunction function hashtable_loadBoolean takes hashtable this, integer parentKey, integer childKey returns boolean return LoadBoolean(this, parentKey, childKey) endfunction function hashtable_loadInt takes hashtable this, integer parentKey, integer childKey returns integer return LoadInteger(this, parentKey, childKey) endfunction function hashtable_saveBoolean takes hashtable this, integer parentKey, integer childKey, boolean value returns nothing call SaveBoolean(this, parentKey, childKey, value) endfunction function hashtable_saveInt takes hashtable this, integer parentKey, integer childKey, integer value returns nothing call SaveInteger(this, parentKey, childKey, value) endfunction function real_toInt takes real this returns integer return R2I(this) endfunction function string_getHash takes string this returns integer return StringHash(this) endfunction function error takes string msg, string w__wurst_stackPos returns nothing local integer hash local string stacktraceStr local integer stacktraceIndex local integer stacktraceLimit local string stacktraceStr_1 local integer stacktraceIndex_1 local integer stacktraceLimit_1 local string temp local string temp_1 set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if MagicFunctions_compiletime then call compileError("ERROR: " + msg) else if not ErrorHandling_suppressErrorMessages then set hash = string_getHash(msg) if hashtable_hasInt(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash) then if hashtable_loadInt(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash) + ErrorHandling_MUTE_ERROR_DURATION < GameTimer_currentTime then set temp = msg set stacktraceStr = "" set stacktraceIndex = wurst_stack_depth set stacktraceLimit = 0 loop set stacktraceIndex = stacktraceIndex - 1 set stacktraceLimit = stacktraceLimit + 1 exitwhen stacktraceLimit > 20 exitwhen stacktraceIndex < 0 set stacktraceStr = stacktraceStr + "\n " + wurst_stack[stacktraceIndex] endloop call Log_error(temp + stacktraceStr) call hashtable_saveInt(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash, real_toInt(GameTimer_currentTime)) call hashtable_saveBoolean(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash, false) elseif hashtable_hasBoolean(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash) then if not hashtable_loadBoolean(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash) then call Log_error("|cffFF3A29Excessive repeating errors are being omitted") call hashtable_saveBoolean(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash, true) endif else call Log_error("|cffFF3A29Excessive repeating errors are being omitted") call hashtable_saveBoolean(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash, true) endif else call hashtable_saveInt(ErrorHandling_HT, ErrorHandling_PRIMARY_ERROR_KEY, hash, real_toInt(GameTimer_currentTime)) set temp_1 = "Message: " + msg set stacktraceStr_1 = "" set stacktraceIndex_1 = wurst_stack_depth set stacktraceLimit_1 = 0 loop set stacktraceIndex_1 = stacktraceIndex_1 - 1 set stacktraceLimit_1 = stacktraceLimit_1 + 1 exitwhen stacktraceLimit_1 > 20 exitwhen stacktraceIndex_1 < 0 set stacktraceStr_1 = stacktraceStr_1 + "\n " + wurst_stack[stacktraceIndex_1] endloop call Log_error(temp_1 + stacktraceStr_1) endif endif call I2S(1 / 0) endif set wurst_stack_depth = wurst_stack_depth - 1 endfunction function initCompiletimeState_0 takes nothing returns nothing call InitHashtable() call InitHashtable() set hashtable_compiletime_133 = InitHashtable() set hashtable_compiletime = InitHashtable() call SaveInteger(hashtable_compiletime_133, 1, -1663695754, 13) call SaveInteger(hashtable_compiletime_133, 1, -854572045, 3) call SaveInteger(hashtable_compiletime_133, 1, 349230650, 7) call SaveInteger(hashtable_compiletime_133, 1, -1474492777, 9) call SaveInteger(hashtable_compiletime_133, 1, 789744696, 15) call SaveInteger(hashtable_compiletime_133, 1, -1559655710, 12) call SaveInteger(hashtable_compiletime_133, 1, -943650483, 5) call SaveInteger(hashtable_compiletime_133, 1, -1587459251, 10) call SaveInteger(hashtable_compiletime_133, 1, -1894922563, 8) call SaveInteger(hashtable_compiletime_133, 1, -1676716706, 11) call SaveInteger(hashtable_compiletime_133, 1, 597637742, 14) call SaveInteger(hashtable_compiletime_133, 1, -680649701, 4) call SaveInteger(hashtable_compiletime_133, 1, -671760605, 6) call SaveInteger(hashtable_compiletime_133, 1, -242600650, 0) call SaveInteger(hashtable_compiletime_133, 1, -647782241, 2) call SaveInteger(hashtable_compiletime_133, 1, 1132341824, 1) call SaveStr(hashtable_compiletime_133, 2, 0, "") endfunction function initCompiletimeState takes nothing returns nothing call ExecuteFunc("initCompiletimeState_0") endfunction function Table_saveInt takes integer this, integer parentKey, integer value returns nothing call hashtable_saveInt(Table_ht, this, parentKey, value) endfunction function dispatch_Table_Table_Table_saveInt takes integer this, integer parentKey, integer value, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Table.saveInt", "when calling error in Table, line 43") else call error("Called Table.saveInt on invalid object.", "when calling error in Table, line 43") endif endif call Table_saveInt(this, parentKey, value) set wurst_stack_depth = wurst_stack_depth - 1 endfunction function initializeTable takes string w__wurst_stackPos returns nothing local integer i set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set i = 0 loop exitwhen i > 15 call dispatch_Table_Table_Table_saveInt(Colors_decs, string_getHash(Colors_hexs[i]), i, "when calling saveInt in Colors, line 281") set i = i + 1 endloop set wurst_stack_depth = wurst_stack_depth - 1 endfunction function alloc_Table takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if Table_firstFree == 0 then if Table_maxIndex < 32768 then set Table_maxIndex = Table_maxIndex + 1 set this = Table_maxIndex set Table_typeId[this] = 11 else call error("Out of memory: Could not create Table.", "when calling error in Table, line 7") set this = 0 endif else set Table_firstFree = Table_firstFree - 1 set this = Table_nextFree[Table_firstFree] set Table_typeId[this] = 11 endif set wurst_stack_depth = wurst_stack_depth - 1 return this endfunction function Table_init takes integer this returns nothing endfunction function construct_Table takes integer this returns nothing call Table_init(this) endfunction function new_Table takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set this = alloc_Table("when calling alloc_Table in Table, line 6") call construct_Table(this) set wurst_stack_depth = wurst_stack_depth - 1 return this endfunction function init_Colors takes string w__wurst_stackPos returns boolean local integer tuple_temp local integer tuple_temp_1 local integer tuple_temp_2 local integer tuple_temp_3 local integer tuple_temp_4 local integer tuple_temp_5 local integer tuple_temp_6 local integer tuple_temp_7 local integer tuple_temp_8 local integer tuple_temp_9 local integer tuple_temp_10 local integer tuple_temp_11 local integer tuple_temp_12 local integer tuple_temp_13 local integer tuple_temp_14 local integer tuple_temp_15 local integer tuple_temp_16 local integer tuple_temp_17 local integer tuple_temp_18 local integer tuple_temp_19 local integer tuple_temp_20 local integer tuple_temp_21 local integer tuple_temp_22 local integer tuple_temp_23 local integer tuple_temp_24 local integer tuple_temp_25 local integer tuple_temp_26 local integer tuple_temp_27 local integer tuple_temp_28 local integer tuple_temp_29 local integer tuple_temp_30 local integer tuple_temp_31 local integer tuple_temp_32 local integer tuple_temp_33 local integer tuple_temp_34 local integer tuple_temp_35 local integer tuple_temp_36 local integer tuple_temp_37 local integer tuple_temp_38 local integer tuple_temp_39 local integer tuple_temp_40 local integer tuple_temp_41 local integer tuple_temp_42 local integer tuple_temp_43 local integer tuple_temp_44 local integer tuple_temp_45 local integer tuple_temp_46 local integer tuple_temp_47 local integer tuple_temp_48 local integer tuple_temp_49 local integer tuple_temp_50 local integer tuple_temp_51 local integer tuple_temp_52 local integer tuple_temp_53 local integer tuple_temp_54 local integer tuple_temp_55 local integer tuple_temp_56 local integer tuple_temp_57 local integer tuple_temp_58 local integer tuple_temp_59 local integer tuple_temp_60 local integer tuple_temp_61 local integer tuple_temp_62 local integer tuple_temp_63 local integer tuple_temp_64 local integer tuple_temp_65 local integer tuple_temp_66 local integer tuple_temp_67 local integer tuple_temp_68 local integer tuple_temp_69 local integer tuple_temp_70 local integer tuple_temp_71 set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set tuple_temp = 255 set tuple_temp_1 = 2 set tuple_temp_2 = 2 set Colors_PLAYER_COLORS_red[0] = tuple_temp set Colors_PLAYER_COLORS_green[0] = tuple_temp_1 set Colors_PLAYER_COLORS_blue[0] = tuple_temp_2 set tuple_temp_3 = 0 set tuple_temp_4 = 65 set tuple_temp_5 = 255 set Colors_PLAYER_COLORS_red[1] = tuple_temp_3 set Colors_PLAYER_COLORS_green[1] = tuple_temp_4 set Colors_PLAYER_COLORS_blue[1] = tuple_temp_5 set tuple_temp_6 = 27 set tuple_temp_7 = 229 set tuple_temp_8 = 184 set Colors_PLAYER_COLORS_red[2] = tuple_temp_6 set Colors_PLAYER_COLORS_green[2] = tuple_temp_7 set Colors_PLAYER_COLORS_blue[2] = tuple_temp_8 set tuple_temp_9 = 83 set tuple_temp_10 = 0 set tuple_temp_11 = 128 set Colors_PLAYER_COLORS_red[3] = tuple_temp_9 set Colors_PLAYER_COLORS_green[3] = tuple_temp_10 set Colors_PLAYER_COLORS_blue[3] = tuple_temp_11 set tuple_temp_12 = 255 set tuple_temp_13 = 252 set tuple_temp_14 = 0 set Colors_PLAYER_COLORS_red[4] = tuple_temp_12 set Colors_PLAYER_COLORS_green[4] = tuple_temp_13 set Colors_PLAYER_COLORS_blue[4] = tuple_temp_14 set tuple_temp_15 = 254 set tuple_temp_16 = 137 set tuple_temp_17 = 13 set Colors_PLAYER_COLORS_red[5] = tuple_temp_15 set Colors_PLAYER_COLORS_green[5] = tuple_temp_16 set Colors_PLAYER_COLORS_blue[5] = tuple_temp_17 set tuple_temp_18 = 31 set tuple_temp_19 = 191 set tuple_temp_20 = 0 set Colors_PLAYER_COLORS_red[6] = tuple_temp_18 set Colors_PLAYER_COLORS_green[6] = tuple_temp_19 set Colors_PLAYER_COLORS_blue[6] = tuple_temp_20 set tuple_temp_21 = 228 set tuple_temp_22 = 90 set tuple_temp_23 = 175 set Colors_PLAYER_COLORS_red[7] = tuple_temp_21 set Colors_PLAYER_COLORS_green[7] = tuple_temp_22 set Colors_PLAYER_COLORS_blue[7] = tuple_temp_23 set tuple_temp_24 = 148 set tuple_temp_25 = 149 set tuple_temp_26 = 150 set Colors_PLAYER_COLORS_red[8] = tuple_temp_24 set Colors_PLAYER_COLORS_green[8] = tuple_temp_25 set Colors_PLAYER_COLORS_blue[8] = tuple_temp_26 set tuple_temp_27 = 125 set tuple_temp_28 = 190 set tuple_temp_29 = 241 set Colors_PLAYER_COLORS_red[9] = tuple_temp_27 set Colors_PLAYER_COLORS_green[9] = tuple_temp_28 set Colors_PLAYER_COLORS_blue[9] = tuple_temp_29 set tuple_temp_30 = 15 set tuple_temp_31 = 97 set tuple_temp_32 = 69 set Colors_PLAYER_COLORS_red[10] = tuple_temp_30 set Colors_PLAYER_COLORS_green[10] = tuple_temp_31 set Colors_PLAYER_COLORS_blue[10] = tuple_temp_32 set tuple_temp_33 = 77 set tuple_temp_34 = 41 set tuple_temp_35 = 3 set Colors_PLAYER_COLORS_red[11] = tuple_temp_33 set Colors_PLAYER_COLORS_green[11] = tuple_temp_34 set Colors_PLAYER_COLORS_blue[11] = tuple_temp_35 set tuple_temp_36 = 155 set tuple_temp_37 = 0 set tuple_temp_38 = 0 set Colors_PLAYER_COLORS_red[12] = tuple_temp_36 set Colors_PLAYER_COLORS_green[12] = tuple_temp_37 set Colors_PLAYER_COLORS_blue[12] = tuple_temp_38 set tuple_temp_39 = 0 set tuple_temp_40 = 0 set tuple_temp_41 = 195 set Colors_PLAYER_COLORS_red[13] = tuple_temp_39 set Colors_PLAYER_COLORS_green[13] = tuple_temp_40 set Colors_PLAYER_COLORS_blue[13] = tuple_temp_41 set tuple_temp_42 = 0 set tuple_temp_43 = 234 set tuple_temp_44 = 255 set Colors_PLAYER_COLORS_red[14] = tuple_temp_42 set Colors_PLAYER_COLORS_green[14] = tuple_temp_43 set Colors_PLAYER_COLORS_blue[14] = tuple_temp_44 set tuple_temp_45 = 190 set tuple_temp_46 = 0 set tuple_temp_47 = 254 set Colors_PLAYER_COLORS_red[15] = tuple_temp_45 set Colors_PLAYER_COLORS_green[15] = tuple_temp_46 set Colors_PLAYER_COLORS_blue[15] = tuple_temp_47 set tuple_temp_48 = 235 set tuple_temp_49 = 205 set tuple_temp_50 = 135 set Colors_PLAYER_COLORS_red[16] = tuple_temp_48 set Colors_PLAYER_COLORS_green[16] = tuple_temp_49 set Colors_PLAYER_COLORS_blue[16] = tuple_temp_50 set tuple_temp_51 = 248 set tuple_temp_52 = 164 set tuple_temp_53 = 139 set Colors_PLAYER_COLORS_red[17] = tuple_temp_51 set Colors_PLAYER_COLORS_green[17] = tuple_temp_52 set Colors_PLAYER_COLORS_blue[17] = tuple_temp_53 set tuple_temp_54 = 191 set tuple_temp_55 = 255 set tuple_temp_56 = 128 set Colors_PLAYER_COLORS_red[18] = tuple_temp_54 set Colors_PLAYER_COLORS_green[18] = tuple_temp_55 set Colors_PLAYER_COLORS_blue[18] = tuple_temp_56 set tuple_temp_57 = 220 set tuple_temp_58 = 185 set tuple_temp_59 = 235 set Colors_PLAYER_COLORS_red[19] = tuple_temp_57 set Colors_PLAYER_COLORS_green[19] = tuple_temp_58 set Colors_PLAYER_COLORS_blue[19] = tuple_temp_59 set tuple_temp_60 = 40 set tuple_temp_61 = 40 set tuple_temp_62 = 40 set Colors_PLAYER_COLORS_red[20] = tuple_temp_60 set Colors_PLAYER_COLORS_green[20] = tuple_temp_61 set Colors_PLAYER_COLORS_blue[20] = tuple_temp_62 set tuple_temp_63 = 235 set tuple_temp_64 = 240 set tuple_temp_65 = 255 set Colors_PLAYER_COLORS_red[21] = tuple_temp_63 set Colors_PLAYER_COLORS_green[21] = tuple_temp_64 set Colors_PLAYER_COLORS_blue[21] = tuple_temp_65 set tuple_temp_66 = 0 set tuple_temp_67 = 120 set tuple_temp_68 = 30 set Colors_PLAYER_COLORS_red[22] = tuple_temp_66 set Colors_PLAYER_COLORS_green[22] = tuple_temp_67 set Colors_PLAYER_COLORS_blue[22] = tuple_temp_68 set tuple_temp_69 = 164 set tuple_temp_70 = 111 set tuple_temp_71 = 51 set Colors_PLAYER_COLORS_red[23] = tuple_temp_69 set Colors_PLAYER_COLORS_green[23] = tuple_temp_70 set Colors_PLAYER_COLORS_blue[23] = tuple_temp_71 set Colors_hexs[0] = "0" set Colors_hexs[1] = "1" set Colors_hexs[2] = "2" set Colors_hexs[3] = "3" set Colors_hexs[4] = "4" set Colors_hexs[5] = "5" set Colors_hexs[6] = "6" set Colors_hexs[7] = "7" set Colors_hexs[8] = "8" set Colors_hexs[9] = "9" set Colors_hexs[10] = "A" set Colors_hexs[11] = "B" set Colors_hexs[12] = "C" set Colors_hexs[13] = "D" set Colors_hexs[14] = "E" set Colors_hexs[15] = "F" set Colors_decs = new_Table("when calling new_Table in Colors, line 222") call initializeTable("when calling initializeTable in Colors, line 284") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_Colors takes nothing returns boolean set wurst_stack_depth = 0 return init_Colors("via function reference Colors, line 1") endfunction function alloc_HashMap takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if Table_firstFree == 0 then if Table_maxIndex < 32768 then set Table_maxIndex = Table_maxIndex + 1 set this = Table_maxIndex set Table_typeId[this] = 12 else call error("Out of memory: Could not create HashMap.", "when calling error in HashMap, line 8") set this = 0 endif else set Table_firstFree = Table_firstFree - 1 set this = Table_nextFree[Table_firstFree] set Table_typeId[this] = 12 endif set wurst_stack_depth = wurst_stack_depth - 1 return this endfunction function HashMap_init takes integer this returns nothing endfunction function construct_HashMap takes integer this returns nothing call construct_Table(this) call HashMap_init(this) endfunction function new_HashMap takes string w__wurst_stackPos returns integer local integer this set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set this = alloc_HashMap("when calling alloc_HashMap in HashMap, line 7") call construct_HashMap(this) set wurst_stack_depth = wurst_stack_depth - 1 return this endfunction function init_EventHelper takes string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 call new_HashMap("when calling new_HashMap in EventHelper, line 7") call new_HashMap("when calling new_HashMap in EventHelper, line 8") call new_Table("when calling new_Table in EventHelper, line 9") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_EventHelper takes nothing returns boolean set wurst_stack_depth = 0 return init_EventHelper("via function reference EventHelper, line 1") endfunction function hashtable_saveString takes hashtable this, integer parentKey, integer childKey, string value returns nothing call SaveStr(this, parentKey, childKey, value) endfunction function Table_saveString takes integer this, integer parentKey, string value returns nothing call hashtable_saveString(Table_ht, this, parentKey, value) endfunction function dispatch_Table_Table_Table_saveString takes integer this, integer parentKey, string value, string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 if Table_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Table.saveString", "when calling error in Table, line 61") else call error("Called Table.saveString on invalid object.", "when calling error in Table, line 61") endif endif call Table_saveString(this, parentKey, value) set wurst_stack_depth = wurst_stack_depth - 1 endfunction function initTypecastData takes string w__wurst_stackPos returns nothing set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 call dispatch_Table_Table_Table_saveString(TypeCasting_typecastdata, 0, "", "when calling saveString in TypeCasting, line 12") set wurst_stack_depth = wurst_stack_depth - 1 endfunction function init_TypeCasting takes string w__wurst_stackPos returns boolean set wurst_stack[wurst_stack_depth] = w__wurst_stackPos set wurst_stack_depth = wurst_stack_depth + 1 set TypeCasting_typecastdata = new_Table("when calling new_Table in TypeCasting, line 7") call initTypecastData("when calling initTypecastData in TypeCasting, line 15") set wurst_stack_depth = wurst_stack_depth - 1 return true endfunction function bridge_init_TypeCasting takes nothing returns boolean set wurst_stack_depth = 0 return init_TypeCasting("via function reference TypeCasting, line 1") endfunction function code__startPeriodic_GameTimer takes nothing returns nothing set GameTimer_currentTime = GameTimer_currentTime + Basics_ANIMATION_PERIOD endfunction function init_Angle takes nothing returns boolean return true endfunction function init_Basics takes nothing returns boolean set Basics_ANIMATION_PERIOD = 0.030 return true endfunction function init_Destructable takes nothing returns boolean return true endfunction function init_ErrorHandling takes nothing returns boolean set ErrorHandling_MUTE_ERROR_DURATION = 60 set ErrorHandling_PRIMARY_ERROR_KEY = -1 set ErrorHandling_HT = hashtable_compiletime set ErrorHandling_suppressErrorMessages = false return true endfunction function createFrame takes string typeName, string name, framehandle owner, string inherits, integer createContext returns framehandle return BlzCreateFrameByType(typeName, name, owner, inherits, createContext) endfunction function framehandle_setSize takes framehandle this, real width, real height returns nothing call BlzFrameSetSize(this, width, height) endfunction function init_Framehandle takes nothing returns boolean local framehandle receiver set Framehandle_GAME_UI = BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0) set receiver = createFrame("FRAME", "SetMousePositionCage", Framehandle_GAME_UI, null, 0) call framehandle_setSize(receiver, 0.0001, 0.0001) set receiver = null return true endfunction function timer_start takes timer this, real time, code timerCallBack returns nothing call TimerStart(this, time, false, timerCallBack) endfunction function timer_startPeriodic takes timer this, real time, code timerCallBack returns nothing call TimerStart(this, time, true, timerCallBack) endfunction function init_GameTimer takes nothing returns boolean set GameTimer_gameTimer = CreateTimer() call timer_start(GameTimer_gameTimer, 100000., null) call timer_startPeriodic(CreateTimer(), Basics_ANIMATION_PERIOD, ref_function_code__startPeriodic_GameTimer) return true endfunction function init_Group takes nothing returns boolean call CreateGroup() return true endfunction function init_HashList takes nothing returns boolean return true endfunction function print takes string msg returns nothing call DisplayTimedTextToPlayer(Player_localPlayer, 0., 0., Printing_DEBUG_MSG_DURATION, msg) endfunction function init_Hello takes nothing returns boolean call print("Hello World") return true endfunction function init_Integer takes nothing returns boolean return true endfunction function init_Lightning takes nothing returns boolean return true endfunction function init_MagicFunctions takes nothing returns boolean set MagicFunctions_compiletime = false return true endfunction function init_Maths takes nothing returns boolean return true endfunction function init_Matrices takes nothing returns boolean local real tuple_temp = 0. local real tuple_temp_1 = 0. local real tuple_temp_2 = 0. local real tuple_temp_3 = 0. local real tuple_temp_4 = 0. local real tuple_temp_5 = 0. local real tuple_temp_6 = 0. local real tuple_temp_7 = 0. local real tuple_temp_8 = 0. local real tuple_temp_9 = 0. local real tuple_temp_10 = 0. local real tuple_temp_11 = 0. local real tuple_temp_12 = 0. local real tuple_temp_13 = 0. local real tuple_temp_14 = 0. local real tuple_temp_15 = 0. set Matrices_ZERO44_m00 = tuple_temp set Matrices_ZERO44_m01 = tuple_temp_1 set Matrices_ZERO44_m02 = tuple_temp_2 set Matrices_ZERO44_m03 = tuple_temp_3 set Matrices_ZERO44_m10 = tuple_temp_4 set Matrices_ZERO44_m11 = tuple_temp_5 set Matrices_ZERO44_m12 = tuple_temp_6 set Matrices_ZERO44_m13 = tuple_temp_7 set Matrices_ZERO44_m20 = tuple_temp_8 set Matrices_ZERO44_m21 = tuple_temp_9 set Matrices_ZERO44_m22 = tuple_temp_10 set Matrices_ZERO44_m23 = tuple_temp_11 set Matrices_ZERO44_m30 = tuple_temp_12 set Matrices_ZERO44_m31 = tuple_temp_13 set Matrices_ZERO44_m32 = tuple_temp_14 set Matrices_ZERO44_m33 = tuple_temp_15 return true endfunction function initPlayerArray takes nothing returns nothing local integer i = 0 local integer temp = bj_MAX_PLAYER_SLOTS - 1 loop exitwhen i > temp call Player(i) set i = i + 1 endloop endfunction function init_Player takes nothing returns boolean set Player_localPlayer = GetLocalPlayer() call initPlayerArray() return true endfunction function init_Playercolor takes nothing returns boolean call ConvertPlayerColor(24) call ConvertPlayerColor(25) call ConvertPlayerColor(26) call ConvertPlayerColor(27) return true endfunction function init_Printing takes nothing returns boolean set Printing_DEBUG_LEVEL = 2 set Printing_DEBUG_MSG_DURATION = 45. return true endfunction function init_Quaternion takes nothing returns boolean return true endfunction function init_Real takes nothing returns boolean return true endfunction function string_length takes string this returns integer return StringLength(this) endfunction function init_String takes nothing returns boolean set String_charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" set String_numberset = "0123456789" call string_length(String_numberset) call string_length(String_charset) return true endfunction function init_Table takes nothing returns boolean set Table_ht = hashtable_compiletime_133 return true endfunction function init_Vectors takes nothing returns boolean call Location(0., 0.) return true endfunction function init_WeatherEffects takes nothing returns boolean return true endfunction function initGlobals takes nothing returns nothing set Table_firstFree = 0 set Table_maxIndex = 0 set ref_function_init_Real = function init_Real set ref_function_init_Integer = function init_Integer set ref_function_init_Angle = function init_Angle set ref_function_init_String = function init_String set ref_function_init_Vectors = function init_Vectors set ref_function_init_Player = function init_Player set ref_function_init_Basics = function init_Basics set ref_function_init_MagicFunctions = function init_MagicFunctions set ref_function_init_Table = function init_Table set ref_function_init_Playercolor = function init_Playercolor set ref_function_init_Maths = function init_Maths set ref_function_bridge_init_Colors = function bridge_init_Colors set ref_function_init_Destructable = function init_Destructable set ref_function_init_Printing = function init_Printing set ref_function_init_GameTimer = function init_GameTimer set ref_function_init_ErrorHandling = function init_ErrorHandling set ref_function_init_HashList = function init_HashList set ref_function_init_Matrices = function init_Matrices set ref_function_init_Quaternion = function init_Quaternion set ref_function_init_Framehandle = function init_Framehandle set ref_function_init_Group = function init_Group set ref_function_init_Lightning = function init_Lightning set ref_function_init_WeatherEffects = function init_WeatherEffects set ref_function_bridge_init_TypeCasting = function bridge_init_TypeCasting set ref_function_bridge_init_EventHelper = function bridge_init_EventHelper set ref_function_init_Hello = function init_Hello set ref_function_code__startPeriodic_GameTimer = function code__startPeriodic_GameTimer endfunction function main takes nothing returns nothing local trigger initTrig call initGlobals() call initCompiletimeState() call SetCameraBounds(( - 3328.0) + GetCameraMargin(CAMERA_MARGIN_LEFT), ( - 3584.0) + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), ( - 3328.0) + GetCameraMargin(CAMERA_MARGIN_LEFT), 3072.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 3328.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), ( - 3584.0) + GetCameraMargin(CAMERA_MARGIN_BOTTOM)) call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl") call NewSoundEnvironment("Default") call SetAmbientDaySound("LordaeronSummerDay") call SetAmbientNightSound("LordaeronSummerNight") call SetMapMusic("Music", true, 0) call CreateAllUnits() call InitBlizzard() call InitGlobals() set initTrig = CreateTrigger() call TriggerAddCondition(initTrig, Condition(ref_function_init_Real)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Real.", "when calling error in Real, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Integer)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Integer.", "when calling error in Integer, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Angle)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Angle.", "when calling error in Angle, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_String)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package String.", "when calling error in String, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Vectors)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Vectors.", "when calling error in Vectors, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Player)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Player.", "when calling error in Player, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Basics)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Basics.", "when calling error in Basics, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_MagicFunctions)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package MagicFunctions.", "when calling error in MagicFunctions, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Table)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Table.", "when calling error in Table, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Playercolor)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Playercolor.", "when calling error in Playercolor, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Maths)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Maths.", "when calling error in Maths, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_Colors)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Colors.", "when calling error in Colors, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Destructable)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Destructable.", "when calling error in Destructable, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Printing)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Printing.", "when calling error in Printing, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_GameTimer)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package GameTimer.", "when calling error in GameTimer, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_ErrorHandling)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package ErrorHandling.", "when calling error in ErrorHandling, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_HashList)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package HashList.", "when calling error in HashList, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Matrices)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Matrices.", "when calling error in Matrices, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Quaternion)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Quaternion.", "when calling error in Quaternion, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Framehandle)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Framehandle.", "when calling error in Framehandle, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Group)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Group.", "when calling error in Group, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Lightning)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Lightning.", "when calling error in Lightning, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_WeatherEffects)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package WeatherEffects.", "when calling error in WeatherEffects, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_TypeCasting)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package TypeCasting.", "when calling error in TypeCasting, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_bridge_init_EventHelper)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package EventHelper.", "when calling error in EventHelper, line 1") endif call TriggerClearConditions(initTrig) call TriggerAddCondition(initTrig, Condition(ref_function_init_Hello)) if not TriggerEvaluate(initTrig) then call error("Could not initialize package Hello.", "when calling error in Hello, line 1") endif call TriggerClearConditions(initTrig) call DestroyTrigger(initTrig) set initTrig = null endfunction function InitCustomPlayerSlots takes nothing returns nothing call SetPlayerStartLocation(Player(0), 0) call SetPlayerColor(Player(0), ConvertPlayerColor(0)) call SetPlayerRacePreference(Player(0), RACE_PREF_HUMAN) call SetPlayerRaceSelectable(Player(0), true) call SetPlayerController(Player(0), MAP_CONTROL_USER) endfunction function config takes nothing returns nothing call SetMapName("TRIGSTR_008") call SetMapDescription("") call SetPlayers(1) call SetTeams(1) call SetGamePlacement(MAP_PLACEMENT_USE_MAP_SETTINGS) call DefineStartLocation(0, - 128.0, 64.0) call InitCustomPlayerSlots() call SetPlayerSlotAvailable(Player(0), MAP_CONTROL_USER) call InitGenericPlayerSlots() endfunction`

Maybe it wasn't recently. I had not been updated for a long time. I cant downgrade wurst version to check which build it was.

netVoix commented 4 years ago

I've remembered that i already had this issue before. https://github.com/wurstscript/WurstScript/issues/924 I've tried to use pre 1.29 patch and it works. Need to change smthng in my fork again.