diff --git a/builder/main.rb b/builder/main.rb new file mode 100644 index 0000000..2ecda44 --- /dev/null +++ b/builder/main.rb @@ -0,0 +1,27 @@ +require 'curses' + +include Curses + +init_screen +curs_set(0) +stdscr.keypad(true) +start_color +init_pair(1, COLOR_WHITE, COLOR_BLUE) +begin + config_win = Window.new(lines / 2 - 1, cols / 2 - 1, 0, 0) + config_win.box("o", "o") + config_win.setpos(2, 2) + config_win.attron(color_pair(1)|A_NORMAL){ + config_win.addstr("Hello, Jerk.") + } + config_win.refresh + + sleep 0.5 + config_win.clear + config_win.refresh + config_win.close + getch +ensure + close_screen +end + diff --git a/builder/main.rb b/builder/main.rb new file mode 100644 index 0000000..2ecda44 --- /dev/null +++ b/builder/main.rb @@ -0,0 +1,27 @@ +require 'curses' + +include Curses + +init_screen +curs_set(0) +stdscr.keypad(true) +start_color +init_pair(1, COLOR_WHITE, COLOR_BLUE) +begin + config_win = Window.new(lines / 2 - 1, cols / 2 - 1, 0, 0) + config_win.box("o", "o") + config_win.setpos(2, 2) + config_win.attron(color_pair(1)|A_NORMAL){ + config_win.addstr("Hello, Jerk.") + } + config_win.refresh + + sleep 0.5 + config_win.clear + config_win.refresh + config_win.close + getch +ensure + close_screen +end + diff --git a/builder/server_vars.rb b/builder/server_vars.rb new file mode 100644 index 0000000..86cbc4b --- /dev/null +++ b/builder/server_vars.rb @@ -0,0 +1,28 @@ + + +class ServerVar + def initialize(name) + @max_players = "64" + @server_variables = { + sv_adminlistfile: "adminlist.txt", + sv_afk2spec: "0", + sv_aircontrol: "0.00390625", + sv_artifactreturntime: "30", + sv_banfile: "banlist.txt", + sv_banlistreparsetime: "0", + sv_broadcast: "true", + sv_cheats: "false", + sv_colorstripmethod: "0", + sv_coop_damagefactor: "1.0", + sv_coopspawnvoodoodolls: "true", + sv_coopunassignedvoodoodolls: "true", + sv_coopunassignedvoodoodollsfornplayers: @max_players, + + + } + + @server_name = name + end + +end +