Jump to content
  • 0

How to add a new itemgroup. It always showing up error recognizing the new group_id


Question

Posted

Hi

 

I need to create a new groupID for item randomizer but it always give me error that the itemgroup that i made is not recognized. I tried adding it to the db/const.txt and still showing up the same error.

 

[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:6

[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:7

[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:8

[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:9

[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:1
0
[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:1
1
[Warning]: itemdb_read_itemgroup: Invalid group 63 in db/re/item_rebornbox.txt:1
2

3 answers to this question

Recommended Posts

Posted (edited)

from the wiki

 

Source Part 
trunk/src/map/itemdb.h

//The max. item group count (increase this when needed).
#define MAX_ITEMGROUP 63

 

increase the value depending how many group/boxes you want to create.

 

Database Part 

trunk/db/const.txt

IG_Custom_Box 63

 

Add this or name "Custom_Box" as you wish.

 


trunk/db/re/item_giftbox.txt

// Structure of Database:
// GroupID,ItemID,Rate

 

You can also create a new file for your items but it's not really necessary.

 

To do it (use the correct db re or pre)

 


/db/item_group_db.txt
import: db/item_Custom_Box.txt - add this
 
then create a new txt file in the db
 

item_Custom_Box.txt


trunk/db/re/item_db.txt

getrandgroupitem( IG_Custom_Box ),1;
Edited by Saisho

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...