Staredit Network

Staredit Network -> Concepts -> TRIGGERS OF GOD
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-30 at 11:40:43
QUOTE
Just a little help with the memcalc and byte editing... sorry if this question's been asked already but this seems important enough..

Ok so say I want to edit shields for a unit or whatever. I run memcalc and it tells me I need to edit the first byte - XX 00 00 00.

I think I understand that if you: SetDeaths(P8, SetTo, 1, -29572);

This should make: 01 00 00 00.

So here's the questions..

1. How then do we easily edit the second byte, 00 xx 00 00
2. The third, 00 00 xx 00
3. And the fourth, 00 00 00 xx?
[right][snapback]273959[/snapback][/right]


For 1-byte values, you're best off using Aresnal III to find the default value and then add or subtract from it.

If you want to modify, say, take away shields from a Dark Templar, the you're modifying this byte:

01
01 00 01.

If you set deaths to 0, the byte becomes

00
00 00 00

and you end up taking away shields from Corsairs and Dark Archons too.

However, if you find the default byte value is 01 (yes shields) you find you need to subtract 100(hex) from the bytes to zero it and not affect any other bytes. Use Windows Calculator to find 100 in hex is 256 in dec, so subtract 256 to make the byte

01
00 00 01

To edit, say the 3th byte and leave the other alone on a byte that maybe looks like this (highlighted byte is the Ground Weapon of a Firebat:

DEATHS OF -29572 FOR PLAYER 1:

10 82
1A 82

Waaait, where'd I get that data?
Each other byte is a unit too, (Wraith,Science Vessel,Firebat,Dropship) with a default groundweap. You can find its hex value in the list. (82 is None)

Let's say I wanted to give my firebat Yamato Gun. Find it in this byte value list.

QUOTE
1E - Yamato Gun


So we want this byte:

10 82
1E 82

but have this

10 82
1A 82

So, we need to add 4 to byte 3 (40000 in hex). Use Windows Calculator to convert this to 262144. Your trigger then looks like this to give a Firebat a Yamato Gun as a ground weapon.

SetDeaths(P1,Add,262144,-29572);

Get it?

OFFT: W00t 1450 hits in 13 hrs, MemCalc is popular tongue.gif w00t.gif
Report, edit, etc...Posted by Ninebreaker on 2005-07-30 at 11:47:14
Err, either memcalc isn't working right now or its still flooded from the korean sites...
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-30 at 12:06:30
It's the server.. disgust.gif
Report, edit, etc...Posted by Carlsagan43 on 2005-07-30 at 12:07:19
Hey I tested my method for using higher Player numbers to wrap around to P9-12 and it did work for lower unit IDs. But for some reason, It won't accept it for higher Unit Ids. Guess we better keep looking.
Report, edit, etc...Posted by UED77 on 2005-07-30 at 12:09:45
Shouldn't we contact Blizzard about this stuff before it spreads uncontrollably around B.net (although we might be a little bit late for that)?

I am leaning towards contacting them, but I might be persuaded to think otherwise.

UED77
Report, edit, etc...Posted by sarami on 2005-07-30 at 12:39:18
oh my. I've never thought about flooding traffic on your calculator. Sorry for you and i told my team members not to make too much traffics. (but we have never massively(?) refreshed or did something like that, and not a stupid site sad.gif )

I appreciate your ... eh.. interest(?) on my site, Team[ZiF]. if you have anything you want to us, maill or PM me. I'll immediately take certain actions. Sorry again (wasn't offence but interest)

