GUI-based packrom utility

Topics on software tools like TileStudio, comments on documentation and tutorials (or the lack of) should go here.
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

GUI-based packrom utility

Post by DaveyPocket »

I'm currently in the process of creating a GUI packrom application. I plan to have this version do everything the original packrom utility did plus additional features such as extracting the hex file from a uze file and being able to change the header in the uze file. I'll share my progress here as I work on it. So far I have the CRC32 checksum calculator working :D
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: GUI-based packrom utility

Post by DaveyPocket »

Uze, I found a little bug in your packrom utility in the "parse_hex_nibble" function

Code: Select all

static inline int parse_hex_nibble(char s)
{
	if (s >= '0' && s <= '9')
		return s - '0';
	else if (s >= 'A' && s <= 'F')
		return s - 'A' + 10;
	else if (s >= 'a' && s <= 'a')
		return s - 'a' + 10;
	else
		return -1;
}
I assume this line:

Code: Select all

else if (s >= 'a' && s <= 'a')
Be changed to:

Code: Select all

else if (s >= 'a' && s <= 'f')
User avatar
uze6666
Site Admin
Posts: 4812
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: GUI-based packrom utility

Post by uze6666 »

Ah, right, indeed...funny no one had issues before. Guess it's because HEX files are always uppercase. I've fixed this and committed the changes.

Thanks for the find! :)

-Uze
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: GUI-based packrom utility

Post by DaveyPocket »

Alright I got something you guys can play with now. All the application does at the moment is load a .uze file and display the name, CRC32 checksum, and a messed up year :lol:

Sorry for any Linux and Mac users out there, you'll just have to wait.
Attachments
PackromGUI.zip
V 0.1
(11.28 KiB) Downloaded 574 times
User avatar
uze6666
Site Admin
Posts: 4812
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: GUI-based packrom utility

Post by uze6666 »

Cool! :D Is it done in .NET? If so, it should run well with MONO under Linux/Mac.

-Uze
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: GUI-based packrom utility

Post by DaveyPocket »

Yes, this program uses .NET framework. I was thinking of making native Mac and Linux programs eventually, might even redo in Java.
User avatar
uze6666
Site Admin
Posts: 4812
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: GUI-based packrom utility

Post by uze6666 »

coding multi platform apps is really a pain with OS tools. I gave up trying when working on a map editor with gcc+wxwidgets. Ended up with doing it in C#...boosted my productivity by 10000% at least! 8-)
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: GUI-based packrom utility

Post by DaveyPocket »

Version 0.2 is ready!

-Fixed year (I realized date was stored "backwards")
-Author now displays
-Description now displays (I don't think any of the games have descriptions in their headers)
-Added icon support (Again, no current games utilize this)
-Program size displays
-Added saving function. Try not to save anything just yet, the header gets duplicated. So if you save, your game will have two headers!

I included a sample .uze file of Arkanoid with a modified header. This sample includes a description and icon which appears as garbage (randomly typed in values from a hex editor :lol: )

Enjoy!
Attachments
PackromGUI0_2.zip
V 0.2
(37.92 KiB) Downloaded 565 times
User avatar
uze6666
Site Admin
Posts: 4812
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: GUI-based packrom utility

Post by uze6666 »

Awesome! For sure there's a lot of fields unused, but with such a tool it will make it so much easier to fill them up.

This tool will have to be part of the official tools for sure. If you don't have access to SVN, just pm me an email/gmail account and I'll add you to the project commiters.

I'd be curious to know if it runs as-is under Linux with Mono. Anyone to test that out?

-Uze
User avatar
Flecko
Posts: 158
Joined: Mon Jan 05, 2009 11:50 pm

Re: GUI-based packrom utility

Post by Flecko »

I love C#...and I'll give this baby a whirl under Linux tonight (I was planning on setting aside some time to work on my game anyways...so this helps!)

Thanks for the great contribution.
-Flecko
Post Reply