Page 1 of 2
Question about ddnet-server commands
Posted: Tue Oct 13, 2015 12:40 pm
by BannZay
Is possible execute server command somehow else(not through client) after starting ddnet-server?
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 12:48 pm
by hi_leute_gll
I guess you can put also other cmds in the autoexec, but dunno what you want to do.^^
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 12:48 pm
by BannZay
Mb I have crazy stupid idea, but want to ask is very hard simulate client connection ? Where I can learn it?
@leutte, want to execute on server commands(like change_map,shutdown, etc) through my program.
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 12:56 pm
by babak2010
BannZay wrote:Mb I have crazy stupid idea, but want to ask is very hard simulate client connection ? Where I can learn it?
@leutte, want to execute on server commands(like change_map,shutdown, etc) through my program.
im not sure what do you want to do , can you explain it more (with some example mb) ?
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 1:07 pm
by BannZay
Ehm... want to code program, through which you can manage/monitor the server without running teeworlds client. Its like, ehm, hlds.exe (you know counter-strike 1.6 server program). Sry idk how to explain better
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 2:02 pm
by babak2010
BannZay wrote:Ehm... want to code program, through which you can manage/monitor the server without running teeworlds client. Its like, ehm, hlds.exe (you know counter-strike 1.6 server program). Sry idk how to explain better
maybe this help you :
https://www.teeworlds.com/forum/viewtopic.php?id=10827
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 2:05 pm
by Schwertspize
there is an option to use a ->fifo file where you may input anything. (it's working on file base)
fifo: Google that
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 2:08 pm
by BannZay
@babak2010, oh same already, exists. Thx, this is should help
@Schwertspize, thx for probably true way =)
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 2:14 pm
by Schwertspize
yeah... I'm currently using this feature to restart server at updates. I mean, git hook executes the compiling, then symlinking the binary and restarting the server through sending sv_shutdown_when_empty 1 (which stops the server as soon as Noone is playing, then it gets restarted by supervise)
only problem is, there is no output fifo, where we could get feedback. please add that, devs
/close
Re: Question about ddnet-server commands
Posted: Tue Oct 13, 2015 3:16 pm
by Soreu
Well, I'm too noobish for fifo and atm not going to get familiar with it, so I'm just using batch file combined with telnet to create simple econ - to see server log I'm just using the original server prompt that opens automatically by default
//I'm using windows XP, but on other windows versions it should work too