Page 1 of 1
How to get EUO litterals from InsideUO Hex Numbers?
Posted: 2005-04-25 23:53:34
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.
Posted: 2005-04-26 07:32:50
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.
Posted: 2005-04-26 15:46:05
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?
Posted: 2005-04-26 18:21:21
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
Posted: 2005-04-26 18:25:39
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!

Posted: 2005-04-26 19:27:15
by Beyonder
There is just a lot of files and you could be misplaced there.
It is in Injection.cpp
Posted: 2005-04-26 23:15:52
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
Thankyuo very much again.

Posted: 2005-04-27 07:57:57
by Beyonder
Posted: 2005-04-27 10:46:23
by Boydon
Posted: 2005-04-29 16:51:31
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