How to add Infinite Wood Resource to Skirmish?

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
HollyWood14181
Posts: 2
Joined: 06 Jan 2024, 03:23

How to add Infinite Wood Resource to Skirmish?

Post by HollyWood14181 »

I know there is one infinite Wood Resource pile, specifically "Xb EE3 Woodresource (1.6)" and I would like to add that to Skirmish. So when the map is randomly generated, each territory(depending on the setting of course) would have infinite Wood Resource.

For uniform setting,
The First home territory always have 1 infinite Food source. I would like to add One infinite Wood resource to the list.
I also would like to know how to add infinite food source and Infinite Wood pile to other territories as well, similar to Gold and Stone.


I found some code from loew_ambient_pack_15_2_ee2x.ddf, but I can't do shit to it. Simply copying and pasting to resources.ddf won't cut it. I don't even fully know if that's where I need to put them. I can modify just a bit and move place from Point A to point B, but I'm not really a programmer yet. I don't know what changes I need to do.
I could possibly copy code from Gold in resources.ddf, but I notice there is some value difference when compared to others like Stone. I would like to be correct and to function properly.

Code: Select all

//---------------------------------------------------------------------------
// Woodresource
//---------------------------------------------------------------------------

UnitModel RES_woodresource
{
	ScaleType 		= kScaleBuilding
	DefaultModel 	= RES_woodresource.nif
	DefaultState 	= Idle
	States = [
		{ StateName="Idle" }
		]
	ChildNames 	= [TreeShadow]	
}

UnitType RES_woodresource
{
	parent = ResourceNotTree
	properties {
		DisplayName = tx_res_woodresourcee
		VerboseTooltip = vtt_res_woodresourcee
		DisplayNameScenEdit = tx_res_ed_woodresourcee
	}
		abilities [
		Resource { type = kResourceType_Wood; amount = 1000; maxNumOfWorkers = 6}
	]
	fullMapOverlay { sprite = spr_fullmap_tree scale = 2.0 ignoreOrientation = 1 }
}

User avatar
Dr.MonaLisa
High Representative
Posts: 8708
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: How to add Infinite Wood Resource to Skirmish?

Post by Dr.MonaLisa »

Since you're using EE2: AOS, file:
EE2X_db_155.zip\EE2X_db\Terrain\dbclimat5.ddf

might have something useful. But I'm not sure where it could be defined.

Maybe Loew can answer this question?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Loewenherz
Posts: 244
Joined: 23 Sep 2017, 17:26
Has thanked: 7 times
Been thanked: 21 times

Re: How to add Infinite Wood Resource to Skirmish?

Post by Loewenherz »

So my initial enquiries have revealed that this is unfortunately hardcoded. Unfortunately, nothing can be changed in this respect via the database.

However, you can place these resources on your own maps using the editor. The patch has already greatly expanded this.
List of tutorials, useful threads and utilities (look here before posting): Here

Add Pics to Map: viewtopic.php?f=54&p=25184#p25184

Loews Work: viewtopic.php?f=54&t=5160
User avatar
Dr.MonaLisa
High Representative
Posts: 8708
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: How to add Infinite Wood Resource to Skirmish?

Post by Dr.MonaLisa »

I thought of hacking it by changing for example:

Code: Select all

forageTrees
	[
		TRE_BANANA TRE_MANGO
	]
?

to:

Code: Select all

forageTrees
	[
		RES_woodresource
	]
Would make the game see infinite wood resource, but not the limited food bush.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Loewenherz
Posts: 244
Joined: 23 Sep 2017, 17:26
Has thanked: 7 times
Been thanked: 21 times

Re: How to add Infinite Wood Resource to Skirmish?

Post by Loewenherz »

I thought about that too. This is actually the unlimited food tree at the beginning of the generated map. I don't know whether it won't be replaced by the wood resource.


It would be easier to simply generate a few maps and then place this resource by hand.
List of tutorials, useful threads and utilities (look here before posting): Here

Add Pics to Map: viewtopic.php?f=54&p=25184#p25184

Loews Work: viewtopic.php?f=54&t=5160
HollyWood14181
Posts: 2
Joined: 06 Jan 2024, 03:23

Re: How to add Infinite Wood Resource to Skirmish?

Post by HollyWood14181 »

Loewenherz wrote: 07 Jan 2024, 10:22 So my initial enquiries have revealed that this is unfortunately hardcoded. Unfortunately, nothing can be changed in this respect via the database.

However, you can place these resources on your own maps using the editor. The patch has already greatly expanded this.
Damn it. I didn't think it was that difficult.
I just thought you could simply slap new shit into the file as long as it was coded properly.
User avatar
Dr.MonaLisa
High Representative
Posts: 8708
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: How to add Infinite Wood Resource to Skirmish?

Post by Dr.MonaLisa »

So there's no file that defines games to start with 3 trees near the city center?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Post Reply

Return to “Questions”