Thread Closed  Thread Closed
  Apolyton Civilization Site Forums
  Clash of Civilizations
  Final (5.3) Tech Dynamics (Page 2)

Post New Topic  

This topic is 4 pages long:   1  2  3  4 

profile | register | preferences | faq | search

next newest topic | next oldest topic bottom of page
Author
Topic:   Final (5.3) Tech Dynamics Format for Better Printing
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 13, 2001 22:14   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Aw, dang! I suspected as much, since some of your equations had the divisor and others didn't. And also the spreadsheet didn't have a divisor. But I'd already written the thing before I twigged to that, so I figured I'd make sure...
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 18, 2001 18:02   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Coding Status Update

A new pro Java programmer, named Gary, has expressed interest in taking over coding of the tech model. I have turned over what I had accomplished over the past ten days or so to him. He said he already has a good HTML parser at work, and thought he could manage both the parser for tech, and the GUI tech builder utility by the end of this coming week. Hopefully we'll hear from him here shortly. He also has an extensive math background, so he should be able to fully participate in the discussions on mathematical details of the model. He's also an XP advocate, so we've gotta get him and F_Smith together .

When you get here Gary, an official welcome to the Clash project!

[This message has been edited by Mark_Everson (edited March 18, 2001).]

Gary Thomas 2
Settler
New Zealand
Mar 2001
posted March 18, 2001 19:38   Click Here to See the Profile for Gary Thomas 2Click Here to Email Gary Thomas 2  send a private message to Gary Thomas 2
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Mark has asked me to take over the coding for the Technology section.

I am a Java Architect and used to be a technical team leader for a Java coding team.

I have read all the tech threads (that wiped out the weekend).

My design orientation is very similar to that of F_Smith - I am an enthusiast for OO programming, and Kent Beck's Extreme Programming in particular.

I also have quite a bit of experience with XML. I will try and have a working user interface to allow input of technologies and applications within the next few days. This will follow the requirements listed a few posts back.

Cheers

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 18, 2001 20:18   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:

Originally posted by Gary Thomas 2 on 03-18-2001 07:38 PM
I have read all the tech threads (that wiped out the weekend).

LOL! I Believe it... Stout guy (or something else ) to carry through with it!

Great to have you on the project!

Gary Thomas 2
Settler
New Zealand
Mar 2001
posted March 18, 2001 21:33   Click Here to See the Profile for Gary Thomas 2Click Here to Email Gary Thomas 2  send a private message to Gary Thomas 2
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Thanks for the Welcome!

The email I got with my password said that I can change it: "Note that you change this password online using the "edit profile" button on our bulletin board"

When I tried this, there did not seem to be any option to change my password. Can you change your password?

First cut at the tech editing user interface is working - it picks up a file and parses it. Course it doesn't do anything else, but I am getting there.

Cheers

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 18, 2001 21:40   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Hey Gary:

Yeah the change password seems to be accessable to me. I hit profile, then entered username & pw and hit submit ID. Then you get a screen that has a lot of editable fields, one of which is the pw. I didn't try actually changing mine, but it looks like it should do the trick.

Good progress! I'm getting the merchants going for the econ model...

Lord God Jinnai
Prince
Arnold, Mo 63010
Sep 1999
posted March 18, 2001 22:03   Click Here to See the Profile for Lord God JinnaiClick Here to Email Lord God Jinnai  send a private message to Lord God JinnaiSend a Message to UIN: 57262757 Visit Lord God Jinnai's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Hey Gary! Glad to see some help here! Me and Rich will insert the actual techs we plan to use once you got a descent user model working so I can't wait!

Hope you didn't fall asleep reading all those posts either

Gary Thomas 2
Settler
New Zealand
Mar 2001
posted March 18, 2001 22:48   Click Here to See the Profile for Gary Thomas 2Click Here to Email Gary Thomas 2  send a private message to Gary Thomas 2
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Thanks - I must have been blind - I didn't see the password box. I have now changed it to something I can remember. Coming from an unusual country I have an advantage with passwords - I just use a Maori word.

