Factorio-Access / FactorioAccess

An accessibility mod for the video game Factorio, making the game accessible to the blind and visually impaired.
Other
24 stars 9 forks source link

see if we can temporarily mod old rails back in #271

Open ahicks92 opened 1 month ago

ahicks92 commented 1 month ago

The way they're handling new rails is with a new set of legacy-xxx prototypes that are the old prototypes. If we are very, very lucky we can mod recipes and placements, as well as rail builder, to let us bring it back for long enough to get new rails done. Otherwise, people will somewhat hard block on new rail support.

EphDoering commented 1 month ago

Looks like this can be accomplished with the following four lines in data-updates.lua

local lsr=data.raw["legacy-straight-rail"]["legacy-straight-rail"]
lsr.placeable_by = {item="rail",count=1}
local lcr=data.raw["legacy-curved-rail"]["legacy-curved-rail"]
lcr.placeable_by = {item="rail",count=4}

when this is there, blueprints work again and bots (and I presume KK) will build the pasted entities from inventory.

Note that this does not allow the rail_planner tool to place them as there's still no rail planner tool for the legacy rail.

ahicks92 commented 1 month ago

If that works then we need to just rename the prototypes in our rail builder code. We don't use rail planner. THis isn't intended to be permanent, but it does get "it works on day one" type stuff.

LevFendi commented 1 month ago

"It works on day one" is what we expected for this transition to work for the community without headaches. I will be really glad if a few careful renames do the trick.