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 > PROJECT: What are you currently working on?
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
MrBaggins is offline MrBaggins
King

May 1999
time: 05:33
  Old Post 06-01-2004 06:58
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
PROJECT: What are you currently working on? Support Apolyton buy from Amazon

Just FYI, I'm working on implementing that idea where you could specify different governments, in the database files. I'm doing this to not only add some useful functionality (which might be useful for game balancing too,) but to also to get familiar with the back end data structure used.

Progress? I'm figured out the yacc syntax I needed, and am working on the parser. The parser handles the definition, but I haven't decided how to optimally structure the member variables... the linked list for the actual data is fairly straightforward, but I'm not settled on how to deal with the list of government types yet...

After this, I'm going to be concentrating on the AI.

What about other coders?

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:33
  Old Post 06-01-2004 21:40
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Avatar Enlargement: We've got the solution

Long term, I'm working my way through the AI files and trying to figure out how it works. I'm sort of documenting as I go along but I don't know if it will make sense to anybody else.

Yesterday I got bored with doing that so I've started filling in the SLIC AI functions from the patch.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:33
  Old Post 07-01-2004 01:52 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Get a bigger avatar today!

A couple of coders (aswell as J Bytheway) would be useful on PBEM

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:33
  Old Post 07-01-2004 18:32
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Im looking into the mayor not using entertainers problem but im still not really started and RL is taking a lot of my time right now (programming a car rental program).

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:33
  Old Post 08-01-2004 14:56
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

As mentioned above, I've been filling in the SLIC AI functions (they're mainly diplomacy functions). When I started to debug I noticed that some of the existing ones weren't working as I expected them to. I suspect that not only were new ones added in but also more work was put in on some of the ones that were there already.

I propose to finish them off differently. For example, there's a function:

code:
ConsiderNewProposal(sender, receiver, priority, ..., ID_String, ID_String, ID_String)


Those ID_Strings are never used. I've found examples of them in junk_str.txt which is described as "Junk: Trash can for obsolete strings that need to be there for the executable. Programmers should delete things from junk_str.txt" We don't need them for the SLIC function at all so I think it would be better to just remove those arguments from it.

edit: I forgot.

Maq, that's a good point. How about we make a list of things that need to be done and then try to prioritize it. Lots of people expressed interest in coding: they could either choose what they're specially interested in or start on the top priority.

Last edited by Peter Triggs on 08-01-2004 at 15:33

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:33
  Old Post 08-01-2004 17:22 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

Well i only mention it so we can get started playing before anything AI related or new features are added, and would hopefully encourage people to give CtP2 another try.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:33
  Old Post 09-01-2004 01:49 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Tired of ads?

Attempting to create a universal mech based on the ctp war walker

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:33
  Old Post 10-01-2004 03:26
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Browse Apolyton AD-FREE

Maq (or anyone else who knows),

How is diplomacy in PBEM or Hotseat supposed to work? They're supposed to be almost the same thing so I started a Hotseat game with the debug exe to see what it was like. So when you try to send a proposal to another human, nothing happens. But what should happen? When you start your turn, I guess you immediately get a whole bunch of proposals from the other players. I have a feeling that this isn't just a little bug: the necessary code may not have been written.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:33
  Old Post 10-01-2004 03:43 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Peter Triggs
Maq (or anyone else who knows),

How is diplomacy in PBEM or Hotseat supposed to work? They're supposed to be almost the same thing so I started a Hotseat game with the debug exe to see what it was like. So when you try to send a proposal to another human, nothing happens. But what should happen? When you start your turn, I guess you immediately get a whole bunch of proposals from the other players. I have a feeling that this isn't just a little bug: the necessary code may not have been written.


You send a proposal and on that next players turn he receives the proposal as a message waiting to be opened..... well this is how it works in CtP1 PBEM, so the buttons on the left-hand side of the screen might have to be brought back, to make it easy to see when you have new proposals.

Also on a similar subject, turns end properly in Hotseat mode but not in PBEM, i assume they both work in a similar way, this might be something to look at and compare?

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:33
  Old Post 10-01-2004 07:11 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Increase the size of your Attachments

To exlain and supplement Maquiladora here's how diplomacy works in PBEM in CtP1:

a) You open the diplomacy screen, select the player you want to conduct diplomacy with and make the proposal the way you do it in the single player.

