Author Topic: RPGWO 2 Server API  (Read 1172 times)

0 Members and 1 Guest are viewing this topic.

Offline rogue

RPGWO 2 Server API
« on: August 20, 2021, 04:46:30 pm »
exe: https://rpgwoforums.net/index.php?action=downloads;sa=view;id=58
source: attached this post, C# Win32. I'm not used to win32 (mostly write in .net core and linux), so it may be a bit non-idiomatic.

Routes

Current version provides this routes:
GET /api/whos-online
POST /api/world-reload
POST /api/world-save

Next version will have ability for a lagging/timed out client to request their own client be kicked with a delay (so they can't use it to cheating PK). So they do not have to wait for the winsock timeout.

I use this for automatically triggering world reloads when new inis are updated, and for pulling player counts and online users into a time series database by polling the endpoint.

Instruction
Run AFTER starting the rpgwo server, or it will tell you it can't find the server window and exit.
Optionally, run in ip and port as arguments ("Caretaker.exe 127.0.0.1 6000" to bind webserver in localhost port 6000).

Example
Like Like x 1 View List

Offline Jon The Great

Re: RPGWO 2 Server API
« Reply #1 on: August 20, 2021, 06:26:36 pm »
Very nice! Thanks for including the source code as well!
« Last Edit: August 20, 2021, 06:29:09 pm by Jon The Great »

 

Related Topics

  Subject / Started by Replies Last post
32 Replies
7562 Views
Last post March 31, 2006, 07:43:08 pm
by Auron
RPGWO Rogue Server

Started by Gizza « 1 2 ... 12 13 » RPGWO Chat

247 Replies
28434 Views
Last post September 30, 2007, 03:05:14 pm
by dalion
2 Replies
2683 Views
Last post November 25, 2007, 04:07:47 pm
by Grinch
9 Replies
3001 Views
Last post December 10, 2008, 09:47:57 am
by Twin Dragons
40 Replies
15515 Views
Last post August 02, 2013, 04:17:49 pm
by Drew