So I am writing a variation on EatDrink from scratch so I understand it ;-) I am building it up from small pieces and am working on a piece that reads in the mafia datafiles fullness.txt, inebriety.txt and spleenhit.txt using file_to_map. When I look at the size of the resulting map it is less than the number of lines in the input file, even accounting for comments and the version identifier. The first item I identified that was in the file but not my map was "au jus gezund heit" from fullness.
For giggles, I made a version of fullness.txt that just had three lines:
When I read it and print out the contents of the map, I get "none" rather than "au jus gezund heit". I get "none" whether I call print with the item or to_string of the item.
Any ideas about what makes "au jus gezund heit" special? I can't find any special processing for the item and don't know why the fact that it is a Chez Snootee item should make a difference. I am running my test when I am not logged in but it doesn't make sense that file I/O would be "censored" based upon the player/game state at the time of reading. I don't think the fact that there are three spaces in the item name matters since other items with three or more spaces are fine.
I'm not posting my code (now) because it is a little fussy because it has to define records for the I/O. The fact that all of the spleen items do appear in my map suggests that the code is probably right and this is an issue with specific items and my understanding.
Ideas? Usually when I get to this point it turns out I am just missing something obvious.
Thanks.
For giggles, I made a version of fullness.txt that just had three lines:
Code:
1
au jus gezund heit 4 1 4-6 0 0 0
When I read it and print out the contents of the map, I get "none" rather than "au jus gezund heit". I get "none" whether I call print with the item or to_string of the item.
Any ideas about what makes "au jus gezund heit" special? I can't find any special processing for the item and don't know why the fact that it is a Chez Snootee item should make a difference. I am running my test when I am not logged in but it doesn't make sense that file I/O would be "censored" based upon the player/game state at the time of reading. I don't think the fact that there are three spaces in the item name matters since other items with three or more spaces are fine.
I'm not posting my code (now) because it is a little fussy because it has to define records for the I/O. The fact that all of the spleen items do appear in my map suggests that the code is probably right and this is an issue with specific items and my understanding.
Ideas? Usually when I get to this point it turns out I am just missing something obvious.
Thanks.