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.
[08:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: 3oliviac7223we9