Jump to content

kRO to jRO Mob DB Converter.


gekigengar

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

Hello rAthena!

I have seen some of the tools around,

and it seems like a half-done tool can be posted too as long as there is

a promising progress towards its final product.

 

So I have decided to upload this here.

 

https://www.mediafire.com/?eyq3m0uhbh6ycrt

 

This is a tool that I use to help me create a jRO Mob database based on both renewal and pre-renewal mob database.

This is the resulting lines that it created.

 

The code is written 100% in Python for rapid proto-typing.

There is no GUI as of yet. (Planned for it).

 

Pre

 

1044,OBEAUNE,Obeaune,Obeaune,31,3952,0,644,407,1,141,165,0,40,1,31,31,55,74,85,10,12,1,5,41,0x3095,200,1872,672,288,0,0,0,0,0,0,0,995,13,950,9000,5014,1,2326,10,720,10,951,500,748,30,0,0,0,0,4093,1

Re

 

1044,OBEAUNE,Obeaune,Obeaune,48,2358,1,476,534,1,202,227,48,56,54,47,21,40,36,25,10,12,1,5,41,0x3095,200,1872,672,288,0,0,0,0,0,0,0,995,13,950,9000,5014,1,2326,10,720,10,951,500,748,30,0,0,0,0,4093,1

jRo

 

1044,OBEAUNE,Obeaune,Obeaune,31,3952,1,966,610,1,242,272,57,67,54,47,21,40,36,25,10,12,1,5,41,0x3095,200,1872,672,288,0,0,0,0,0,0,0,995,13,950,9000,5014,1,2326,10,720,10,951,500,748,30,0,0,0,0,4093,1

Black = Taken from Renewal.

Purple = Taken from Pre-renewal.

Dark Red = Modified into jRO standards*.

*1.5x exp from Pre-renewal

*1.2x Attack and Defense from Renewal.

 

Known Issues :

There is currently an issue when it is reading lines from META_PICKY.

I do not know the cause, but printing the debug lines,

it seems like the exit-code somehow is punctured into the 7th entry.

While in actual, printing the wholeString variable, the exit code existed in the 58th Entry instead.

Result from printing the wholeString.

 

1241,META_PICKY_,Picky,Picky,4,83,0,5,4,1,8,11,20,0,1,3,3,0,11,20,10,12,0,2,23,0x81,200,988,288,168,0,0,0,0,0,0,0,916,6500,949,850,5015,7,507,750,519,350,715,60,0,0,0,0,0,0,4011,1#EXIT#

But the program said it found an exit-code from the 7th entry of the DB, which never existed in the wholeString it is reading from.

>>>
2269 1150
Output begins---------------------------------------------------
Get! 1241 From Remob_db.txt Line No : 243 Entry No : 1
Get! META_PICKY_ From Remob_db.txt Line No : 243 Entry No : 2
Get! Picky From Remob_db.txt Line No : 243 Entry No : 3
Get! 1241 From Remob_db.txt Line No : 243 Entry No : 1
Get! META_PICKY_ From Remob_db.txt Line No : 243 Entry No : 2
Get! Picky From Remob_db.txt Line No : 243 Entry No : 3
Get! Picky From Remob_db.txt Line No : 243 Entry No : 4
Get! 4 From Premob_db.txt Line No : 244 Entry No : 5
Get! 83 From Premob_db.txt Line No : 244 Entry No : 6
Found #EXIT# code.
Traceback (most recent call last):
  File "C:\Users\Gekigengar\Desktop\kRO to jRO converter Project\kRO 2 jRO mobdb converter\kRO 2 jRO Mob Converter Functions v0.036 Alpha.py", line 241, in <module>
    MakeOutput(renewal_File, prerenewal_File, output_File, TEST_NUM)
  File "C:\Users\Gekigengar\Desktop\kRO to jRO converter Project\kRO 2 jRO mobdb converter\kRO 2 jRO Mob Converter Functions v0.036 Alpha.py", line 210, in MakeOutput
    wholeString = ProcessDBLine(renewal_DB,prerenewal_DB,x)
  File "C:\Users\Gekigengar\Desktop\kRO to jRO converter Project\kRO 2 jRO mobdb converter\kRO 2 jRO Mob Converter Functions v0.036 Alpha.py", line 146, in ProcessDBLine
    processed_String = processed_String + GetDBEntry(renewal_DB,num,z) + ','
  File "C:\Users\Gekigengar\Desktop\kRO to jRO converter Project\kRO 2 jRO mobdb converter\kRO 2 jRO Mob Converter Functions v0.036 Alpha.py", line 95, in GetDBEntry
    if wholeString[ch] == ',' or wholeString[ch:ch+EXIT_LENGTH] == EXIT_CODE:
IndexError: string index out of range

Causing this "Index out of range error"

 

If anyone from rAthena is proficient with Python, please help me solve the Issue.

I am currently experimenting more and more on fixing the issue.

Posting it here, so if anyone found it faster than I do, that would be great! /no1

(Since learning from the better from the community would be the best way to learn!)

 

I admit my skills are half-assed,

I learn Python from Google alone,

So if there is improvements to be found, please suggest me and help me improve.

 

Thank you!

Edited by gekigengar
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   2
  • Joined:  08/30/13
  • Last Seen:  

nice man, let me try it

It still won't go beyond "META_PICKY" though >.<

 

Still trying to figure out how to fix it.

Edited by gekigengar
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...