HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Weird Crash

03-02-2009, 11:24 PM#1
Blacktastic
For some reason when I uncomment the highlighted code, this spell will crash my map. If I comment it out, everything works beautifully.

What gives o.o

Expand JASS:
03-02-2009, 11:31 PM#2
xombie
...the highlighted code is over half of the script.
03-02-2009, 11:35 PM#3
darkwulfv
I think he accidently left the highlight open, since only one line has a comment.
03-03-2009, 12:03 AM#4
Bobo_The_Kodo
Becaues you're causing a infinite loop of orders.
03-03-2009, 02:32 AM#5
Blacktastic
Whoops, the highlighter doesn't like comments apparently.

And how is it causing an infinite order loop?

Edit: Found the problem, it wasn't anything you guys could have figured sadly since it was a flag I forgot to put on the ability so the casting system would ignore it. X_X
03-03-2009, 02:38 AM#6
xombie
Yes, where is the infinite loop order?

Blackstastic, your problem is most likely happening elsewhere in your map script. It sounds like you're issuing an order which triggers some event that issues another order, which triggers, which orders, etc.
03-03-2009, 02:59 AM#7
Blacktastic
Was nothing like that. My casting system will fire off unless the ability has a 0 cast time or non-existant ID. I forgot to set either, so a string was trying to reference an attached table without it being there. Instant Crash
03-03-2009, 03:14 AM#8
Bobo_The_Kodo
? How does it crash

do you use execute func?
Shouldnt use execute func

also, get war3err so you dont get crashed while testing
03-03-2009, 04:16 AM#9
darkwulfv
...

Quote:
Edit: Found the problem, it wasn't anything you guys could have figured sadly since it was a flag I forgot to put on the ability so the casting system would ignore it. X_X
Quote:
Was nothing like that. My casting system will fire off unless the ability has a 0 cast time or non-existant ID. I forgot to set either, so a string was trying to reference an attached table without it being there. Instant Crash

AKA problem solved. Additionally, he highlighted the trouble code and explained what happened when uncommented, and it's obviously not ExecuteFunc(...).

And war3err only works on v1.21 of Wc3. He'd either have to not play b.net or have a dual install.
03-03-2009, 08:07 AM#10
Blacktastic
Bnet doesn't auto update WE. I just rolled it back a verison XD.
03-03-2009, 11:13 AM#11
darkwulfv
Yes but war3err is a Grimoire operation that runs in-game. If you try to run it with a v1.22 wc3, regardless of your WE version, the map won't run properly, if at all.
03-03-2009, 05:35 PM#12
Blacktastic
I meant that you don't need a dual install. 1.22 WC3 and 1.21 WE work in unison just fine.
03-03-2009, 09:09 PM#13
xombie
Quote:
Originally Posted by Blacktastic
Was nothing like that. My casting system will fire off unless the ability has a 0 cast time or non-existant ID. I forgot to set either, so a string was trying to reference an attached table without it being there. Instant Crash

...so then this problem was entirely based on code that you didn't post. Well I'm glad you solved your problem.
03-03-2009, 09:40 PM#14
Blacktastic
Kind of sort of. It was actually in the object editor. But indirectly it was the code, yes.