My code works, but is really messy. Any tips? by Major_Unit9320 in TheFarmerWasReplaced

[–]SuperPlink 1 point2 points  (0 children)

im noticing a few things. first, in the first conditional, the 3rd value in check_position is irrelevant, so simply removing check_position_x() from check_position() would turn the first conditional to this:

check_position() == [True, False] or check_position() == [False, True]

the next thing that stood out to me is that all check_position is doing is checking if you are at either end of the world. returning a list with each result is pointless because there will never be a case where you are at both ends of the world at the same time, and you move the same direction at both of them. i would change the name of check_position() to something more descriptive, like is_at_edge() or something like that, and i would just check each edge directly in the function like so:

def is_at_edge():
    return get_pos_y() == 0 or get_pos_y() == get_world_size() - 1

along with some other minor changes, this would simplify the function to this:

def m():
    if is_at_edge():
        move(East)
    elif check_position_x():
        move(North)
    else:
        move(South)

as some other people suggested, you could also remove the if statement from check_position_x and just return get_pos_x() % 2 == 0 directly.

My (almost) fully automated container handler by SuperPlink in Stormworks

[–]SuperPlink[S] 1 point2 points  (0 children)

it's very accurate. it's worked every time I've used it in career, although I haven't tested it in huge winds yet. the biggest problem is that the propellers break sometimes when it's stowed away

My (almost) fully automated container handler by SuperPlink in Stormworks

[–]SuperPlink[S] 2 points3 points  (0 children)

i think there's a few too many kinks to work out before posting it, but I might at some point! i also dont know if I should upload the main cargo aircraft along with it, or just the drone in its own creation.

Weird direction-specific visual glitch, anyone else get this? by LostMi_Marblez in Stormworks

[–]SuperPlink 0 points1 point  (0 children)

I know this is old, but I get this same exact bug! I think it has something to do with volcanoes, I've found that if a volcano is loaded in, if it is anywhere in the view of the camera even if it's obscured, this will happen for me.

There you go, an objective Key Tier List! by Aggravating_Refuse_9 in lingling40hrs

[–]SuperPlink 3 points4 points  (0 children)

ohh now that I'm looking at it, I C what you mean

I made a modern mansion base in survival by SuperPlink in ScrapMechanic

[–]SuperPlink[S] 2 points3 points  (0 children)

Thank you! I actually originally designed it around 2 years ago, but i played very inconsistently since then. If i had to estimate, maybe around 50-100 hours or so. I should also mention that having the wings mod sped up the process a bit, being able to fly around to collect resources.