Author Topic: Request: Workers that know when storage is full  (Read 1308 times)

Zoythrus

  • Guest
Request: Workers that know when storage is full
« on: 15 March 2011, 20:37:04 »
here's a quick, but powerful, request:

workers that are harvesting should know the state of your resource storage. so, if your wood stores are full, the wood-harvesting workers would harvest and then stop - waiting for you to use some of the wood. this would be nice because im tired of wasting resources just because my stores are full.

this idea also implies that workers would not deliver their load if that means that resources would be wasted. eg. if you have 190/200 wood, and a worker is holding 25 wood, that means he will wait until there is enough space for him to deliver ALL of it.

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Request: Workers that know when storage is full
« Reply #1 on: 15 March 2011, 23:17:00 »
Possible Algorithm:
When a unit goes to put it's resource into the store it can check if there is enough space. Alert the user once if full (reset once not full or on timer). The worker will need to repeatedly check if there is enough space. When there is enough space, continue.

What about when the resource accumlates automatically, should the user be notified then?
Should they be considered idle if they are waiting for space?

Make optional in faction xml.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Zoythrus

  • Guest
Re: Request: Workers that know when storage is full
« Reply #2 on: 16 March 2011, 00:34:50 »
about them becoming idle when...well....idle: no. they should not be deemed idle because technically they are still harvesting.

and im not too sure what you mean by accumulating automatically....