« first day (221 days earlier)      last day (3640 days later) » 
00:00 - 23:0023:00 - 00:00

23:00
i think you can count on the fact that any time you want to manually serialize your game model, its going to take you at least a day to figure it out
@bazola unless you've done it before a couple of times. But yes, it still takes time.
23:31
@SimonAndréForsberg so the problem was that for some reason, this was saving 196 as the size of the map, when it should have been 2500
public void customEncode(DataOutputStream out) throws IOException {
    out.write(this.worldMap.values().size());
    for (Region region : this.worldMap.values()) {
        region.customEncode(out);
    }
}
@bazola You need to call writeInt or something then
write saves it as a byte.
hmm
and an integer is normally 32 bits, huh? so my other integers are only working because they are smaller than 256?
then you also of course need to change to readInt for that value as well
@bazola yes, that is correct.
if you need something bigger than 256, save as int.
computer science is so much fun ;)
but at least I discovered this problem now while I am creating these encoders so I can fix my ints before they get me into less obvious trouble
18 seconds to save on the iPod, 12 seconds to load, but at least it doesn't crash.. file is only 1MB
23:53
@bazola quite a significant decrease in file size from the XML, huh?
very much so
yesterday, by Simon André Forsberg
@bazola if you are aiming for low disk usage, XML is not really the best format to pick :)
@SimonAndréForsberg I'm kind of excited to take on nhgrif's new challenge, did you see it?
@Phrancis nope, what challenge?
/*
 * nhgrif says:
 * This will get arrays and file IO all at once.
 * This website has .txt files of literary works in public domain:
 *   gutenberg.org/ebooks/search/%3Fsort_order%3Ddownloads
 *
 * Create a program that takes a text file and does the following:
 *   1) Count the total number of words
 *   2) generate a list of all unique words
 *   3) For each word, create a list of every line it occurs on
 *     (and how many times it occurs on that line) and calculate the total
 *     frequency of that word (count/totalWordCount)
23:59
RELOAD!
[retailcoder/Rubberduck] 4 commits. 1 opened issue. 1 closed issue. 9 issue comments.
[Zomis/GithubHookSEChatService] 15 commits. 1 opened issue. 2 closed issues. 1 issue comment.
00:00 - 23:0023:00 - 00:00

« first day (221 days earlier)      last day (3640 days later) »