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.
[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.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy