Author Topic: multiple values for the same resource  (Read 1533 times)

Zoythrus

  • Guest
multiple values for the same resource
« 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?

ChupaReaper

  • Guest
Re: multiple values for the same resource
« Reply #1 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?!

Zoythrus

  • Guest
Re: multiple values for the same resource
« Reply #2 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!

Gabbe

  • Guest
Re: multiple values for the same resource
« Reply #3 on: 18 October 2010, 04:36:17 »
huge possibilities, might aswell add new slots for resources..

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: multiple values for the same resource
« Reply #4 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...
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: multiple values for the same resource
« Reply #5 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).

Zoythrus

  • Guest
Re: multiple values for the same resource
« Reply #6 on: 18 October 2010, 20:16:13 »
the point here is that i dont want both factions calling it the same thing....

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: multiple values for the same resource
« Reply #7 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)
Edit the MegaGlest wiki: http://docs.megaglest.org/

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