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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy, RIVE, IlyaSnopchenko