Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation
  Bringing barbarians back to the oceans of CTP2

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   Bringing barbarians back to the oceans of CTP2 Format for Better Printing
Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted February 21, 2001 03:30   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
HI Y'all !

Did you like those barbboats in CIV1 very much, I know I did, just when you where about to land your trireme on uncharted land a little red boat would appear and sink your fleet !
Isn't that fun

what I want to do is bring them back, I want to see barb battleships roam the sees, but I NEVER EVER programmed even a word in SLIC so I need your help !!

Everyone who has suggestions about what should be in this mod and everyone who would like to give me some pointers as to programming in SLIC would be greatly appreciated

Here r a few things I thought of :
- To see what kind of boats you could ginve the barbs first look to see how the players r advancing...you might want to take the strongest player (AI or not) and go from there.
So if AI player 1 has battleships but the others have trireme give the barbs battleships, it makes things more exiting !
- Second, how many boats would be wise to generate and must we keep count of how many are destroyed, when the number of boats reaches 10, generate new ones OR do we generate new boats each 20 turns or so ?
-Third, but this is a long shot, how do I create barb transports and carriers with payload, and do we want to give the brabs subs with nukes ????? I think not because they are bound to fire them wich in turn creates uncontrollable pollution ! But if you guys want that ........

GIVE me some ideas to work with, what would you like to see happening ! Please let me know !
Can't wait to hear from Y'all !

Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted February 21, 2001 04:07   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Well here I am in my own thread, my question is bound to be posted somewhere but the barbs...which number is that is that civ[0] for example.

Because otherwise I might start making units for civ1 ! that would be not so nice

Small question aint it !

Steve5304
Chieftain
Racine ,WI USA
Jan 2001
posted February 21, 2001 10:52   Click Here to See the Profile for Steve5304Click Here to Email Steve5304  send a private message to Steve5304 Visit Steve5304's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
its fairly simple....Right click on your Slic File and hit "open with" ......Then find Notepad or Wordpad...And figure it out from there....I think your gonna need an entire new slic...I think it may be impossible to edit that attribute to this game.And yes i remember the stupid Barbarians from Civ2.Always come and Land near your capitol. Coming on Trimes nd Cravals if i remember correctly.....
Steve5304
Chieftain
Racine ,WI USA
Jan 2001
posted February 21, 2001 10:53   Click Here to See the Profile for Steve5304Click Here to Email Steve5304  send a private message to Steve5304 Visit Steve5304's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
its fairly simple....Right click on your Slic File and hit "open with" ......Then find Notepad or Wordpad...And figure it out from there....I think your gonna need an entire new slic...I think it may be impossible to edit that attribute to this game.And yes i remember the stupid Barbarians from Civ2.Always come and Land near your capitol. Coming on Trimes nd Cravals if i remember correctly.....
Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted February 22, 2001 04:13   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
This is whatI have so far, I programmed a loop to check every turn if one of the players has got an advance where they recieve a waterunit, ex steel.

If that is so than a random number of units is created, but I have to assign these units to the barbs, how the hell do I do that.

What player number does the barbs have ?

If I get this then pretty soon I will be able to make a working script, because it's vacation time !!! YEEEHAAWW !

I can program my mod all day and hope to have a beta ready for testing about the fifth of march.
I want to do it well and not just half of it

Hope you have the patience to wait, it's going to be good ! (I hope)

Still, anything is welcome !

Greeetinx and happy vacation time

Immortal Wombat
Warlord
UK
Dec 2000
posted February 22, 2001 14:59   Click Here to See the Profile for Immortal WombatClick Here to Email Immortal Wombat  send a private message to Immortal Wombat
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I think player[0] is the barbarians.
Will your checking for advances lead to thousands of barbarian sea units, or will you do an "every Nth turn loop" or something ?
Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 22, 2001 16:02   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Good to see you picked this up, Huysmans
Actually, barbarian player is player 0, not player[0]. The difference may seem trivial but it isn't. player[0] is a variable that will change throughout the game (just as the rest of the player[] array) and it is the value 'inside' this array-element that determines the actual player. So to use the barbarians, simply use 0 where you'd normally use player[0]. However, if you need properties of the barbarians, such as how many units they have, you'll have to put them in one of these variables first, like this:

player[3] = 0; // barbarians (3 could be any number)
tmpValue = player[3].units;

Hope this helps,

Wouter

PS Vacation? What's that? I vaguely seem to recall the term but it's been such a long time, I don't even remember what it was...

Dale
Warlord
Melbourne, Australia
Dec 2000
posted February 22, 2001 20:00   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Huys:
At the beginning of every turn it's good to check whether the 'current' player is the barbs and then code them. EG:

