Jump to content
  • 0

import/item_db.yml not working


Ichigo HikariRO

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.03
  • Content Count:  17
  • Reputation:   0
  • Joined:  06/15/23
  • Last Seen:  

Hello.
I have updated the emulator, and now I don't know why it is not taking the custom items db.
 

Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Status]: Done reading '7511' entries in 'db/re/item_db_etc.yml'
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [120B blob data]
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Error]: There is likely a syntax error in the file.
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Error]: Error message: check failed: (pos <= s.len)
Jun 22 11:18:48 testserver.hikariro.com map-server[18071]: [Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.

Can somebody help me?
Thank you.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1537
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

43 minutes ago, Ichigo Hikariro said:

Hello.
I have updated the emulator, and now I don't know why it is not taking the custom items db.
 

Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Status]: Done reading '7511' entries in 'db/re/item_db_etc.yml'
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [120B blob data]
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Error]: There is likely a syntax error in the file.
Jun 22 11:18:47 testserver.hikariro.com map-server[18071]: [Error]: Error message: check failed: (pos <= s.len)
Jun 22 11:18:48 testserver.hikariro.com map-server[18071]: [Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.

Can somebody help me?
Thank you.

use the tools to convert your itemdb txt to itemdb yml if thats what your issue right now.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.03
  • Content Count:  17
  • Reputation:   0
  • Joined:  06/15/23
  • Last Seen:  

On 6/23/2023 at 1:11 AM, Chaos92 said:

use the tools to convert your itemdb txt to itemdb yml if thats what your issue right now.

I have been using yml files for a long time, but today when updating the emulator, the import/item_db.yml does not load normally.

 

In case it happens to someone.
It is already solved, for some reason, in the yml file I deleted the last line, and it should be blank, otherwise it fails.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   1
  • Joined:  01/12/12
  • Last Seen:  

I just wanted to add a custom Item to import/item_db.yml and is not taking it when I do @reloaditemdb... :

 

[Status]: Loading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Done reading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Loading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Done reading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Loading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.
[Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
[Status]: Loading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Done reading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Loading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Done reading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Loading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Done reading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Loading '3964' entries in 'db/re/item_combos.yml'
[Status]: Done reading '6005' entries in 'db/re/item_combos.yml'
[Status]: Loading '1' entries in 'db/import/item_combos.yml'
[Status]: Done reading '1' entries in 'db/import/item_combos.yml'
[Status]: Loading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Done reading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Loading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Done reading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Loading '70' entries in 'db/re/item_reform.yml'
[Status]: Done reading '70' entries in 'db/re/item_reform.yml'
[Status]: Loading '98' entries in 'db/re/item_enchant.yml'
[Status]: Done reading '98' entries in 'db/re/item_enchant.yml'
[Status]: Loading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '42' entries in 'db_roulette'.
[Status]: Loading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '0' entries in 'sales'.

 

So i did what you proposed and nothing... not working...

On 6/22/2023 at 11:18 AM, Ichigo HikariRO said:

I have been using yml files for a long time, but today when updating the emulator, the import/item_db.yml does not load normally.

 

In case it happens to someone.
It is already solved, for some reason, in the yml file I deleted the last line, and it should be blank, otherwise it fails.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1537
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

23 minutes ago, InfectedX said:

I just wanted to add a custom Item to import/item_db.yml and is not taking it when I do @reloaditemdb... :

 

[Status]: Loading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Done reading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Loading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Done reading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Loading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.
[Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
[Status]: Loading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Done reading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Loading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Done reading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Loading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Done reading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Loading '3964' entries in 'db/re/item_combos.yml'
[Status]: Done reading '6005' entries in 'db/re/item_combos.yml'
[Status]: Loading '1' entries in 'db/import/item_combos.yml'
[Status]: Done reading '1' entries in 'db/import/item_combos.yml'
[Status]: Loading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Done reading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Loading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Done reading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Loading '70' entries in 'db/re/item_reform.yml'
[Status]: Done reading '70' entries in 'db/re/item_reform.yml'
[Status]: Loading '98' entries in 'db/re/item_enchant.yml'
[Status]: Done reading '98' entries in 'db/re/item_enchant.yml'
[Status]: Loading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '42' entries in 'db_roulette'.
[Status]: Loading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '0' entries in 'sales'.

 

So i did what you proposed and nothing... not working...

 

from your lines, there are no db/import/item_db.yml lines there. Please double check.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   1
  • Joined:  01/12/12
  • Last Seen:  

1 hour ago, Chaos92 said:

from your lines, there are no db/import/item_db.yml lines there. Please double check.


Let me explain myself... again:

The error reported is item_db.yml from import folder is not loading.

My evidence is that code I posted:

[Status]: Loading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Done reading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Loading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Done reading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Loading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.
[Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
[Status]: Loading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Done reading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Loading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Done reading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Loading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Done reading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Loading '3964' entries in 'db/re/item_combos.yml'
[Status]: Done reading '6005' entries in 'db/re/item_combos.yml'
[Status]: Loading '1' entries in 'db/import/item_combos.yml'
[Status]: Done reading '1' entries in 'db/import/item_combos.yml'
[Status]: Loading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Done reading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Loading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Done reading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Loading '70' entries in 'db/re/item_reform.yml'
[Status]: Done reading '70' entries in 'db/re/item_reform.yml'
[Status]: Loading '98' entries in 'db/re/item_enchant.yml'
[Status]: Done reading '98' entries in 'db/re/item_enchant.yml'
[Status]: Loading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '42' entries in 'db_roulette'.
[Status]: Loading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '0' entries in 'sales'.

There is no "import/item_db.yml" when i reload with command @reloaditemdb

which means is not loading import item data base.

 

I tested in game with a custom item, also with an existing item (I changed it from etc, to Usable to test) And if i use @iteminfo command to see the change, it still says ETC item type instead of Usable type.

My question is: Why is not taking the import/item_db.yml? what can I do?

I have a clean version of rathena...

Edited by InfectedX
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1537
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

36 minutes ago, InfectedX said:


Let me explain myself... again:

The error reported is item_db.yml from import folder is not loading.

My evidence is that code I posted:

[Status]: Loading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Done reading '5023' entries in 'db/re/item_db_usable.yml'
[Status]: Loading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Done reading '10633' entries in 'db/re/item_db_equip.yml'
[Status]: Loading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '7685' entries in 'db/re/item_db_etc.yml'
[Status]: Done reading '304' entries in 'db/re/item_noequip.txt'.
[Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
[Status]: Loading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Done reading '249' entries in 'db/re/item_randomopt_db.yml'
[Status]: Loading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Done reading '102' entries in 'db/re/item_randomopt_group.yml'
[Status]: Loading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Done reading '1594' entries in 'db/re/item_group_db.yml'
[Status]: Loading '3964' entries in 'db/re/item_combos.yml'
[Status]: Done reading '6005' entries in 'db/re/item_combos.yml'
[Status]: Loading '1' entries in 'db/import/item_combos.yml'
[Status]: Done reading '1' entries in 'db/import/item_combos.yml'
[Status]: Loading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Done reading '179' entries in 'db/re/laphine_synthesis.yml'
[Status]: Loading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Done reading '97' entries in 'db/re/laphine_upgrade.yml'
[Status]: Loading '70' entries in 'db/re/item_reform.yml'
[Status]: Done reading '70' entries in 'db/re/item_reform.yml'
[Status]: Loading '98' entries in 'db/re/item_enchant.yml'
[Status]: Done reading '98' entries in 'db/re/item_enchant.yml'
[Status]: Loading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '23' entries in 'db/re/item_packages.yml'
[Status]: Done reading '42' entries in 'db_roulette'.
[Status]: Loading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '8' entries in 'db/import/item_cash.yml'
[Status]: Done reading '0' entries in 'sales'.

There is no "import/item_db.yml" when i reload with command @reloaditemdb

which means is not loading import item data base.

 

I tested in game with a custom item, also with an existing item (I changed it from etc, to Usable to test) And if i use @iteminfo command to see the change, it still says ETC item type instead of Usable type.

My question is: Why is not taking the import/item_db.yml? what can I do?

I have a clean version of rathena...

have u reloaditemdb after change or edit itemdb ? it should be reloaded first then it will take effect.

and what is your /db/item_db.yml content ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   1
  • Joined:  01/12/12
  • Last Seen:  

11 hours ago, Chaos92 said:

have u reloaditemdb after change or edit itemdb ? it should be reloaded first then it will take effect.

and what is your /db/item_db.yml content ?

Of course I did...

 

I only have 1 item...

 

Header:
  Type: ITEM_DB
  Version: 3

  Body:
    - Id: 1000282
      AegisName: EpisodClear16
      Name: Episode 16 Clear Ticket
      Type: Usable
      Trade:
        NoDrop: true
        NoTrade: true
        NoSell: true
        NoCart: true
        NoGuildStorage: true
        NoMail: true
        NoAuction: true

That's it... I just changed the ETC to Usable... (I already explained...) 

I did reloaditemdb...

Quote

There is no "import/item_db.yml" when i reload with command @reloaditemdb

Is not loading the import files 

Edited by InfectedX
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1537
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

2 hours ago, InfectedX said:

Of course I did...

 

I only have 1 item...

 

Header:
  Type: ITEM_DB
  Version: 3

  Body:
    - Id: 1000282
      AegisName: EpisodClear16
      Name: Episode 16 Clear Ticket
      Type: Usable
      Trade:
        NoDrop: true
        NoTrade: true
        NoSell: true
        NoCart: true
        NoGuildStorage: true
        NoMail: true
        NoAuction: true

That's it... I just changed the ETC to Usable... (I already explained...) 

I did reloaditemdb...

Is not loading the import files 

my question again.. what is your /db/item_db.yml content ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   1
  • Joined:  01/12/12
  • Last Seen:  

13 hours ago, Chaos92 said:

my question again.. what is your /db/item_db.yml content ?

This:

 

# This file is a part of rAthena.
#   Copyright(C) 2021 rAthena Development Team
#   https://rathena.org - https://github.com/rathena
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###########################################################################
# Item Database
###########################################################################
#
# Item Settings
#
###########################################################################
# - Id                      Item ID.
#   AegisName               Server name to reference the item in scripts and lookups, should use no spaces.
#   Name                    Name in English for displaying as output.
#   Type                    Item type. (Default: Etc)
#   SubType                 Weapon, Ammo or Card type. (Default: 0)
#   Buy                     Buying price. When not specified, becomes double the sell price. (Default: 0)
#   Sell                    Selling price. When not specified, becomes half the buy price. (Default: 0)
#   Weight                  Item weight. Each 10 is 1 weight. (Default: 0)
#   Attack                  Weapon's attack. (Default: 0)
#   MagicAttack             Weapon's magic attack. (Default: 0)
#   Defense                 Armor's defense. (Default: 0)
#   Range                   Weapon's attack range. (Default: 0)
#   Slots                   Available slots in item. (Default: 0)
#   Jobs                    Jobs that can equip the item. (Map default is 'All: true')
#   Classes                 Upper class types that can equip the item. (Map default is 'All: true')
#   Gender                  Gender that can equip the item. (Default: Both)
#   Locations               Equipment's placement. (Default: None)
#   WeaponLevel             Weapon level. (Default: 1 for Weapons)
#   ArmorLevel              Armor level. (Default: 1 for Armors)
#   EquipLevelMin           Minimum required level to equip. (Default: 0)
#   EquipLevelMax           Maximum level that can equip. (Default: 0)
#   Refineable              If the item can be refined. (Default: false)
#   Gradable                If the item can be graded. (Default: false)
#   View                    View sprite of an item. (Default: 0)
#   AliasName               Another item's AegisName that will be sent to the client instead of this item's AegisName. (Default: null)
#   Flags:                  Item flags. (Default: null)
#     BuyingStore           If the item is available for Buyingstores. (Default: false)
#     DeadBranch            If the item is a Dead Branch. (Default: false)
#     Container             If the item is part of a container. (Default: false)
#     UniqueId              If the item is a unique stack. (Default: false)
#     BindOnEquip           If the item is bound to the character upon equipping. (Default: false)
#     DropAnnounce          If the item has a special announcement to self on drop. (Default: false)
#     NoConsume             If the item is consumed on use. (Default: false)
#     DropEffect            If the item has a special effect on the ground when dropped by a monster. (Default: None)
#   Delay:                  Item use delay. (Default: null)
#     Duration              Duration of delay in seconds.
#     Status                Status Change used to track delay. (Default: None)
#   Stack:                  Item stack amount. (Default: null)
#     Amount                Maximum amount that can be stacked.
#     Inventory             If the stack is applied to player's inventory. (Default: true)
#     Cart                  If the stack is applied to the player's cart. (Default: false)
#     Storage               If the stack is applied to the player's storage. (Default: false)
#     GuildStorage          If the stack is applied to the player's guild storage. (Default: false)
#   NoUse:                  Conditions when the item is unusable. (Default: null)
#     Override              Group level to override these conditions. (Default: 100)
#     Sitting               If the item can not be used while sitting. (Default: false)
#   Trade:                  Trade restrictions. (Default: null)
#     Override              Group level to override these conditions. (Default: 100)
#     NoDrop                If the item can not be dropped. (Default: false)
#     NoTrade               If the item can not be traded. (Default: false)
#     TradePartner          If the item can not be traded to the player's partner. (Default: false)
#     NoSell                If the item can not be sold. (Default: false)
#     NoCart                If the item can not be put in a cart. (Default: false)
#     NoStorage             If the item can not be put in a storage. (Default: false)
#     NoGuildStorage        If the item can not be put in a guild storage. (Default: false)
#     NoMail                If the item can not be put in a mail. (Default: false)
#     NoAuction             If the item can not be put in an auction. (Default: false)
#   Script                  Script to execute when the item is used/equipped. (Default: null)
#   EquipScript             Script to execute when the item is equipped. (Default: null)
#   UnEquipScript           Script to execute when the item is unequipped or when a rental item expires. (Default: null)
###########################################################################

Header:
  Type: ITEM_DB
  Version: 3

Footer:
  Imports:
  - Path: db/pre-re/item_db.yml
    Mode: Prerenewal
  - Path: db/re/item_db.yml
    Mode: Renewal
  - Path: db/import/item_db.yml

 

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
Answer this question...

×   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...