Steve Jackson Games Forums

Steve Jackson Games Forums (http://forums.sjgames.com/index.php)
-   GURPS (http://forums.sjgames.com/forumdisplay.php?f=13)
-   -   GURPS HP & FP Tracker (application) (http://forums.sjgames.com/showthread.php?t=68357)

ericbsmith 03-30-2010 03:56 PM

GURPS HP & FP Tracker (application)
 
I've been messing around with C# and whipped up this little application to help keep track of multiple characters HP and FP totals as well as displaying the current HP and FP status (Below 1/3, At or Below 0, -1xHP, etc). It also keeps track of current Move and Dodge based on the halving from lowered HP & FP. Tracks up to 24 PCs or NPCs. Requires the Microsoft .NET framework.

Probably horribly written by normal design standards, but this is me messing with C# and trying to learn how to do basic controls, layout, and functions like Save/Load.

7z Archive (~50kb)

ZIP Archive (~100kb)


April 1 Update
-Added ability to rename Tabs from the Rename top menu

April 14 Update
-Reducing FP below 0 automatically reduces HP by a like amount, per the rules.
-Added check box to turn a character entry into an Energy Reserve entry (for the character above or below that one, whichever you wish to use).
-Added Reset to Defaults under the File menu, which resets everything to defaults.
-Added warning message box to Save, Load, and Reset options under File Menu
-A few other minor tweaks & fixes

April 30 Update
- Added a Timer button to each character. This opens a window where you can set a countdown timer, useful for abilities that can only be used every so often in real time (such as Luck).

Ronnke 03-30-2010 06:59 PM

Re: GURPS HP & FP Tracker (application)
 
Nice little utility. It would be cool if you could add tabs and change the name of the tab so that as GM you could create a tab for planned NPC encounters.

eg.

My Players / Dock Encounter (Pirates) / Dock Encounter (The reinforcements) / Kraken / etc....

ericbsmith 04-01-2010 08:38 AM

Re: GURPS HP & FP Tracker (application)
 
Quote:

Originally Posted by Ronnke (Post 960119)
Nice little utility. It would be cool if you could add tabs and change the name of the tab so that as GM you could create a tab for planned NPC encounters.

Allowing users to add tabs isn't going to happen (at least, not the way I've written the app), though I could probably add a couple more myself. As for renaming them, I'd like to be able to allow that, but right now I honestly don't know how to do it. I was happy as frak that I'd managed to get the save function working, and I'd like to improve that with a standard save dialog at some point.

Anyway, I squashed a couple bugs in the code and posted an updated version.

Kale 04-01-2010 11:08 AM

Re: GURPS HP & FP Tracker (application)
 
Any chance of compiling this for Linux? @:-)
I use a netbook with Ubuntu for my games...

nerdvana 04-01-2010 12:10 PM

Re: GURPS HP & FP Tracker (application)
 
Quote:

Originally Posted by Kale (Post 960809)
Any chance of compiling this for Linux? @:-)
I use a netbook with Ubuntu for my games...

Not to say it isn't a good idea... but have you tried running it in the Windows Emulator in Ubuntu?

Kuroshima 04-01-2010 02:06 PM

Re: GURPS HP & FP Tracker (application)
 
Quote:

Originally Posted by Kale (Post 960809)
Any chance of compiling this for Linux? @:-)
I use a netbook with Ubuntu for my games...

Same here...

A port to Java should not be that difficult, given that c# and java are not that different. The GUI can be designed with Netbeans (it's nearly as good as Visutral Studio at designing cookie cutter GUIs, IMHO).

As for WinE, personally, I don't have it installed in my net book, since it's one of the SSD models, and hard drive space is very limited (4GB for the OS). Also, the Atom processor has very low power consumption, but it's not the fastest processort out there...

ericbsmith 04-01-2010 02:31 PM

Re: GURPS HP & FP Tracker (application)
 
Guys... as much as I would love to make this available in Java or recompile it for Linux... I'm in the process of learning C# using Visual Studio for Windows machines. I really don't know a darned thing about Java, nor how I'd go about compiling the code for Linux (let alone testing, since I don't have a Linux box) .

I'm making this because I'm building similar apps for class, but I'm already pushing the bounds of my knowledge of C# working on this. For instance, I spent the last couple hours figuring out how to shuffle information between forms so I could make a Rename Tab method. I spent a couple hours the other day trying to figure out how to save & reload the data.

Kuroshima 04-01-2010 03:53 PM

Re: GURPS HP & FP Tracker (application)
 
Quote:

Originally Posted by ericbsmith (Post 960958)
Guys... as much as I would love to make this available in Java or recompile it for Linux... I'm in the process of learning C# using Visual Studio for Windows machines. I really don't know a darned thing about Java, nor how I'd go about compiling the code for Linux (let alone testing, since I don't have a Linux box) .

I'm making this because I'm building similar apps for class, but I'm already pushing the bounds of my knowledge of C# working on this. For instance, I spent the last couple hours figuring out how to shuffle information between forms so I could make a Rename Tab method. I spent a couple hours the other day trying to figure out how to save & reload the data.

Well, learn C#, and once you feel a little confident with it, try Java. You'll realize that it's basically the same language (C# has been described as the bastard child of Delphi and Java). Trust me on this, as a Java an C# developer, on the basic levels, C# and Java are basically identical (though both have their quirks, and once you reach advanced subjects, they diverge some more)

Ronnke 04-01-2010 04:07 PM

Re: GURPS HP & FP Tracker (application)
 
Plus Java makes the baby Jesus cry. :P

FYI

To dynamically add a tab (where "tabControl" is the name of your tab object):

tabControl.TabPages.Add("My New Tab");

To change the names on the tab:

tabControl.TabPages[0].Text = "New Tab1 Name";
tabControl.TabPages[1].Text = "New Tab2 Name";

*the [0] and [1] indentifies the tab you are working with. So if you added a new tab, then the index would be [2] and so on.

Hope that helps your on your way to learning c#. Good luck. :)

Ragitsu 04-01-2010 04:08 PM

Re: GURPS HP & FP Tracker (application)
 
Whoa guys, stop being so demanding. ericbsmith, did this for free, and likely out of love of the system. You have no right to be whiny.


All times are GMT -6. The time now is 07:34 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.