Steve Jackson Games Forums

Steve Jackson Games Forums (https://forums.sjgames.com/index.php)
-   GURPS (https://forums.sjgames.com/forumdisplay.php?f=13)
-   -   Combat Calculator Utility (https://forums.sjgames.com/showthread.php?t=80646)

Noven 06-15-2011 08:47 PM

Re: Combat Calculator Utility
 
could you make a qt interface for linux? I would really love you if you made a gtk interface haha.

ClayDowling 06-15-2011 11:00 PM

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.

JMD 06-19-2011 04:29 PM

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;

gilbone 06-19-2011 10:57 PM

Re: Combat Calculator Utility
 
Quote:

Originally Posted by JMD (Post 1194262)
This is an awesome idea! I think I will incorporate something similar into my Droid app.

Please do ;)

JMD 06-20-2011 12:17 AM

Re: Combat Calculator Utility
 
Quote:

Originally Posted by gilbone (Post 1196502)
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.


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.