• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Inquiring about Item.dat

Status
Not open for further replies.

saccillia

Bug Catcher
[Solved]
Conclusions: It is entirely possible to re-arrange the order of items in the item.dat for re-organizing your inventory in game. Items that are affected are illustrated in relation to other items in the same group. By looking up the list of items on the wiki or by using such posts as hannes3120 ( version: 0.23: http://pokemon3d.net/threads/1322/) you can order your inventory however you like.​
CAUTION: Be sure there is no duplicated lines, missing symbols, or (in my case) extra space at the end of the list ("ninja row assassination"-DarkFire). This goes for both item.dat and party.dat (and probably the rest).​
---------------------------------------------------------------------------------------------------------​
Being tired of a disorderly inventory in-game and in .doc, I experimented with reordering my current items by their ID's. My plan was to see if and how the items in game would react. The trial was cut short, however, as reordering the item.dat in any way would lead to the game being unable to open.

I am wondering what sort of rule prevents this manipulation, and why. (The items are sorted by the order you first acquired them)

  • Items that were re-ordered were pre-existed, cut and paste.
  • There is no residual symbols or duplicates before testing (I double checked)
 

saccillia

Bug Catcher
I checked one more time to make sure the items lined up. Here Is my unedited item.dat:
{192|1}
{20|16}
{13|20}
{243|1}
{17|2}
{221|1}
{4|20}
{2006|11}
{2000|4}
{247|1}
{2010|5}
{2002|25}
{157|17}
{239|1}
{5|19}
{18|20}
{9|17}
{10|20}
{11|30}
{12|18}
{97|7}
{85|8}
{164|30}
{101|3}
{99|3}
{195|1}
{93|3}
{165|12}
{161|23}
{166|22}
{92|1}
{2022|5}
{2001|3}
 

saccillia

Bug Catcher
Here is my my edited item.dat:
{4|20}
{5|18}
{9|17}
{10|20}
{11|5}
{12|18}
{13|20}
{17|2}
{18|20}
{20|14}
{38|3}
{39|5}
{85|8}
{92|2}
{93|4}
{97|5}
{99|4}
{101|4}
{157|18}
{161|27}
{164|31}
{165|12}
{166|23}
{192|1}
{195|1}
{221|1}
{239|1}
{243|1}
{247|1}
{2000|4}
{2001|3}
{2002|25}
{2006|11}
{2010|5}
{2022|5}
 

Darkfire

Administrator
Administrator
P3D Developer
as I think about it the items might have been in order by where they go in the bag
try reordering just the first five
 

saccillia

Bug Catcher
as I think about it the items might have been in order by where they go in the bag
try reordering just the first five
I followed your suggestion, and to my surprise the game did not crash! I expanded the range up to the first 11 without having any problems.
I also observed that the when I manipulated TM/HM order, that order was reflected in the inventory; however, items such as berries and medicines were not affected (as of yet).
-- I'm going to continue to re-order the items bit-by-bit to see what results. Perhaps I faltered somewhere in making the organized item.dat
 

saccillia

Bug Catcher
Final Remarks: After manipulating the entire item.dat into descending order (4 to 2022) without crashing my game, I began to wonder what was the reason caused me to crash in the first place. I went back and found that the reason mostly likely was due to there being empty space at the end of the list (as when you press enter, or space left from cutting a segment of text).

Furthermore, all of the items shown in the inventory are reflected by the order in the item.dat.
--Thank you DarkFire for helping me with solving my little dilemma. I feel quite foolish.
 

Darkfire

Administrator
Administrator
P3D Developer
Ah the good old ninja row assasination(I just made up the name for it)
the same issue happens in party.dat as well so beware :)
 
Status
Not open for further replies.
Top