Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD/Byte Formula
EUD/Byte Formula
Sep 12 2008, 7:23 pm
By: Pigy_G  

Sep 12 2008, 7:23 pm Pigy_G Post #1



Okay guys I'm really trying hard to learn EUD's so please don't tell me I'm wasting my time...

Couple of things, first What is the fourmula for Byte Offset in EUDtrig, I thought it was somthing like x16 for the first one or somthing... Im not sure. Second when I make a trigger using the adress for Mouse X location, like how do I make it so if it's at a certain spot somthing happens.. All my trigger says is Deaths(P1, Exactly, 1, 27618);
Third, ANY Info on EUD's and how to get it to work would be greatly appriciated...

Thanks.



None.

Sep 12 2008, 7:56 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

Quote from Pigy_G
Couple of things, first What is the fourmula for Byte Offset in EUDtrig, I thought it was somthing like x16 for the first one or somthing... Im not sure.
What exactly are you asking? What to multiply a value by to read one of the values?

Quote from Pigy_G
Second when I make a trigger using the adress for Mouse X location, like how do I make it so if it's at a certain spot somthing happens.. All my trigger says is Deaths(P1, Exactly, 1, 27618);
Third, ANY Info on EUD's and how to get it to work would be greatly appriciated...
Mouse coordinates are based on the top left corner of the screen (not the map) and is measured in pixels. Your trigger, Death(P1, Exactly, 1, 27618);, will run if your cursor is one pixel away from the left of the screen. Usually when detecting something with cursor position you want an At Least/At Most pair for a range of values, rather than a specific value.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Sep 12 2008, 8:05 pm Pigy_G Post #3



I mean Like, You know all the 00's at the bottom? Dont you have to multiply somthing according to them?



None.

Sep 12 2008, 9:02 pm O)FaRTy1billion[MM] Post #4

👻 👾 👽 💪

x1 x256 x65536 x16777216
Though it is difficult because other values may interfere... Like if you wanted to see if the third byte is 3, you'd multiply 3 by 65536. But that only works if the other 3 bytes are 0. You can ignore bytes to the left of what you are reading with At Least/At Most, but not bytes to the right.

With my example of checking if the third byte is 3...
To ignore values to the left of it, you would do At Least 3*35536 and At Most (3+1)*65536-1. To work around bytes to the right of it, you would need to check every possible case. So if it was, say, pauses (possible values 0 to 3), you'd need 4 triggers to check the 4 possible values pauses could be.

Trigger 1: 0xnn nn 03 00
At Least 196608
At Most 262143

Trigger 2: 0xnn nn 03 01
At Least 16973824
At Most 17039359

Trigger 3: 0xnn nn 03 02
At Least 33751040
At Most 33816575

Trigger 4: 0xnn nn 03 03
At Least 50528256
At Most 50593791

Post has been edited 2 time(s), last time on Sep 12 2008, 9:13 pm by FaRTy1billion.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Sep 12 2008, 9:03 pm Pigy_G Post #5



Thanks anyways

EDIT: It's giving me the same exact number for Mouse Y Position.. wtf?

Post has been edited 1 time(s), last time on Sep 12 2008, 9:15 pm by Pigy_G.



None.

Sep 12 2008, 9:17 pm O)FaRTy1billion[MM] Post #6

👻 👾 👽 💪

Mouse Y should have the same number, but be Player 2 instead of Player 1.
Remember that player and Unit ID lose meaning with EUDs, they just become numbers.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Sep 12 2008, 9:18 pm Pigy_G Post #7



Ah it is, but can I make it so I have Mouse Y and X work for player 1?

EDIT: This is exceedingly confusing. However I shall not give up.

EDIT: WOW It wont work in multiplayer? There go's my f*cking idea



None.

Sep 12 2008, 9:19 pm O)FaRTy1billion[MM] Post #8

👻 👾 👽 💪

Mouse position is not by player, it is for the current player (which means that it wont work properly in multiplayer maps.)

A lot of things don't work in multiplayer because the values are local. I.e., they only effect you (like screen position, cursor position, etc.)
If you are doing something like center view, display text message, show portrait, or minimap ping, then you can use these local values in EUD conditions for multiplayer maps as those actions are also local. If you do an action that isn't local (like create/kill/move/remove a unit), then you will desync (drop).

Post has been edited 1 time(s), last time on Sep 12 2008, 9:24 pm by FaRTy1billion.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Sep 12 2008, 9:26 pm Pigy_G Post #9



I was thinking of making a eight player mini game map where you're an arbiter with recall, you recall anywhere to teleport there and use stasis to kill people, I thought I might be able to use mouse position and unit energy, Unfourntunatly I now realize that you can't do multiplayer mouse position :(

Thanks for all your help farty.



None.

Sep 12 2008, 9:34 pm O)FaRTy1billion[MM] Post #10

👻 👾 👽 💪

Hmm. Mouse position wouldn't work well there anyway because it is based on the top left corner of the screen, not the map.
And also even if you could detect where a recall existed, you couldn't center a location there.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Sep 12 2008, 9:45 pm Pigy_G Post #11



Why not? You could have units already at the possible locations.



None.

Sep 12 2008, 9:54 pm O)FaRTy1billion[MM] Post #12

👻 👾 👽 💪

I suppose if it is static locations ...



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
Please log in to shout.


Members Online: Ultraviolet, Roy, NudeRaider