GlitchApotamus-ShopPrison icon

ShopPrison

Imprison players during the shop phase of the game.

CHANGELOG

v1.0.0

  • Initial Release

v1.0.1

  • Just updating links
  • Nothing new

v1.0.2

  • Fixed the loading of images
  • Show a message on the screen of a jailed player. (let me know if this is working)

v1.0.3

  • Added a return key to self-voters.
  • Revamp code design

v1.0.4

  • Remove some junk code
  • Improve on FPS drops in loading
    • Thank you Whiteline7 for this report!

v1.0.5

  • Fix the bug where sending the team to an arena would unload the mod
  • Fix the bug where the votes don't get cleared after sending the player to jail

v1.0.6

  • Add a config option to disable player movement AND turning while in prison
  • Fix a bug that would clear all votes constantly
  • Improve optimization
  • Properly check if Shop is active
  • Clear votes when the team moves to the lobby

v1.0.7

  • Disable self voting
  • Update votes properly if the player skips

v1.0.8

  • Fixed the file structure to properly load the UI images
    • Thank you FlightMaster3000 for this report!

v1.0.9

  • v1.0.8 still broken links. it should be fixed now
  • Use internal logger instead of unity
  • Added new config option "TeleportToChair"
    • Will teleport a jailed player to the chair behind the counter
    • Currently, it doesn't work, will be in the next update. Patience, please.

v1.0.10

  • Finally, fixed broken links. Thanks to Lordfirespeed for guidance

v1.1.0

  • Bump Dependency version
  • Full refactor code organization
  • Added Networking Integration
  • Attempted to fix UI in shop bug (need test and feedback)
  • Added custom cursors for the UI
    • Default
    • Hover
  • Added the ability to teleport player to closet/bathroom
    • DO NOT USE IF ANOTHER MOD USES THIS ROOM! IT WILL BREAK!
  • Added the ability to teleport a player to a chair behind the counter
    • Using this will also destroy the chair
  • Still WIP could use some testing

v1.1.1

  • Temporarily use log info/log warning instead of log debug
  • Automatically disable opposing teleport location if both are enabled
  • Update networking call for votes
    • each player votes locally, then the host receives the votes from each of them
  • Updated cursor for UI, it will now show my custom cursor as soon as the UI pops up
  • Getting teleported to the side room now lets you move freely, but you cannot leave the room
  • If the jailed player is teleported to the chair or side room, they will be revived on the truck after they die from round switching

v1.2.1

  • Networking is finally working!
  • Jail is working!
  • Updated config description for bypass host

v1.2.2

  • Automate version control with a new script

v1.2.3

  • Refactor some code to remove expensive calls
  • Handle voting ties as a skipped vote (no one gets jailed if tied)
  • Prevent the Jail Message from showing if no one was actually put in jail (precaution)
  • Resign vote handler on shop leave
  • Process partial votes if one or more players don't vote (5 seconds after the voting ends)

v1.2.4

  • Re-enable check for self-voting. You can no longer vote yourself to jail.

v1.2.5

  • Added a Developer Mode config option.
    • This is useful if you're wanting to test the mod on your own.
    • It still has full functionality from your config.
    • You can get stuck and require a restart of the game.
  • If the lobby contains only the host player, the voting never even shows up, even in developer mode.
  • Networker won't spawn if the lobby has less than two players

v1.2.6

  • Bug fix: UI should not show up in the shop anymore
  • Bug fix: Votes should only be processed once all votes are received or the vote timer runs out

v1.2.7

  • Update mod icon
  • Add a startup warning log
  • Add a log when all votes are already processed
  • The Voting UI should now be destroyed when you load into the shop
  • Fixed the bug that doesn't jail players after getting voted
    • The processor was using the wrong timer for partial votes

v1.3.0

  • Remove unused asset
  • Use RunManager instead of SemiFunc Patch
  • Move the entire voting session from the Loading screen to the Truck at the shop
    • The truck door should remain closed until the voting has ended and the UI is gone
  • Opt into Debug Logs instead of Info Logs
  • Added config options:
    • HideJailMessage
    • HideJailMessageTime

v1.3.1

  • Allow the UI to pop up with only one player in Developer Mode

v1.3.2

  • Properly removed the "Voted To Jail" message if the player leaves quits to the main menu
  • Freeze all players during the voting session
  • Fixed a bug where a new voting session wouldn't send the top voted player to jail
  • Limit the networker to only spawn when loading into the shop
  • Properly process all votes

v1.3.3

  • Prevent patches from running in a singleplayer game
  • Implement automatic config reloading if changed within REPOConfig in-game

v1.3.4

  • Removed Developer Mode completely
    • No longer able to run testing on your own
  • Fixed the voting session to properly jail players

v1.3.5

  • Update README

v1.3.6

  • Update README again
  • Add an indicator of whom you voted for
    • this will not show to all players since it's only showing who you voted.
  • Edit the spacing between the columns in the UI
  • All player buttons are the same size to make it look more uniform.

v1.3.7

  • Fix a bug where too many buttons would get highlighted after a player votes.
  • Feature added: unjail player when a player requests to leave the shop.
  • Players will not be jailed until the Voting UI is gone.
  • Refactor voting code to allow players to be voted out if they are tied with SKIP.
  • Players that aren't jailed can walk through the shop door if Side Room is enabled.

v1.3.8

  • Add config synchronization between clients and host
    • ensures no one can set their own settings

v1.3.9

FAILED TO UPLOAD

v1.3.10

  • Remove unused file
  • Player can no longer tumble launch through the invisible door.
    • You can only tumble once, then it's disabled until shop phase complete.

v1.3.11

  • Fix bug with tumble launch door.
  • Fix desync/lag while in jail.

v1.3.12

  • Fix bug that prevents loading into the shop if host quits to the main menu.
  • Automatically teleport player back to the jail room if they get out.
    • No longer worried about player tumbling.
    • Tumbles don't get lagged while jailed.
  • Thanks DracoNinja801 for the reports and testing.

v1.4.0

  • Switch from Patch to Hook
  • Should be compatible with Late Join mods. (need testing)

v1.4.1

  • Increase wait period to start voting from 3s to 5s.

v1.4.2

  • Fix Jail state not resetting properly between levels.