Staredit Network

Staredit Network -> UMS Assistance -> EUD Text Detection
Report, edit, etc...Posted by Shadow on 2005-09-06 at 00:13:13
Well, I have read the 2-3 other EUD Text Detection threads, and I seize to understand. If someone could give me the noobiest description/tutorial/help possible, that would be awsome! happy.gif

I would really like to use this in my madness map for a banning system(I saw the thread in the Concepts forum). But, I am wondering if these will be patched soon? I know that none of you have an exact answer, but, maybe some insight. Because, I am worried things won't go very well.

Thanks ahead of time to anyone that helps!
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-06 at 01:02:43
In Starcraft memory, there is RAM alloted for the text you see on the screen. In hex, the memory looks somewhat like this:

00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00.... so on until end of line

Each 00 is a binary byte representing an 8-bit ASCII code (one character).

So if all you see on the screen is "Hello World", the memory is like this:

48 65 6C 6C 6F 20 57 6F 72 6C 64 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line
00 00 00 00 00 00 00 00 00 00 00 00 00.... so on until end of line

Uber@ation allows you to enter text rather than ASCII codes, so that helps. When a player types chat, it appears on the screen like this:

DT_Battlekruser: Hello World

Every character, including the player name, is stored to memory. When using the condition, you read a specific line (line 1 if there's only one line) and start at a specific byte (character). In the line

DT_Battlekruser: Hello World

the 18th byte (character) is the capital H which starts the message. But if the text was

Shadow: Hello World

then the H that starts the message would be on byte 9. This makes the condition hard to use.

Not very nooby but meh...


Report, edit, etc...Posted by Shadow on 2005-09-06 at 01:06:30
Well, I understand the SCII part of it now. But, this doesn't help me add it into the map. How do I use it with Uberation? I think it was with the files or something. Where can I get those? And once I do, how do I work the triggers?
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-06 at 01:08:57
If you get the real part, the rest should be easy. If you want to detect Shadow saying "ban blue", then your triggers look something like this (I don't remeber real syntax)

DisplayedText(Line 1, Byte 8, exactly, " ban");
DisplayedText(Line 1, Byte 12, exactly, " blu");
DisplayedText(Line 1, Byte 16, exactly, "e");
Report, edit, etc...Posted by Shadow on 2005-09-06 at 01:22:50
So, if I wanted to be able to let's say... make a menu in StarCRaft via Text Triggers. I would have to make a bunch of verations to the bytes. As in:


Name 1 has 6 letters:

123456: Shop

DisplayedText(Line 1, Byte 9, exactly, " Sho");
DisplayedText(Line 1, Byte 12, exactly, " p");

Then I would have the actions go to the shop.

But, wouldn't I have to make a variation for each name size? Or, is there a simpler way of doing it? Becuase, I think that would be cooler if someone knew...

Lastly, how do I use this condition? I don't know where or how to import it into my map...
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-06 at 01:28:20
In Uber@tion, there's trigger editor where you insert this and it gives you the syntax.

Yes, that is how the trigger is set up. Yes, it is a pain. Maybe there might be a way to search for the colon and space after a name and before the text.
Next Page (1)