Jump to content

  •  

lucas9586

Member Since 12 Apr 2014
Offline Last Active Jul 11 2015 04:14 AM
-----

Posts I've Made

In Topic: Item DB file structure overhaul

16 April 2014 - 11:17 AM

I don't have a chance to check Notepad (I'm not on windows, so I don't have that), but I guess with "ANSI" they mean "the appropriate local charset for whatever language this computer is set to", which would produce Big5 or some variant of it in your case, so that's what you should use. Again, this is just a guess.

The broken lines from the .txt file you posted (if I load it as Big5) are:

5574,Pencil_In_Mouth,叼在嘴?媢]筆,4,20,,100,,0,,0,0xFFFFFFFF,63,2,1,,10,0,555,{ bonus bDex,2; bonus bHitRate,3; },{},{}7156,Broken_Shuriken,破舊之手?媦C,3,470,,10,,,,,,,,,,,,,{},{},{}
(I wrote #5571, but I meant #5574, sorry).

The questionmark is there to say that it wasn't able to load some character, I'm not sure why it happens.

 

I don't have a chance to check Notepad (I'm not on windows, so I don't have that), but I guess with "ANSI" they mean "the appropriate local charset for whatever language this computer is set to", which would produce Big5 or some variant of it in your case, so that's what you should use. Again, this is just a guess.

The broken lines from the .txt file you posted (if I load it as Big5) are:

5574,Pencil_In_Mouth,叼在嘴?媢]筆,4,20,,100,,0,,0,0xFFFFFFFF,63,2,1,,10,0,555,{ bonus bDex,2; bonus bHitRate,3; },{},{}7156,Broken_Shuriken,破舊之手?媦C,3,470,,10,,,,,,,,,,,,,{},{},{}
(I wrote #5571, but I meant #5574, sorry).

The questionmark is there to say that it wasn't able to load some character, I'm not sure why it happens.

I finally find the reason of the errors. I use script-checker.bat to check the item_db.conf. I find that hercules's system can't read a bunch of Chinese words. Maybe it's because of the coding. In addition, the item_bonus have a big different to Rathena in lower cases and upper cases. Other than that, Rathena item_db allows duplicated AegisName but Hercules doesn't. Item #5574 and #7156 doesn't get any problems in my case.

 

Therefore, if a Rathena user wanna convert there item_db to Hercules format, they need to edit all of the item_bonus first. Otherwise, it will show a lot of errors though they don't face any coding problems.


In Topic: Item DB file structure overhaul

16 April 2014 - 05:32 AM

You shouldn't use utf8 for your files (Hercules and *Athena don't really support it, nor does the client). You should save it with the same file encoding as your original file (which seems to be Big5, but it also seems to be broken, my text editor warns me about issues on line 3389 (item #5571) and line 4481 (item #7156) of your .txt file)

You might want to fix those names in your .txt file first, then try to re-convert it, and save the .conf file as Big5 as well.

Please note that your item scripts contain errors though (wrong case, wrong arguments, non existent functions, etc), so you'll also need to edit it in order to work with Hercules.

Thanks for your explanation. I just used the default coding(ANSI) before and it didn't work. I don't know how to convert the item_db.conf to BIG5 since there are just 4 options (ANSI/UTF-8/Unicode/Unicode-Big endian) when I use notepad to open it. If the coding really matter, does users from any non-English counties need to convert their item_db.conf to suit their languages? Besides, I've checked item#5571 and item#7156 and it seems that there is no problem with these two items. Below are the converted item scripts :

{
    Id: 5571
    AegisName: "Rasta_Wig"
    Name: "拉司塔的假髮"
    Type: 4
    Buy: 20
    Weight: 100
    Def: 1
    Upper: 63
    Loc: 256
    View: 552
    Script: <" bonus bStr,1; ">
},

{
    Id: 7156
    AegisName: "Broken_Shuriken"
    Name: "破舊之手裏劍"
    Type: 3
    Buy: 470
    Weight: 10
},
 


In Topic: Item DB file structure overhaul

15 April 2014 - 12:37 PM

Maybe, show us your item_db.conf file.

 
This is my item_db in general format:
 
 
This is my item_db in hercules format:
 
 
Could you kindly help me? Thanks a lot!

In Topic: Item DB file structure overhaul

15 April 2014 - 09:06 AM

Maybe, show us your item_db.conf file.

Thanks! I would show it tonight. It's 17:04 in Hong Kong right now.

By the way, I think Hercules is a wonderful emulator that has optimized resources usage with other useful features.

Sorry for my poor English.


In Topic: 2014 Packet Data [ Solved ]

15 April 2014 - 06:28 AM

I tried to diff 2014-03-05bRagexe.exe using Neo Patcher and its a success.

now I only need the packet data for it.

and I know Yommy is the master of this stuff.

please help if you got some spare time.

thanks in advance :thx:

 

 

2014-03-05bRagexe.exe

 

https://github.com/ThemonChan/Hercules

 

Spoiler

 

Spoiler

May I ask what's the difference among the three client versions? I just know that 2014-01-15 support new world system.