Yoko

All sides of Injection
It is currently 2025-12-24 19:42:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2005-04-25 23:53:34 
Offline

Joined: 2004-06-16 00:44:18
Posts: 56
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.


Top
   
 Post subject:
PostPosted: 2005-04-26 07:32:50 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
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.


Top
   
 Post subject:
PostPosted: 2005-04-26 15:46:05 
Offline

Joined: 2004-06-16 00:44:18
Posts: 56
Thanks for the suggestion, but I think that it isn't so. :(

Look at he test I made using Inj2EUO:

Quote:
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?


Top
   
 Post subject:
PostPosted: 2005-04-26 18:21:21 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
Here is what i found in sources of Injection:
Code:
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


Top
   
 Post subject:
PostPosted: 2005-04-26 18:25:39 
Offline

Joined: 2004-06-16 00:44:18
Posts: 56
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! :)


Top
   
 Post subject:
PostPosted: 2005-04-26 19:27:15 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
There is just a lot of files and you could be misplaced there.
It is in Injection.cpp


Top
   
 Post subject:
PostPosted: 2005-04-26 23:15:52 
Offline

Joined: 2004-06-16 00:44:18
Posts: 56
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


Top
   
 Post subject:
PostPosted: 2005-04-27 07:57:57 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
Here it is.
http://sourceforge.net/project/showfile ... p_id=30523

And np again :wink:


Top
   
 Post subject:
PostPosted: 2005-04-27 10:46:23 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-04-29 16:51:31 
Offline

Joined: 2004-06-16 00:44:18
Posts: 56
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited