News:

If you like the game and can afford to, please donate to support MegaGlest.

Main Menu

multiple values for the same resource

Started by Zoythrus, 17 October 2010, 05:12:06

Zoythrus

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?

ChupaReaper

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?!

Zoythrus

Quote from: 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?!
Think of the possibilities!

Gabbe

huge possibilities, might aswell add new slots for resources..

Omega

Quote from: Zoythrus on 18 October 2010, 03:47:05
Quote from: 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?!
Think of the possibilities!
Think of the complexity. :O

In all honesty, its an interesting idea... But modwise, might be difficult...
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

John.d.h

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).

Zoythrus

the point here is that i dont want both factions calling it the same thing....

Omega

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:
Quote from: John.d.h on 23 December 2032, 07:45:56(and wood is what they're actually harvesting, anyway)
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert