The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: A92AA0B03E on April 27, 2025, 09:23:01 AM

Title: Cannot progress through Tutorial Chapter 4 Section D
Post by: A92AA0B03E on April 27, 2025, 09:23:01 AM
I am stuck on the tutorial, Chapter 4, section D.
I have the same issue across platforms, having tried this on
- Steam version (latest)
- Linux direct download 124.3.1
- Android (Play store)

It tells you to set the schedule as follows:
Minimum load: 100%
Depart after: 3:52h

However, the interface doesn't allow this as it gives you think option to a maximum waiting time.
If I set this 3h52m I get a warning that the schedule is incorrect (first screenshot).

If I set the schedule to "Fixed departure times" then I don't have the option to set a load percentage (second screenshot).

I'm not sure how to progress here, I'm assuming the tutorial was created for a previous version and needs to be updated to the current scheduling approach?

Coming from OpenTTD, I'd really like to worth through the tutorial so I fully understand the differences and I feel like other people might be getting stuck here and just giving up as it's a barrier to entry.

thanks in advance for any help
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Andarix on April 27, 2025, 07:12:10 PM
You have changed the wait time setting.

The selection must be set to 'Wait for minimum load'.

If you set this selection, you will also have the 3 input fields for day, hours and minutes. You are missing the third input field.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: makie on April 27, 2025, 08:35:02 PM
In the first Screenshot the day field is missing.
I can't reproduce this. In my test the day field is present.

ok

May be the text depart after to 3:52h is confusing in the tutorial.
It means set the "Max waiting time" to 5 Day 0:00h

