Disgaea PC

Disgaea PC

View Stats:
About the Foresight
I remember that, in the psp version, the item Foresight had a guaranteeded Innocent already subdued [can't remember if it was a Statitician or a Marksman]. So, naturally, I've worked out my bills to upgrade the shop... and then this.

The Innocents in Foresight are just level one, and not subdued.

Was intentional? Or it's a bug? I would like to know just for the records.
< >
Showing 1-4 of 4 comments
There's been no official statement. I've been assuming that they attempted to fix the PSP's bug and ended up with a new one.
This is a bug, in fact it is pretty much exactly the same as the PSP Foresight bug but with some slight technical differences. It should be easy for NIS to fix.

---

Here's a technical explanation of what is going on: inside the game there is a file called mitem.dat that keeps track of information about all the possible items of the game: their name, description, shop price, stats, item rank etc. You could imagine the file as a spreadsheet with various columns for different statistics and one row for each item.

Every column in the file has a fixed size, so for instance all the "item names" are exactly 33 bytes long, all "item descriptions" are exactly 116 bytes long, etc. As it so happens, in the PSP port of the game they had reduced the width of the "item description" field compared to the original PS2 version. In fact the field was even shorter than the longest item description (that of the Foresight)--there simply was not enough space to store the item description between the item name and the item rank.

But evidently the whole item description was stored in the game, so where did it go? Instead of stopping at the end of the "item description" column, the text corresponding to the item description exceeded the width and continued into the item rank column. This is the source of all the weird behaviour they exhibit in the PSP version: https://twitter.com/FireyFly/status/710549067089252352

Okay, so what is the situation like in the PC version? The "item description" field is exactly as wide as the Foresight's description. Great! So what is the problem then? Well, due to how text strings work in computers it is necessary to have a 0 byte at the end of the string to mark "end of string", and there isn't enough space for this 0 byte. So instead of the item rank being crazy high, we end up with an item rank of 0--below any real item in the game. I guess the innocent levels are derived from the item rank, and with rank 0 you end up with level 1 innocents.

The fix for this would be as easy as making the field wider, which should be as easy as changing a line somewhere in the game's source code and producing a new mitem.dat file--the latter probably isn't much of a hassle seeing as every release of the game seems to have slightly different mitem.dat structure anyway for seemingly no reason.
Well that explains where the garbage data was coming from. :)

Though, is the 0 really required? It's not so much a "computer" thing as a "software" thing; in other (older) games I've found that null-termination is only needed when the string length is less than the field length. When this particular string is read back later, I suspect the 0 might be similarly ignored?
Fair point, I haven't tried actually modifying the file. I'm extrapolating from how the PSP version did display the whole string even though only parts of it was "within" the description field, so to say--it rendered bytes that were actually in the Item Rank/Jump/etc colums as actual characters. So unless they changed the file-reading routines I'd guess the null byte is required in PC too.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jul 14, 2016 @ 3:35pm
Posts: 4