Talk:SOLDIER.DAT (TFTD): Difference between revisions
I'm using CE if that makes a difference... |
Name length seems variable based on pixel width. String length record? |
||
| Line 2: | Line 2: | ||
:Actually you can enter 21 characters within the game. There is room to hex edit the name up to 27 characters (doesn't need to be null terminated, the final 27th character shows up just fine). The name is the reason why EU's and TFTD's file sizes differ (68 vs. 70 bytes). The programmers gave TFTD 2 more characters to play around with. I'm using the Collector's Edition by the way. --[[User:Zombie|Zombie]] 15:46, 10 November 2008 (CST) | :Actually you can enter 21 characters within the game. There is room to hex edit the name up to 27 characters (doesn't need to be null terminated, the final 27th character shows up just fine). The name is the reason why EU's and TFTD's file sizes differ (68 vs. 70 bytes). The programmers gave TFTD 2 more characters to play around with. I'm using the Collector's Edition by the way. --[[User:Zombie|Zombie]] 15:46, 10 November 2008 (CST) | ||
Interesting. I'm using the Steam version which is also CE I think. Looks like the character name input in-game is limited to some maximum pixel width, or 21 bytes, whichever is less. E.g. use all capital Ws for the name and you only get to enter 14 bytes. Use digit 1 (narrowest character?) or lower case a and you can enter 21 bytes. | |||
I could hex edit 26 + null and it displayed, but overwrote the next column in the Aquanaut display - probably why there is a pixel width limit. I didn't try non null terminated. That's also interesting as it suggests they may be storing the string length somewhere, which could be one of the Unknown records. [[User:Spike|Spike]] 04:15, 11 November 2008 (CST) | |||
Revision as of 10:15, 11 November 2008
Hi Zombie. I've just checked and the maximum length of an Aquanaut name that can be entered in-game is 19 characters. 20 bytes including a null-terminating byte? It would also be good to hack the name and see if it's possible to display more than 19 characters, I'll try that next. Spike 14:49, 10 November 2008 (CST)
- Actually you can enter 21 characters within the game. There is room to hex edit the name up to 27 characters (doesn't need to be null terminated, the final 27th character shows up just fine). The name is the reason why EU's and TFTD's file sizes differ (68 vs. 70 bytes). The programmers gave TFTD 2 more characters to play around with. I'm using the Collector's Edition by the way. --Zombie 15:46, 10 November 2008 (CST)
Interesting. I'm using the Steam version which is also CE I think. Looks like the character name input in-game is limited to some maximum pixel width, or 21 bytes, whichever is less. E.g. use all capital Ws for the name and you only get to enter 14 bytes. Use digit 1 (narrowest character?) or lower case a and you can enter 21 bytes.
I could hex edit 26 + null and it displayed, but overwrote the next column in the Aquanaut display - probably why there is a pixel width limit. I didn't try non null terminated. That's also interesting as it suggests they may be storing the string length somewhere, which could be one of the Unknown records. Spike 04:15, 11 November 2008 (CST)