MegaGlest Forum

MegaGlest => Feature requests => Topic started by: Ingvarr23 on 28 August 2013, 10:27:50

Title: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 28 August 2013, 10:27:50
Hello , again , I am not sure if this was asked before { I searched storehouse , but the search did not yield anything } . I am asking for implementation of a storehouse that would be resource dropsite... It would be cheap and would ease expansion. However it would be very easy to destroy. I think it would even mean longer games because people would not have to rely on building expensive castles or blacksmiths in order to harvest resources and expand. It could also have special upgrades for workers that would increase their effectiveness in fields of gathering from various resources. It would not be able to train workers though.

So what do you think? Again I apologise if this was asked before...
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: tomreyn on 28 August 2013, 11:35:52
Which faction(s) are you referring to there? If it's the Megapack, it's unlikely that Titi will make any changes affecting the gameplay there - it's considered to be pretty much complete. (But you can, of course, make a local copy and add this.) If it's about other factions / techtrees, you'd need to get in touch with their developers on the modding forums (or modify them yourself again).
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: -Archmage- on 28 August 2013, 14:52:28
If it's for Tech I already made a store building for my own personal variant. You can have the store or the entire variant of magitech if you want it.
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 28 August 2013, 22:01:50
It was going to be a suggestion of a feature for the Megapack... Maybe I will learn how to modify MG but if that day ever comes I am aiming for something more radical.

 Hmmm...how hard would it be to implement this? If titi does not want to bother perhaps I could learn some code basics , make that code then send it to him?
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ishmaru on 28 August 2013, 22:06:34
No code is necessary. Its already possible in mods.
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 28 August 2013, 22:13:24
Ok thanks for the info :D
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Omega on 29 August 2013, 02:02:30
No code is necessary. Its already possible in mods.
To elaborate, the unit must simply store the particular resource. See the <resources-stored> (https://docs.megaglest.org/XML/Unit) tag for the workings. Once that tag is up, units with resource harvesting commands (like the worker and initiate) will automatically take their resources to the nearest unit that stores the given resource.
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 21 September 2013, 18:51:59
Sorry to necro this thread , I have created a storehouse , using a norsemen house as a template{it looks like norsemen house , just cannot train units , weaker and available for tech faction for now} It took a few tries but it was worth it.. So here is the question , why it can only be built by one worker{one worker may build it at the time?}
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Omega on 21 September 2013, 20:20:04
So here is the question , why it can only be built by one worker{one worker may build it at the time?}
You need to add it to the list of repairable buildings in the worker XML.

When multiple units build a building, what's actually happening is one unit is using the build skill and the rest are repairing it. Since buildings are considered constructed once they reach full health, that works. Also interesting is how repair skills tend to be slower than build skills, so the first worker is the most important.
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 21 September 2013, 20:51:54
So here is the question , why it can only be built by one worker{one worker may build it at the time?}
You need to add it to the list of repairable buildings in the worker XML.

When multiple units build a building, what's actually happening is one unit is using the build skill and the rest are repairing it. Since buildings are considered constructed once they reach full health, that works. Also interesting is how repair skills tend to be slower than build skills, so the first worker is the most important.

Geez thanks , I will try that.. Anyway tutorials are on the wiki? And I noticed Mg models have some special extension?
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Omega on 23 September 2013, 04:40:19
Anyway tutorials are on the wiki? And I noticed Mg models have some special extension?
Not yet. Pretty much just straightforward documentation. I'd like to expand it with tutorials, but there's a lot going on. We're also planning on moving the Wiki to a new domain, but I haven't had time to finish that, yet. Soon!
Title: Re: Implementation of a basic all resource drop site "storehouse"
Post by: Ingvarr23 on 23 September 2013, 09:46:13
Looking forward to it! I will try to build a marketplace now... sometime this week. I have found a model for it.. Has it already been done?

Thanks for al your replies, one day I could even help you id I have enough exp  :D