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 > NoBarbarian
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    < Last Thread     Next Thread > Post New Thread     Post A Reply
tombom is offline tombom
Chieftain
Pining for the fjords
Oct 2004
time: 05:30
  Old Post 30-03-2005 01:14
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
NoBarbarian Suffering from ads?

I'm currently adding a flag which means that that unit can't be picked as a barbarian to the code. Can anybody tell me if I'm duplicating something here and if not, whether adding it makes sense?

Can somebody revert the slic.y revision on SVN to r297? I made a mess there and I got lost trying to make it work again. Actually, only do this if the version there hasn't had ACTIVISION_ORIGINAL removed.

Last edited by tombom on 30-03-2005 at 02:02

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:30
  Old Post 30-03-2005 01:48 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Tired of ads?

nope, my cultureOnly only allowed for the possibility I think. But I recommend that you look into the BuildLists and instead look at the possibility of making a BarbarianBuildList and let the game pick offthere (instead off of the player build list)

tombom is offline tombom
Chieftain
Pining for the fjords
Oct 2004
time: 05:30
  Old Post 30-03-2005 12:02
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton or Terrorists Win

I seem to have done something really odd to slic.y. Now reverting to the previous revision which I know worked doesn't work and I really have no idea how to make it work again. It only shows up if you use SlicDebug.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:30
  Old Post 30-03-2005 17:36 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by tombom
It only shows up if you use SlicDebug.


Where is it that it only shows up when you use SlicDebug?..

tombom is offline tombom
Chieftain
Pining for the fjords
Oct 2004
time: 05:30
  Old Post 30-03-2005 22:17
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Full PM-box? Change here!

tut2_fun.slc, line 57 onwards has problems. The lines look perfectly normal, and they're all, as far as I can see, type declarations.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:30
  Old Post 31-03-2005 19:36 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase Your PM Length

Looking at the diffs I'm somewhat confused as to what you have done. In you most recent change you deleted a line which you never added. I suspect that this may be the problem. Try:

svn diff -r 295:304 slic.y

to see what I mean. The typedef statement appears to have vanished - which would explain these errors.

Since I want to make some other alterations to slic.y, I'll put it back if you don't beat me to it.

Last edited by J Bytheway on 01-04-2005 at 02:14

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:30
  Old Post 02-04-2005 01:03 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Increase Your PM Length

tombom could you explain what you did to exclude barbarian units (its a nice add bytheway)

tombom is offline tombom
Chieftain
Pining for the fjords
Oct 2004
time: 05:30
  Old Post 02-04-2005 11:26
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by E
tombom could you explain what you did to exclude barbarian units (its a nice add bytheway)


To start with I added Bit NoBarbarian to Unit.cdb. Then in barbarians.cpp there is a function ChooseUnitType which decides which unit type to make as the new barbarian. The code then goes through each unit and first decides whether that unit cannot be a barbarian. I just added my code which checked the unitdb for whether it had the flag NoBarbarian.

Here is the code, with the bit I added in bold.

code:
for(i = 0; i < g_theUnitDB->NumRecords(); i++) { const UnitRecord *rec = g_theUnitDB->Get(i); if(rec->GetCantBuild()) continue; if(!rec->GetMovementTypeLand()) continue; if(rec->GetAttack() < 1) continue; if(g_exclusions && g_exclusions->IsUnitExcluded(i)) continue; if(rec->GetNoBarbarian()) continue;


I only added 3 lines

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:30
  Old Post 03-04-2005 01:00 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization 2

nice tombom,
I suspected as much. Where did you put the bit NoBarbarian in the unit.cdb only because I've added quite a few things to the unit.cb and I'm not sure if the server would copy over yours.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 03-04-2005 01:14 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by E
nice tombom,
I suspected as much. Where did you put the bit NoBarbarian in the unit.cdb only because I've added quite a few things to the unit.cb and I'm not sure if the server would copy over yours.


In case of doubt the you are asked to resolve, conflicting changes by hand. However in the case of the *.cdb files there shouldn't be any conflicts.

-Martin

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:30.
Apolyton Time is 00:30.
    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.0300 seconds (87.93% PHP - 12.07% 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