Sign in to follow this  
Followers 0
Lurch68b

Newb to GUI creation

6 posts in this topic

#1 ·  Posted (edited)

So I have created a GUI for setting up and running a Unreal Tournament server but I have no idea how to get it to function. I have looked around for a while trying to gather enough info on how to do it but I guess I must just be stupid because I haven't gotten anywhere. Here is the GUI as I have it now.

CODE

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=d:\game_server_scripts\server_control_v3.kxf

$ServerControl = GUICreate("Server Control", 1096, 856, 487, 108)

$Server_Control = GUICtrlCreateTab(16, 8, 1031, 463)

GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$Server_01 = GUICtrlCreateTabItem("Unreal Tournament")

$Start_Server_01 = GUICtrlCreateButton("Start Server", 30, 57, 90, 33, 0)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Click here to start server")

$AGroup1 = GUICtrlCreateGroup("Game Modes", 30, 204, 141, 181)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$CTF_C = GUICtrlCreateRadio("Capture the Flag", 45, 234, 16, 16)

GUICtrlSetState(-1, $GUI_CHECKED)

$CTF_L = GUICtrlCreateLabel("Capture the Flag", 62, 234, 83, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Slect this if you wan to setup a Capture the Flag match")

$Assault_C = GUICtrlCreateRadio("Assault_C", 45, 254, 16, 16)

$Assault_L = GUICtrlCreateLabel("Assault", 62, 254, 41, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup an Assault match")

$Domination_C = GUICtrlCreateRadio("Domination", 45, 274, 16, 16)

$Domination_L = GUICtrlCreateLabel("Domination", 62, 274, 56, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup Domination match")

$Bombing_Run_C = GUICtrlCreateRadio("Bombing Run", 45, 294, 16, 16)

$Bombing_Run_L = GUICtrlCreateLabel("Bombing Run", 62, 294, 67, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Bombing Run match")

$Death_Match_C = GUICtrlCreateRadio("Death Match", 45, 314, 16, 16)

$Death_Match_L = GUICtrlCreateLabel("Death Match", 62, 314, 64, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Death match")

$Team_Death_Match_C = GUICtrlCreateRadio("Team Death Match", 45, 334, 16, 16)

$Team_Death_Match_L = GUICtrlCreateLabel("Team Death Match", 62, 334, 93, 18, BitOR

($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Team Death match")

$Onslaught_C = GUICtrlCreateRadio("Onslaught_C", 45, 354, 16, 16)

$Onslaught_L = GUICtrlCreateLabel("Onslaught", 62, 354, 53, 18, BitOR($SS_CENTER,

$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup an Onslaught match")

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Maps_B = GUICtrlCreateGroup("Maps", 190, 55, 181, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$TreeView1 = GUICtrlCreateTreeView(200, 80, 161, 289)

$TreeView1_0 = GUICtrlCreateTreeViewItem("CTF", $TreeView1)

$TreeView1_1 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_0)

$TreeView1_2 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_0)

$TreeView1_3 = GUICtrlCreateTreeViewItem("Deathmatch", $TreeView1)

$TreeView1_4 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_3)

$TreeView1_5 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_3)

$TreeView1_6 = GUICtrlCreateTreeViewItem("Assualt", $TreeView1)

$TreeView1_7 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_6)

$TreeView1_8 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_6)

$TreeView1_9 = GUICtrlCreateTreeViewItem("Domination", $TreeView1)

$TreeView1_10 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_9)

$TreeView1_11 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_9)

$TreeView1_12 = GUICtrlCreateTreeViewItem("Onslaught", $TreeView1)

$TreeView1_13 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_12)

$TreeView1_14 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_12)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$IP_Input_P = GUICtrlCreateInput("Server IP", 30, 99, 91, 22, BitOR($ES_CENTER,

$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Set the server IP")

$Server_Port_I = GUICtrlCreateInput("Server Port", 30, 126, 61, 22, BitOR($ES_CENTER,

$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Set the server listen port")

$Mutators_GB = GUICtrlCreateGroup("Mutators", 590, 55, 281, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$CrateCombo_C = GUICtrlCreateCheckbox("CrateCombo", 600, 81, 11, 11)

$CrateCombo_L = GUICtrlCreateLabel("CrateCombo", 620, 80, 63, 18)

$BigWheels_C = GUICtrlCreateCheckbox("BigWheels", 600, 101, 11, 11)

$BigWheels_L = GUICtrlCreateLabel("BigWheels", 620, 100, 55, 18)

$LightweightVehicles_C = GUICtrlCreateCheckbox("LightweightVehicles", 600, 121, 11, 11)

$LightweightVehicles_L = GUICtrlCreateLabel("LightweightVehicles", 620, 120, 102, 18)

$OnslaughtWeapons_C = GUICtrlCreateCheckbox("OnslaughtWeapons", 600, 141, 11, 11)

$OnslaughtWeapons_L = GUICtrlCreateLabel("OnslaughtWeapons", 620, 140, 99, 18)

$WheeledVehicleStunts_C = GUICtrlCreateCheckbox("WheeledVehicleStunts", 600, 161, 11, 11)

$WheeledVehicleStunts_L = GUICtrlCreateLabel("WheeledVehicleStunts", 620, 160, 113, 18)

$VehicleArena_C = GUICtrlCreateCheckbox("VehicleArena_C", 600, 181, 11, 11)

$VehicleArena_L = GUICtrlCreateLabel("VehicleArena", 620, 180, 70, 18)

$UTClassic_C = GUICtrlCreateCheckbox("UTClassic", 600, 201, 11, 11)

$UTClassic_L = GUICtrlCreateLabel("UTClassic", 620, 200, 52, 18)

$LightningGun_C = GUICtrlCreateCheckbox("LightningGun", 600, 221, 11, 11)

$LightningGun_L = GUICtrlCreateLabel("LightningGun", 620, 220, 67, 18)

$SniperRifle_C = GUICtrlCreateCheckbox("SniperRifle", 600, 241, 11, 11)

$SniperRifle_L = GUICtrlCreateLabel("SniperRifle", 620, 240, 56, 18)

$utvMutator_C = GUICtrlCreateCheckbox("utvMutator", 600, 261, 11, 11)

$utvMutator_L = GUICtrlCreateLabel("utvMutator", 620, 260, 55, 18)

$Berserk_C = GUICtrlCreateCheckbox("Berserk", 600, 281, 11, 11)

$Berserk_L = GUICtrlCreateLabel("Berserk", 620, 280, 42, 18)

$BigHead_C = GUICtrlCreateCheckbox("BigHead", 600, 301, 11, 11)

$BigHead_L = GUICtrlCreateLabel("BigHead", 620, 300, 44, 18)

$GameSpeed_C = GUICtrlCreateCheckbox("GameSpeed", 600, 321, 11, 11)

$GameSpeed_L = GUICtrlCreateLabel("GameSpeed", 620, 320, 63, 18)

$LowGrav_C = GUICtrlCreateCheckbox("LowGrav", 600, 341, 11, 11)

$LowGrav_L = GUICtrlCreateLabel("LowGrav", 620, 340, 50, 18)

$MovementModifier_C = GUICtrlCreateCheckbox("MovementModifier", 740, 81, 11, 11)

$MovementModifier_L = GUICtrlCreateLabel("MovementModifier", 760, 80, 91, 18)

$FastWeapSwitch_C = GUICtrlCreateCheckbox("FastWeapSwitch", 740, 101, 11, 11)

$FastWeapSwitch_L = GUICtrlCreateLabel("FastWeapSwitch", 760, 100, 87, 18)

$InstaGib_C = GUICtrlCreateCheckbox("InstaGib", 740, 121, 11, 11)

$InstaGib_L = GUICtrlCreateLabel("InstaGib", 760, 120, 43, 18)

$NoAdrenaline_C = GUICtrlCreateCheckbox("NoAdrenaline", 740, 141, 11, 11)

$NoAdrenaline_L = GUICtrlCreateLabel("NoAdrenaline", 760, 140, 69, 18)

$QuadJump_C = GUICtrlCreateCheckbox("QuadJump", 740, 161, 11, 11)

$QuadJump_L = GUICtrlCreateLabel("QuadJump", 760, 160, 55, 18)

$Regen_C = GUICtrlCreateCheckbox("Regen", 740, 181, 11, 11)

$Regen_L = GUICtrlCreateLabel("Regen", 760, 180, 35, 18)

$SlomoDeath_C = GUICtrlCreateCheckbox("SlomoDeath", 740, 201, 11, 11)

$SlomoDeath_L = GUICtrlCreateLabel("SlomoDeath", 760, 200, 61, 18)

$SpeciesStats_C = GUICtrlCreateCheckbox("SpeciesStats", 740, 221, 11, 11)

$SpeciesStats_L = GUICtrlCreateLabel("SpeciesStats", 760, 220, 68, 18)

$UDamageReward_C = GUICtrlCreateCheckbox("UDamageReward", 740, 241, 11, 11)

$UDamageReward_L = GUICtrlCreateLabel("UDamageReward", 760, 240, 89, 18)

$Vampire_C = GUICtrlCreateCheckbox("Vampire", 740, 261, 11, 11)

$Vampire_L = GUICtrlCreateLabel("Vampire", 760, 260, 44, 18)

$ZoomInstagib_C = GUICtrlCreateCheckbox("ZoomInstagib", 740, 281, 11, 11)

$ZoomInstagib_L = GUICtrlCreateLabel("ZoomInstagib", 760, 280, 68, 18)

$NoSuperWeapon_C = GUICtrlCreateCheckbox("NoSuperWeapon", 740, 301, 11, 11)

$NoSuperWeapon_L = GUICtrlCreateLabel("NoSuperWeapon", 760, 300, 86, 18)

$BonusVehicles_C = GUICtrlCreateCheckbox("BonusVehicles", 740, 321, 11, 11)

$BonusVehicles_L = GUICtrlCreateLabel("BonusVehicles", 760, 320, 77, 18)

$Arena_C = GUICtrlCreateCheckbox("Arena", 740, 341, 11, 11)

$Arena_L = GUICtrlCreateLabel("Arena", 760, 340, 34, 18)

GUICtrlCreateGroup("", -99, -99, 1, 1)

GUICtrlSetTip(-1, "Select the Mutators that you want to run on this server")

$Map_Rotation_B = GUICtrlCreateGroup("Map Rotation", 389, 55, 181, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$Map_Rotaion_L = GUICtrlCreateList("", 399, 75, 161, 300)

GUICtrlSetTip(-1, "These are the maps you selected for the rotation")

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Server_Admin_GB = GUICtrlCreateGroup("Server Administration", 890, 55, 141, 101)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$Server_Admin_Port = GUICtrlCreateInput("Port", 900, 75, 31, 22, BitOR($ES_CENTER,

$ES_AUTOHSCROLL))

GUICtrlSetTip(-1, "Set the web admin port")

$Admin_Password = GUICtrlCreateInput("Admin_Password", 900, 100, 121, 22, BitOR

($ES_CENTER,$ES_AUTOHSCROLL))

$WEB_Admin_BT = GUICtrlCreateButton("Open Web Admin Page", 900, 125, 121, 21, 0)

$Input2 = GUICtrlCreateInput("Admin_Name", 939, 72, 81, 22, BitOR($ES_CENTER,

$ES_AUTOHSCROLL))

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Server_Password = GUICtrlCreateInput("Server Password", 30, 151, 91, 22, BitOR($ES_CENTER,

$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$AInput1 = GUICtrlCreateInput("32", 100, 126, 21, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "# of players")

$Input1 = GUICtrlCreateInput("Command Line", 32, 408, 841, 22)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlCreateTabItem("")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

I have tried to find references and good examples but nothing seems to help. One I get this working I want to do more GUIs like this for other game servers.

Thanks for any help in advance. :)

Edited by Lurch68b

Share this post


Link to post
Share on other sites



Correct all the broken lines and I'll look at it.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

AAK, sorry about that. I forgot that when the code gets pasted in to Scite it for some reason does that. Here you go.

CODE
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=d:\game_server_scripts\server_control_v3.kxf

$ServerControl = GUICreate("Server Control", 1096, 856, 487, 108)

$Server_Control = GUICtrlCreateTab(16, 8, 1031, 463)

GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$Server_01 = GUICtrlCreateTabItem("Unreal Tournament")

$Start_Server_01 = GUICtrlCreateButton("Start Server", 30, 57, 90, 33, 0)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Click here to start server")

$AGroup1 = GUICtrlCreateGroup("Game Modes", 30, 204, 141, 181)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$CTF_C = GUICtrlCreateRadio("Capture the Flag", 45, 234, 16, 16)

GUICtrlSetState(-1, $GUI_CHECKED)

$CTF_L = GUICtrlCreateLabel("Capture the Flag", 62, 234, 83, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Slect this if you wan to setup a Capture the Flag match")

$Assault_C = GUICtrlCreateRadio("Assault_C", 45, 254, 16, 16)

$Assault_L = GUICtrlCreateLabel("Assault", 62, 254, 41, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup an Assault match")

$Domination_C = GUICtrlCreateRadio("Domination", 45, 274, 16, 16)

$Domination_L = GUICtrlCreateLabel("Domination", 62, 274, 56, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup Domination match")

$Bombing_Run_C = GUICtrlCreateRadio("Bombing Run", 45, 294, 16, 16)

$Bombing_Run_L = GUICtrlCreateLabel("Bombing Run", 62, 294, 67, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Bombing Run match")

$Death_Match_C = GUICtrlCreateRadio("Death Match", 45, 314, 16, 16)

$Death_Match_L = GUICtrlCreateLabel("Death Match", 62, 314, 64, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Death match")

$Team_Death_Match_C = GUICtrlCreateRadio("Team Death Match", 45, 334, 16, 16)

$Team_Death_Match_L = GUICtrlCreateLabel("Team Death Match", 62, 334, 93, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup a Team Death match")

$Onslaught_C = GUICtrlCreateRadio("Onslaught_C", 45, 354, 16, 16)

$Onslaught_L = GUICtrlCreateLabel("Onslaught", 62, 354, 53, 18, BitOR($SS_CENTER,$SS_CENTERIMAGE))

GUICtrlSetTip(-1, "Select this if you want to setup an Onslaught match")

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Maps_B = GUICtrlCreateGroup("Maps", 190, 55, 181, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$TreeView1 = GUICtrlCreateTreeView(200, 80, 161, 289)

$TreeView1_0 = GUICtrlCreateTreeViewItem("CTF", $TreeView1)

$TreeView1_1 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_0)

$TreeView1_2 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_0)

$TreeView1_3 = GUICtrlCreateTreeViewItem("Deathmatch", $TreeView1)

$TreeView1_4 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_3)

$TreeView1_5 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_3)

$TreeView1_6 = GUICtrlCreateTreeViewItem("Assualt", $TreeView1)

$TreeView1_7 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_6)

$TreeView1_8 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_6)

$TreeView1_9 = GUICtrlCreateTreeViewItem("Domination", $TreeView1)

$TreeView1_10 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_9)

$TreeView1_11 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_9)

$TreeView1_12 = GUICtrlCreateTreeViewItem("Onslaught", $TreeView1)

$TreeView1_13 = GUICtrlCreateTreeViewItem("XXX", $TreeView1_12)

$TreeView1_14 = GUICtrlCreateTreeViewItem("xxx", $TreeView1_12)

GUICtrlCreateGroup("", -99, -99, 1, 1)

$IP_Input_P = GUICtrlCreateInput("Server IP", 30, 99, 91, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Set the server IP")

$Server_Port_I = GUICtrlCreateInput("Server Port", 30, 126, 61, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "Set the server listen port")

$Mutators_GB = GUICtrlCreateGroup("Mutators", 590, 55, 281, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$CrateCombo_C = GUICtrlCreateCheckbox("CrateCombo", 600, 81, 11, 11)

$CrateCombo_L = GUICtrlCreateLabel("CrateCombo", 620, 80, 63, 18)

$BigWheels_C = GUICtrlCreateCheckbox("BigWheels", 600, 101, 11, 11)

$BigWheels_L = GUICtrlCreateLabel("BigWheels", 620, 100, 55, 18)

$LightweightVehicles_C = GUICtrlCreateCheckbox("LightweightVehicles", 600, 121, 11, 11)

$LightweightVehicles_L = GUICtrlCreateLabel("LightweightVehicles", 620, 120, 102, 18)

$OnslaughtWeapons_C = GUICtrlCreateCheckbox("OnslaughtWeapons", 600, 141, 11, 11)

$OnslaughtWeapons_L = GUICtrlCreateLabel("OnslaughtWeapons", 620, 140, 99, 18)

$WheeledVehicleStunts_C = GUICtrlCreateCheckbox("WheeledVehicleStunts", 600, 161, 11, 11)

$WheeledVehicleStunts_L = GUICtrlCreateLabel("WheeledVehicleStunts", 620, 160, 113, 18)

$VehicleArena_C = GUICtrlCreateCheckbox("VehicleArena_C", 600, 181, 11, 11)

$VehicleArena_L = GUICtrlCreateLabel("VehicleArena", 620, 180, 70, 18)

$UTClassic_C = GUICtrlCreateCheckbox("UTClassic", 600, 201, 11, 11)

$UTClassic_L = GUICtrlCreateLabel("UTClassic", 620, 200, 52, 18)

$LightningGun_C = GUICtrlCreateCheckbox("LightningGun", 600, 221, 11, 11)

$LightningGun_L = GUICtrlCreateLabel("LightningGun", 620, 220, 67, 18)

$SniperRifle_C = GUICtrlCreateCheckbox("SniperRifle", 600, 241, 11, 11)

$SniperRifle_L = GUICtrlCreateLabel("SniperRifle", 620, 240, 56, 18)

$utvMutator_C = GUICtrlCreateCheckbox("utvMutator", 600, 261, 11, 11)

$utvMutator_L = GUICtrlCreateLabel("utvMutator", 620, 260, 55, 18)

$Berserk_C = GUICtrlCreateCheckbox("Berserk", 600, 281, 11, 11)

$Berserk_L = GUICtrlCreateLabel("Berserk", 620, 280, 42, 18)

$BigHead_C = GUICtrlCreateCheckbox("BigHead", 600, 301, 11, 11)

$BigHead_L = GUICtrlCreateLabel("BigHead", 620, 300, 44, 18)

$GameSpeed_C = GUICtrlCreateCheckbox("GameSpeed", 600, 321, 11, 11)

$GameSpeed_L = GUICtrlCreateLabel("GameSpeed", 620, 320, 63, 18)

$LowGrav_C = GUICtrlCreateCheckbox("LowGrav", 600, 341, 11, 11)

$LowGrav_L = GUICtrlCreateLabel("LowGrav", 620, 340, 50, 18)

$MovementModifier_C = GUICtrlCreateCheckbox("MovementModifier", 740, 81, 11, 11)

$MovementModifier_L = GUICtrlCreateLabel("MovementModifier", 760, 80, 91, 18)

$FastWeapSwitch_C = GUICtrlCreateCheckbox("FastWeapSwitch", 740, 101, 11, 11)

$FastWeapSwitch_L = GUICtrlCreateLabel("FastWeapSwitch", 760, 100, 87, 18)

$InstaGib_C = GUICtrlCreateCheckbox("InstaGib", 740, 121, 11, 11)

$InstaGib_L = GUICtrlCreateLabel("InstaGib", 760, 120, 43, 18)

$NoAdrenaline_C = GUICtrlCreateCheckbox("NoAdrenaline", 740, 141, 11, 11)

$NoAdrenaline_L = GUICtrlCreateLabel("NoAdrenaline", 760, 140, 69, 18)

$QuadJump_C = GUICtrlCreateCheckbox("QuadJump", 740, 161, 11, 11)

$QuadJump_L = GUICtrlCreateLabel("QuadJump", 760, 160, 55, 18)

$Regen_C = GUICtrlCreateCheckbox("Regen", 740, 181, 11, 11)

$Regen_L = GUICtrlCreateLabel("Regen", 760, 180, 35, 18)

$SlomoDeath_C = GUICtrlCreateCheckbox("SlomoDeath", 740, 201, 11, 11)

$SlomoDeath_L = GUICtrlCreateLabel("SlomoDeath", 760, 200, 61, 18)

$SpeciesStats_C = GUICtrlCreateCheckbox("SpeciesStats", 740, 221, 11, 11)

$SpeciesStats_L = GUICtrlCreateLabel("SpeciesStats", 760, 220, 68, 18)

$UDamageReward_C = GUICtrlCreateCheckbox("UDamageReward", 740, 241, 11, 11)

$UDamageReward_L = GUICtrlCreateLabel("UDamageReward", 760, 240, 89, 18)

$Vampire_C = GUICtrlCreateCheckbox("Vampire", 740, 261, 11, 11)

$Vampire_L = GUICtrlCreateLabel("Vampire", 760, 260, 44, 18)

$ZoomInstagib_C = GUICtrlCreateCheckbox("ZoomInstagib", 740, 281, 11, 11)

$ZoomInstagib_L = GUICtrlCreateLabel("ZoomInstagib", 760, 280, 68, 18)

$NoSuperWeapon_C = GUICtrlCreateCheckbox("NoSuperWeapon", 740, 301, 11, 11)

$NoSuperWeapon_L = GUICtrlCreateLabel("NoSuperWeapon", 760, 300, 86, 18)

$BonusVehicles_C = GUICtrlCreateCheckbox("BonusVehicles", 740, 321, 11, 11)

$BonusVehicles_L = GUICtrlCreateLabel("BonusVehicles", 760, 320, 77, 18)

$Arena_C = GUICtrlCreateCheckbox("Arena", 740, 341, 11, 11)

$Arena_L = GUICtrlCreateLabel("Arena", 760, 340, 34, 18)

GUICtrlCreateGroup("", -99, -99, 1, 1)

GUICtrlSetTip(-1, "Select the Mutators that you want to run on this server")

$Map_Rotation_B = GUICtrlCreateGroup("Map Rotation", 389, 55, 181, 331)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$Map_Rotaion_L = GUICtrlCreateList("", 399, 75, 161, 300)

GUICtrlSetTip(-1, "These are the maps you selected for the rotation")

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Server_Admin_GB = GUICtrlCreateGroup("Server Administration", 890, 55, 141, 101)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$Server_Admin_Port = GUICtrlCreateInput("Port", 900, 75, 31, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetTip(-1, "Set the web admin port")

$Admin_Password = GUICtrlCreateInput("Admin_Password", 900, 100, 121, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

$WEB_Admin_BT = GUICtrlCreateButton("Open Web Admin Page", 900, 125, 121, 21, 0)

$Input2 = GUICtrlCreateInput("Admin_Name", 939, 72, 81, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlCreateGroup("", -99, -99, 1, 1)

$Server_Password = GUICtrlCreateInput("Server Password", 30, 151, 91, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

$AInput1 = GUICtrlCreateInput("32", 100, 126, 21, 22, BitOR($ES_CENTER,$ES_AUTOHSCROLL))

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlSetTip(-1, "# of players")

$Input1 = GUICtrlCreateInput("Command Line", 32, 408, 841, 22)

GUICtrlSetFont(-1, 8, 400, 0, "Arial")

GUICtrlCreateTabItem("")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

Share this post


Link to post
Share on other sites

First of all, I haven't played UT in ages, so I don't know anything regarding setting up a server. I could research it but I'll leave that up to you to explain to me.

The first thing you'll need to understand is how the server is setup and run. If it's a uses command line switches for if it uses some sort of .ini file, you'll need to know how it does what it does to operate the server.

I started an app similar to this years ago for HaloPC. It still has potential but I've moved on to other things.

Anyway, show me examples of how to set up and run the server and I'll be able to direct you better towards what your looking for.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Here is the AU3 file that I currently use to start a couple of death match servers and the INI file for one of them. So the IP, mutators, game type all go to the command line. The map rotation is in the INI file as well as the FileWritetoLines that you see in the script. If you need more info just let me know.

If you have any ideas that would make this better let me know.

UT_DM_Servers_V_2.au3

dmserver01.zip

Edited by Lurch68b

Share this post


Link to post
Share on other sites

If anyone else has any ideas on this feel free to post em.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0