/**
* set tiles for factory
*
* coord_fac_1 - ch1, ch4
*
*
*/
coord_fac_1 <- coord(123,160) // Timber plantation
coord_fac_2 <- coord(93,153) // Saw mill
coord_fac_3 <- coord(110,190) // Construction Wholesaler
coord_fac_4 <- coord(168,189) // Oil rig
coord_fac_5 <- coord(149,200) // Oil refinery
coord_fac_6 <- coord(112,192) // Gas station
coord_fac_7 <- coord(131,235) // Coal mine
coord_fac_8 <- coord(130,207) // Coal power station
Quote from: Andarix on June 22, 2025, 08:12:15 PMTherefore my call to test, so that errors made by me are found.I actually found a bug when loading a savegame in pak64.
Quote from: prissi on June 22, 2025, 03:14:21 PMThank you. Needs some more entries in compat.teb and some updates to the forbidden_tool functions and then it should work again.
hudson_river = {
modus = "rect",
waytyp= wt_all,
tools = [tool_build_bridge, tool_build_tunnel, tool_raise_land, tool_setslope],
error = ["No new bridge allowed across Hudson River.",
"No new tunnel allowed under Hudson River.",
"No terraforming allowed on Hudson River. It would destroy the legendary view.",
"No terraforming allowed across Hudson River. The mayor does not like to view ledgers from his office."
],
list = [ [ {x = 320, y = 0}, {x = 327, y = 200} ],
[ {x = 328, y = 190}, {x = 350, y = 260} ],
[ {x = 340, y = 261}, {x = 350, y = 490} ],
[ {x = 351, y = 480}, {x = 360, y = 520} ],
[ {x = 361, y = 510}, {x = 375, y = 560} ],
[ {x = 376, y = 550}, {x = 390, y = 622} ],
[ {x = 384, y = 623}, {x = 410, y = 730} ]
]
}
function forbid_tools(pl, list)
{
foreach(j in list) {
if (j.modus == "rect") {
for (local i=0; i < j.tools.len(); i++) {
for (local e=0; e < j.list.len(); e++) {
rules.forbid_way_tool_rect(pl, j.tools[i], j.waytyp, "", j.list[e][0], j.list[e][1], ttext(j.error[i]) )
}
}
}
else {
for (local i=0; i < j.tools.len(); i++) {
for (local e=0; e < j.list.len(); e++) {
rules.forbid_way_tool_cube(pl, j.tools[i], j.waytyp, "", j.list[e][0], j.list[e][1], ttext(j.error[i]) )
}
}
}
}
}
Quote from: Mastermax on June 22, 2025, 07:27:50 PMUpdate / repair of "big" new york scenario (pak128). current files are here:
https://simutrans.cloud/index.php/s/AkT24MZYxMprqsL
thx to all for the support so far! Nice to see that some are digging through their archives and the community is working