Hello Hiveworkshop,
I'm currently developing a RPG map which is quite large (over 8 MB uncompressed/optimized). It has a lot of code and a lot of imports.
Since yesterday the map went crashing whenever I tested it. The crashing message is this:
I debugged the code and narrowed out where the problem is. It's in this part of the code:
It doesn't matter if I use call CompleteQuest(...) or call AddSpecialEffect(..) or call UnitAddAbility(...) it keeps crashing, if I comment out the call there the crashing stops.
I have no idea what could be causing this crash from happening since even a "normal" like AddSpecialEffect(..) causes it.
Checked out both these lists but none of the things in it seems to be the reason.
http://www.hiveworkshop.com/forums/world-editor-help-zone-98/list-warcraft-iii-crashes-194706/
http://www.wc3c.net/showthread.php?t=80693
Just to narrow the problem down: there is no looping, no excessive calls or anything as the code just works fine without that additional elseif statment.
Could it maybe be the 100+ elseif statements? I know it isn't a real good way to code but it should work I think.
I hope someone can help me out, I'm completely stuck at the moment.
Thanks in advance, also +rep for a solution!
I'm currently developing a RPG map which is quite large (over 8 MB uncompressed/optimized). It has a lot of code and a lot of imports.
Since yesterday the map went crashing whenever I tested it. The crashing message is this:
I debugged the code and narrowed out where the problem is. It's in this part of the code:
JASS:
function Trig_Quest_Finish takes nothing returns nothing
local timer t = GetExpiredTimer()
local qst q = GetTimerData(t)
if ... then
...
...
elseif q.nr == 114 then
call CompleteQuest(q.p, 47, 300, 150, 0)
elseif q.nr == 115 then
call StartQuest(q.p, 48, "Sword and Board", "Old Lady Gibson has asked you to help her out by collecting some boar hides for her. They can be found off any wild boar.", "Collect 7 boar hides ( 0 / 7 collected )", "ReplaceableTextures\\CommandButtons\\BTNRazorback.blp", gg_unit_n03F_0016, false)
elseif q.nr == 116 then
call UpdateQuest(q.p, 48, "Bring the prepared boar hides to Kate in Armadale City", gg_unit_n03J_0203, true)
set QuestMessageKate[q.id] = true
elseif q.nr == 117 then
//call CompleteQuest(q.p, 48, 260, 340, 0) or any other call really
// PROBLEM !
endif
set QuestTextFree[q.id] = true
if not excep then
call ReleaseTimer(t)
call q.destroy()
endif
set e = null
endfunction
It doesn't matter if I use call CompleteQuest(...) or call AddSpecialEffect(..) or call UnitAddAbility(...) it keeps crashing, if I comment out the call there the crashing stops.
I have no idea what could be causing this crash from happening since even a "normal" like AddSpecialEffect(..) causes it.
Checked out both these lists but none of the things in it seems to be the reason.
http://www.hiveworkshop.com/forums/world-editor-help-zone-98/list-warcraft-iii-crashes-194706/
http://www.wc3c.net/showthread.php?t=80693
Just to narrow the problem down: there is no looping, no excessive calls or anything as the code just works fine without that additional elseif statment.
Could it maybe be the 100+ elseif statements? I know it isn't a real good way to code but it should work I think.
I hope someone can help me out, I'm completely stuck at the moment.
Thanks in advance, also +rep for a solution!
Last edited: