News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Recent posts

#91
Quote from: prissi on January 14, 2026, 12:41:14 PMIn in r11871. Maybe there shoudl be also a method to make windows sticky, since I have closed tutorial and scenario windows countless times by accident.
Now that you mention it, I've been thinking that it would be good if the scenario information window remembered the last selected tab, so when you open the window again, it would be displayed in the tab where it was previously closed.
#92
In in r11871. Maybe there shoudl be also a method to make windows sticky, since I have closed tutorial and scenario windows countless times by accident.
#93
Sorry, indeed. Fixed in r11870
#94
Simutrans Tutorial / Re: Tutorial - code review
Last post by Andarix - January 14, 2026, 08:44:48 AM
Quote from: Yona-TYT on January 13, 2026, 10:38:04 PM...
I can trace the problem so far, the construction of the schedule is wrong, "get_waiting_halt(3)" is 0, but the value of that condition is required to be the total size of the list (len - 1), since the stop to which the values ��are applied is the last stop of the list.

...

Thank you for your help.

I had changed the code to get_waiting_halt(3) in a few places.
#95
Bug Reports / Re: Install pak64.german form ...
Last post by prissi - January 14, 2026, 05:11:57 AM
This should be handled by the script if it is https.
#97
Simutrans-Extended development / Re: AI bug fixing experiment -...
Last post by jamespetts - January 14, 2026, 12:19:50 AM
Unfortunately, on further investigation, it transpires that the AI had hallucinated the code and the patch cannot apply because the codebase is entirely different from what it was patching. This particular AI is very inconsistent in what it can search. I will have to investigate Copilot when I have some more time.

I have had some significant success with AI assisted coding with writing a complex set of scripts for JMRI and actually modifying JMRI itself, but I was using Copilot for that. 
#98
Simutrans Tutorial / Re: Tutorial - code review
Last post by Yona-TYT - January 13, 2026, 10:38:04 PM
Quote from: Yona-TYT on January 13, 2026, 10:27:10 PMI realized that using the automated script, the last vehicle in chapter 2 is created correctly, but for some reason it doesn't start from the depot, so the problem is in chapter 2, not chapter 3.

Edit.
Confirmed, creating and starting the vehicle manually works fine, the problem is in the automated script logic for the vehicle in chapter 2, step G.
That's why the script advances when starting vehicles are done using conditionals like this
if (cov_valid && current_cov == ch2_cov_lim1.b){ pot2=1 }
, which prevents the script from advancing when a vehicle fails to start.

Edit.
I have an idea: to do a "follow vehicle" using a command. Is this implemented?.

Edit.

          for(local j=0;j<sch_siz;j++){
            if (j==get_waiting_halt(3))
              sched.entries.append(schedule_entry_x(my_tile(c_list[j]), load, wait))
            else
              sched.entries.append(schedule_entry_x(my_tile(c_list[j]), 0, 0))
          }

I can trace the problem so far, the construction of the schedule is wrong, "get_waiting_halt(3)" is 0, but the value of that condition is required to be the total size of the list (len - 1), since the stop to which the values ��are applied is the last stop of the list.


Edit.

Applying the following patch "https://forum.simutrans.com/index.php/topic,23781.msg211954.html#msg211954", everything would look like this: class_chapter_02.nut
#99
Simutrans Tutorial / Re: Tutorial - code review
Last post by Yona-TYT - January 13, 2026, 10:27:10 PM
Quote from: Andarix on January 13, 2026, 10:22:39 PMThen, apparently, the wrong depot is queried in Chapter 3.

In the post before her post.

I realized that using the automated script, the last vehicle in chapter 2 is created correctly, but for some reason it doesn't start from the depot, so the problem is in chapter 2, not chapter 3.

Edit.
Confirmed, creating and starting the vehicle manually works fine, the problem is in the automated script logic for the vehicle in chapter 2, step G.
#100
Simutrans Tutorial / Re: Tutorial - code review
Last post by Andarix - January 13, 2026, 10:22:39 PM
Quote from: Yona-TYT on January 13, 2026, 10:14:46 PMThis relates to the logic used to determine the number of vehicles and whether their IDs are valid. If you look at the garage, there's a vehicle that was probably created too many and never started.
...

Then, apparently, the wrong depot is queried in Chapter 3.

Quote...
I need to investigate this further. Tell me, what exactly did you modify in CH2?.
...

In the post before her post.