In my screenshot the day field is present.
(https://makie.de/tut.png)
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on April 28, 2025, 08:36:33 AM
The day field will not appear if the date is set to 3 days per month. This is the case int he screenshot but is certainly not the default setting. Maybe the tutorial needs to set this also ...
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on April 28, 2025, 04:06:56 PM
Quote from: prissi on April 28, 2025, 08:36:33 AMThe day field will not appear if the date is set to 3 days per month. This is the case int he screenshot but is certainly not the default setting. Maybe the tutorial needs to set this also ...
Maybe it can be automated, but I guess a new function in the API needs to be implemented for that.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on April 29, 2025, 09:49:32 AM
There are two problems. The time, with a single minute and one day per month (or three days per season), can be set with a precious of 65556/(24*60)=46 ticks while the precision with the full three fields is 1.46, i.e. varying between 1 and 2. Hence, the script should give some leeway when comparing numbers of the criterion is met (or compare the strings instead as the requested time is correctly indicated).

3:42 is 10558 ticks and 5 days is 11570 ticks. SO any result +- 46 ticks should be accepted.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Andarix on May 03, 2025, 07:42:38 AM
The bridge construction in Chapter 3, Step H, also no longer works. Because this bridge is built with one click, which hasn't worked since version 124.

[EDIT]

Also applies to the bridge in Chapter 3 Step B.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 08, 2025, 06:04:48 PM
Quote from: Andarix on May 03, 2025, 07:42:38 AMThe bridge construction in Chapter 3, Step H, also no longer works. Because this bridge is built with one click, which hasn't worked since version 124.

I was reviewing the logic when building the bridge, but I came across this. :o

2025-05-08_13-05-1746726692.jpg
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Isaac Eiland-Hall on May 08, 2025, 10:19:54 PM
Looks like it's time for the Dukes of Hazzard to run that train :)
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on May 09, 2025, 06:14:57 AM
OK, could reproduce this ...
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on May 09, 2025, 12:53:13 PM
Shold not longer be possible in todays nightly
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 09, 2025, 04:32:45 PM
Quote from: Isaac Eiland-Hall on May 08, 2025, 10:19:54 PMLooks like it's time for the Dukes of Hazzard to run that train :)
It's a nice ramp for doing stunts. Hehehehe 😅
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 10, 2025, 02:50:57 AM
The previous bridge mechanism had given me some problems in the past, but now it seems this can be done more easily.

https://github.com/simutrans/tutorial_multipak/commit/94c2c22d55b4b157e108246f7c36fc761ea59a98
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on May 11, 2025, 08:18:16 AM
I have pushed a change to allow for alternative data formats in the schedule of the tutorial. (And I cleaned up ad commented some of the functions.)

However, even before this, when a bus arrived at the first stop, the tutorial did not progress. Somewhere before the logic must be broken before the current version.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 11, 2025, 03:52:32 PM
Quote from: prissi on May 11, 2025, 08:18:16 AMHowever, even before this, when a bus arrived at the first stop, the tutorial did not progress. Somewhere before the logic must be broken before the current version.

Reviewing your changes in the main branch, I've noticed that the texts are not updated (same confusion again), the tutorial does not advance when the bus arrives at the stop, it actually advances when you press the button to follow the vehicle.

2025-05-11_11-05-1746978524.jpg

Edit.

Update:
https://github.com/simutrans/tutorial_multipak/commit/a5b17e9eafb7abc2142f69d183d3e1d5c4112cb4
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on May 11, 2025, 11:26:53 PM
Thank you.

But I think advancing when arriving at the next stop would be enough exercise for a single step ... It is the very first vehicle a user will run. I would not overload it with actions.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Andarix on May 12, 2025, 07:58:03 AM
Quote from: Yona-TYT on May 11, 2025, 03:52:32 PM...
Update:
https://github.com/simutrans/tutorial_multipak/commit/a5b17e9eafb7abc2142f69d183d3e1d5c4112cb4


Did you change this only in the repo or also here?

https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es (https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es)
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 12, 2025, 03:04:52 PM
Quote from: Andarix on May 12, 2025, 07:58:03 AMDid you change this only in the repo or also here?
https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es (https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es)
Since this is the first vehicle, I would like to move this action to "chapter_02#07_3-3.txt", is that okay?.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: prissi on May 13, 2025, 12:16:14 PM
You mean step 7? I think this would be better, yes.
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 15, 2025, 03:00:20 AM
Ok, I made the necessary changes to the "code_review" branch, and I also had to add another text file to step 7.

https://github.com/simutrans/tutorial_multipak/commit/5f75194943825323b5a53aba19e4cf5c80d5574c
https://github.com/simutrans/tutorial_multipak/commit/0aba71fec34e234ee67d943a0ec8e4d5a386819a



Additional note: The "cov_sw" flag that indicates whether the number of convoys in circulation is correct or not, seems to not be working in "code_review", as a result, when I delete the vehicle, the info in the scene window is no longer coherent.

        if (!cov_sw){
          text = ttextfile("chapter_02/07_3-4.txt")
          text.tx = ttext("<em>[3/4]</em>")

          local tile = my_tile(city2_halt_1[city2_halt_1.len()-1])
          text.stnam = ""+city2_halt_1.len()+") "+tile.get_halt().get_name()+" ("+coord_to_string(tile)+")"

          text.list = create_halt_list(city2_halt_1)
          text.nr = siz
        }


Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: Yona-TYT on May 21, 2025, 03:43:17 PM
Quote from: Andarix on May 12, 2025, 07:58:03 AMDid you change this only in the repo or also here?

https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es (https://simutrans-germany.com/translator_page/scenarios/scenario_5/index.php?obj_id=88400&lang=en&ref_lang=none&trans_lang=en,de,es)
The texts there certainly need to be updated, but since I've made several significant changes to "Follow the Vehicle," I prefer to wait for the "code review" branch to be merged into the "main" branch and then do a single translation job.  ;)
Title: Re: Cannot progress through Tutorial Chapter 4 Section D
Post by: 209CATrus on May 22, 2025, 11:43:25 AM
Quote from: Yona-TYT on May 08, 2025, 06:04:48 PMI was reviewing the logic when building the bridge, but I came across this. :o

2025-05-08_13-05-1746726692.jpg

Sorry for being non-productive to this discussion, but i would like to mention that this bridge is epic and should definitely go to the Simutrans Screenshots