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 > Call To Power II > CtP2-Source Code Project > DOCUMENT: Miscellaneous source findings and thoughts
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 02-11-2003 19:10 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Full PM-box? Change here!

Just from the snippets you've posted here it looks like you're increasing the attack rating every time a battle takes place...

My preference would be to alter the code in ComabtUnit::GetOffense and CombatUnit::GetDefense so that they checked the veteran status. Veteranness is a property of the unit, not the battle, and so if possible the code pertaining to it should be contained within the unit definition.

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:31
  Old Post 02-11-2003 19:14 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Remove this text

Dunno... I thought then that ExecuteAttack is when the stats are loaded for the battle... but I haven't checked it much.

Will recompile with changes to CombatUnit.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 02-11-2003 19:20
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Tired of ads?

John is right.

The offense and defense would be increased each turn by that method.

The alternative to to add the vet modifier to the damage and hitchance lines. They are local variables, so that should work fine.

As is mentioned we could also modify things on the GetOffense / Defense end. This will require us to look through the code to remove extra multipliers on top, and more importantly, check that no other parts of code cheat and access the unitDB directly to get attack strength.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 02-11-2003 19:28 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Tired of ads?

I'd rather alter the GetOffense and GetDefense, because the AI might access them when deciding how to compose its armies, and other similar things. You're right that checks would be required to see where they and other related quantities are accessed, however.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 02-11-2003 19:35 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Suffering from ads?

On an unralated subject, if anyone wants to alter the healing rate of forts (so that they heal at the same rate as cities, for instance, rather than instantly) you need to alter UnitData::EndTurn.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 02-11-2003 21:59 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Enter the AD-FREE zone

Command line parameters

I've been looking at the command line parser, and there are some handy command line parameters which, so far as I know, are mostly otherwise undocumented.

Here is a list with a few of my current interpretations (some of which are almost certainly wrong):

-l[Save game name]
Loads the specified save game (We knew about this one - used for PBEM)

-s[Scenario name]
Use the specified scenario (Could be very handy)

nointromovie
Skips the intro movie

age1
age2
age3
age4
age5
These are related in some way to the option in userprofile.txt about CheatAge. They only work on a debug build.

And some more about which I don't have any idea beyond what little you can deduce from what they say:

notimeslice
noshell
noexitaction
nonexclusive
hidetaskbar
noassertdialogs
runinbackground
eventlog
multimon
autoalttab

Last edited by J Bytheway on 03-11-2003 at 02:27

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 02-11-2003 23:45 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by Solver
I wonder if anyone who gets the compiled game to actually run can test this code, which is supposed to fix the veteran bug.


I prefer to have files attached to a thread so that I don't have to paste the code myself into the files. Espeacilly if you consider that by using this board code could be altered take the big grin smily or angel brackets for instance. But to avoid floating source files around I opened a new
thread for alterd source files. Of course if you think your code should be tested more before you add it there, you can post it here as well. Or any other thread that is about the code in question.

-Martin

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
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.0436 seconds (88.19% PHP - 11.81% MySQL) with 36 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