Jump to content
  • 0

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


Jayzy

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  12/08/11
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

forgot to mention, you must recompile after editing the source

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  12/08/11
  • Last Seen:  

Thanks for your help! I was looking for this :)

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