Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: change weapons with euds
change weapons with euds
May 11 2008, 10:55 am
By: I)eathBringer  

May 11 2008, 10:55 am I)eathBringer Post #1



I know that it's possible changing weapons of a unit with euds.
How can I find the offsets with artmoney?



None.

May 11 2008, 11:09 am matefkr Post #2



If you are using 1.12.b than see actions there, or if you wanna use 1.15.1 exe, ask farty to release an eud action enabled version of his trigger plug, or use that exe, with the mod, or with a modified orders.dat, where you change computer guard to emulate guard normal. Also check farty's EUDDB for 1.15.1 and 1.15.2 data memory offsets (essentially the same).



None.

May 11 2008, 11:52 am Brontobyte Post #3



Wow that ubecalc2 was awesome! I know FaRTy has a program, EUD Trig that does this, with the exception of actual options and selecting which unit and what not. Is their a program "ubecalc2" that I can download or is it just for the website only?



None.

May 11 2008, 1:52 pm matefkr Post #4



No, it is not downloadable. Try to find LegacyWeapon, and ask him to provide you the offset database, then with some basic programming knowledge (pascal or delphi for example) you can make your own.



None.

May 11 2008, 1:54 pm I)eathBringer Post #5



how can I do to make vultures shooting plagues?



None.

May 11 2008, 2:07 pm matefkr Post #6



I assume you can make EUD trigs, if you have the right offset. After that depending on your version, you find the units.dat ground weapon offest for the unit (vulture). make a set death action according to the offset, but you have to know something: if you divide the offset you have with 4, you have to remember the remainder (0,1,2,3). this means, that 0, is on the first byte of the dword (4 byte long memory block, you can only write four byte long blocks with EUD action), or if 1, than it is the second and so one. Lets assume, that the remainder is 1, so if you want to give the 1 weapons.dat id for that unit (for ground weapon), than your eud action will set the memory block to 256, not to 1, or if the remainder is 2, than you have to use the value 256*256*1 and so on. But if you do so, you will give the weapon id 0 for the previous unit id (unit just before the vulture), and also for the unit after the vulture, and after that unit again (if vultures ground weapon is on the 2-nd byte of dword).So you have to know the weapon id of those units, and fallowing the rule before you compute the appropriate value (just if you want to set weapon for those units (actually, you want to hold the old values)), than add up those values (including for the vulture), and the result will give you the value you want to place in your eud action. It is because the weapon id for ground weapon is only 1 byte long.

There is a new function in the posted exe before, so you can write addresses directly, no need calculation, just input the address, and the value (and the function number). there is 12 function for the death action handler (the old set to, add, substract, and 9 other, such as jump to address, write to direct address, logical xor, and, or (with direct address); but i forgotten which is which, so if you want i recheck them). I may make a pather one (for battle.net usablity) if Farty didn't release his one.

You know what? Tell me what version you want, and i make you one, if you think its hard to do.

Post has been edited 2 time(s), last time on May 11 2008, 2:26 pm by matefkr.



None.

May 11 2008, 6:21 pm DT_Battlekruser Post #7



You people are going to convince me to rewrite MemCalc as a Java application..



None.

May 11 2008, 9:28 pm Brontobyte Post #8



Quote from DT_Battlekruser
You people are going to convince me to rewrite MemCalc as a Java application..

Go for it. I will test/download... :D



None.

May 12 2008, 4:53 pm I)eathBringer Post #9



thx a lot, folks



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6: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.
[2024-4-26. : 6: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
[2024-4-26. : 6: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?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy, C(a)HeK