Question about ddnet-server commands

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
User avatar
BannZay
Posts: 837
Joined: Mon May 04, 2015 12:26 am
Location: Ukraine
Player profile: http://ddnet.tw/players/BannZay
Mapper profile: http://ddnet.tw/mappers/BannZay/

Question about ddnet-server commands

Post by BannZay »

Is possible execute server command somehow else(not through client) after starting ddnet-server?
User avatar
hi_leute_gll
Posts: 2525
Joined: Mon Jul 21, 2014 1:15 am
Player profile: http://ddnet.tw/players/hi-95-leute-95-gll/
Mapper profile: http://ddnet.tw/mappers/hi-95-leute-95-gll/
Clan: iMTG

Re: Question about ddnet-server commands

Post by hi_leute_gll »

I guess you can put also other cmds in the autoexec, but dunno what you want to do.^^
.hi._.leute._.gll. | iMTGmember
User avatar
BannZay
Posts: 837
Joined: Mon May 04, 2015 12:26 am
Location: Ukraine
Player profile: http://ddnet.tw/players/BannZay
Mapper profile: http://ddnet.tw/mappers/BannZay/

Re: Question about ddnet-server commands

Post 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.
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.tw/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

Re: Question about ddnet-server commands

Post 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) ?
Click Me : Happy Halloween :twisted: <3
User avatar
BannZay
Posts: 837
Joined: Mon May 04, 2015 12:26 am
Location: Ukraine
Player profile: http://ddnet.tw/players/BannZay
Mapper profile: http://ddnet.tw/mappers/BannZay/

Re: Question about ddnet-server commands

Post 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
User avatar
babak2010
Posts: 101
Joined: Sun Jan 18, 2015 8:06 pm
Location: IR
Player profile: http://ddnet.tw/players/GoJE-32-GrEEN-32--33-/
Mapper profile: http://ddnet.tw/mappers/GoJE-32-GrEEN-32--33-/

Re: Question about ddnet-server commands

Post 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
Click Me : Happy Halloween :twisted: <3
Schwertspize

Re: Question about ddnet-server commands

Post 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
User avatar
BannZay
Posts: 837
Joined: Mon May 04, 2015 12:26 am
Location: Ukraine
Player profile: http://ddnet.tw/players/BannZay
Mapper profile: http://ddnet.tw/mappers/BannZay/

Re: Question about ddnet-server commands

Post by BannZay »

@babak2010, oh same already, exists. Thx, this is should help
@Schwertspize, thx for probably true way =)
Schwertspize

Re: Question about ddnet-server commands

Post 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
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.tw/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Question about ddnet-server commands

Post 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
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests