Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player isn't considered to be actually moving through logic gates when they appear in a wired teleport network #46

Open
ncrecc opened this issue Feb 24, 2021 · 2 comments
Labels
bug Something isn't working compat: cc2 Compatibility issue with Steam/CC2 hell problem i have no idea what to do about this oh god

Comments

@ncrecc
Copy link

ncrecc commented Feb 24, 2021

This manifests in 2 ways

  1. Teleporting player can get "stuck" at a logic gate until it's free
    dies

  2. Teleport delay through logic gates
    awful

In Lexy you just appear at the teleporter at the end instantaneously if all of the gates are powered.

@ncrecc ncrecc changed the title No delay from moving through a logic gate in a wired teleport network Player isn't considered to be actually moving through logic gates when they appear in a wired teleport network Feb 24, 2021
@ncrecc
Copy link
Author

ncrecc commented Feb 24, 2021

There's also some awful despawn/respawn shit going on if you ever try to emulate that. I suppose if the teleport fails, then the player is respawned on the tile where they tried to teleport.
dies2
However, if the player gets stuck because they traveled off a loose powered wire with no teleport at the end (and only if they traveled through one or more logic gate on the way, implying the presence of the gate activates some alternate wired teleport behavior) then the game will crash the next time a level is loaded. To emulate this, all queued respawns/despawns should be cleared when this happens. (They should be cleared whenever any crash would happen, e.g. #44)
There's also some situations where trying to respawn a gate-stuck player after exiting the level just crashes for reasons I can't figure out (or the game fails to respawn the player and then crashes one level load later) .

@eevee
Copy link
Owner

eevee commented Mar 3, 2021

this is technically correct but is going to be a nightmare! in the meantime i'm hoping that no one actually makes levels depending on this

@eevee eevee added bug Something isn't working compat: cc2 Compatibility issue with Steam/CC2 hell problem i have no idea what to do about this oh god labels Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compat: cc2 Compatibility issue with Steam/CC2 hell problem i have no idea what to do about this oh god
Projects
None yet
Development

No branches or pull requests

2 participants