iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 95 forks source link

Constructing with master builder function #526

Closed agony09 closed 6 years ago

agony09 commented 6 years ago

I noticed, when using the "Constructing with master builder" function, that this job will not be executed until you enter the village again. Example: In the evening I give the order to expand 2x the main building, plus 1 x Constructing with master builder. When I enter the village the next morning, the first two jobs are already done. But the job with Constructing with master builder starts then and his time starts to count. Is that normal ? Should not the contract with Constructing with master builder be completed during the night? For testing, I use Shadows test server. (I used a translator)

iopietro commented 6 years ago

It's because Automation.php is called only when at least one people is logged into the server. Duplicate of #352.

agony09 commented 6 years ago

thank you for the information. I tested it again. 4 hours ago I gave up a construction contract with "Masterbuilder". Now (after 4 hours) I have re-entered the game. And now, only the Master Builder has begun to work. I have tested this with 2 villages. But there are now 4 players online.

eliopinho commented 6 years ago

@iopietro will be possible add a "cronjob" for those features?!?

iopietro commented 6 years ago

The problem is that not all hosting services have the possibility to add cronjobs. We'll look into other solutions in the future.