Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD Text display
EUD Text display
Dec 17 2008, 9:12 am
By: bugmenot  

Dec 17 2008, 9:12 am bugmenot Post #1



Hello all, I have been able to detect text EUD's for this is patch, however on one word I am unable detect properly and was wondering if I could maybe get some assistance.

The word is NOW On (Before you say anything about me having to also include the name (or a name) like <from Me:NOW On I know this to be true, just ignore this and just work with the word "NOW On" by it's alone)

I have the offset that holds this text, it's 16 bytes (including the space) which means the n (lower case) is carried over to the next offset in the last byte (would be 6E 00 00 00 but SC read bytes backwards so it's 00 00 00 6E) I know for each new 4 bytes you go to the next player.

So it looks like this:

Offset:1D 4E 4F 08 57 20 07 4F
Offset:6E 00 00 00

But again remember SC read bytes backwards so it must be inputted like:

Offset:08 4F 4E 1D 4F 07 20 57
Offset:00 00 00 6E

08 4F 4E 1D = 139415069 (Decimal)
4F 07 20 57 = 1325867095 (Decimal)
00 00 00 6E = 110 (Decimal)

So I have for my trigger:

Condition:
Deaths(P11, Exactly, 139415069, 15586);
Deaths(P12, Exactly, 1325867095, 15586);
Deaths(P1, Exactly, 110, 15587); (It must go back to Player1 and up the Unit ID by 1)

Action:
DisplayText("All Systems Go", 4);

However this isn't working, and I've been able to get it to work for other words so what is problem? (Again ignore the name not being in text)

Sorry for bad English

Post has been edited 1 time(s), last time on Dec 17 2008, 9:25 am by bugmenot.



None.

Dec 17 2008, 7:37 pm ClansAreForGays Post #2



2 of your characters don't even register on firefox for me. Maybe that's why.




Dec 17 2008, 8:12 pm Heinermann Post #3

SDE, BWAPI owner, hacker.

1. The word "NOW On" is invalid.
2. Starcraft does not read bytes backwards.

Quote
So it looks like this:

Offset:1D 4E 4F 08 57 20 07 4F
Offset:6E 00 00 00
No, it doesn't look like that.




Dec 17 2008, 8:14 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from ClansAreForGays
2 of your characters don't even register on firefox for me. Maybe that's why.
Those are supposedly color tags. Afaik those have to be included.




Dec 17 2008, 10:18 pm Doodle77 Post #5



Quote from Heinermann
1. The word "NOW On" is invalid.
No, it just uses color codes.
Quote
2. Starcraft does not read bytes backwards.
Yes it does, at least on windows. .
Quote
Offset:6E 00 00 00
The last 2 bytes will not necessarily be 0, they can contain remnants of older strings.

Post has been edited 3 time(s), last time on Dec 18 2008, 2:58 pm by Doodan. Reason: removed mild flame



None.

Dec 17 2008, 11:02 pm rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

Even though it is assumed, you might tell us that you want to detect hacks. Also, the specific hack may be useful.



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

Dec 17 2008, 11:21 pm Falkoner Post #7



This would be an awesome detection for Zynastor's map hack, since it displays text at the start :P



None.

Dec 18 2008, 2:50 am bugmenot Post #8



yes those are for sc color codes, and yes sc read bytes backwards.

yes the bytes after 6E are 00 00 00

forget what it is applied to, none of the replies have been able to assist me with the problem.

Post has been edited 1 time(s), last time on Dec 18 2008, 2:56 am by bugmenot.



None.

Dec 18 2008, 1:43 pm Heinermann Post #9

SDE, BWAPI owner, hacker.

Quote
No, it just uses color codes.
So a hack is used to display a message? It's an invalid message unless you are displaying it using triggers, in which case I find this useless.

Quote
Yes it does, at least on windows. Lrn2little-endian, nub.
That's forwards in little endian.




Dec 18 2008, 7:29 pm poiuy_qwert Post #10

PyMS and ProTRG developer

Quote from Doodle77
Quote
Offset:6E 00 00 00
The last 2 bytes will not necessarily be 0, they can contain remnants of older strings.
I'm fairly certain this is your problem. When the "now on" message is placed in the memory area, it doesn't set the whole string to nulls then place the string in, it places the string with a trailing null, and will not effect anything after its length. So if you have never received any text in the chat area longer then the string you are looking for then yes, it will be 00 00 00 after the 6E, other then that no it might be something else (not a very high chance in my opinion). Here is a small example
Code
At the start of starcraft the buffer for in game text will be all null:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Someone talks in game (these are random hex values):
53 8A 10 B1 12 04 99 FF 00 00 00 00 00 00 00
That message dissapears off the screen (only changes the first byte to signify "no string here"):
00 8A 10 B1 12 04 99 FF 00 00 00 00 00 00 00
The message you want comes in:
6E 60 5F 5C 20 00 99 FF 00 00 00 00 00 00 00
As you can see the 99 and FF from the original message stay.





Dec 18 2008, 9:37 pm rockz Post #11

ᴄʜᴇᴇsᴇ ɪᴛ!

Have you tried to open up artmoney and look at the specific string you're reading?



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

Dec 19 2008, 3:24 am Doodle77 Post #12



The address you're using, 0x640DD0, is two bytes after the beginning of a string. Make sure you pay attention to the "byte offset" things that EUD calculators have. It is also not the first string on the screen, so you would have to say Now On, or whatever



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1: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
Please log in to shout.


Members Online: O)FaRTy1billion[MM], Roy