In writing the data editor I have taken

1. Set default values for m, c, W, and DR.

2. For every technology, input:
a. Technology name and text description.
b. The level of the technology.
c. Technology requirements and Ts.
d. Values for m, c, and DR. It would be a big help if these were defined in terms of the defaults (default c times some value). This way, we can change the default values and not have to redo individual values; they would keep the same ratio.
e. Helper technologies with O and h for each helper tech, as well as a W value defined in terms of the default value.

It would be nice if parts a through e were in different sections. Also, space should be left for the the Alter Variable section and sections dealing with E and I.

3. For every application, input:
a. Application name and text description.
b. The L value of the application.
c. Technology requirements with an h value for each requirement.

as the substantive definition of requirements.

This raises a coding point. One of the most well-accepted, ingrained even, principles of coding is that all identifiers must be descriptive. Under no circumstances should you ever use single letter variable names (sometimes people get away with i for an index and e for an exception, but that is it).

So I would like the model designers to provide me with descriptive values for: m, c, W, DR, Ts, O, h, E, I and L.

I am unclear what "Technology requirements" means.

The file will be in a simple XML format (so I can use a simple parser), here is a sample:


<Parameter>
<mValue>0.1</mValue>
</Parameter>

<Technology>
<Name>FarmMachinery</Name>
<Description>Farm machinery and equipment</Description>
<Level>3</Level>
<mRatio>1.4</mRatio>
<cRatio>1.2</cRatio>
<Requirement>
<Name>Agriculture</Name>
<Value>10</Value>
</Requirement>
<Helper>
<Name>Automation</Name>
<Value>0.7</Value>
<Offset>20</Offset>
</Helper>
</Technology>

However, the users of the utility will never need to look at this.

Since getting the utility out seemed the biggest priority I have not gone over the equations very closely. However I did notice that h and W seem to share the same dimension space - that is, if you double all the h values and double the W value, the result is unchanged.

Enough for now. I am hoping that all my & g t and such come out right!

Cheers

Gary Thomas 2
Settler
New Zealand
Mar 2001
posted March 18, 2001 23:13   Click Here to See the Profile for Gary Thomas 2Click Here to Email Gary Thomas 2  send a private message to Gary Thomas 2
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Damn - all my careful indentations of the XML got lost. It will really look like:


<Parameter>
  <mValue>0.1</mValue>
</Parameter>

I hope that works. If there is no indentation it didn't work.

I have two questions.

Somewhere in my voluminous reading I remember seeing a comment that "Level" was used for two quite different things (tech level 1-3, and level of a particular technology on a 1-100 scale), and an alternative was proposed for one of them. Could somebody let me know what that alternative was and for which one. Thanks.

My other question relates to "Requirement" which crept into the XML example, but does not appear to be part of the model. What is the situation there?

Cheers

Richard Bruns
King
NC, USA
Nov 1999
posted March 19, 2001 00:05   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Welcome, Gary, and thanks for helping!

Technology requirements are the tech levels that are required for an application or another technology to become available. FE the tech requirements for the first cannon might be explosives level 10 and metallurgy level 30. The tech requirement for Explosives might be Chemistry level 20. Requirements will typically be helper techs.

The user can choose to define tech layers or "Tiers." These used to be called "levels." The Tier defines how the interface treats the tech, and it also sets the framework for vital techs.

The difference between h and W is in terms of what they apply to. W is an overall variable that affects every helper and vital tech equation. h, however, is different for every helper or vital tech. h is used to set up the relative effect of all the techs that help a single technology. For example, we may want to set up the following:

Aircraft Helpers:

Propulsion Systems h = .3
Physics (Mechanics) h = .5
Electronics h = .1

