Page 1 of 1

Expose tech level to JS API & apply tech level via rules.js

Posted: 31 May 2012, 03:47
by aubergine
To this day, I still haven't been able to find an accurate description of what effects T1-T3 have on a game, other than more techs being available depending on the tech level setting of the game, which is somewhat vague and ambiguous.

Would it be possible to expose the tech level via a new "techLevel" constant, which would be set to a number representing the tech level specified for the game, or -1 if not applicable... do tech levels apply to Campaign, Challenge, Fast Play or Tutorial modes?

The rules.js script can then easily enable / complete the relevant research/structures/components/etc for the specified tech level.

This would:

a) Make it clear what effects tech level has on the game
b) Move the code to rules.js which is a more central and visible place for player init
c) Enable effects of tech level to be clearly documented
d) Allow game mods that alter the effects of tech level
e) Facilitate T0 maps which start with scavenger tech

Re: Expose tech level to JS API & apply tech level via rules

Posted: 31 May 2012, 15:54
by Shadow Wolf TJC
From what I understand, the different tech level settings for multiplayer/skirmish games seem to affect what technologies players start off with.

Re: Expose tech level to JS API & apply tech level via rules

Posted: 31 May 2012, 16:38
by aubergine
Yes, but which technologies and where does it get defined?

Currently, the base type setting will give users some techs: baseType effects on starting tech

However, this seems to have nothing to do with T1-T3. It would make sense, to me at least, to have everything defined by rules.js.

Re: Expose tech level to JS API & apply tech level via rules

Posted: 31 May 2012, 17:29
by Mysteryem
Looks like it's mp.wz\multiplay\script\ and then the varying camtech.* files. cam2tech is T2 and cam3tech is T3.

Re: Expose tech level to JS API & apply tech level via rules

Posted: 31 May 2012, 18:51
by aubergine
Mysteryem wrote:Looks like it's mp.wz\multiplay\script\ and then the varying camtech.* files. cam2tech is T2 and cam3tech is T3.
Ah, I thought they were something to do with campaign - thanks for info, will take a look.

Re: Expose tech level to JS API & apply tech level via rules

Posted: 31 May 2012, 20:35
by aubergine