code:

HandleEvent(BeginTurn) 'CheckForBarbs' pre {
if(g.player == 0) {
// This is for code to perform when barbs turn
// You could write code to find a spot to spawn from - "location_t barbtmploc;" and then assigning a location to barbtmploc.
// Then using barbtmploc you create the unit
CreateUnit(0, UNIT_CATAMARAN, barbtmploc, barbtmpunit);
// barbtmpunit is the variable to store the new unit if you want to assign an order to it yourself rather than the AI assign to it. "unit_t barbtmpunit;"
}
}

Hope this helps mate.

------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted February 23, 2001 03:29   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Locutus, Dale : Great to see such great minds help out a little SLIC programmer.

I'm currently in the proces of just spawning a barb unit in the sea but even that doesn't work.
I use the makelocation, where the location is combined of a x and y.
I randomize the x and y between certain values ex 25
So I'm left with tmp_loc but then I have to check if the newly created tmp_loc is a water square...this is not a problem.
If it's not randomize another set of x and y and go over the loop once more.
BUT THE makelocation doesn't work it says out of bounds error !
No matter what I do !

I'll write your advice down, but first lets create a unit, that's the basic part, on water
I think that I'll write the advance checking routine at the beginturn routine, then I can make a loop which checks all players, if that player has one of those advances....then set a global variable to 1 and use this in the barbsturn routine.
Is this any good ?

I'm thinking of how much units to spawn, in the beginning I think not so very many, but in the end when everone has a fleet, than it's ok to spawn whole fleets of barbs....what do you think ?

So you see, there's a lot of work to be done

Locutus, don't you have springbreak ? (carnavalsvakantie) Sorry folks that was a dutch term and I don't know how to put it in english !

Well I'll hope to have a beta ready soon, I have some great ideas but this searching for water square doesn't work...GOe$#@@#$#$@#it !

See Y'all, I'll be on the forum a lot even though I have vacation !

Immortal Wombat
Warlord
UK
Dec 2000
posted February 23, 2001 06:30   Click Here to See the Profile for Immortal WombatClick Here to Email Immortal Wombat  send a private message to Immortal Wombat
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:

Originally posted by Locutus on 02-22-2001 04:02 PM
Actually, barbarian player is player 0, not player[0]. The difference may seem trivial but it isn't. player[0] is a variable that will change throughout the game (just as the rest of the player[] array) and it is the value 'inside' this array-element that determines the actual player. So to use the barbarians, simply use 0 where you'd normally use player[0]. However, if you need properties of the barbarians, such as how many units they have, you'll have to put them in one of these variables first, like this:

player[3] = 0; // barbarians (3 could be any number)
tmpValue = player[3].units;

Which is why I leave SLIC alone as much as I can. I can't cope with all these weird terms!

Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 23, 2001 07:09   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Huysmans,

The explanation of the problem would become a whole lot more understandable if you posted the actual sourcecode as well (use to ubb-tag code to make it look understandable). Out of bound errors indicate that you made some sort of mistake in an array (you probably already figured that out), so double check every occurance of an array(-element) in your code. Can't say more about it until I see the source.

Carnaval? Ahh, that explains why half the people I encountered today were dressed up so funny Nope, here at the University of Twente we only have a (short) Christmas break and a summer vacation, the rest of the year you can take a day (or week or months or whatever) off whenever you want, but the schedule simply doesn't always allow this. Currently I find myself working 70+ hours a week just to get my schoolwork done, so not much time for vacation (or sleep for that matter)

Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted February 23, 2001 10:03   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Hi guys,

Wanted to say thanx for all the support on this one, and indeed like you said locutus, it gets easier if you practice a lot.
And now it's even fun to do, I WANT it to work, so eventually it will !

Well, I just heared I have to work next thursday so I'll hope to post a version then, but don't count on it !