In this way, we can set up the relative effects of all the techs that help the development of airplanes. But what do we do if playtesting shows that, overall, helper techs have too much or too little effect overall? It would be horribly tedious to change every h value, so I put in the W value so we could easily change the whole system at once.

Descriptive requirements:

I had much more of more of a math background than a programming one when I wrote the model, and now that I have learned more about programminr I see that the names are pretty arcane. So I'll take a shot at decent names:

default m = BaseGrowthRate
default c = BaseUpkeep
default W = BaseGlobalHelperEffect
default DR = BaseRPDiminishingReturns

For individual Technologies:

m = GrowthRateMultiplier
c = UpkeepMultiplier
default DR = RPDiminishingReturnsMultiplier
Ts = StartLevel
O = HelperLevelOffset
h = HelperTechEffect
I = ExternalGrowthRateMultiplier
E = ExternalUpkeepMultiplier
L = ApplicationLongevity
[This message has been edited by Richard Bruns (edited March 19, 2001).]

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 19, 2001 07:54   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Great to see tech chargin' forward!

Just a quick note for Gary. If you read the faq under 'UBB Code' you will learn a bunch of useful formatting commands. One of them is the Code tag that preserves indentation. its ['code] ... ['/code] (remove ' when using).

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 19, 2001 12:03   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
[Edit]
This is a public service announcement to future readers of this thread... In this post I confused 'requirements' which still exist, for 'vital techs' which have been eliminated in the design. So you can mostly ignore this post as confusing and irrelevant . The only reason I'm leaving it here is so that subsequent comments about the post make sense. -Mark
[End Edit]

Gary, just something you missed when reading the tome. For a regular tech (as opposed to an application) there are no longer vital techs (called requirements in the original spec). All techs that adjust difficulty are called helpers, and a formerly vital one is just one with a large value of h.

The discussion of this change started at the bottom of my post of Mar 8 in this thread (p1).

-Mark

[This message has been edited by Mark_Everson (edited March 20, 2001).]

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 19, 2001 14:52   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Many thanks for the prompt response. And particularly thanks for the English language names for the variables.

Mark: I was sure I did use the code tag for my XML sample. Oh well, I will be more careful next time.

I have a contradiction of requirements (using the word advisedly). Richard says that requirements are required, Mark says they are not...

Seconds out.

Cheers

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 19, 2001 18:09   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Gary:

You used 'code' with angle brackets. UBB seems not to parse that right. Use plain brackets and it'll work fine.

Resoving my statements with Richard's...
He was talking about Applications (Tier IV) techs Only AFAIK. I was saying they aren't needed for Tier I - III (Theory - Skills). I believe Richard and I agreed on this in the posts after that 3/8 one I talked about. So in your parlance... Requirements are required for Applications, but requirements aren't required for other techs, where you are helped by helpers instead.

Richard Bruns
King
NC, USA
Nov 1999
posted March 19, 2001 19:40   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
But there is an attribute of the helper tech called the requirement. That is the level of the helper tech that is required for the tech to exist. Flight does not exist until you get to a certain level of the helper techs; those levels are the 'requirements' for Flight.
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 19, 2001 20:00   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Thanks for clarifying! All I can say is OOps

[This message has been edited by Mark_Everson (edited March 19, 2001).]
Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 19, 2001 22:29   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
It appears to be something of a terminology mixup:

To Mark "requirements" meant extra strong helpers.

To Richard "requirements" meant prerequisites.

To Gary "requirements" are the rules for writing the whole thing.

Just joking.

The code for the utility progresses.

Looking beyond the code, it is perhaps time to give thought to program (as opposed to model) design.

I have to concoct some way of a technology for a civilization (as opposed to the overall technology data) being able to find the helper levels for that civilization. This is a bit tricky so far.

The technology objects, which know about helpers, know nothing about the relative levels for a particular civilization.

A specific technology for a specific civilization can look up the helpers from the overall technology data. But then how does it find out what the levels are for its own civilization?

This sort of thing accounts for most of the labour of coding. The algebraic part can be done in a few minutes. The interconnection between the various part can take days or weeks.

I will be thinking on the matter as I finish the utility.

Cheers

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 20, 2001 15:35   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
The utility is progressing well. About 2000 lines written and working.

I had to digress into the actual model - not really required for the utility, but needful if the final result is to be coherent.

There are two matters that I would like some clarification on.

Tags:
I did read some information about tags in my marathon reading effort.
Unfortunately I left my hard copy at home (100 miles away) and really don't have the time to pursue elucidation on the web.

So I would appreciate some clarification of the current situation.

I am unclear whether tags are used merely to inform the player of the status of research, or to indicate which technologies will receive the benefit of current research. If the latter, some further clarification and perhaps model development is required.

Tiers:
I can't see why tier information is read into the program. It is never used and has no effect on game play.

Cheers

Gary

Richard Bruns
King
NC, USA
Nov 1999
posted March 20, 2001 17:08   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Tech tags determine a lot of things. First, they are an important way for the players and the AI to interact with the tech tree. For example, If disease is a problem, then the player will know to funnel research into the "Health" tag. This should also be easy to program into the AI, so it doesn't have to 'know' a whole lot about the tech tree when making decisions.

Tech tags are also the way that most RP's are assigned. Most RP's will come from basic economic activity. These activities, like building castles or running a government, will increase related techs, as your people get more experienced in doing something. The tag of the technologies determines which tech these activities will add RP's to.

For more complete info, look here.

Tiers do have an effect. As currently designed, Tier 1 techs are theoretical techs like "Chemistry" that historical rulers did not know about or relate to. As such, the players will not see ststus reports of tehse techs and cannot order research to be directly put into them. They will only order direct involvement into the Tier 3 techs like Shipbuilding. No ancient king said, "Learn about Chemistry." They said, "Build better Siege Engines." As the game progresses, players will gain the ability to interact with the more theoretical technologies.

We have made some attempts at OO modeling. Maybe these got lost in the shuffle:

quote:

Outline for Tech System Implementation with OO modeling:
This outlines the entire tech system procedure, starting and ending with object parameters for the other game models. This is mainly a definition of the objects and their interactions; the equations will come later.

The system is run at the end of the turn. It uses data about events and attributes from that turn and the results are implemented at the beginning of the next turn.

This system can be run at the civ, province, or even the square level. The default would be the civ level, but if you wanted different provinces or squares to have different tech levels you could run these methods at that level.

1) Data about RP generating activity in the area (civ, province, or square) is collected. I would assume that this would be a matter of inputing object parameters (trade, construction, etc.) from the other game models.