b) When the player where you have sent the proposal to opens his turn he receives a message in the left side of the screen as a small icon. When he clicks on it, a larger message box pops-up with a relative text to the proposal and two buttons to accept or deny the proposal.

c) When it is your turn again and you open it, you receive a similar message in the left side of the screen where you are notified whether your proposal has been accepted or not but with only one button to close it.

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:33
  Old Post 10-01-2004 16:12
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Civilization 2

Just a thought on the Hotseat function, if we have working code for CTP1 would that mean it should be possible to import it to get it working in CTP2?
I always missed that function in CTP2, its great if you have a few friends around(one of the fun ways i used to play Civ2).

I guess the same could be done for PBEM?

I'm thinking if CTP1's code is basicaly the same as CTP2's, minus the fuzzy AI etc, but the main mechanics of it all, it should be possible no?

I guess it would mean more begging letters to Activision to get permission to use the code in CTP2?

OT: I'm working on a step by step tutorial for complete novices to the CTP type game(I've got an intro and general description done that adds to what we have in the manual already).

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:33
  Old Post 10-01-2004 20:32 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Help yourself to an AD-FREE life

I'm not actually working on the CTP2 code, but I'm working on an object-oriented scripting language compiler for another game in the hope that it will give me inspiration for working with a new language for CTP2...

CoT: With regard to the hotseat/PBEM - we can't do as you suggest because we *don't* have working code for CTP1. The changes I have made to the CTP2 code were working towards the way CTP does things, but obviously I haven't got there yet...

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:33
  Old Post 14-01-2004 03:36
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Increase the size of your Attachments

As mentioned above, I started a hotseat game using the debug exe. Boy or boy, there are a lot of bugs! As Pyaray said:

quote:

The reason it was cut, and yes it was cut recently, was because of insurmountable bugs. There were a lot of really horrendous bugs that quite frankly we didn't know how to fix in the amount of time we have. ... Once again I'm sorry that this disappoints so many of you, but this is not a trivial spend an hour to implement it kind of feature. It is actually a very difficult to implement feature.


I remember trying out hotseat mode a year or two ago, and I'm sure that there weren't that many bugs in it. So I assume that they fixed some of them for the patch (but not Human to Human diplomacy). Anyway, it's in a terrible state and I don't really know where to begin with it. I suspect that it needs someone who's more experienced at debugging to have a look at it.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
  Old Post 14-01-2004 19:24 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Currently working on, actual I was working on the Slic Database access at the end of last year, unfortunatly I had to do a break to do some work I had to do for university.

-Martin

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 14-01-2004 19:28 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Peter Triggs
I propose to finish them off differently. For example, there's a function:

code:
ConsiderNewProposal(sender, receiver, priority, ..., ID_String, ID_String, ID_String)


Those ID_Strings are never used. I've found examples of them in junk_str.txt which is described as "Junk: Trash can for obsolete strings that need to be there for the executable. Programmers should delete things from junk_str.txt" We don't need them for the SLIC function at all so I think it would be better to just remove those arguments from it.


I wouldn't remove those arguments at, I just would make sure that these areguments no slic errors throw so that old code is furthermore compartible with this version of CTP2.

-Martin

MrBaggins is offline MrBaggins
King

May 1999
time: 05:33
  Old Post 11-02-2004 07:30
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Bump.

I'm working at implementing Build Classes, right now. I've done 90% of the base class stuff.

What are the other coders up to?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 21-03-2004 23:47 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Increase Your PM Length

I am working on implementing the player selection in single player mode, so far you have a nice interface to select the player and with it its color, but it doesn't work. So far I got it working for the random single player game, and also for scenarios with start info type positionfixed and I should it also have working for start info type civ fixed. I only have no clue what the difference between those two options is, the relevant code concerning player selection is here identical, maybe there is a difference somewhere else.

I need to get it to work for start info type civs (select a civ and you start at a fixed location like on the world map).

As a by product I fixed scenarios with cities and units set up so that you can select players other than player one here, actual that was the easiest part.

-Martin

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:33
  Old Post 22-03-2004 01:35 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton buy from Amazon

I am working on underwater terrain with no idea where in the code to start

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 09-04-2004 03:28 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton

I am working on the disabling all the rush buy buttons for capitalization and infrastructure and with I do it also when it is not your turn. In addition I am fixing the turn display for capitalization and infrastructure.

-Martin

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