Help! "connect" command does not work in NewGameMenu.res CS1.6 Mod Created 1 month ago2025-01-12 20:18:55 UTC by err404 err404

Created 1 month ago2025-01-12 20:18:55 UTC by err404 err404

Posted 1 month ago2025-01-12 20:18:55 UTC Post #349459
I want to use a button in newgamemenu.res to connect to a server, but it seems no command other than 'play' works, and doesn't output anything to the console even with developer 1. Why does this happen? what can I do to get around it?`"ServerButton"
{
"ControlName" "Button"
"fieldName" "ServerButton"
"xpos" "40"
"ypos" "80"
"wide" "200"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "3"
"labelText" "#GameUI_ConnectToServerButton"
"textAlignment" "center"
"dulltext" "0"
"command" "Connect 127.0.0.1"
"default" "0"
}
Posted 1 month ago2025-01-12 20:20:02 UTC Post #349460
try putting "command" "engine connect 127.0.0.1"
Posted 1 month ago2025-01-12 20:53:33 UTC Post #349462
"command" "engine connect 127.0.0.1" does not work... :zonked:
Posted 1 month ago2025-01-13 02:31:52 UTC Post #349463
I don't think the engine reads a resource/newgamemenu.res file, only resource/gamemenu.res.
Posted 1 month ago2025-01-18 18:51:49 UTC Post #349476
You can only set such a thing in anu dialog window only in gamemenu.res
You must be logged in to post a response.

Shoutbox

Log in to add shouts of your own