Author Topic: [Tutorial] Problems when dragging using the tool to add stops(in Schedule).  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

In step tutorial scenario C is required to route a bus to go four stations.
I'm using "is_work_allowed_here" to prevent what the stops is selected two or more times, the problem is that when you drag the cursor stops are not selected but "is_work_allowed_here" if it detects the cursor and no longer allows you to select more to the stop. This is a problem because if the four stops are not selected the step is not completed.


Attaching here the scenario and  savegame for test you.


Scenario: Tutorial.zip
Savegame: Tutorial2.sve




Mod note: fixed season to station as it's the same word in Spanish
~An_dz
« Last Edit: October 08, 2016, 05:29:34 AM by An_dz »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4247
  • Total likes: 175
  • Helpful: 149
  • Languages: EN, DE, AT
You should modify the conditions on the schedule. I could not complete this step.

Dragging the tool (insert into schedule) has not effect, but the routine is_work_allowed_here is called. The tool will be called after releasing the mouse button. You can check this behavior with the remover tool, for instance.
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

You should modify the conditions on the schedule. I could not complete this step.

Simply to place the first station at 10%. I forgot to correct that, but I did it for the Spanish.  :o

Edit. Try again with this: Tutorial-test3.zip


Dragging the tool (insert into schedule) has not effect, but the routine is_work_allowed_here is called. The tool will be called after releasing the mouse button. You can check this behavior with the remover tool, for instance.

Maybe allow drag and drop to this ?.
« Last Edit: October 08, 2016, 10:04:03 AM by Yona-TYT »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4247
  • Total likes: 175
  • Helpful: 149
  • Languages: EN, DE, AT
This should be fixed with r7897 as well: the method will only be called at places, where the tool indeed will place a new stop into the schedule.
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Works fine now, thanks. ;D