Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD ACTION: Unit Movement Speed
EUD ACTION: Unit Movement Speed
Apr 16 2010, 5:35 pm
By: Septhiroth  

Apr 16 2010, 5:35 pm Septhiroth Post #1



So I've been playing around with the EUD Action Enabler and I'm curious on how I can change the movement speed on a unit. Any Ideas?



None.

Apr 16 2010, 5:43 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

A single unit or all units of a specific type?

If you want to edit all then it depends on if the unit's movement speed is iscript controlled or flingy controlled ...
If you have DatEdit, go to the Flingy tab and find the unit you want. If it says Iscript.bin Control, then there isn't much you can do. If it says flingy, you can change the top speed, acceleration, etc. with EUDs.

For a single unit there are some things I found...
Code
+0x22 - BYTE bFlingyTurnRadius
+0x23 - BYTE bCurrentDirection_?
+0x24 - WORD wFlingyID

+0x27 - BYTE bFlingyMovementType
+0x28 - WORD wCurrentXPos
+0x2A - WORD wCurrentYPos
+0x2C - DWORD dwX_Halt
+0x30 - DWORD dwY_Halt
+0x34 - DWORD dwFlingySpeed
+0x38 - DWORD dwUnknown_38_Speed
+0x3C - DWORD dwUnknown_3C_Speed

+0x48 - WORD wFlingyAcceleration

The +0xXX value is what to add to the base address of that unitnode entry.



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!

Apr 16 2010, 5:47 pm CecilSunkure Post #3



Quote from O)FaRTy1billion[MM]
The +0xXX value is what to add to the base address of that unitnode entry.
What's the base address? Is it in the unitnode table? How do you create a condition for a specific unit:id, say, the first unit placed, using information from this unitnode table? :P



None.

Apr 16 2010, 6:05 pm Septhiroth Post #4



I'm changing it for a 'specific unit' (zealot). So I pressume I need to find the Base Address then add the +0.xXX? to change which speed i want for the zealot?



None.

Apr 16 2010, 6:07 pm O)FaRTy1billion[MM] Post #5

👻 👾 👽 💪

By 'specific unit', I mean "this zealot right here." By 'specific type' I mean "every zealot in the game."

The base address is the address used if you select the unit or any other reference, really ...
Some of it is explained in here: http://www.staredit.net/topic/10471/
http://farty1billion.dyndns.org/EUDDB/?pg=entry&addr=5885096

Or you can do this:
http://whathuh05.googlepages.com/eud.html (Sorry the link is broken .. you have to download the page and then you can look at it.)
The HP found is +0x09, so just subtract 9 and then add the offsets I listed.

... Or you can select it (as player 1 .. I don't know where the current player selection group is) and read the first 4-byte value of this:
http://farty1billion.dyndns.org/EUDDB/?pg=entry&addr=6456552

Zealot is iscript.bin control anyway, so I don't know how it'd be done.

Post has been edited 1 time(s), last time on Apr 16 2010, 6:12 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!

Apr 16 2010, 6:09 pm Septhiroth Post #6



It can be either. (whichever is easier ^.^) Well lets use a probe as an example then. So I find the Base Adress for it first?



None.

Apr 16 2010, 6:18 pm O)FaRTy1billion[MM] Post #7

👻 👾 👽 💪

Ok .. a probe.

http://farty1billion.dyndns.org/EUDDB/?pg=index&st=3
Here are the flingy values in StarCraft's memory.

A probe's (flingy id 42) top speed is 1280 and acceleration is 67.

Top Speed
Acceleration

In EUDTrig, put in the address (with 0x prefix!), the probe flingy ID 42 in Object ID, and the Length (as found in EUDDB) .. which for Top Speed is 4.
Press the down arrow, and you will get your player ID that you need. Set this to 2560 and it will double the speed.

If you need more help, ask questions ... I'll be back in a while. :P (Sorry, I had to rush this post).



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!

Apr 16 2010, 6:45 pm rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

FYI, for a probe, since it's flingy controlled, you can change its individual top speed. dwFlingySpeed for the first unit placed is 59CCDC (see http://farty1billion.dyndns.org/EUDDB/?pg=ref&a=unitnode for all the individual unit variables you can change). I believe it will be recalculated if you ensnare it.

Also note the EUD video found in the stickies (I'm starting on a second slightly better one, but that won't be ready for a while). It should be better than the EUD tutorial on googlepages.


Quote
006D11E8 Ptr to Iscript location
I don't think the iscript location is static, so you can't change it effectively (or at least if you can, it's going to be hard. You can however change whether or not the unit has a "speed" upgrade which on iscript units increases speed by 2 per frame.

Good luck with figuring out how to do that, though, since i'ts a hidden bit, not a byte, and has a lot more stuff.
Quote
+0xDC - DWORD dwStatus
00000001(0x1) - Is Completed
00000010(0x2) - Is on ground? or is it is unit...
00000100(0x4) - Is in air
00001000(0x8) - Checked for disabled, if it is 00001000, then the unit is disabled(/unpowered?)
00010000(0x10) - Checked for burrowing purposes, if it is 00010000, then the unit is burrowed
00100000(0x20) - Unit is entering a building
01000000(0x40) - unit is entering a transport
10000000(0x80) -

00000001(0x100) - Checked for invisible purposes, if it is 00000001, then the unit requires a detector?
00000010(0x200) - checked for cloak?
00000100(0x400) - deals with doodad states? if set, is disabled
00001000(0x800) - Unit cloaking doesn't need energy decrease
00010000(0x1000) - Unit is in unbreakable code section? Cannot receive orders
00100000(0x2000) - Set by nobrkcodestart
01000000(0x4000) -
10000000(0x8000) - cannot attack if set

00000001(0x10000)
00000010(0x20000) - Is a Building?

00000100(0x4000000) - Invincible

00010000(0x10000000) - Speed upgrade
00100000(0x20000000) - cooldown upgrade




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

Apr 16 2010, 6:47 pm O)FaRTy1billion[MM] Post #9

👻 👾 👽 💪

Quote
Also note the EUD video found in the stickies (I'm starting on a second slightly better one, but that won't be ready for a while). It should be better than the EUD tutorial on googlepages.
Sorry, I was just in a rush to find links. :P



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.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Roy