Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Civ2-General/Help-Archive > combat program?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:12
Post  Old Post 21-05-2001 05:34
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
combat program? Support Apolyton, buy Call to Power 2

has anyone written a program to give the percentage chance of victory for any given battle, that will run at the same time as Civ (as in AC)? i was thinking of doing it myself but there's no point in re-inventing, well anything really.

Marquis de Sodaq is offline Marquis de Sodaq
King
... no, a Marquis.
Jul 2000
time: 23:12
Post  Old Post 21-05-2001 08:08 Visit Marquis de Sodaq's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton buy from Amazon

I've written one for Excel, altho it would need a bit of tweaking before I'd send it out in public. Basically, it would need some more rows of calculation added, and some touch-up. It's fast, all you do is type in the two units' attack, defense, HP, and FP, et voila, the probability of the attacker winning pops up in another cell. It does not work for 0-defense units, tho (division by zero errors).

For everything the collective apolyton mind knows about combat, see the oft-linked (usually by me) thread Info: Combat (GL).

------------------
"There is no fortress impregnable to an ass laden with gold."
-Philip of Macedon
[This message has been edited by Marquis de Sodaq (edited May 20, 2001).]

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:12
Post  Old Post 21-05-2001 17:07
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase the size of your Attachments

sounds good! are you going to post it when its finished? also does it allow for terrian types? also with divide by zero errors could you set to defense strengh to something like 0.0000000000000001 when zero was entered and round the answer to (say) 2 decimal places so the probabiltity will be the same.

i've got to learn to use a programmable calculator (TI 84) as part of a maths course i'm doing and i thought this might be a good exercise.

Marquis de Sodaq is offline Marquis de Sodaq
King
... no, a Marquis.
Jul 2000
time: 23:12
Post  Old Post 21-05-2001 18:41 Visit Marquis de Sodaq's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Browse Apolyton AD-FREE

I suppose if there is interest, I'll finish it. I'd whipped it together for calculating odds while testing. The zero-defense unit problem might work with a small number, I've not tried that. The attack and defense values to be entered are already modified (terrain, vet status, etc) - I've only written it for one input number. I'd thought about making a VB program that had checkboxes for all possible modifications, but I just don't have the time for that. I'll let you know when I get around to finishing it...

Scouse Gits is offline Scouse Gits

Emperor
Liverpool, United Kingdom
Nov 1999
time: 05:12
  Old Post 21-05-2001 20:19 Visit Scouse Gits<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton or Terrorists Win

I might just give VB a try after I emerge from under 200 exam scripts ...

------------------
Scouse Git[1] -- git1@scousers.net

"Staring at your screen in horror and disbelief when you open a saved game is one of the fun things of a succession game " - Hueij
"The Great Library has been built!"
"A short cut has to be challenging,
were it not so it would be 'the way'."
- Paul Craven

Marquis de Sodaq is offline Marquis de Sodaq
King
... no, a Marquis.
Jul 2000
time: 23:12
Post  Old Post 21-05-2001 22:37 Visit Marquis de Sodaq's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

The VB idea is good because it can spew out the final probability more neatly than Excel. The spreadsheet takes a sum of each combination's probabilities - each one taking up a row. There are dozens of possible HP/FP combos to take into account, each needing its own summary cell. A VB program could simply pop in the high and low of the range to reach the same number. If that doesn't make sense, nevermind. Just trust me that VB would not be anywhere near as messy.

Edit: The zero-defense units might be given a 1/8 defense in calculation, considering the situations in which they win. Others have suggested other values, but I'd like to see the .125 put to the test.
------------------
"There is no fortress impregnable to an ass laden with gold."
-Philip of Macedon
[This message has been edited by Marquis de Sodaq (edited May 21, 2001).]

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:12
  Old Post 26-05-2001 20:11
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

i was looking thru the GL for information on the combat equation when i came accoss a program by a guy called Mark Wagner writen 1999 that gives the probabilty of an attacker winning a given battle, its appears to use something very close to the SUMn(COMB) equation as it gives results identical to the ones posted by the Marqis in the GL. i emailed Mark and he confirmed this "but with a slight modification". it's a great program small, neat and inobtrusive you can download it from
www.geocities.com/siliconvalley/program/9231.

has anyne done any more predicted results for the SUMn(COMB) equation? i'd like to run a few through the program to see what i get.

Marquis de Sodaq is offline Marquis de Sodaq
King
... no, a Marquis.
Jul 2000
time: 23:12
  Old Post 26-05-2001 23:10 Visit Marquis de Sodaq's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Put an end to popups!

I downloaded that program a while ago, but it doesn't do the same math as the Sum/Comb formula. I've started making a VB program to do the full formula - I'll probably finish right before Civ3 comes out... Actually, I'll plug away at it as I have free time.

SlowThinker is offline SlowThinker
King
homeless, Praha, Czech Republic
Jan 2000
time: 06:12
  Old Post 27-05-2001 01:40 Visit SlowThinker's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Tired of ads?

quote:
Originally posted by Marquis de Sodaq
Edit: The zero-defense units might be given a 1/8 defense in calculation,


might? must be given a 1/8 defense. IMHO.

Marquis de Sodaq is offline Marquis de Sodaq
King
... no, a Marquis.
Jul 2000
time: 23:12
  Old Post 29-05-2001 07:59 Visit Marquis de Sodaq's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Get a bigger avatar today!

Sorry, to clarify, might get a 1/8 - instead of 1/16 or .00001 or anything at all other than zero...

Okay, I've done all the easy work in VB (making the interface). Now I have to code all the math behind the gray box. This might take some time, as I'm only a novice at VB programming. I could write it in an hour in the proprietary language I use at work. Alas, this cannot be translated into common code...

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:12.
Apolyton Time is 00:12.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0384 seconds (88.58% PHP - 11.42% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net