Jump to content

About item_db


Gidz Cross

Recommended Posts


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

This is Suggestions thread right? So here it goes.

You might wanna know that hercules improve their item_db. I would suggest that, do not implement that kind of innovation here in rathena. Let the old db as it is.

The reason im wring this is because maybe some of the core developers are thinking or have planned to do that in the future. Just dont.

Thank you.

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

To my knowledge this isn't on anyone's plate for the foreseeable future.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

What do you mean by 'improve their db'?
Adding more items? Making the item_db to be more readable? Making the item_db to be looks like LUA file?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

@gidzdlcrz, for now, I agree for leaving it just like this, CSV. For future, idk my future. /heh

 

@nanakiwurtz, yes, their 'new' .conf format

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Haven't visit their forum, I barely visited this forum too  /whisp

Too busy with work.. I guess I'll take a look around again

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

Haven't visit their forum, I barely visited this forum too  /whisp

Too busy with work.. I guess I'll take a look around again

 

Well to fill you in here's what their item_db format

 

Hmmm lets say Valkyrie Armor

{
	Id: 2357
	AegisName: "Valkyrie_Armor"
	Name: "Valkyrian Armor"
	Type: 5
	Buy: 0
	Weight: 2800
	Def: 6
	Slots: 1
	Job: 0xFFFFFFFE
	Upper: 2
	Loc: 16
	EquipLv: 1
	Script: <"
		bonus bAllStats,1;
		bonus bUnbreakableArmor,0;
		if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus2 bResEff,Eff_Silence,5000;
		else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus2 bResEff,Eff_Stun,5000;
	">
},

While on rathena

2357,Valkyrie_Armor,Valkyrian Armor,4,0,,2800,,6,,1,0xFFFFFFFE,2,2,16,,1,1,0,{ bonus bAllStats,1; bonus bUnbreakableArmor,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus2 bResEff,Eff_Silence,5000; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus2 bResEff,Eff_Stun,5000; },{},{}

Maybe you're thinking a WOW innovation from hercules.

 

 

@topic

Well anyways i meant this topic in a good way. Hehehe. Or if "some" devs planning to make our item_db like theirs, please do set an option weather to use that kind of format or to use the old one. Hehehe.

 

item_db.txt <~> item_db.conf

To my knowledge this isn't on anyone's plate for the foreseeable future.

Hehe. Im seeing a lot of things lately. My imagination is getting wild. Sorry about that. :)

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

it not on our current plan no,

we might extend or add some db to offert you guys more configuration possibility and allow for us to add content without hardcoding them but nothing like reformat those to LUA like.

From Herc they claim 2 point :

-readibility : ok ye sure for 1 item but for many boarf, (just because you don't always know wich column is what in our format but you can insert it in any tabler like excel say csv and poof all good.

-faster : yeah, well this is mainly due to libconfig, when you parse with it you have to specify what kind of type is each field. Since parsing bool or int is faster then parsing string then it's normal.

-inherit : use definition of another item and add stuff to it, (well @override mostly), not that used but this could be usefull ye why not, but we just need to add a column to this to our current format.

  • Upvote 1
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
Reply to this topic...

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