2) Tagged RP's are generated from this data. Each tech tag has a Tagged RP object that calculates itself based on the data gathered in step 1.

3) Social effects and other external multiplicative effects are applied to RP generation by tag. The object parameters from the other models again cause the Tagged RP objects to recalculate themselves. (Note that this allows society to have different impacts on different fields of study. Philosophy innovation might be frowned upon while Agriculture innovation might be supported.)

4) Tagged RP's are distributed among the technologies. Each technology has an associated Tech RP object that calculates itself based on data from the Tagged RP objects and the level of the associated tech.

5) THL (Total Helper Level) values are calculated. Each tech has an associated THL object that recalculates itself based on data about the helper and vital techs.

6) Each tech level is recalculated. Each tech object recalculates itself based on data from the associated RP object, THL object, tech attributes, and its own tech level. (This is the step that is detailed in the spreadsheet.)

7) Tech diffusion is calculated. The tech objects recalculate themselves based on data from surrounding areas and the internal conditions of the area. (Note that this is in addition to the effects of trade. Trade generates RP's that must be turned into technology by the civ or province. This gives completed technology directly to the area. So, your society might not provide a good environment for the development of something, but they would use it once it is completed.)

8) Application levels are calculated. Each application object recalculates its level based on the tech objects and its own attributes.

