Steve Jackson Games Forums

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

ericbsmith 03-30-2010 04: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 07: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 09: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 12:08 PM

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 01: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 03: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 03: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 04: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 05: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 05: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.

ericbsmith 04-01-2010 06:23 PM

Re: GURPS HP & FP Tracker (application)
 
Posted a new update. Doubled the number of tabs to 8; 48 characters total. Added ability to rename tabs through the dropdown menu.

Kale 04-02-2010 12:55 AM

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

Originally Posted by ericbsmith (Post 961084)
Posted a new update. Doubled the number of tabs to 8; 48 characters total. Added ability to rename tabs through the dropdown menu.

Cool. I'll try to get it running under WINE and let you know how it goes. I haven't used WINE in a while so it didn't even occur to me to try it out. That would make things simpler than trying to recompile/java-fy it etc.

Quote:

Originally Posted by Ragitsu
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.

Wasn't trying to come across as whiny... hope I didn't anyway. I just thought I'd point out that a number of the forum members use Linux instead of Windows. I was hoping that Eric could do it with a simple recompile but I am ignorant with respect to C#, so I wasn't sure how easy it would be to do it. Since it seems to be a big deal I'll just try WINE now that I remembered it exists... @:-)

Kuroshima 04-02-2010 03:49 AM

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

Originally Posted by Kale (Post 961239)
Cool. I'll try to get it running under WINE and let you know how it goes. I haven't used WINE in a while so it didn't even occur to me to try it out. That would make things simpler than trying to recompile/java-fy it etc.

I personally use VirtualBox to get some use of my legal windows license, that came with the computer. Sure, I can't run high performance apps/3d aps with it, but for almost anything, it's sufficient, and it's much less of a hassle than WinE

Quote:

Wasn't trying to come across as whiny... hope I didn't anyway. I just thought I'd point out that a number of the forum members use Linux instead of Windows. I was hoping that Eric could do it with a simple recompile but I am ignorant with respect to C#, so I wasn't sure how easy it would be to do it. Since it seems to be a big deal I'll just try WINE now that I remembered it exists... @:-)
Recompiling C# should not be neccessary, since technically, they run on a virtual machine (the .net framework) and a port of said virtual machine exists (mono) but MS makes everything it can to keep the compatibility at minimums, specially for the GUI elements. If you release the source, it might be possible to see if it compiles under Mono, and thus if it's possible to run it under it.

Ragitsu 04-03-2010 10:06 PM

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

Originally Posted by Kale (Post 961239)
Wasn't trying to come across as whiny... hope I didn't anyway. I just thought I'd point out that a number of the forum members use Linux instead of Windows. I was hoping that Eric could do it with a simple recompile but I am ignorant with respect to C#, so I wasn't sure how easy it would be to do it. Since it seems to be a big deal I'll just try WINE now that I remembered it exists... @:-)

Well, I wasn't specifically addressing you in that instance.

I guess my objection stemmed from the fact that on many occasions, real life and the internet, someone does something for free that's entertainment related and it becomes a big hit. Then, they are repeatedly asked, and even demanded, to do something else.

Kale 04-03-2010 10:37 PM

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

Originally Posted by Ragitsu (Post 961999)
I guess my objection stemmed from the fact that on many occasions, real life and the internet, someone does something for free that's entertainment related and it becomes a big hit. Then, they are repeatedly asked, and even demanded, to do something else.

Success is its own punishment? @:-) This is sort-of like someone who puts out a hit record or movie. Everyone is after a sequel...

Panzerfaust 04-04-2010 11:56 AM

Re: GURPS HP & FP Tracker (application)
 
Well, this has ALWAYS been a pain in the arse as me for a gm. Maybe now I can get rid of the old spreadsheet system I had been using for the longest time. I'll get this thing installed and let ya know how it works on my lil win7 netbook.

ericbsmith 04-30-2010 06:23 PM

Re: GURPS HP & FP Tracker (application)
 
Posted a new update, details above.
(if you have any connection issues please try again later... I've got to rewire my network tonight, so it'll be down for a short period)

Kale 05-01-2010 12:38 PM

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

Originally Posted by ericbsmith (Post 975013)
Posted a new update, details above.
(if you have any connection issues please try again later... I've got to rewire my network tonight, so it'll be down for a short period)

May your router switch true! @:-)

Onkl 09-02-2011 12:11 PM

Re: GURPS HP & FP Tracker (application)
 
I just found this, thanks a bunch!

I can finally send my XLS Sheet to RIP.

Onkl

The Wrathchild 09-02-2011 12:18 PM

Re: GURPS HP & FP Tracker (application)
 
I seem to spot a bug. Activating the energy reserve causes the Current Dodge score to dissapear for character #1 upon unchecking

Onkl 09-02-2011 12:29 PM

Re: GURPS HP & FP Tracker (application)
 
It would be cool:

to have a tracker for combat rounds
to have a small paperdoll with max HP/crippled Indicator

Thanks again

Onkl

JMD 09-04-2011 09:31 AM

Re: GURPS HP & FP Tracker (application)
 
Impressive first C# app. Thanks for the contribution! Being able to track multiple hp/fp sets is a huge advantage.

One thing I noticed is that if you reduce a characters current HP to a point where they get a status message such as total bodily destruction, and then you raise the Base HP of the pc, then the message doesn't change.

The timer is a great idea. I'm currently implementing a similar idea into my Droid app. One suggestion is to have it play a sound when the time runs out. Having it play a sound or not should be optional.

therpgguy 09-04-2011 09:54 AM

Re: GURPS HP & FP Tracker (application)
 
I really like this app. I've been playing with it and like the functionality of it. Are you working on adding any more functions to it? If so, what?

Mehmet 09-04-2011 11:35 AM

Re: GURPS HP & FP Tracker (application)
 
Hello ericbsmith,

Is there any chance you would make the source code available? I am a dabbler myself, just interested in your implementation and maybe I could add a couple of things and send the code to you at some point.

Cheers...

PS: willing to sign an NDA if you like :)

ericbsmith 09-04-2011 09:32 PM

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

Originally Posted by Mehmet (Post 1242410)
Is there any chance you would make the source code available? I am a dabbler myself, just interested in your implementation and maybe I could add a couple of things and send the code to you at some point.

I haven't done any real work on this since I posted my last update over a year ago. I'm not even sure if I have the source code anymore, as I lost all of my first semester C# Labs (including my personal projects) due to a Flash Drive failure, and my stupidity in not backing it up properly. At any rate, it was written so horrifically compared to some of the neat things I've learned since then that if I ever opened it up I'd want to rewrite it entirely anyway.

Mehmet 09-04-2011 09:36 PM

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

Originally Posted by ericbsmith (Post 1242663)
I haven't done any real work on this since I posted my last update over a year ago. I'm not even sure if I have the source code anymore, as I lost all of my first semester C# Labs (including my personal projects) due to a Flash Drive failure, and my stupidity in not backing it up properly. At any rate, it was written so horrifically compared to some of the neat things I've learned since then that if I ever opened it up I'd want to rewrite it entirely anyway.

No worries, started writing one myself anyway. I'm pretty sure the horrible design problems you mention, I have a good collection of those :)

Cheers...

Refplace 09-04-2011 09:46 PM

Re: GURPS HP & FP Tracker (application)
 
I would like to add the java recommendation. Not becasue I have any intention of using it but once your conversant in C and have some time learn java. Your already on your way and financially java is still in demand and the more languages you have on your resume the better.
And with the popularity of smart phones i do not see java going away anytime soon.


All times are GMT -6. The time now is 03:28 AM.

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