Project

General

Profile

Feature #801113

Make an option for unitwaittime to apply to unit activities

Added by Zoltán Žarkov over 1 year ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

To reduce the advantage of being online at turn change to move engineers to build roads or terraform, there should be a way to have unitwaittime to apply to the completion of the activity. The proposed solution is to have the activity complete in the middle of the next turn when uwt expires.

History

#7 Updated by Marko Lindqvist 12 months ago

  • Target version changed from 3.0.0 to 3.1.0

#8 Updated by Louis Moureaux 4 months ago

  while((head = unit_wait_list_front(server.unit_waits))
        && head->wake_up < now) {

    punit = game_unit_by_number(head->id);
    if (!punit) {
      /* Unit doesn't exist anymore. */
      continue;
    }

A unit on UWT being killed will start an infinite loop here. I can make a new patch if there are still plans to merge this.

#9 Updated by Lexxie L 4 months ago

A more extensive and feature-rich version is being tested (and is working.) It allows optional setting of delayed GOTO (after uwt expiration), alternative optional timing for fortify delays to prevent the (anti-activity-wait-time exploit), and more advanced messaging and updates on actions and units affected, for a much more fluid seamless experience. Therefore this version here should be killed, as it has some other serious issues besides the infinite loop.

#10 Updated by Lexxie L 4 months ago

to clarify, "kill" is maybe not the right word, but a better implementation is being tested.

Also available in: Atom PDF