Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > GURPS

Reply
 
Thread Tools Display Modes
Old 06-15-2011, 08:47 PM   #11
Noven
 
Join Date: Jan 2008
Location: Phoenix, AZ
Default Re: Combat Calculator Utility

could you make a qt interface for linux? I would really love you if you made a gtk interface haha.
Noven is offline   Reply With Quote
Old 06-15-2011, 11:00 PM   #12
ClayDowling
 
ClayDowling's Avatar
 
Join Date: Jul 2007
Location: Ann Arbor, MI
Default Re: Combat Calculator Utility

I'll play with it and see what I get. My Linux laptop died of a broken internal power connection, so I only run it under emulation on my mac now. Nowhere near as fun. But it would be Qt, not GTK. GTK is worlds of no-fun to deal with on any other platform.
__________________
Online Campaign Planning
ClayDowling is offline   Reply With Quote
Old 06-19-2011, 04:29 PM   #13
JMD
 
JMD's Avatar
 
Join Date: Nov 2009
Location: Southern NH, USA
Default Re: Combat Calculator Utility

I'm seeing a slight problem.

If you put in 6 as the range you end up with -3, when you should have -2. The -3 penalty does not apply until you reach 7 yards.

The trend continues up the chart. 31 yards gives you a -8 a full 19 yards before the actual -8 threshold at 50 yards.

I ran into a similar problem in my own code when making my droid app.

Looking at your code I see the issue.

Quote:
int i;
int target;

target = abs(yds);
for(i=0; range_band[i] > 0 && range_band[i] < target; ++i);

return 0 - i;
This should have one additional line

Quote:
int i;
int target;

target = abs(yds);
for(i=0; range_band[i] > 0 && range_band[i] < target; ++i);

if(range_band[i] != target) i--;

return 0 - i;

Last edited by JMD; 06-19-2011 at 04:58 PM.
JMD is offline   Reply With Quote
Old 06-19-2011, 10:57 PM   #14
gilbone
 
Join Date: Jul 2009
Location: Everywhere you want to be
Default Re: Combat Calculator Utility

Quote:
Originally Posted by JMD View Post
This is an awesome idea! I think I will incorporate something similar into my Droid app.
Please do ;)
__________________
G-8=8

Quote:
Originally Posted by Crakkerjakk View Post
It doesn't hurt baby jesus if I write poetry in haiku form
gilbone is offline   Reply With Quote
Old 06-20-2011, 12:17 AM   #15
JMD
 
JMD's Avatar
 
Join Date: Nov 2009
Location: Southern NH, USA
Default Re: Combat Calculator Utility

Quote:
Originally Posted by gilbone View Post
Please do ;)

I did! It's not released yet, but a screenshot of the new functionality is up in my own thread. You can find the link in a reply above.
JMD is offline   Reply With Quote
Reply

Tags
action, combat, software

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:10 PM.


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