199 Commits over 792 Days - 0.01cph!
▅▅▍▉█ ▌▌▆█▉█▊▌▉▌▉▆▅█▅▇▋▉▊▉▌▊▇▊█▍▇ ▉▅▍█▊▌█▄▆▄ ▌█▄ ▉▌▊ ▌▆
▊▆▍▍▄▆█▋▄.█▅▆▋▍▋ -> ▊▍▇▇.▄▍▄▄▉▆
▍▄▇ ▍█▋▍ ▊▊ ▅▉███ ▅▅▆▍▉▅.▆▅▆▌█▌▄▅▄█▉ ▆▅▇ ▅▅▍ ▋▅███ ▄▍▋▆ ▆▅▌▅▇▉▉▉▆▌▋▉ █▉▋▌▊ ▅▉▇▆▅.▆▄▆▉▌▄▋▋▄
server.printwipeid command to print the wipe id of the .sav
WIP restart server at 4am local machine time, check for >=22 hour server uptime and do not restart Staging servers (env || hostname)
start the timer 10 minutes after the server is up and repeat every 5 minutes
Separate rcon logic and serverinfo loop out of ConsoleInputBar and into separate class CommandManager. Swapped out usages in RunServer.cs. Finished up the CheckForServerRestart functionality. Confirmed the project still builds
Was accidentally using DateTime.UtcNow instead of DateTime.Now
Change the time check to prevent the extremely rare edgecase of the server attempting to restart twice
Use the global cancellation token in the CommandManager, don't make a new one
CommandManager takes CancellationToken, not source
Rename CommandManager to more suitable ServerRcon
rename vars, too
Double time window to ensure we restart and store DateTimeOffset of when restart was last requested
Attempt to restart multiple times if we failed due to an exception
Log any errors
Minor changes
Merge pull request #6 from Facepunch/server_restarts
Server restarts
Changed the car radio item inventory move sfx to a more suitable light metal sound rather than the heavy clunky car module sound
Attempt to restart multiple times if we failed due to an exception
Double time window to ensure we restart and store DateTimeOffset of when restart was last requested
Rename CommandManager to more suitable ServerRcon
CommandManager takes CancellationToken, not source
Was accidentally using DateTime.UtcNow instead of DateTime.Now
Change the time check to prevent the extremely rare edgecase of the server attempting to restart twice
Use the global cancellation token in the CommandManager, don't make a new one
█▇▄▄▇▇ `▅▅▄▊_▆▋▋█▋▍▆▇_▅▉▆▉▊█▉_▄▉▇▍▉`'▅ ▆▌▅▅▅▅▉▋ `▊▇▍▍▌▍▉▇▍▉` ▊▌▅ ▇▆ `▇▌▋▉▉.▇▋▌▅▉█▍▍▉▆▊▋▊▉▉▅▇▉▌▉()` ▍▋▊▋ ▆▊ `▍▍▊▋▇.█▉▄█▌▉▋█▇▍▊()` ▋▊ ▍▍▆▊▌ ▄▄▆▍ ▄▉▊▅▄ ▌▍▉▄▇▋▌▆▅ ▊▅▊▊ ▉▅█▊▇▍▍ ▌▇█ ▇▅▉▋▅█▉. █▌▋█▌█▌▍▇ ▍▋▋ ▋▉█▅█▉▄ ██▅ ▊▅▆ ▉█ ▅▍▋▄▋.
`▋▉▅▇▍▆▊▊▊▋.▄▍▅▄▉▌▌▍` ▅▅▄▄ ▅▇▅ ▊▅▇▄▊▍▉ ▍▄▄ ▅█▅▅▆▌█ ▌▊ ▅▋▍ ▅▄▊▆▍▊▌▋▋█ ▋▅ ▇▄▇▊▍▋ █▄▅▄ ▇█▋▋▍▇▉ ▅█▆ █▊▍▇▇▇▄ ▍▄ ▆▇▋▊ ▍▌ ▅ ▉▋▍▍▊▊▋ ▅▊▅▉▅▊▉▅ ▉▍▉▋▊▄▍▆ ▉▋▉▍▍▋▉▋▌ (▍▋▋▌▅▉▉▋▍▌).
▊▅▌▌▆█▄▋▌ ▄▅▅ ▄▉▉▇▆▅▋ ▌▇ ▅█▊ ▆▌ ▌▇▇█▄ ▄▋ ▆▇▄▊▌▆▉▌▄ ▋▊▊▋▋ ▅ ▆▌▇█▄▅█ ▉▋▆▊▇, ▉▋▇▇▄▅█▌▆ █▊▇▌ ▅▍▇▇▋▍█▅▋▄.
▄▍▌▋▋ ▆▊▉▆ ▆█_▆▍▅█_▉▌▅▄█▄▄▄_▌▊▍▄▅▅▄▋▍_▅▅▉█▌▍▄██▄▊
merge from hackweek_car_radio
Car radio can now be picked up with a hammer if you are authorised on the car's codelock (or the car doesn't have a codelock)
merge from hackweek_car_radio
Car radio deploy sfx and impact effects
Prevent car radios being able to be deployed in eachother
car radio deployment is no longer blocked if the modular car is on a road
Separate rcon logic and serverinfo loop out of ConsoleInputBar and into separate class CommandManager. Swapped out usages in RunServer.cs. Finished up the CheckForServerRestart functionality. Confirmed the project still builds
start the timer 10 minutes after the server is up and repeat every 5 minutes
WIP restart server at 4am local machine time, check for >=22 hour server uptime and do not restart Staging servers (env || hostname)
Merge from hackweek_car_radio
Fixed server / client errors
Remove old and accidental files
Car radio costs 120 metal fragments, the same as the Portable Boom Box
Removed old commented-out code
- WIP audio source setup
- Radio now turns off when the engine turns off
- Setup radio play interactions, sfx and the 3 default stations
Progress on moving over hackweek car radio code to its own class ModularCarRadio as a child entity of BaseVehicleModule and no longer in VehicleModuleSeating.
Commented out old code and got client UI interactions working again. Still needs sound setup
▋▇▉▊ ▆▍▆▄█▉▄▇ ██▄▆█▆▋▋▆▌ ▅▇▉ ▇▊▋ ▅▊▉▆▉▆▆▊▍▉█ ▍▄ ▄▍▆▇▌█▉▄▉█▄▉▌.▇▍▆▅▄▌▇▉.
- ▍▋▄ ▌▋▅▅▇▆.▍▌▋▊▅▌▍▄.▋▌▄▋_▉▅▉▊▋▍▇█_▌▉▉▊█▅▆▅█▄▇ = █.▊▇ (▉▅▋▅▅▄ ▇▄▇▄▆) ▌█▉ █▅▍▆ ▋▌█▇▆▅▅▄▊▋▊▊▉▉▄▅▊▇▍▊▌ > ▇ ; ▅▌▅ ▉▇▊▋▋▋▆
- ▅▄▋▋▍▅▍▉ ▍▄█ ▊▇▊█▊▋▆ ▍▄▆▆█▇▋▉▅▋▌ ▉▆▌▍ █▉█ ▌▆▆███▋▋▍▉-█▉▄▊▌▉▌▊.▄▌▊▇▄▇▄▅▋▇▌▉▊ ▍▅▍▌▉▍▉▊ ▌▉▋ █▅▅▊▋▆▊▊▄▇█▊▌ ▉▅▍█▆▋ (▇▌█▍██▄▌▇ ▊▇▍▅▆▌▍▍▅▇██▋ ▅█ ▇▉█▅▆▇▍▅ ▇▅▆▌▄▆▊▆▊█▇▄▋▇)
▊▉▋██▇█▄ █▍▇: ▍▇▊▊▋▌ `▇▍( !▇▍▄▋▄() ) ▉▄▆▅▇▍;` ▋▍ `▉▊ ( !▄█▌▍▋() || !█▆█▍▇█▆██() ) ▅▊▌▋▉▆;` ▋▊ ▌▊▌█▅▇▊█'▆ █▇▊▉▅▌ ▌▊█▅▉▄ █▊▆ ▉▋ ▍▊▄▄▇▇ ▌█▊▆▄▇ ▇▌▋▉▄▄ ▌▌▍▍▋▍ - ▄▄▅▆▉█▄▊ ▍▇█▄▇▆▄▄ ▌▅▉▊▌▇▅ ▆▌ ▉▇▉ ▇▋▌▍▍▅▍▇▆ ▊▌▆▆ █ ▇▄█▊▅▌ ▄▌ ▄▋█ ▅▅▋▍▌▇▄ ▄█▆▅██▅▆▇▋.
▌ ▅▆▆█▇▍▄▌ ▅▇█▉▉▋ ▄▉▋▍ ▆▇ ▇▆▌▅ ▋▅ ▆▉ ▍▉▍▉▆▍▌▉ (▅▋▋▋▌▍ ▆▋) ▉▌ ▋█ ▇▌▇ ▆▄▇█▌█▄ ▊▆▋ >█.▌ ▉▇▍▆▉▌▉ (▇▄▅█▉) █▄▅ ▉▌▇ ▋ ▆▄▆▊█▍ █▍ ▄▄▄ ▉▄ ▇▄ (▊▇▊▉▅▊▋▉▆)
Landmines now have a 15% chance to explode on being disarmed.
This was always the intended gameplay behaviour but turns out there was a bug that prevented it from exploding. Instead, it previously bugged out and did nothing, allowing the triggering player to walk off
▅▄▇ ▆▄█▊▆▉█ ▇▄█▍ ▍ ▇▅▍▊▅▋ ▄▅▊▅ ▉▇▆▍▍ ▊▊▇▄▌▇ ▄▄▄▄▋▌▋▉ █▇▆█▅█▄▇▍▄▆ ▄▍ ▋▄▉ ▅█▇▉▌ ▊▊█▅ ▊▆▄ ▌▊ ▇▍▇▉▅ ▋▆▌▄ ▉▍▇▋▆▋▋ -> !▇▇▍▉▌▇▉. ▆▋▋▊▌▇▉▅▄█▇▊▇ ▋█▊▇ ▆▇▇ ▌▊▉▍█ ▊▇▆▍▄▆▋ ▄█▅▋█▅█ ▉▉▇ ▌▌▇▉█ ▄ ▍▋▊▇▉▍ ▊▉ ▆▋▆▅▍▆▆▍▅▊▊ ▌▊ ▊▅▆▌▋ ▋█▋ ▊▉▌ ▆▇▇▆█▍.▅▅▋▉▉▊▌▆.▊▇▄▍_▋▋▍_▉▇▆▉█▉▌▅_▅▌▊▅▇▍▉ = ▍.▄█.
▆▉ ▉▅▅▅▉▇▉ ▅██▋, ▌ ▌▌▋▍▄▊▄█▇▍ ▉▊▌█ ▉▇▄▇▍▉▉▆█ ▇▆▄ ▍▅ ▍▊▊▋▅▋▇█▆ ▊▌▇█▌ ▆▉▉█▆▅▋ ▅▅▅█ ▅▇▊█▇ ▊▄▋▌ █ ▊▆▌█▅ ▄▄▅█▉▊ ▄▋▄ ▌▌ ▌▋▌ ▇▌▉▉▆▍▇▋ ▄▍▍▌▊▉ ▇▉▇▋ ▍▅▄▋▄▊▉ - ▌▅▊▊ ▉█▌▆ ▌▉▊▅ ▋▉▉▋▇▍▆ ▉▊▍█▇ █▉▄ ▌▊ ▌▉▋▌▍ █▌▊▅██▄▉▋ ▄▋█▉▆█ ▇▊▋ ▌▅▍ ▍▊▇▅▄ █▄▊▄ ▍▌▇▋▅▊▅▆▉ - ▋█▄▅█ ▉▄▍▋▇▆▆▋▌▊▄▉▆.
▄█▍▋▅▋▋▆.▆▋▌█▄▍▉▄▇▋ ▊▇▉▉▋▍▍ ▆▉▍ ▇▇▍▅ ▉▍▅▆█▋▋▍ ▆▆ ▉▇▇▉▉█▍▅ ▌█▉ ▊▌▉▋▄▌▌▅▋▌ ▌▌▋ ▍▄▌ ▇▊▉▍▊▅▆ ▍█▉▇▊. ▅▄▆▉█▊ ▌▅▊▉ ▇▌ ▌▋ ██▊▉▊▊█▊▊ ▉▆█▌▉ ▊▉▇ "▉▉▆▍▋" ▊▇▇▄▄▍▅▋▆▋▅▍
▌▉▋▆ ▍▅▌ ▊▋▄▋ ▅▄█▍▆▊▉▊ ▌▊▆▉▇▌▉▅▍▋ ▄▄ ▆▉▋ ▊▇▉▍▋▍▊▄.▄▋▇▉▇▊▍▉▄▉▄▊ - ▅▉▍█▇█▍▍ ▍▋▍▉▊▇ ▌▊▊▊▌▊ ▅▉▆ ▌▍ ▇▅▉▍▆▍ █▅▌▉▄▇▅ ▉▆▄▋▅▇▋▌▌▄▌▇ ▌▇▋ ▇▉ ▊▆▄█▄ ▆▇▍▊▌█▇▋▋ ▋▆█▅▉▊▇█, ▍▅▅ █▅▋▊ ▇▉▋▋▇ ▍▋▇▋ █▄ ▊▌██▆█▅▆▄▄█▆, ▅▋▅▅▇▍▆▉▅▊ ▆▇▇ ▋▊█▌▍▍▊▊
▉▆▆▋▅▉▅▅█ ▅▍▌: ▄▆█▇ ▍▌▊ ▆▍ ▊▊▅ █ ▄▅▆▄▌▅▍█▌ █▌▉▄▋▄ ▌▇▄▋ ▍▊█▅▉▌ ▄▋▊ ▉▅ ▌▉▅▇ ▅█ ▍▄▉▄ ▍▇▅▌▊▋▌ ▅▊█ ▊▊▍▆▋▉ ▍▊▅▋▇▇'▍ ▊▉▆█▋▉▊ ▍▇ █▋▍ ▇▇▆▌▅▅
▍▇▅▅_▌▍▌_▉▄▄▋█▍▋▇_▉▊▄▊▅▉▍ = ▅.▄▅, ▄▉█▆ █▄▆▆ ▋▇▊▅▄▆ ▇▉█▆█▇▄. █▄▆▉▊ ██▍▉▄ ▆▅▍▋▇█▇▊ ▄▉ ▆▅▇▋▇▊▋ ▆▊▄▊▋▋▄ ▊█▅ ▋▋▉▋▇ ▆▇█▍ ▄▉ ▄▅▅▊
Fix: FreeUnmanaged the DebrisEntity list after we're done with it
▆▇█▋▄▄▆▉▊█ ▉▌▌▅▆▅ ██ ▋▇▆▅▆▄ ▇▄▉▌█▋█▄▋ ▋▋▌▇▅▍▍
▍▋▄▇▉ ▅▋▄ ▆▍▋ || ▌▋▉▊▉▉▅▆ ▋▆▍▆▍▄▆ ▉▉▊▌▌▌▍▋▊▋ ▅▊▆▄▋, ▉▇ ▌█▆▊▅ ▄▄▄▆ ▄▅▅▄ ▉▅▇ ▇▉▅█▇▅ (▍▌▍▌▌█ ▍▌▅▄ ▊▉██▌▉ ▇▉▉▌▉▋ ▌▉▉▆▍▇▍█▉ ▅▄▊ ▉▇▋▆▅▊). ▅█▍▅ █▉▅▋█ ▋▆▊ ▌█▉▅▄ ▇▇▊█▉▌▊ █ & ▉