News:

SimuTranslator
Make Simutrans speak your language.

Recent posts

#51
Found the erro, it was a reading out of baounds, causing by a wrong order of number_of_season reading, letting the other always be 1 even for bridges without seasons.
#52
Technical Documentation / Re: Clarification needed on co...
Last post by prissi - April 11, 2026, 12:38:44 PM
To avoid the vehicle overhanging into the next tile on stations. This was due to the isometric drawing code which first draw the things from back to front. However, this would draw a platform over any parts of the trains visbly on a tile with higher corrdinates. So the trains must be visually shifted for these two directions, and hence, must stop after half a tile to visibly finish with the end of a station.
#53
Patches & Projects / Re: Runtime-switchable grapics...
Last post by prissi - April 11, 2026, 12:33:10 PM
Thank you. Still wonder why OpenGL needs a different simgraph and not a sys file, but then I had never worked with OpenGL so I trust you there. Normal users probably never exchange simgraph0 for simgraph16 ...

In terms of typing: Can we use something shorter, like grf or even sg instead of "g_simgraph" This one really adds a lot more effort to all graphic stuff.

And since you have certainly used a search and replace script: If it is not too much effort, could you list here (or under technical documentation) the old and new function names, since you renamed quite a few?
#54
Bug Reports / Re: Free road utopia created o...
Last post by cousjath - April 10, 2026, 06:11:41 PM
I have had this happen before with pak192.comic. It seems to occur at certain densities of cities on map generation, but it has been a while since I was having the issue. Also therr has been the occasional very long or very wide city.
#55
Patches & Projects / Re: Runtime-switchable grapics...
Last post by ceeac - April 10, 2026, 06:04:43 PM
Incorporated in r11927. Now just the rest of the owl OpenGL stuff...
#56
Technical Documentation / Re: Clarification needed on co...
Last post by poppo - April 10, 2026, 01:31:03 PM
so, Why the convoy to north- or eastward stop in steps=128, only half of the tile? Today, the vehicle length is not only 8.
#57
Bug Reports / Re: Free road utopia created o...
Last post by prissi - April 10, 2026, 07:38:14 AM
I created 25 maps and it did not happen even once. Sorry, cannot reproduce this.
#58
Technical Documentation / Re: Clarification needed on co...
Last post by prissi - April 10, 2026, 07:33:30 AM
I think your vehiles is an unfortunate case of jumping 14 units (which happens because the third vehicle starts a 14 on the last tile.) You can verify this by looking at the reserved tiles. In some directions, the convoi occupies two tiles, in other three tiles in a station. (For loading, the actual train length is calculated independently whether the car occupy station tiles or not).

That is also the reason, why map rotation by only rotating coordinates does not work.
#59
Technical Documentation / Re: Clarification needed on co...
Last post by poppo - April 09, 2026, 11:04:42 PM
not correct...
For all directions, the vehicle position is at the front of the vehicle. And the second car and subsequent cars are positioned behind the preceding car by a distance equal to the length of that car (not their own length), see convoi_t::vorfahren().

In addition, your case the convoy reserved only 2 tiles(the 3rd tile was "sticked out" by last vehicle, but not reserved because last car's position is already in the 2nd tile). so, after reversing, this convoy cannot move to the 3rd tile before check clearance.

Furthermore, for the north and south direction, convoy stop at not the end of the tile but at the middle of the tile(see vehicle_t::hop()).

In this case:

<-        ###### ###### ###### ###### ############
N |-------+------+|-----+------+--|---+-----------| S
                         ||
                         \/
   ############ ###### ###### ###### ######  ->
N  xxxxxxxx|--+------+-----|+------+------+|---------------| S

and

<- ###### ###### ###### ###### ############
S |+------+------+|-----+------+--|---------------| N
                         ||
                         \/
   ############ ###### ###### ###### ######  ->
S  xxxxxxxxxx|+------+------+|-----+------+--|---------------| N

#60
Bug Reports / Re: Free road utopia created o...
Last post by Roboron - April 09, 2026, 07:45:35 PM
No addons, vanilla pak128.

You can check the Simutrans Public Server map, and if you create a map with the same parameters it should happen again (it happened to me every time).