HerculesWS / Hercules

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.
http://herc.ws
GNU General Public License v3.0
897 stars 756 forks source link

mob_db.conf drops issue #809

Closed UzuCore closed 9 years ago

UzuCore commented 9 years ago

When the item name begins with a number(0-9) it can not read. and If the item can not read the name of dot(.).

MishimaHaruna commented 9 years ago

I cannot reproduce this. Libconfig was recently edited to allow those symbols in names.

UzuCore commented 9 years ago

/MishimaHaruna

1) yes. clean Hercules! 2) Ubuntu 12.04 using. 3) only 3 items. 3D_Glasses_Box, 3rd_Floor_Pass, Ph.D_Hat

Id: 1281 ... Drops: { Librarian_Glove: 5 Worn_Out_Page: 1000 Earthworm_Peeling: 3000 Fire_Scroll_1_5: 100 Fashionable_Glasses: 10 Cold_Scroll_1_5: 100 Ph.D_Hat: 1 <-- this! Sageworm_Card: 1 }

MishimaHaruna commented 9 years ago

Seems to work for me:

renewal:

gm use @mi 1281
[Info]: HCP: Monster: 'Sage Worm'/'Sage Worm'/'SAGEWORM' (1281)
[Info]: HCP: Lv:70  HP:2872  Base EXP:756  Job EXP:810  HIT:268  FLEE:199
[Info]: HCP: DEF:109  MDEF:45  STR:39  AGI:29  VIT:28  INT:71  DEX:48  LUK:30
[Info]: HCP: ATK:241~308 MATK:225~298 Range:1~10~12  Size:Small  Race: Beast  Element: Neutral (Lv:3)
[Info]: HCP: Drops:
[Info]: HCP:   - Librarian Glove[1]  0.05% - Worn Out Page  10.00% - Earthworm Peeling  30.00%
[Info]: HCP:   - Level 5 Fire Bolt  1.00% - Fashionable Glasses  0.10% - Level 5 Cold Bolt  1.00%
[Info]: HCP:   - Ph.D Hat  0.01% - Sage Worm Card  0.01%
[Info]: HCP: '@mi 1281' was used

pre-renewal:

gm use @mi 1281
[Info]: HCP: Monster: 'Sage Worm'/'Sage Worm'/'SAGEWORM' (1281)
[Info]: HCP: Lv:43  HP:3850  Base EXP:1155  Job EXP:1320  HIT:122  FLEE:95
[Info]: HCP: DEF:0  MDEF:50  STR:1  AGI:52  VIT:24  INT:88  DEX:79  LUK:55
[Info]: HCP: ATK:120~280  Range:1~10~12  Size:Small  Race: Beast  Element: Neutral (Lv:3)
[Info]: HCP: Drops:
[Info]: HCP:   - Librarian Glove[1]  0.05% - Worn Out Page  10.00% - Earthworm Peeling  30.00%
[Info]: HCP:   - Level 5 Fire Bolt  1.00% - Blue Potion  0.40% - Level 5 Cold Bolt  1.00%
[Info]: HCP:   - Ph.D Hat  0.01% - Sage Worm Card  0.01%
[Info]: HCP: '@mi 1281' was used

Could you try to rebuild your sources (after running make clean)?

UzuCore commented 9 years ago

I told you not read mob_db.conf. The test should not read the DB.

Find the problems of three items have a name server on and off several times.

For example, if i change the Ph.D_Hat to Ph_D_Hat no errors.

'path' is not a problem. not read from 'mob_read_libconfig'.

UzuCore commented 9 years ago

And Id: 1927 item in a drop-Torn Fabric, Id: 1841's drop of items Black_Treasure_Chest, Id: 1925 item in a drop Crushed_Pumpkin Items such as the item.

4144 commented 9 years ago

@byunjaeil please run: make clean ./configure make

And try again

UzuCore commented 9 years ago

@4144 yes.

make clean ./configure make ./athena-start start > s.txt

vi s.txt

[Status]: Done reading '7' entries in 'db/mob_db2.conf'. [Status]: Connected to login-server (connection #5). [Status]: Awaiting maps from map-server. [Status]: Done reading '0' entries in 'db/re/mob_skill_db.txt'. [Status]: Done reading '19' entries in 'db/mob_skill_db2.txt'. [Status]: Done reading '1' entries in 'db/mob_avail.txt'. [Status]: Done reading '1' entries in 're/mob_branch.txt'. [Status]: Done reading '1' entries in 're/mob_poring.txt'. [Status]: Done reading '1' entries in 're/mob_boss.txt'. [Status]: Done reading '1' entries in 'mob_pouch.txt'. [Status]: Done reading '1' entries in 'mob_classchange.txt'. [Warning]: mob_readdb_race2: Unknown mob id 1122 for race2 1. [Warning]: mob_readdb_race2: Unknown mob id 1123 for race2 1. [Warning]: mob_readdb_race2: Unknown mob id 1124 for race2 1. ...

4144 commented 9 years ago

In your log missing information about loading mob_db.conf

Also if you have any code modifications, try clone and build clean hercules.

UzuCore commented 9 years ago

hi, i try clean Hercules. So far, I have continued to say the same. If there are 3 items in the drops do not bring up the mob_db.conf.

(mob_db.conf cant't full load) 3D_Glasses_Box 3rd_Floor_Pass Ph.D_Hat

(mob_db.conf load success) R3D_Glasses_Box (edit) R3rd_Floor_Pass (edit) Ph_D_Hat (edit)

mob_db.conf not read. (full) there is a problem skipping mob_db.conf.

my server

Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise

4144 commented 9 years ago

It works fine in debian, should works in ubuntu too.

Can you show all your steps how you updating sources and what doing after? If you updating on local pc and after copy to server, what files you copy to server?

UzuCore commented 9 years ago

1) in Windows10, Use tortoiseSVN source download 2) ftp -> source upload

