[2.1.14] FluidWagonPrototype base_valve_offset issues

Post your bugs and problems so we can fix them.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 539
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

[2.1.14] FluidWagonPrototype base_valve_offset issues

Post by protocol_1903 »

After following up on boskid's advice in 135371, I noticed that base_valve_xy_offset_when_horizontal and base_valve_xy_offset_when_vertical do not function independently. Neither will function properly when the other is nil or set to {0, 0}. This isn't documented, so I assuming it's a bug, probably something to do with this being a 2 tank wagon. I can get away with this for now by setting the other offset to something very small, but it'd be nice not to need that workaround.

Specific valve rendering code, if desired. I've been modifying the mk02-fluid wagon (Advanced fluid wagon) from pYIndustry

Code: Select all

    tank_count = 2,
    valve_to_valve_offset_when_horizontal         = {1.64, 0},
    base_valve_xy_offset_when_horizontal          = {0.1, 0},  -- does not work (can set higher for testing)
    base_valve_z_offset_projected_when_horizontal = -1.55,
    valve_to_valve_offset_when_vertical           = {0, 1.2},
    base_valve_xy_offset_when_vertical            = {0, 0},    -- ???
    base_valve_z_offset_projected_when_vertical   = -1.57,
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 188
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: [2.1.14] FluidWagonPrototype base_valve_offset issues

Post by PennyJim »

From protocol, since his account isn't working right now: Upon further investigation, it seems that the offsets don't function properly when the opposite axis for the other direction is 0 or nil, i.e. the vertical y offset will not function when the horizontal x offset is 0. I haven't checked but this issue may also be present in valve_to_valve_offset, but wouldn't show up because there's no reason to use the y offset horizontally or the x offset vertically.
Post Reply

Return to “Bug Reports”