07-08-2006, 03:30 AM
I've written a management service that helps you to easily create srcds instances with different parameters through a web interface.
The web interface remotely communicates with a process which runs under a windows NT service, meaning the srcds instances will continue to run when logged off.
Everything is going smoothly, and I would like to release the tool to the community ASAP, but I still have one tiny problem. I thought it was a small problem, because of how simple it seems, but I haven't been able to figure it out for over 2 weeks.
I can't get the damn +hostname cvar to work through my command arguments, and I need this for my admin tool as I do all the configuration through CVARs.
This is what I try and run:
"C:\srcds\srcds.exe" -game hl2mp +map dm_overwatch +maxplayers 5 +hostname "bla" -console
I also tried by setting it with +hostname bla
What happens is that when I configure a hostname in the server.cfg, it takes the configured one. When I configure no hostname in the server.cfg it takes the default hostname which is "Half-Life 2 Deathmatch" which is the default hostname.
When I wait for the console to finish loading the srcds instance and then type in the console command "hostname bla" (without the parentheses), it changes the name to bla successfully.
When I say that it changes the name, I mean that in my server host listed with the correct name.
According the valve developer wiki it'sd efinitely the correct command to do this:
http://developer.valvesoftware.com/wiki/Command_Line_Options
Please help me, I've come so far in developing plug-ins and a development system, but it's just this one thing that I can;t get to work!
The web interface remotely communicates with a process which runs under a windows NT service, meaning the srcds instances will continue to run when logged off.
Everything is going smoothly, and I would like to release the tool to the community ASAP, but I still have one tiny problem. I thought it was a small problem, because of how simple it seems, but I haven't been able to figure it out for over 2 weeks.
I can't get the damn +hostname cvar to work through my command arguments, and I need this for my admin tool as I do all the configuration through CVARs.
This is what I try and run:
"C:\srcds\srcds.exe" -game hl2mp +map dm_overwatch +maxplayers 5 +hostname "bla" -console
I also tried by setting it with +hostname bla
What happens is that when I configure a hostname in the server.cfg, it takes the configured one. When I configure no hostname in the server.cfg it takes the default hostname which is "Half-Life 2 Deathmatch" which is the default hostname.
When I wait for the console to finish loading the srcds instance and then type in the console command "hostname bla" (without the parentheses), it changes the name to bla successfully.
When I say that it changes the name, I mean that in my server host listed with the correct name.
According the valve developer wiki it'sd efinitely the correct command to do this:
http://developer.valvesoftware.com/wiki/Command_Line_Options
Please help me, I've come so far in developing plug-ins and a development system, but it's just this one thing that I can;t get to work!