News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Recent posts

#1
Bug Reports / Re: Segmentation Fault for des...
Last post by Yona-TYT - Today at 03:50:54 AM
Quote from: prissi on Today at 03:04:40 AMNUll should be a valid return paramter for non-existing ways.
Now I understand better, thank you.  8)
#2
Quote from: prissi on Today at 03:03:25 AMIn in r11881, slightly modified.
slightly do you say?, you changed almost everything hahaha.  ;D ,I'm very happy with the result, you did a good refactoring there. 8) 



"get_default_desc" I don't think that's a good name, since this is specific to waytipes, perhaps something like "get_default_way_desc".


/**


 * Returns the last used (default) way descriptor for a given waytype.


 * This is the way that would be selected when pressing the shortcut key (e.g. 's' for roads).


 * @param wt waytype (1=road_wt, 2=track_wt, 3=tram_wt, etc.)


 * @returns way_desc_x object or null if none available


 */


 STATIC register_method(vm, &tool_build_way_t::get_default_desc, "get_default_desc", false, true);
You need to move this to line 673, as the function is currently not accessible with "way_desc_x.get_default_desc".
#3
Bug Reports / Re: Segmentation Fault for des...
Last post by prissi - Today at 03:04:40 AM
NUll should be a valid return paramter for non-existing ways.
#4
In in r11881, slightly modified.
#5
Bug Reports / Segmentation Fault for desc = ...
Last post by Yona-TYT - Today at 01:15:58 AM
There was a bug when trying to get a waytype = 6, because in pak64 this object does not exist, this is in reference to my other patch to get the last way/track used by the player: https://forum.simutrans.com/index.php/topic,23813.msg212102/topicseen.html#msg212102

0001-Fix-Segmentation-Fault-for-desc-NULL.patch
#6
Bug Reports / Re: squirrel script - bug sele...
Last post by Yona-TYT - Yesterday at 12:21:23 PM
I have moved the patch to a separate topic: [Script API] Get last use tool with waytype ID
#7
Extension Requests / pipette tool update request: p...
Last post by poppo - Yesterday at 09:29:40 AM
Pipette tool is one of the wonderful tool to build!
However, we pick only the surface object, so we cannot get object at the base of each ground, especially way or tram-way.
So, I request 2 things:
  • when ctrl key pressed: we get way info if there is (no check halt,roadsign,wayobj)
  • when shift key pressed: we get way_nr(1)'s object (wayobj or way) info if there is (tram_track, crossing etc.)
when we press both ctrl and shift, we can get way_nr(1)'s way.

If you want to test this tool-request, please play OTRPatch v51_2 https://github.com/teamhimeh/simutrans/releases/tag/v51_2
#8
Extension Requests / Re: One-Way Private Road signs
Last post by prissi - February 10, 2026, 12:58:31 PM
Now I understand. Not that is not possible right now (and likely never due to the inner workings of the one way
marker.)
#9
Patches & Projects / Re: Options in depots to only ...
Last post by prissi - February 10, 2026, 05:54:32 AM
I am not sure, two differently behaving combobox will not be confusing.

Thanks for spotting the error. I made it so that the current selection is hsown until something has been typed for a search (and then shown in another color). So you have the old behaviour with the new functionality added.
#10
Bug Reports / Re: squirrel script - bug sele...
Last post by Yona-TYT - February 10, 2026, 02:47:11 AM
Quote from: Andarix on February 09, 2026, 03:09:48 PMI just noticed that the key bindings for routes ignore the timeline.

In pak64.german, the 't' key is assigned to the sand track. However, this track is no longer available at the time of the tutorial.
I tried using "t" in pak64.german and nothing happens. Did this ever actually work?.

Also, the logic behind this is that it saves the last used track/path; if none has been used, it proceeds to use the most suitable one determined by the timeline.