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

TOU Handshake Rework #187

Open
wants to merge 3 commits into
base: mainline
Choose a base branch
from

Conversation

VirusTLNR
Copy link

@VirusTLNR VirusTLNR commented Jan 13, 2022

@Anusien - this works so if it passes your testing (ive used 2 clients for every scenario.. different versions newer/older and same versions with different fork name's) and it works as expected on both ends, the only thing i cant 100% confirm is if it fixes the crash, but as ive played TOU with the TOR handshake (https://github.com/VirusTLNR/Town-Of-Us/tree/HandshakeFixOn2.8.1) and there was no crash, and this is a minor change from that, this will also not crash.

I wanted to use knowledge from the TOR handshake to make a new handshake for TOU. but, in order to add another feature interlinking with the handshake in the future (auto updating the mod like TOR does but hopefully with more features), the handshake has to more closely resemble TORs one, so I am disappointed to say this is less brand new code than i wanted as i had to make use of the TOR template for a handshake, but made a few improvements, and put a placeholder in for where this can link into the auto updating of the mod (if that will even work as i havent tested it yet.).

Either way, this fixes the crash bug, and ive left in the lobby features that were in the TOR handshake, because why remove them? they are great features. i have hardcoded some to just work properly so settings can be coded in for them at a later date, and for other things ive implemented them as is as the features are just helpful (like the lobby timer)

Credit should go to TOR for the handshake template/design as well as the additional features, i have modified it a bit and thrown in a few extras/improvements, otherwiise it pretty much follows hows theirs works.

I wanted to use knowledge from the TOR handshake to make a new handshake for TOU.

but, in order to add another feature (auto updating the mod like TOR does), the handshake has to more closely resemble TORs one, so im disappointed to say i changed less than i wanted, but made a few improvements, and put a placeholder in for where this can link into the auto updating of the mod (if that will even work).

Either way, this fixes the crash bug, and ive left in the lobby features that were in the TOR handshake, because why remove them? i have hardcoded some to just work properly so settings can be coded in for them at a later date, and for other things ive implemented them as is as the features are just helpful.

Credit should go to TOR for the handshake template/design as well as the additional features, i have modified it a bit and thrown in a few extras/improvements, otherwiise it pretty much follows hows theirs works.
@VirusTLNR
Copy link
Author

VirusTLNR commented Jan 13, 2022

I should also mention this was built on 2.9.0 as requested :) going to work on the auto updating now, so if there is any changes requested here, or questions, let me know.

noticed i left this in by mistake while testing something, oops
@VirusTLNR VirusTLNR changed the base branch from mainline to upgrade/v2021.12.142 January 31, 2022 17:42
@VirusTLNR
Copy link
Author

@Anusien - i have merged this with the up to date code base and it works after merging.

test branch is here, i merged using the same code as in this PR.
https://github.com/VirusTLNR/Town-Of-Us/tree/handshake-on-upgrade-codebase

@VirusTLNR
Copy link
Author

Tested on the code for 3.0.0 beta 8, this worked fine, no crashes, no issues.

@VirusTLNR VirusTLNR changed the base branch from upgrade/v2021.12.142 to mainline February 17, 2022 19:31
forgot to change this before, as even 2022.2.8 runs on "2021.12.15" this should be the recognised version.. i dont know how this would be automatically coded though as i dont know where to pull this from, but miniguikboot i beleive said that 2022.2.8 identifies as "2021.12.15" for impostor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant