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 > Alternative Civs > Freeciv > Barbarians become civilized?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Lightbulb  Old Post 09-05-2000 06:21 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Barbarians become civilized? Got spare money?

I thought of a weird idea a couple of days ago. What if barbarians, once they achieve a certain point in their "evolution" become full fledged ai-civilizations? Not sure if this is a good idea. I tried coding it and I almost have it working. Basically when barbarians have 2 or more cities, they have a chance of becoming a new random nation. The way i accomplished barbarians having cities is to set the "BarbarianLeader" flag for settlers, and also I added a 10 percent chance of a barbarian leader (a settler or diplomat, in my ruleset) appearing whenever a horde of barbarians is unleashed from a hut.

I'd like to know if anyone thinks 1) I'm crazy or 2) thinks this is a good idea.

Later.

Moses

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 09-05-2000 14:51 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization 2

It is an ok idea. But you don't have to make the barbarians create settlers, they can just conqour their cities (Which is also more realistic).

paulz is offline paulz
Freeciv Webmaster
San Diego, CA, USA
May 2000
time: 21:14
Arrow  Old Post 09-05-2000 20:41 Visit paulz's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase Your PM Length

quote:

Originally posted by moseslei on 05-08-2000 09:21 PM
I thought of a weird idea a couple of days ago. What if barbarians, once they achieve a certain point in their "evolution" become full fledged ai-civilizations? Not sure if this is a good idea.


This was discussed on the freeciv-dev list, but I can't find a link to the actual messages. (check http://arch.freeciv.org ) The barbarians do conquer cities and use them to produce more units but they cannot research technologies.
[This message has been edited by paulz (edited May 09, 2000).]

Kumiorava is offline Kumiorava
Prince

Jan 1970
time: 00:14
Thumbs up  Old Post 10-05-2000 02:58
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Help yourself to an AD-FREE life

Sounds like a good idea, although I do agree with Thue that barbarian settlers are unnecesary.

Also, if barbarians would form a random nation, it should not be possible if no civs have been eliminated. If you are playing with the highest possible number of civs allowed by the server, a conflict would be created when the barbarians are "promoted", and the server might crash.

But this should be rather easily fixable. Just add a ristrictor that tells the server that when # of civs still alive = the max civ count set in the server options, the barbarians can't get their promotion, even if the other prequisites are met. As soon as one civ is eliminated, they can be replaced by the barbarians, if they still have what it takes at that point.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 10-05-2000 03:28 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Get a bigger avatar today!

The server hopefully allready checks if there is room for another nation when one is created. This already happens fairly often when a players capital is captured and the empire is in civil war.

Kumiorava is offline Kumiorava
Prince

Jan 1970
time: 00:14
Thumbs up  Old Post 11-05-2000 05:33
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase the size of your Attachments

You're right. Forgot about that...

moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Post  Old Post 11-05-2000 07:06 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Browse Apolyton AD-FREE

Anyone willing to try my patch? It's from 1.10.0 (not CVS, too unstable for me...)

ftp://ftp.freeciv.org/freeciv/incoming/barbcivil.diff

I found that it works fine without the barbarians having settlers, also. (How stupid was I to think that it wouldn't.) Running it with the default ruleset is fine, although to test it I like to put barbarians on 4 "raging hordes" :-)

If anyone tries it please tell me what you think.

Moses

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 11-05-2000 20:13 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton or Terrorists Win

I didn't actually compile or test the code, but looking at it here are some things that should be corrected:


    [*]The barbarian players are not garantied to have the last player numbers. You should iterate through all the players to find them
    [*]In addition to checking if there is a nation (danish, dutch, ect) available (you do this), you need to check if creating the player would raise the number of nonbarbarian players above MAX_NUM_PLAYERS. Remember that MAX_NUM_PLAYERS only count non-barbarian players. (just run through the players and count them)
    [*]I would create a capital for them, done by inserting a palace in one of their cities. [*]You should make a new event for barbarians becoming civilized. And I don't think you should tell the players where the event takes place. (ie give 0,0 coordinats I think it is)
    [*]You shouldn't give a new barbarian nation a predefined number of techs. This will almost certainly lead to unfair situations early or late in the game.
    [/list=a]

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 11-05-2000 20:36 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

Ad 4) In addition to creating the palace ( "pcity->improvements[B_PALACE]=1;") I think you need to set "pplayer->capital=1;" (this decides if the next city the player builds should be the capital. One means it shall not). Anyway, it can't hurt to be safe.

Ad 5) Maybe find the average number of techs of the other players and then give the new player up to that number

paulz is offline paulz
Freeciv Webmaster
San Diego, CA, USA
May 2000
time: 21:14
Post  Old Post 12-05-2000 09:33 Visit paulz's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Put an end to popups!

Patches should really be submitted to freeciv-dev. And anyone who is taking the time to write them ought to be on freeciv-dev. It will be much easier to get testers for your patch and it will have to appear there before it gets commited anyway.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 11-05-2000 23:56 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton or Terrorists Win

paulz is right, it should be sent to freeciv-dev@freeciv.org . Be sure to subsrcibe at http://www.freeciv.org/mailinglists.html , or at least include a note with the mail that the other people on the mailing list should CC you.

Just a few more point about your patch:
6) You should run through the players cities and send them send_city_info(0, pcity), and the units too send_unit_info(0, punit), to make sure they are updated in the client.
7) You should read the http://www.freeciv.org/contribute.html page about how freeciv developers prefer their patches. (just diff -ur untouched__freeciv_dir modified_freeciv_dir > patch.diff)

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 12-05-2000 22:13 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Remove this text

moseslei: When do you have the updated patch? Remember, I only critiqued it to get the errors corrcted so the patch could get into CVS, and later the next freeciv version.

moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Post  Old Post 13-05-2000 17:15 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Tired of ads?

Sorry, I won't be having time to write any code again for (quite possibly) more than a week or two. I'll try to send the update to freeciv-dev then. I'm not on freeciv-dev, really just because I have no time to read all the discussion there and I feel bad having to mark all of them as read without actually reading them. As this isn't really a civ2 feature I doubt it'll considered to be in CVS anyway, but as soon as I make those corrections I will submit it.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 13-05-2000 17:35 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Increase the size of your Attachments

*Thue wawes his CVS write access*
And I at least consider it a worthy features, allthough other people also have a say, of course. If nothing else it can be a toggleable option, which should make it acceptable to everybody.

moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Post  Old Post 13-05-2000 17:50 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Thanks for the encouragement :-) why am I still on line? I should be doing schoolwork, or if not, writing code (probably schoolwork). later.

Moses

moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Question  Old Post 20-05-2000 18:40 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

On a side note, Thue, how do I go about creating a new event type? Wouldn't this involve changing the client as well (which I'm hesitant to do)?

Moses

moseslei is offline moseslei
Settler
Falls Church VA USA
May 2000
time: 05:14
Question  Old Post 20-05-2000 18:41 Visit moseslei's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Civilization 2

*this used to be a repeat of the last post, I accidentally pressed submit twice*
[This message has been edited by moseslei (edited May 20, 2000).]

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:14
Post  Old Post 20-05-2000 18:51 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Help yourself to an AD-FREE life

Actually I don't know. (haven't done it myself)
Maybe you should just make it a no-event for now, or maybe ask on freeciv-dev what to do.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    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.0518 seconds (89.76% PHP - 10.24% MySQL) with 30 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