Author Topic: Sending message to server  (Read 2953 times)

Offline Powerack

  • Administrátor na doživotí.
    • Powerackovo Doupě
Sending message to server
« on: December 29, 2020, 04:50:50 am »
Hello,

is here any way to send message to server or use command without being in game? I really need something like event or warning messages from my manager program (like autosave, restart, update etc.).

I am actually working on external project that compress save files, restart server in defined intervals, cleanup etc...

Image here: http://prntscr.com/wbycj3.

But I don't know exactly what commands and how I may use. If here is way to integrate login and manage server from defined account, then how to do?

Thanks for reply.
I am working on private server at: fonline.powerack.cz.
Why I cant use image in signature?

Re: Sending message to server
« Reply #1 on: December 29, 2020, 09:27:35 am »
Step 1.
Open your FOnlineServer.cfg file and...
Code: [Select]
AdminPanelPort=0Value must be greater than 0 and it will be your communication port.

Step 2.
Try connect to server via Telnet, Putty, etc.

Step 3.
Use your admin login and password.

Available commands:
exit - for disconnect
kill - it's killing the whole process
log filenameof.log - saves current log to filenameof.log
start - start the server run
stop - stop the server
state - current state of server: starting/started/stopping/stopped/unknown
...and of course use the ~ to run your void functions or give to your server typical command.

Offline Powerack

  • Administrátor na doživotí.
    • Powerackovo Doupě
Re: Sending message to server
« Reply #2 on: December 29, 2020, 10:30:57 am »
Thank you, remake. Helpful as always.
Putty works in "RAW" mode only, so I try integrate this features to my own program (and set ~reload commands as buttons).
This feature can be very helpful when I need to test new changes in dialogs etc.

Here is small fragment of my code (pic) for status: http://prntscr.com/wc4bbh.

BTW isn't that code of r412 on github outdated? I really need help with another task. And it't economy issues...

If you want help me with some stuff, join me here: https://discord.gg/r5sUhA3bcD
« Last Edit: December 29, 2020, 10:42:22 am by Powerack »
I am working on private server at: fonline.powerack.cz.
Why I cant use image in signature?