Locutus, the beta code will be coming to you soon, I just worked out the rough edges so it should take form any day know.
Only problem is...I code at work where I don't have CTP2 to actually test the stuff so I'm going home now with the script to test it (Hope my computer doesn't blow up ! )

I see little ideas about the pirates....WHAT WOULD YOU the users like in my script, tell me and I'll see to it that it gets in !

If noone talks to me, I just made this script for myself and noone else...kinda sucks then !

Well hope to hear from you soon !

greetinx, Huysmans

WesW
apolyton.net/wes
Huntsville, Al., USA
b.02-15-99
posted February 24, 2001 00:19   Click Here to See the Profile for WesWClick Here to Email WesW  send a private message to WesWSend a Message to UIN: 84799350 Visit WesW's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Myself, I would like the code to make the Pirates sea-based complements to the land Barbarians. I would like for them to start appearing about 125 turns into the game, and keep appearing until the end of the Renaissance age, about turn 400 in my mod.
They would be created outside the boundaries of civs, like the Barbarians.

Ideally, I would like for both warships and transports to be available to the Pirates, with the specific types the same as those available to the civs in the game at that time.
The transports would be supplied with a couple of land units, comparable to the land Barbarians available at that time, and these transports would then proceed to the nearest city and unload those land units on the shore there.
Warships would pirate trade routes, pillage improvements and attack any ships they came across.

Specific enough?

Immortal Wombat
Warlord
UK
Dec 2000
posted February 24, 2001 12:04   Click Here to See the Profile for Immortal WombatClick Here to Email Immortal Wombat  send a private message to Immortal Wombat
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Everything Wes said, but not the ending at the end of the Renaissance, there are still Pirates on the oceans of the 21st century. They should however be vastly reduced in number with the invention of modern warships (ironclad perhaps).
XMon
Chieftain
Tampa, Florida
Sep 2000
posted February 24, 2001 23:11   Click Here to See the Profile for XMonClick Here to Email XMon  send a private message to XMon
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
In the modern era I'd restrict the pirates to having PT Boats and perhaps Transports. I can't think of any terrorist orgs or guerilla armies that can afford large warships. I have read of drug cartels purchasing ex-Soviet subs so maybe non-nuclear subs could be included. While we're talking boats...I'd love to see a sprite of a military transport ship (the CTP transports look like cruise ships) and then make the current Transport only be able to carry civilian or stealth units. Just an idea....
Dale
Warlord
Melbourne, Australia
Dec 2000
posted February 25, 2001 17:32   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Huys:
When scripting the withdraw mod I got an Out of Bounds error on my array when the script tried to withdraw a unit to an invalid terrain type. Remember that some of the anchient ships can ONLY be shallow/beach terrain types. You will error out if you try to put them in any other terrain. Remember to check for that.

------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

XMon
Chieftain
Tampa, Florida
Sep 2000
posted February 26, 2001 21:14   Click Here to See the Profile for XMonClick Here to Email XMon  send a private message to XMon
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Just a bit of clarification...just above there I mentioned that I'd like to see a different, more military-looking, transport sprite. Well, Wes has the "Liberty Ship" sprite in CTP MedMod. I know about that sprite but was planning on using that as a SIGINT spy ship. Kind of like the spy satellite but waterborne and appearing earlier in the game. Just wanted to clarify that I like that sprite but plan on using it for something else. It'll make for a fine spy ship.
Huysmans_666
Settler
Hoeven,Noord-Brbant,netherlands
Jan 2001
posted March 01, 2001 03:25   Click Here to See the Profile for Huysmans_666Click Here to Email Huysmans_666  send a private message to Huysmans_666
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Hi everyone,

Great to be back, I've been on a little vacation, actually 4 days of uninterrupted partying and doing whatever you like.
In my country they call that Carnaval ! it's great !

Thus my code hasn't gone that far, it worked for a short period of time, but now, I can't get it to work properly, while loading after a while it just hangs.
I think that it has an infinite loop somewhere but that's the weird part, there is none ! ?

I think that I mail the code to locutus and maybe he can check it out, error out the code, the rough material is there, now to edge it out a little.

Hope to have a beta out soon, but I won't have all the features that you like, patience now

Well, gotta go, work to be done !

bye

Jerk
Chieftain
Green Bay, WI USA
Nov 2000
posted March 01, 2001 12:52   Click Here to See the Profile for JerkClick Here to Email Jerk  send a private message to Jerk
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Dale,
To avoid the problem of putting some boats out in the middle of the ocean that can't move out there I would just create UNIT_PIRATE_BOATTYPE and just give them the ability to move on ocean squares. That way you don't have to worry about it through slic or give the pirates a boat that far exceeds the combat ability of anything else out there. This also gives them the potential to flee to safe waters.

Huysmans_666,
I would alter your code to just pick one single random tile on the map and then check to see if it is water. If it's not I suggest using GetNearestWater(fromLocation, toLocation) to find the closest one. This avoids long waits while it picks tiles randomly on the map. This also might be more friendly to people who choose to max the land slider. Additionally, you will want to make sure you aren't plunking down pirate ships on one landlocked ocean square. I would use IsContinentBiggerThan(location,size) to check for this. According to the slic2 function page it works on ocean sizes as well as land mass sizes.

Apolyton Civilization Site Forums
> > > CtP2-Creation Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

AltaVista Type or paste text or Web address (beginning with http://) here:
Powered
by Systran
Translate from: 

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site