Idea that might, or probably not be possible

Idea that might, or probably not be possible

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Idea that might, or probably not be possible

Post by Noruas »

Make it where a unit is required to be built for another unit, that way we can have fake research hubs or sumthin. just another MTR
esteroth12
Posts: 501
Joined: 18 May 2006, 21:19

Post by esteroth12 »

that can be done with scripting the GUI... ask AF
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

Post by SpikedHelmet »

Yeah but that's a pain-in-the-ass work-around at best. It'd be much better if prerequisites were supported fully.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

So do you mean some kind of Prerequisite tags in the SIDEDATA.TDF file? Perhaps a sample listing could look like:

Code: Select all

[CANBUILD]
{
	[ARMAAP]
	{
		prerequisite1=ARMAP;
		prerequisite2=ARM_ADV_AIR_TECH;
		canbuild1=ARMACA;
		canbuild2=ARMBRAWL;
		canbuild3=ARMPNIX;
		canbuild4=ARMLANCE;
		canbuild5=ARMHAWK;
		canbuild6=ARMSEAP;
		canbuild7=ARMAWAC;
		canbuild8=ARMSEHAK;
		canbuild9=ARMCSA;
	}
	[ARMHAWK]
	{
		prerequisite1=ARMAAP;
		prerequisite2=ARM_STEALTH_TECH;
	}
}
The bad thing is to get individual units to develop like that it gets overly long winded.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Rat: Put it into the fbi.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

Are you cereal that will work?!?
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

KDR_11k wrote:Rat: Put it into the fbi.
The SIDEDATA.TDF is one stop shopping for the buildtable. What advantage would you have to make it a requirement to touch every unit FBI?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Less monolithic files.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Putting it in sidedata has the advantage that you can have a building Z that has building Y as prerequisite on one side, and building X as prerequisite on another side.

e.g. one common targetting facility has Arm Advanced Radar prerequisite for Arm and Core Advanced Radar prerequisite for Core.

(If my understanding of how sidedata.tdf works is correct)
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I like that a lot, though it will probably upset AF. Requires some work for the AIs to adapt this but I've been waiting for this a long time... though I had a better idea: groups like armor.

Code: Select all

[TECH1] // group name
{
	groupSize = 30; // -1 = no limit
	prerequisite = PowerPlant Radar; // applies to all units
	[FOOTANK]
	{
		prerequisite = Armory;
		maxBuild = 10;
	}
	[BLAHTANK]
	{
		Prerequisite = Armory Barracks;
		maxBuild = -1; // no limit
	}
}

[TECH2]
{
	groupSize = 5;
	...
	...
}
The maxBuild and groupSize stuff was just an idea to limit build amounts, i.e. you can have either 10 FOOTANKs and 20 BLAHTANKs or 30 BLAHTANKs. I know there are unitlimits already but why not make it some more advanced. Also the Prerequisite could be split up while getting an amount added.

Code: Select all

		Prerequisite1 = Armory 1;
		Prerequisite2 = Barracks 3;
Means there have to be three "Barracks" units alive for the condition to be true. Also that means the techtree should be split from either unitdata or sidedata IMO, though I don't care too much about it, I'd be happy with any kind of tech tree system.

Well it's just an idea I had... which I mentioned somewhere else I think. :-)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

This can eb doen via the lua GUI file, just tell it not to show the units build icon if the prerequisite doesnt exist already.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

With the minor disadvantage that someone using his own lua gui file can make as much as he wants of the unit..., without even knowing there is supposed to be a limit.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Then the modder should be able to define the lua GUI file in the archive as 'end of' 'final say' 'wanna edit? tough luck!', like the tag in particles.df for team coloured nanospray.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I guess you'll be able to read out files using LUA so my suggestion still stands to keep it seperated from the GUI script.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

We need trepan to override the lua file handling functions or provide VFS variants.
Post Reply

Return to “Feature Requests”