Author Topic: Implementation of a basic all resource drop site "storehouse"  (Read 1296 times)

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
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...

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #1 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).
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #2 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.
Egypt Remastered!

Proof: Owner of glest@mail.com

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #3 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?

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #4 on: 28 August 2013, 22:06:34 »
No code is necessary. Its already possible in mods.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #5 on: 28 August 2013, 22:13:24 »
Ok thanks for the info :D

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #6 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> 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.
« Last Edit: 18 June 2016, 18:40:11 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #7 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?}

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #8 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.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #9 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?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #10 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!
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Ingvarr23

  • Archer
  • *
  • Posts: 23
    • View Profile
Re: Implementation of a basic all resource drop site "storehouse"
« Reply #11 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