Main > Software Forum
HiToText (Version 2010.11.4).
NOP:
I agree that you're pretty much going to have to hard-code each game on a case by case basis. That's not such a bad thing, and if something is worth doing, it's usually worth doing twice, so if we start hard coding now and discover that it's really something that could be explained via a formatting xml, then we change it in later revisions. Not that big of a deal.
I'm all for decoding more .hi files; I've just been exceptionally busy the last few days, but count me in for the long haul.
I also like a command line switch type app, so that any FE could access it, but then I'm a DOS guy to begin with. ;)
Unknown bytes in the file I think are also OK at the moment. Since we're only reading these files to output them to another format, and not generating our own (that's a future project) we just skip the stuff we don't understand. It'll come around.
Fyrecrypts:
I've whipped up a quick .hi file to stdout/.txt file/whatever, and included the code in case you'd like to add/change outputs.
Edit: App removed here, but can be found in the main post.
headkaze:
Here is a slightly different approach. First change is to use structures to store the data which I think will make it easier in the long run. I also took more of an OOP approach by using a super class that all other game hiscore classes can inherit from. Your welcome to use the code or not but it just shows another method to accomplish the same thing. (It's also in C# my language of choice also) ;)
Fyrecrypts:
That is much better than what I rigged up HeadKaze, I will be using your version from here on out.
headkaze:
--- Quote from: Fyrecrypts on August 26, 2008, 05:58:21 pm ---That is much better than what I rigged up HeadKaze, I will be using your version from here on out.
--- End quote ---
No worries, glad your a C# coder as well :) BTW When I was first trying to parse the 1942.hi file I was using the one attached to this thread. I don't know what happened but the file must have got corrupted because I couldn't parse it right using the info NOP provided. Had me stumped for a while. I ended up creating my own 1942.hi in Mame and then I could parse it. Strange, so I don't recommend anyone to use hiscore files posted here as text files. If you do upload a hiscore file it's probably best to zip them up first ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version