Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Memory condition crash....
Memory condition crash....
Jun 15 2009, 10:44 pm
By: Morphling  

Jun 15 2009, 10:44 pm Morphling Post #1



Any reason why this crashes:

Trigger("Player 1"){
Conditions:
Memory(12737, Exactly, 0);
Memory(12738, Exactly, 0);
Memory(12734, Exactly, 0);
Memory(12733, Exactly, 0);

Actions:
Set Deaths("Current Player", "Vespene Geyser", Set To, 0);
Set Deaths("Current Player", "Mineral Field (Type 3)", Set To, 0);
Set Deaths("Current Player", "Vespene Tank (Terran Type 1)", Set To, 0);
Set Deaths("Current Player", "Vespene Tank (Terran Type 2)", Set To, 0);
Preserve Trigger();
Comment("");
}

//-----------------------------------------------------------------//


and this does not crash:

Trigger("Player 1"){
Conditions:
Deaths("Player 6", "ID: 1061", Exactly, 0);
Deaths("Player 7", "ID: 1061", Exactly, 0);
Deaths("Player 3", "ID: 1061", Exactly, 0);
Deaths("Player 2", "ID: 1061", Exactly, 0);

Actions:
Set Deaths("Current Player", "Vespene Geyser", Set To, 0);
Set Deaths("Current Player", "Mineral Field (Type 3)", Set To, 0);
Set Deaths("Current Player", "Vespene Tank (Terran Type 1)", Set To, 0);
Set Deaths("Current Player", "Vespene Tank (Terran Type 2)", Set To, 0);
Preserve Trigger();
Comment("");
}

//-----------------------------------------------------------------//


The memory condition trigger crashes while the regular eud trigger does not even though they detect the exact same memory.



None.

Jun 16 2009, 2:45 am Roy Post #2

An artist's depiction of an Extended Unit Death

I would guess that the memory condition format has a few bugs to be fixed; I'm assuming you're doing this through the text trigger editor, because the condition in classic trigedit is just a hassle.

If I had to guess, I would say that the memory condition never defines where to start on the table. Of course, if anyone's had any successes using the condition, this entire post is garbage.

Why not just stick to the original EUD format?




Jun 16 2009, 3:32 am rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Try using starforge. if it works, save one with starforge, and one with memory(), then compare the hex of the triggers.

@roy
Original EUD format isn't useable in scmdraft trigedit, only in classic trigedit. If you try to edit with trigedit, you end up with "invalid unit".



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jun 16 2009, 2:47 pm Morphling Post #4



Weird. I opened up starforge and when I try to open up the trigger with the memory condition in it, starforge crashed. So I deleted the trigger and redid the trigger in starforge exactly how it was before, played the map, and it works fine now.

Edit: Figured out what went wrong. If you open up the text editor in scmdraft and compile it will crash starcraft and starforge when you open that trigger up.
The memory condition still fails us! :-(

Post has been edited 3 time(s), last time on Jun 16 2009, 3:52 pm by Morphling.



None.

Jun 16 2009, 8:05 pm Ahli Post #5

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Memory condition works in classic trigedit. But the same condition compiled with text based trigedit causes starcraft to crash after mission briefing. :<




Jun 17 2009, 4:10 pm flagitious Post #6



Trigedit, generates the wrong condition code in the chk file, the code is supposed to be 15 for deaths, (see http://www.staredit.net/wiki/scenario.chk_format ), but instead it is 24, which is an invalid code, thus causing a crash when it is checked



None.

Jun 17 2009, 5:33 pm scwizard Post #7



Damnit SI :(

This is why my map doesn't use EUDs, I'm paranoid about stuff like this happening. I still haven't completely forgiven SI for the last time SCMDraft corrupted my EUD using map.



None.

Jun 17 2009, 7:15 pm flagitious Post #8



Anyone know how to contact SI or have access to the source? This would probably be a quick fix, and I know alot of people (including myself really would like to use trigedit along with EUDs).



None.

Jun 17 2009, 8:52 pm scwizard Post #9



No and no.

He'll sometimes sign onto MSN (which I have), but in terms of getting bugs fixed faster it's useless.

The biggest grudge I have against SI is not releasing the source actually...

EDIT: My sources tell me that he's on AIM a lot. However having stuff fixed faster by bugging him is useless in my exp.
Also my sources are nagging me to nag him, so I will.

Post has been edited 2 time(s), last time on Jun 17 2009, 10:01 pm by scwizard.



None.

Jun 17 2009, 11:42 pm flagitious Post #10



Well it is his program, he has full rights to it and owes us nothing (it is us that owe him). But it is also natural for us to want things.

In the meantime you can open up the chk using winmpq and a hex editor and do a search and replace to fix all memory conditions.



None.

Jun 18 2009, 12:13 am scwizard Post #11



http://www.stormcoast-fortress.net/temp/TrigEdit.rar

I take back everything bad I said about you SI, ilu <3

EDIT: He told me to test if this works before spreading it around. But I'm to lazy to. Someone else test it.



None.

Jun 18 2009, 12:30 am Ahli Post #12

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

WORKS 4 ME... (no momeory condition related Starcraft crash, if triggers were compiled by trigedit)

now I made the triggers to get the EUD to check if the unit has a movement target destination within a few minutes...
-> 117 & 118 are the units I searched...

SI <3
Today is a big day for Starcraft Mapmaking...




Jun 19 2009, 11:21 pm flagitious Post #13



I love you too SI, but note that I loved you before you were so fast with that bug fix



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Roy