How to get EUO litterals from InsideUO Hex Numbers?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

How to get EUO litterals from InsideUO Hex Numbers?

Post by Boydon »

I know that there are uo.Inj2EUO() and uo.EUO2Inj() to use in scripts and that I can download Inj2EUO but what I want to know is if Yoko can share the algorithm to convert an hex numer you take from InsideUO to an EUO litteral.

I'd like to use this to code my own app and to develop EUO script faster (sometime to manually collect al types from game is a real pain).

Thank You.
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post by Beyonder »

I'm not sure, but i think that EUO literal is nothing more than a value in 26-th counting system. Like HEX uses only 6 letters, and EUO uses all of them but digits.
Thats IMHO.
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

Thanks for the suggestion, but I think that it isn't so. :(

Look at he test I made using Inj2EUO:

C:\injection>Inj2Euo.exe 0x0
Injection id = Using item 0x00000000 (0x0) -> EasyUO id = YC

C:\injection>Inj2Euo.exe 0x1
Injection id = Using item 0x00000001 (0x1) -> EasyUO id = XC

C:\injection>Inj2Euo.exe 0x2
Injection id = Using item 0x00000002 (0x2) -> EasyUO id = AD


Any other idea?
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post by Beyonder »

Here is what i found in sources of Injection:

Code: Select all

void inj2euo(uint32 injid, char *euoid )
{
  int i= (injid ^ 0x45) + 7, j=0;
  while(i)
  {
    euoid[j] = (i % 26) + 'A';
    i /= 26;
    j++;
  }
  euoid[j] = 0;
  trace_printf("inj2euo %s<=0x%08lX\n",euoid,injid);
}


Algorythm can be seen here at once ;D
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

That is what I was looking for :)

But what sources did you look trough? From the ones I got from Yoko site there is not this function. ^^

THANK YOU VERY MUCH! :)
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post by Beyonder »

There is just a lot of files and you could be misplaced there.
It is in Injection.cpp
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

I got the sources from here http://yoko.netroof.net/eng/injection.htm
and this function is not inside, 100% sure about this.

What sources have you got? Can you give me the link so I can check them by myself :P

Thankyuo very much again. :D
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post by Beyonder »

Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

:)
Boydon
Posts: 56
Joined: 2004-06-16 00:44:18

Post by Boydon »

If someone is interested i made this, wich is very similar to Yoko's inj2euo (it has the same name in his honor :))

http://utenti.lycos.it/Boydon/inj2euo.php
Post Reply