4144 commented 9 years ago

Ok, what exact source download? src directory? or some thing else? and also what upload?

UzuCore commented 9 years ago

https://github.com/HerculesWS/Hercules.git/trunk <- this

ls -al

drwxr-xr-x 8 ragnarok ragnarok 4096 9월 9 02:23 3rdparty -rw-r--r-- 1 ragnarok ragnarok 2340 9월 14 10:24 AUTHORS -rw-r--r-- 1 ragnarok ragnarok 4033 9월 14 10:24 CONTRIBUTING.md drwxr-xr-x 4 ragnarok ragnarok 4096 9월 9 02:23 Hercules.xcodeproj -rw-r--r-- 1 ragnarok ragnarok 35147 9월 14 10:24 LICENSE -rw-r--r-- 1 root root 5965 10월 23 08:54 Makefile -rw-r--r-- 1 ragnarok ragnarok 5644 9월 14 10:54 Makefile.in -rw-r--r-- 1 ragnarok ragnarok 9073 9월 25 13:03 README.md -rwxr-xr-x 1 ragnarok ragnarok 1350 10월 11 11:11 athena-start drwxr-xr-x 3 ragnarok ragnarok 4096 9월 9 02:23 cache -rwxr-xr-x 1 root root 1716191 10월 23 09:51 char-server -rwxr-xr-x 1 ragnarok ragnarok 270 9월 14 10:24 char-server.sh drwxr-xr-x 5 ragnarok ragnarok 4096 9월 9 02:34 conf -rw-r--r-- 1 root root 60445 10월 23 08:54 config.log -rwxr-xr-x 1 ragnarok ragnarok 26173 10월 22 08:00 config.status -rwxr-xr-x 1 ragnarok ragnarok 265384 9월 14 10:24 configure -rw-r--r-- 1 ragnarok ragnarok 29842 9월 14 10:24 configure.in drwxr-xr-x 4 ragnarok ragnarok 4096 10월 21 13:48 db -rwxr-xr-x 1 root root 957568 10월 23 09:50 login-server -rwxr-xr-x 1 ragnarok ragnarok 271 9월 14 10:24 login-server.sh -rwxr-xr-x 1 root root 10926969 10월 23 09:51 map-server -rwxr-xr-x 1 ragnarok ragnarok 268 9월 14 10:24 map-server.sh drwxr-xr-x 22 ragnarok ragnarok 4096 10월 21 13:48 npc drwxr-xr-x 2 ragnarok ragnarok 4096 10월 23 08:54 plugins -rw-r--r-- 1 root root 2747 10월 23 14:15 s.txt -rw-r--r-- 1 ragnarok ragnarok 788 9월 14 10:24 script-checker drwxr-xr-x 4 ragnarok ragnarok 4096 9월 26 09:12 sql-files drwxr-xr-x 10 ragnarok ragnarok 4096 10월 21 13:48 src -rwxr-xr-x 1 ragnarok ragnarok 7238 9월 14 10:24 sysinfogen.sh drwxr-xr-x 3 ragnarok ragnarok 4096 9월 9 02:26 tools -rwxr-xr-x 1 ragnarok ragnarok 3459 9월 14 10:54 travis.sh

MishimaHaruna commented 9 years ago

Your setup isn't quite recommended (using svn instead of git, as well as downloading from a windows machine and uploading the files to a linux maxchine, are two practices that are frowned upon, to say the least), but even so, it should work.

Is your 3rdparty directory up to date?

If it is, line 16 of 3rdparty/libconfig/scanner.c should say:

#define YY_FLEX_SUBMINOR_VERSION 39

If it says otherwise, please update it.

4144 commented 9 years ago

@byunjaeil i asking all this because you using unupported (subversion) and may not update all files. Check file what @MishimaHaruna asked in your server.

UzuCore commented 9 years ago

@MishimaHaruna @4144

ah, i'm so sorry... Sorry steal your time. This lack of knowledge is to 3rdparty knew no matter what. @MishimaHaruna says note, I will be careful in the future.

I did not get to speak English well. The excuse. so so thanks.

MishimaHaruna commented 9 years ago

No problem, it's good that it's solved!