(and i've already linked SEN in locked threads on my site!)
Report, edit, etc...Posted by Carlsagan43 on 2005-07-30 at 12:52:52
OK here is a map proving that my method does work.
Report, edit, etc...Posted by KrAzY on 2005-07-30 at 12:55:57
QUOTE(DT_Battlekruser @ Jul 30 2005, 12:52 AM)
Make sure you match edit type and object type.  If you're editing a units.dat offset, pick a UNIT object.

Jeez, it's ~6PM in Korea and Korean hits are flooding MemCalc.

See you guys at like 10AM.

[right][snapback]273930[/snapback][/right]


I got some ideas that only WE only can use:

Put in the specific IP Addresses that can access the MemCalc.
OR
Making usernamers for us SEN'ers to control the MemCalc, delete any other unknown Users.
Report, edit, etc...Posted by Deathknight on 2005-07-30 at 13:04:48
user posted image
user posted image
user posted image
user posted image
Report, edit, etc...Posted by UED77 on 2005-07-30 at 13:38:59
That's a sweet version of Überation! ETA?

UED77
Report, edit, etc...Posted by MapUnprotector on 2005-07-30 at 13:52:13
Legacy said Uberedit is hours ahead of Memcalc, so I guess memcalc will be pretty "obsolete" after it comes out.
Report, edit, etc...Posted by Carlsagan43 on 2005-07-30 at 13:53:43
Here is another test. High Player values can be detected, but not set.
Report, edit, etc...Posted by SiKawticPaladin on 2005-07-30 at 14:05:26
Uberation looks sweet smile.gif

Gj DK, LegacyWeapon, and DTBK for all your uber strides in these extended trigs... You guys are awesome ^_^
Report, edit, etc...Posted by pimpinelephant on 2005-07-30 at 14:34:34
i have a question about the whole byte thing:

so lets say its a 2 byte value that u need to change, so we would need to change 00 00 00 00, if in order to change the second byte, 00 00 00 00, we would set deaths to 256, but how would i change both the first and the second?
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-30 at 14:50:51
QUOTE(sarami @ Jul 30 2005, 09:39 AM)
oh my. I've never thought about flooding traffic on your calculator. Sorry for you and i told my team members not to make too much traffics. (but we have never massively(?) refreshed or did something like that, and not a stupid site  sad.gif  )

I appreciate your ... eh.. interest(?) on my site, Team[ZiF]. if you have anything you want to us, maill or PM me. I'll immediately take certain actions. Sorry again (wasn't offence but interest)

