Skip to content

Instantly share code, notes, and snippets.

@IlyaShastin
Created October 12, 2017 20:43
Show Gist options
  • Save IlyaShastin/e3d4017538e52f46a953c80302ecfd31 to your computer and use it in GitHub Desktop.
Save IlyaShastin/e3d4017538e52f46a953c80302ecfd31 to your computer and use it in GitHub Desktop.
Default config file for Server Crash Screen v1.1.0. https://www.gmodstore.com/scripts/view/2691
-- Time in seconds before the screen should atempt to
-- reconnect to the server.
-- Default: after 60 seconds.
ServerDown[ 'ReconnectTime' ] = 60
-- The time interval at which the server should ping the client.
-- Default: every 2 seconds.
ServerDown[ 'PingTime' ] = 2
-- Officially set the server as down once the time since
-- the last ping exceeds this time in seconds. You may need
-- to change this based on how delayed your server is. If the
-- menu pops up out of no where when the server is clearly up
-- you may need to increase this.
-- Default: after 10 seconds
ServerDown[ 'PingDownTime' ] = 10
-- This is the title displayed at the top of the screen when
-- the server is confirmed unresponsive and the crash screen
-- is enabled.
ServerDown[ 'Title' ] = 'Wow, That was unexpected!'
-- This is the image used for the reconnect button
ServerDown[ 'ReconnectImage' ] = 'http://i.imgur.com/nU4KF6K.png'
-- This is the image used for the disconnect button
ServerDown[ 'DisconnectImage' ] = 'http://i.imgur.com/DZtE4ab.png'
-- This is the description under the title when the server crash
-- screen is displayed.
-- Colors can be added to the message using @Color[r,g,b,a]
ServerDown[ 'Description' ] = 'Looks like the server is @Color[236,100,75,255]down@Color[255,255,255,255]. The list on the right are some servers you may find interesting and should check out, or you can try to @Color[0,177,106,255]reconnect@Color[255,255,255,255] to the server using the reconnect button below. If you cannot reconnect to the server, please give us some time and we will have it back up and running soon.'
-- Set this option to false if you want to hide the list of allternate servers
ServerDown[ 'EnableAlternateServers' ] = true
-- This is a list of all the servers in the Alternate Servers list.
-- name: The name of the server to be displayed on the button.
-- ip: The IP address to the server.
-- icon: An icon for that server. I would keep these white, transparent background, and no smaller than 64x64px.
-- color: The color of the button when hovered on.
ServerDown[ 'AlternateServers' ] = {
{ name = 'bunnyhop #1', ip = '123.123.123.123', icon = 'http://i.imgur.com/waf74tY.png', color = Color( 68, 108, 179 ) },
{ name = 'bunnyhop #2', ip = '123.123.123.123', icon = 'http://i.imgur.com/waf74tY.png', color = Color( 68, 108, 179 ) },
{ name = 'darkrp #1', ip = '123.123.123.123', icon = 'http://i.imgur.com/rRHzbbT.png', color = Color( 239, 72, 54 ) },
{ name = 'darkrp #2', ip = '123.123.123.123', icon = 'http://i.imgur.com/rRHzbbT.png', color = Color( 239, 72, 54 ) },
{ name = 'ttt #1', ip = '123.123.123.123', icon = 'http://i.imgur.com/2kOgJKy.png', color = Color( 246, 71, 71 ) },
{ name = 'ttt #2', ip = '123.123.123.123', icon = 'http://i.imgur.com/2kOgJKy.png', color = Color( 246, 71, 71 ) },
{ name = 'prophunt', ip = '123.123.123.123', icon = 'http://i.imgur.com/Y8uXiIT.png', color = Color( 142, 68, 173 ) },
{ name = 'surf', ip = '123.123.123.123', icon = 'http://i.imgur.com/8GCZRrz.png', color = Color( 63, 195, 128 ) },
}
-- If you want to open the menu to test it, you can use the command server_down_toggle_menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment