News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Recent posts

#11
Pak128.Britain-Ex / Re: New liveries
Last post by Rollmaterial - June 29, 2025, 02:55:15 PM
Keeping with London Northwestern Railway, here's the Class 350 in its current livery! This time a new challenge came up: the light green stripe would in some spots render as the old background colour, causing them to display as transparent. I fixed it by increasing the saturation.


Pull requests:
https://github.com/jamespetts/simutrans-pak128.britain/pull/173
https://github.com/jamespetts/Pak128.Britain-blends/pull/23
#12
Patches & Projects / Enlarge map with hightfield da...
Last post by poppo - June 29, 2025, 07:23:34 AM
Hello!

I make the patch of "Enlarge map with hightfield data".
You can enlarge your map with any shape you want!

I share a patch file and some photos of demo.
#13
Bug Reports / Re: makeobj cannot show a list...
Last post by ceeac - June 28, 2025, 06:31:10 PM
Should be fixed in r11737, thanks for the report.

Quote from: poppo on June 28, 2025, 01:35:06 PMBut why is node.size defined as uint32 in obj_node_info.h?

Some pak nodes (e.g. images) may be larger than 64 kiB.
#14
Bug Reports / makeobj cannot show a list of ...
Last post by poppo - June 28, 2025, 01:35:06 PM
Hello,

When I try to show a list of factory names from pakfile:
$ makeobj list factory.*.pakI cannot extract names like that:
type              name                            nodes  size
----------------  ------------------------------  -----  ----------
factory                                              4      12140

I read sourcecode and find that node.size is set as uint32, but recorded it as uint16 in pakfile.
Then, makeobj cannot find the factory's name from building node in factory_writer_t::get_node_name().
std::string factory_writer_t::get_node_name(FILE* fp) const
{
    obj_node_info_t node; // Name is inside building (BUIL) node, which is a child of factory (FACT) node
    fread(&node, sizeof(node), 1, fp);  // the sizeof(node) in here is 10 but only 8 in pakfile.
    if (node.type != obj_building) return ""; // If BUIL node not found, return blank to at least not crash
    fseek(fp, node.size, SEEK_CUR);
    return building_writer_t::instance()->get_node_name(fp);
}

But why is node.size defined as uint32 in obj_node_info.h?
#15
Pak128 Add-ons and Graphics / Re: Susie's Add-ons
Last post by prissi - June 27, 2025, 11:59:41 PM
Again, an interesting shape. But it does not drop a shadow on the ground. And maybe, some grass shining through the ground. You can copy it over a grass tile and then make some areas transparent.
#16
Pak128 Add-ons and Graphics / Re: Susie's Add-ons
Last post by SusieNoia - June 27, 2025, 01:34:08 PM
Thank you Prissi,

I learn little by little :)

#17
Bug Reports / Re: [Linux Wayland] Window bor...
Last post by prissi - June 27, 2025, 05:44:53 AM
The compat-level SDL2 is actually an SDL3 ...
#18
Pak128 Add-ons and Graphics / Re: Susie's Add-ons
Last post by prissi - June 27, 2025, 05:43:28 AM
I think this looks already much better.
#19
Scripting Scenarios and AI / Re: Tutorial - code review
Last post by Andarix - June 27, 2025, 04:58:25 AM
Quote from: Yona-TYT on June 26, 2025, 11:43:01 PMst4_list and st3_list , they are no longer defined.
...

fixed
#20
Pak128 Add-ons and Graphics / Re: Susie's Add-ons
Last post by SusieNoia - June 27, 2025, 01:50:34 AM
I added noise to two of them using a Gimp filter.

And a high-rise building that do not hide other buildings at all... ;D