(and i've already linked SEN in locked threads on my site!)
[right][snapback]274104[/snapback][/right]


No, the number of hits is not overloading the server. The whole f2o.org server went down for who knows why.

QUOTE
so lets say its a 2 byte value that u need to change, so we would need to change 00 00 00 00, if in order to change the second byte, 00 00 00 00, we would set deaths to 256, but how would i change both the first and the second?


to, say add 1 to both bytes, you add 257 to the death count (101 in hex).
Report, edit, etc...Posted by SiKawticPaladin on 2005-07-30 at 14:52:46
To change the look of a unit, what do you use? "graphic" on the unit your changing? I tried this and it didn't work... meh.

Also, I'm changing portraits on one of my units, but the portrait it will turn into seems completely random... 111111 gave my unit the ghost portrait, and 160000 gave him the firebat... anyone know what's up?

Also, to change a unit's speech... would you have to go through and change each "annoyed" sound and etc 1 by 1? or is there something you can use to universally switch a unit's speech? How bout something to change a unit's appearance, speech, portrait, wireframe and weapons all at the same time, say... a marine -> ghost, without having anything you do to that "marine/ghost" effecting the ghost... because that would be good.
Report, edit, etc...Posted by hynk on 2005-07-30 at 15:04:12
QUOTE
Can someone tell me the formula for this stuff? Like, for example, how did you get this, -29573?
Without using MemCalc.
Report, edit, etc...Posted by @:@ on 2005-07-30 at 15:08:55
QUOTE(DT_Battlekruser @ Jul 30 2005, 10:40 AM)
To edit, say the 3th byte and leave the other alone on a byte that maybe looks like this (highlighted byte is the Ground Weapon of a Firebat:

DEATHS OF -29572 FOR PLAYER 1:

10 82 [/color]1A 82

Waaait, where'd I get that data?
Each other byte is a unit too, (Wraith,Science Vessel,Firebat,Dropship) with a default groundweap.  You can find its hex value in the list. (82 is None)

Let's say I wanted to give my firebat Yamato Gun.  Find it in this byte value list.
So we want this byte:

10 82
1E 82

but have this

10 82
1A 82

So, we need to add 4 to byte 3 (40000 in hex).  Use Windows Calculator to convert this to 262144.  Your trigger then looks like this to give a Firebat a Yamato Gun as a ground weapon.

SetDeaths(P1,Add,262144,-29572);

Get it?

OFFT: W00t 1450 hits in 13 hrs, MemCalc is popular tongue.gif w00t.gif

[right][snapback]274059[/snapback][/right]


OK Dt_Kruser

Good work.

Where do you get the bytes for the Units

10 82
1A 82

Your memcalc only tells what location it is... I think I am getting this byte thing now... smile.gif

Your example of the firebat gives Irradicate to the Hero firebat... Totally wrong, bad example please fix smile.gif
Report, edit, etc...Posted by pimpinelephant on 2005-07-30 at 15:09:38
QUOTE(SiKawticPaladin)
I'm changing portraits on one of my units, but the portrait it will turn into seems completely random... 111111 gave my unit the ghost portrait, and 160000 gave him the firebat... anyone know what's up?

is there maybe a list of what to set the deaths to in order to get a specific unit's portrait?
Report, edit, etc...Posted by hynk on 2005-07-30 at 15:14:31
QUOTE(AnbuAssassin @ Jul 29 2005, 11:32 PM)
I'm still having the simplistic error of StarForge crashing on me.
Normally I can open SF and open maps, however I cannot view the triggers maps with the newer 'extended triggers', SF crashes.

After replacing 'Actions.lst' & 'Conditions.lst' with the files DK provided SF wouldn't open at all.

Afte further testing, uninstalls, reinstalls, I've found that the problem seems to only occur after I replace 'Actions.lst', I keep recieving the error :

'Run-Time Error '9'  Substring Out of Range'
Could anyone help me out please? confused.gif
[right][snapback]273778[/snapback][/right]
After replacing the "Actions.lst" and "Conditions.lst", restart your computer, that should make it work. biggrin.gif
Report, edit, etc...Posted by pimpinelephant on 2005-07-30 at 15:24:19
is there a way to have more than just one combined unit? like what if i want to have all players have a uploadable tank?
Report, edit, etc...Posted by Doodle77(MM) on 2005-07-30 at 15:31:20
There needs to be a whole big refrence for this topic wich contains tutorials.. but then again if that editor is coming out soon we wont need one.
Report, edit, etc...Posted by DiscipleOfAdun on 2005-07-30 at 15:42:15
Ohh, that looks great DK. Thanks's for the shots. If you have any questions about the .dat entries, I'd be more then glad to answer. After having found where they are, I looked into what some of the unknowns really do, so if you need help, I'd love to.

Very smart thing, telling Blizzard. Unfortunately, I think that if they really want to, they will make a patch that prevents this. And a patch like that would remove the extended player and unit capabilities. I've already come up a theoretical code that would stop this.

Oh, has anyone been able to change player color yet?
Report, edit, etc...Posted by Syphon on 2005-07-30 at 16:21:17
I'm making a mpa that would greatly benifit from this, could you tell me what to do to make 3 firebats, one cloakable, three marines, one cloakable, three zealots, one cloakable, and three ghosts, one permantently cloaked. Would this be possible or would it just make the map too big for batle.net, if not can you halp me with the triggers, or when is the trigger editor going to be done, will it work for this?
Report, edit, etc...Posted by pimpinelephant on 2005-07-30 at 16:24:23
you could try the MemCalc http://homework.f2o.org/memcalc.py
Next Page (21)