MegaGlest Forum

Archives (read only) => Glest Advanced Engine => Feature requests => Topic started by: Zoythrus on 17 October 2010, 05:12:06

Title: multiple values for the same resource
Post by: Zoythrus on 17 October 2010, 05:12:06
ok, here's what i need. We all know about the mod that im making, and i found a snag. The Crincillin use carbon, not wood; but the Phorin use wood, not carbon. But, both of those resources come from trees. So, in short, i need it so that when the C's workers harvest trees, they get carbon; but when the Phorin harvest trees, they get wood. can this be done?
Title: Re: multiple values for the same resource
Post by: ChupaReaper on 18 October 2010, 02:12:25
This could be quite useful, maybe have the default resource as wood but certain factions can have name and icon changes for resources in their faction.xml.
Or one map object can have multiple resources which are harvested separately. Or both?!
Title: Re: multiple values for the same resource
Post by: Zoythrus on 18 October 2010, 03:47:05
This could be quite useful, maybe have the default resource as wood but certain factions can have name and icon changes for resources in their faction.xml.
Or one map object can have multiple resources which are harvested separately. Or both?!
Think of the possibilities!
Title: Re: multiple values for the same resource
Post by: Gabbe on 18 October 2010, 04:36:17
huge possibilities, might aswell add new slots for resources..
Title: Re: multiple values for the same resource
Post by: Omega on 18 October 2010, 18:02:47
This could be quite useful, maybe have the default resource as wood but certain factions can have name and icon changes for resources in their faction.xml.
Or one map object can have multiple resources which are harvested separately. Or both?!
Think of the possibilities!
Think of the complexity. :O

In all honesty, its an interesting idea... But modwise, might be difficult...
Title: Re: multiple values for the same resource
Post by: John.d.h on 18 October 2010, 20:12:36
It doesn't seem all that complex, as it's only a matter of overwriting a string and an icon... but at the same time is it actually worth it?  Whether you call it carbon or call it wood doesn't make much of a difference (and wood is what they're actually harvesting, anyway).
Title: Re: multiple values for the same resource
Post by: Zoythrus on 18 October 2010, 20:16:13
the point here is that i dont want both factions calling it the same thing....
Title: Re: multiple values for the same resource
Post by: Omega on 19 October 2010, 00:30:08
Why not? It's really just a small difference in a name, and other factions have made much much bigger sacrifices resource wise (ie: no faction uses more than 2 resource objects, since maps don't contain them, as well, many mods are meant to go into magitech, and thus are limited to those default magitech resources).

Perhaps you are right john, though how would the XMLs be? It would have to tell the faction and the name that it should be to that faction, plus the icon, so on...

Though, of course, John has the best logic here:
(and wood is what they're actually harvesting, anyway)