Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Simple EUD problem
Simple EUD problem
Jul 14 2009, 10:17 am
By: Jiggaboo  

Jul 14 2009, 10:17 am Jiggaboo Post #1



I would think this would be really simple, but I can't figure out what was wrong. I chatted with zany and we both were stumped.

I found the medics HP address: (Yes I tested/double-checked by changing the value)


I converted it to hex and dropped that into EUD:


Found out what the value for 100hp would be with the given byte offset:
256 x 1 x 100 = 25600

Plugged all that info into my triggers:
Trigger
Players

  • Player 1
  • Conditions

  • Memory at Death Table + 13471 is exactly 25600
  • Actions

  • Display text for current player: 100


  • And had no success. I'm not sure what I'm doing wrong, so .. heres my post :blush:
    Any ideas?

    Oh, and just so you don't get confused (if you download the map) the other triggers were just me testing out other possibilities, in case I just mixed up something stupid.


    Edit:
    It looks like forums triggers are broken?
    Uh..here's a pastebin of the Trigedit version: http://pastebin.com/m3e4b9c68

    Attachments:
    (1)mymap.scx
    Hits: 0 Size: 49.98kb



    None.

    Jul 14 2009, 12:45 pm rockz Post #2

    ᴄʜᴇᴇsᴇ ɪᴛ!

    you input the triggers wrong, or you're using an old version of eudtrig. In any case, the new formula is easier.

    (0x628151-0x58a364)/4=161659.25. .25 signifies 2nd byte, so multiply number by 2^8.

    Memory at 161659 is 25600.



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

    Jul 14 2009, 8:24 pm Jiggaboo Post #3



    Bingo.

    Thanks rockz.
    Question though, are there any other possibilities than ending in .25? (Thus multiplying by 2^8)
    If so, what are they and what do they signify? Is there a list somewhere? Anywhere I can read up about it?

    (Edit)
    Also: Is the 0x58a364 always the same? I always subtract that from my address?

    Post has been edited 1 time(s), last time on Jul 14 2009, 8:52 pm by Jiggaboo.



    None.

    Jul 15 2009, 3:27 am rockz Post #4

    ᴄʜᴇᴇsᴇ ɪᴛ!

    so my power went out after I was about to press submit. This next write is much less informative because I'm angry.

    >are there any other possibilities than ending in .25? (Thus multiplying by 2^8)
    yes, if it ends in .5, you multiply by 2^16, or .75, you multiply by 2^24. Energy is always located on the 3rd bit (.5) and also has extra precision, so the number you actually see is on the 4th bit (.75).

    >Also: Is the 0x58a364 always the same? I always subtract that from my address?
    sort of. For 1.16.1, 0x58a364 is the location of player 1 deaths of terran marine. The deaths condition will read THAT address if it's player 1, unitid 0.



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

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [02:39 am]
    Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
    [2026-7-16. : 6:28 am]
    NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
    [2026-7-16. : 6:26 am]
    NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
    [2026-7-16. : 6:25 am]
    NudeRaider -- Symmetry
    Symmetry shouted: Ohhh imagine a SC map that could delete itself
    not the map, the editor
    [2026-7-16. : 2:28 am]
    Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
    [2026-7-16. : 2:28 am]
    Symmetry -- Ohhh imagine a SC map that could delete itself
    [2026-7-15. : 8:51 pm]
    NudeRaider -- Symmetry
    Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
    yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
    [2026-7-15. : 4:10 am]
    Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
    [2026-7-15. : 2:19 am]
    Symmetry -- NudeRaider
    NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
    Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
    [2026-7-14. : 11:43 pm]
    Ultraviolet -- let's take each other's clothes off :teach:
    Please log in to shout.


    Members Online: jun3hong