9) The effects of application levels are implemented. The objects in the other models recalculate themselves based on the parameters of the application objects. These effects will take place before the start of the next turn.

So the basic outline is:

Other model objects (previous turn) -> Tagged RP objects -> Tech RP objects -> Tech objects -> Application objects -> Other model objects (next turn)

quote:

I could finalize my plan for the methods if the following object list is agreed upon:
Tech Tag objects, with the Tagged RP's as parameters and the methods for calculating the tagged RP's.

One Tech RP object for every technology, with the methods for calculating itself based on parameters in the Tech Tag object.

The Technology object, with the level as a parameter and methods for calculating the level.

(Would it be better to have the RP as a parameter in the tech object? I'm not sure about this one.)

The Application Objects, with methods for calculating the level based on parameters in the tech object.

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 20, 2001 19:47   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I am still rather vague on how "Tags" work. Are they research areas? If so, it would be nice to call then ResearchAreas or some such. "tag" as a word, is rather overworked - to me it means something like <Technology> in an XML (or HTML) file. It is also something that goes in a sheep's ear.

Are the tag areas to be built in to the code? Or configurable?

There doesn't seem to be any provision to read the tag levels for each technology from the XML file. Are they supposed to be part of the data input utility?

It would seem to be a reasonable idea to read in the tags from the same file as technologies.

It has just occurred to me that the tags might be part of one of the other models and described there. Is this so?

Alternatively are they a completely separate model of their own?

Sorry to be so confused. I have no difficulties with the idea of coding for tags (provided they get a more explanatory name) in an OO modelling way. The idea of using such a structure for intercommunication is appealing.

More or less by accident, the technology model is becoming data driven, with the possibility of swapping from one tech file to another for specific scenarios. This is the type of code structure that I particularly like, for it generality, extensibility, and configurability.

Cheers

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 20, 2001 21:24   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Great Progress Gary! I would comment on the tags, but I just got back from playing raquetball with the guy who always whups my a**, and I haven't got two brain cells to rub together... So I'm afraid if I tried I'd do more harm than good
Lord God Jinnai
Prince
Arnold, Mo 63010
Sep 1999
posted March 20, 2001 22:20   Click Here to See the Profile for Lord God JinnaiClick Here to Email Lord God Jinnai  send a private message to Lord God JinnaiSend a Message to UIN: 57262757 Visit Lord God Jinnai's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Tags are a part of this model alone.

As to if they are researchareas, in a way i guess you could say that, but they are more. When a farmer farms his land, he produces RP simply by farming and most of that RP is tagged for Agricultural and depending on the farm, Herding...mayby a slight amount for biology. This doesn't mean he reasearched anything, he just did his job and he learns stuff by doing it he can pass on to his children and friends. He may find that if you plant at this date rather than this, its better, but its purely accidental.

Most of the RP generated as you've read goes into upkeep....which Rich, BTW have you gotten a good mesaurement on how it should decrease point wise if you don't have enough?

Richard Bruns
King
NC, USA
Nov 1999
posted March 20, 2001 22:44   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Well, I can't think of another good name. They are used for the interface, RP generation, and links with other models. You can think of them as "Affect Areas" if that helps. Their interconnection with other models is not yet defined fully, and as part of the "black box" philosophy they don't have to be. They are a concise way of passing data back and fourth between the tech model and other models.

Yes, they are supposed to be a part of the tech creator GUI. My forgetfulness is the sole cause of them not being in the earlier request.

Under the settings in the spreadsheet, the tech will fall by about a level a turn when there are no RP's at all. So if something is totally stagnant for tech turns, you lose kalf the knowledge you once had. I think that is reasonable.

By the way, I'd like to make the mose recent versions of the spreadsheets available to everyone. There haven't been any mechanics changes, but I made them easier to use and hopefully fixed the problem caused by the conversion from the older program. How do I get thhe new ones posted on the website?

LDiCesare
Chieftain
La Ferté sous Jouarre France
Jan 2001
posted March 21, 2001 05:35   Click Here to See the Profile for LDiCesareClick Here to Email LDiCesare  send a private message to LDiCesare
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Just a coding question. Gary, did Mark give you the game.data.military.TechRequirement file?
This is what I use in the Military code to simulate the effect of better tech giving better stats to an army. (I found that somewhere in the web, but was it in tech pages or some thread, I don't remember)
You may want to check it. Basically it means I need to know for one or more tech(s) for a civ/techlevel, given a "requirement" (you said buzzword?) to build a unit, how much %age I get to enhance my unit stats.
Any feedback on that file is welcome since it never got used, I just know it doesn't crash the system.
Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 21, 2001 07:47   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Laurent: I did mention that to Gary, and he has the last version I received.

Richard: To get it on the web page put a note in the Web Site Requests Discussion page, and then email it to Dom. Probably duplicating the post in the email is a good idea since Dom prefers to get everything by mail if possible.

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 21, 2001 15:15   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Thanks for the input everybody!

I have prowled around the material for things relevant to technology, so am a little better informed.

The usage for tags does rather appear to be to implement the "Object" that is passed as an argument to an Observer (something that implements the Observer interface). In that case we might well call it "ObservationType". I wouldn't have any problem with that, and it has the possibility of having (at a later stage) quite complicated "tags" with functionality of their own. That would probably make the next generation of coders like us more.

I will incorporate the "tags" in the tech input utility when the specs are more defined.

Richard: "they are used for the interface" - I presume that interface means user interface, rather than Java interface. How are they used?

My next query about tags is a little hard to define. They seem to have two sides: in some cases it appears tags have technologies, on the others hand it seems that technologies have tags. An example to make the point:

is it (assuming "tag" is replaced by another word in the final version):
(code)
<tag>
<name>Breeding</name>
<technology>
<name>biology</name>
<level>24</level>
</technology>
<technology>
<name>agriculture</name>
<level>8</level>
</technology>
</tag>
(/code)

or
(code)
<technology>
<name>Breeding</name>
<tag>
<name>biology</name>
<level>24</level>
</tag>
</technology>
<technology>
<name>Agriculture</name>
<tag>
<name>biology</name>
<level>8</level>
</tag>
</technology>
(/code)

Laurent: yes, I saw the TechRequirement.java file (nice Javadocs comments! do you think we can prevail on everyone to do that?). I have a TechnologySet class which gives, in effect, a list the technologies, and the level of each for some particular situation. Because it seems quite unclear whether technologies will be civilization-wide, or more specific - per province, per ethnic group, whatever, I heave left it general. A particular entity which is interested can register as an observer, or query directly to get the relevant information. Since the technology is also an observer, it can listen for RP allocations.

Mark: I think I will not be using your technology code. This happened by accident as I was writing the input utility. By the time I had the basis of that, the approaches had diverged too much. For example, I have a Required class, as well as a Helper class, and both are inner classes of Technology. There is also TechnologySet (described above).

Incidentally, the calculations will be in the TechnologySet, since they know what the levels are in a particular context.

I made one decision, consistent with XML practice: all the tags (the XML tags that is) are now lower case.

Since I am still gathering information about the model, the utility will be delayed until next week. "The cheque is in the mail".

Cheers

Gary

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 21, 2001 15:20   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Dammit, got "[ code]" wrong again, here it is again

is it (assuming "tag" is replaced by another word in the final version):

code:


Breeding

biology
24


agriculture
8



or

code:


Breeding

biology
24



Agriculture

biology
8



Cheers

Gary

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 21, 2001 15:22   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I give up!

Cheers

Gary

Gary Thomas
Chieftain
New Zealand
Mar 2001
posted March 21, 2001 16:25   Click Here to See the Profile for Gary ThomasClick Here to Email Gary Thomas  send a private message to Gary Thomas
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I have some more questions, but since I am posting yet again, I thought I would try and get my code right:

is it (assuming "tag" is replaced by another word in the final version):

code:

<tag>
<name>Breeding</name>
<technology>
<name>biology</name>
<level>24</level>
</technology>
<technology>
<name>agriculture</name>
<level>8</level>
</technology>
</tag>

or

code:

<technology>
<name>Breeding</name>
<tag>
<name>biology</name>
<level>24</level>
</tag>
</technology>
<technology>
<name>Agriculture</name>
<tag>
<name>biology</name>
<level>8</level>
</tag>
</technology>

Be a miracle if it works...

I have two questions:
1. Is the use of float (rather than double) standard thoughout clash?

2. Are "applications" a type of technology? That is do they include growth rate, upkeep, diminishing returns, requirements and helpers? In Java terms, do they extend Technology?

I am gradually moving towards the though that individual technology levels (presently held in an inner class of TechnologySet) should themselves be observable, so for example, something could listen for the specific level of, say, "Tank", for a specific civilization or even province. What sayest thou?

Cheers

Gary

Richard Bruns
King
NC, USA
Nov 1999
posted March 21, 2001 17:23   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
No, applications and technologies are very different things. Applications do not have helpers and they do not process RP's in any way. They do not have tech levels or knowledge associated with them. Their level depends entirely on the level of the technologies they are associated with. They only rise and fall when the associated technologies rise and fall. This is not at all like the effects of helper techs.

In comparison to Civ 2, techs are (obviously) a more advanced version of the technology advances. Applications, on the other hand, are more advanced versions of the military units, buildings, and wonders. The relationship between techs and applications on Clash is about the same as it is in Civ 2.

Let me try to answer the tech tag question:

First, it appears that I haven't explained exactly what they are. From the xml it looked like you thought they were like a different tier of technologies. This is the current list of tech tags:

Agriculture
Disaster Prevention and Ecology
Education
Cash Flow and Economics
Exploration/Movement (includes mobile communication)
Government and Politics
Happiness and Social Control
Health
Infrastructure (includes fixed communication systems)
Military
Production
Prospecting and Extraction
Pure Science
Religion and Philosophy
Standard of Living

Think of "tech tags" as being things that the civilization does or strives for. Hmm...

I now rechristen "tech tags" as "Civilization Activities".

Maybe that will help.

As described in the OO model plan above, Civilization Activitiesdo exist independently and they have their own functionality. The Civilization Activities objects gather economic and social data, turn that data into RP's, and then process the RP's and give them to the individual technologies.

But technologies are not a part of Civilization Activities because each technology can be associated with many tech tags. A tech, for example "Water Delivery Systems," might be associated with the Civilization Activities of Health, Happiness, Infrastructure, and Standard of Living. This means that RP's devoted to all four of these goals will find their way to the advancement of this Tier 3 technology. It also means that advancement in this technology will have a positive effect on all four of those goals.

So the Civilization Activities have the following functionality:


  • They determine RP production and feed those RP's to the technologies.
  • They provide an easy way for the player and AI to deal with tech. They can simply say "Put effort into improving Infrastructire." This is what I mean by the interface. It is an intuitive way for the player to interact with the tech system. Of course, they can drill deeper if they wish, but this is an option so they don't have to get too involved if they don't want to.
  • They help interpret the effects of technology and can alter other models based on technology growth. For example, the Health Civilization Activity would feed data on the overall health of the civ to the Disease model.

One possible source of confusion is that "Z values" were also sometimes called "tech tags." The Z value is the number that shows how much the tech is connected to a certain Civilization Activity. A Z value of 10 means that the tech is very important to that activity, so it will recieve a large share of RP's, and will have a big impact on other models that use the data from the Civilization Activity. Z values of 1 or 2 represent a small effect. If the tech does not relate to the Civilization Activity at all, the Z value is zero.

The Z value is what is defined in the GUI Tech Builder. The default would be zero, in which case the Civilization Activity is not listed in the editor. The tech tree creator would select from the available list of Civilization Activities and assign a Z value to it. Each tech would typically have 1 to 4 nonzero Z values, meaning that it affects one to four Civilization Activities.

A programmer's name for the "Z value" might be "ActivityAffectFactor."

I hope that helps.

Mark_Everson
Clash of Civilizations
Project Lead

Canton, MI, USA
b.02-15-99
posted March 21, 2001 19:34   Click Here to See the Profile for Mark_EversonClick Here to Email Mark_Everson  send a private message to Mark_EversonSend a Message to UIN: 30578681 Visit Mark_Everson's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Gary:

We can try to enforce JavaDoc comments as a spec for all coders. I used to be quite good about it, but got out of the habit. Could you post exactly what level of commenting you think is most beneficial in the Clash Coding Standards Discussion thread? After a few go-arounds I'm sure we can agree on something that everyone can live with.

Not be using my code...
Well, I am pretty disappointed having absolutely wasted 20 hours of work, but I guess I'll get over it. Before you completely ignore it, you might consider raiding it for things like the tag names already written out etc.. In the end, you have to do whatever you think will allow you to progress most rapidly. But before you go on with all those inner classes, I suggest you consider that the design and our understanding of the tech system is still evolving, and you may have to undo a lot of those changes shortly...

Thanks for the detailed updates of what you are doing, hopefully it will prevent some train wrecks due to misunderstandings .

As you guessed, floats are the Clash standard. Most things in Clash will change gradually, rather than in steps as integers. However, since it's a game we didn't consider that the precision of double was necessary just about anywhere. Since the precision was unneeded, and a double takes up twice as much memory as a float, and we have Lots of them, that's the way we decided to go. Do you have an important issue to bring up on that?

Richard:

Good explanation of tags and their function! If you do a rewrite of the web page, I think you should include this section. I suspect we will also, with additional uses for tags as we get further into playtesting.

All:

On the issue of what object actually "has" tech in terms of game mechanics, I came up with what I think is an interesting thought recently. The idea is that each Complete ethnic group has its own TechnologySet. By complete ethnic group, I mean not the ethnic group component in a single square, but the whole ethnic group no matter how widely it spreads. There are also some complications with the idea, but I just wanted presented briefly and see if it makes sense to people as something we might pursue, or if it seems like the potential problems are larger than the likely benefits.

First of all, I want to state that the geographical extent of a complete ethnic group would be limited by communication technologies and other factors. So, for instance, when the British make colonies that are oceans away from the mother country, the colonists would form a distinct ethnic group. These "American" British would start exactly the same as the EG from which they came, but would evolve distinctly over time. (Some might say too distinctly ) This sort of cultural splitting has been in my mind as a good thing for Clash from the beginning....

So, now we have a separate British and American British EGs each of which have a unique TechnologySet. Tech diffusion would still occur between the Americans and the British (and other EGs as well), but they would not automatically get a scientific advance that the British EG has. With this approach, you can do most of the things that F. Smith was looking for like natives not having gunpowder technology while settlers in the same square did, or even there being different "City" and "rural" EGs living in the same country having different technologies.

Now for some problems... to support this kind of thing, we would need to keep track of RPs generated by each EG separately. I know the economy model doesn't support that right now, and it may be more hassle than it's worth. And there may be other problems with the idea I haven't foreseen yet.

But what do people think of the idea in general?

Richard Bruns
King
NC, USA
Nov 1999
posted March 21, 2001 21:32   Click Here to See the Profile for Richard BrunsClick Here to Email Richard Bruns  send a private message to Richard Bruns
Edit/Delete Message    Reply To And Quote This Message