Xtreme Gaming Network

Web Based Server Manager

Author Topic: Web Based Server Manager  (Read 83116 times)

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #45 on: August 05, 2015, 04:46:32 PM »
top stuff Gratulin, got it...

last question (for now) in which directory does it go?
There is an existing drivers.json file. Just replace that one.

It will only be there if you've added a driver. It just goes in the root of the application where server.js etc is.

I've most of the new server settings from 1.2 now. Just need to add weather and tyre options.

Offline Gratulin

  • Hero Member
  • *****
  • Posts: 2159
  • Karma: 44
    • View Profile
Re: Web Based Server Manager
« Reply #46 on: August 05, 2015, 04:49:18 PM »
Did you do the UDP plugin parameters?

Offline Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3440
  • Karma: 76
  • "Look out, I'm comin' through!"
    • View Profile
    • Delray and Buttonmania
Re: Web Based Server Manager
« Reply #47 on: August 05, 2015, 04:57:21 PM »
top stuff Gratulin, got it...

last question (for now) in which directory does it go?
There is an existing drivers.json file. Just replace that one.

hmm I can't find it..
Quote

C:\>dir /B driver*.json /S
File Not Found

C:\>
"I refuse to be what you call normal." Lemmy Caution

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #48 on: August 05, 2015, 05:56:41 PM »
See above Bruce, drivers.json is created when you start creating drivers so won't always be there. It goes in root of the application.

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #49 on: August 05, 2015, 06:02:16 PM »
Did you do the UDP plugin parameters?

No, is this the new server UDP plugin thing I've heard of? Not looked into it, what does it do?

Offline Gratulin

  • Hero Member
  • *****
  • Posts: 2159
  • Karma: 44
    • View Profile
Re: Web Based Server Manager
« Reply #50 on: August 05, 2015, 06:06:39 PM »
The parameters just need to be their for now. They are IP addresses.

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #51 on: August 05, 2015, 06:28:53 PM »
The parameters just need to be their for now. They are IP addresses.

Ah yeah I see them. Haven't added those but will do. What exactly is the plugin thing for? Can't find much info on the google.

Offline Wally

  • Administrator
  • Hero Member
  • *****
  • Posts: 11033
  • Karma: 152
  • AC Admin
    • View Profile
Re: Web Based Server Manager
« Reply #52 on: August 05, 2015, 09:34:10 PM »
Server side plugins of some sort. There's an example in your AC install somewhere, I believe. In theory, I think I could do the PLP app as a server side plugin.
In my spare time.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #53 on: August 05, 2015, 10:58:45 PM »
Server side plugins of some sort. There's an example in your AC install somewhere, I believe. In theory, I think I could do the PLP app as a server side plugin.
In my spare time.

Interesting. I did find this node module somebody has written to grab info some info using it. https://www.npmjs.com/package/acsp

It also says it can send a chat message. Would be cool if it could also accept sever commands, then I could add stuff like next/restart session etc to the web app.

Offline Gratulin

  • Hero Member
  • *****
  • Posts: 2159
  • Karma: 44
    • View Profile
Re: Web Based Server Manager
« Reply #54 on: August 06, 2015, 12:09:26 AM »
I got the sample code from the server/sdk folder and hacked it to just display track grip at the end of each lap. Got it running on the Thursday Practise server. Seems very easy to get running but no documentation on the message formats that I can find.

Offline Wally

  • Administrator
  • Hero Member
  • *****
  • Posts: 11033
  • Karma: 152
  • AC Admin
    • View Profile
Re: Web Based Server Manager
« Reply #55 on: August 06, 2015, 07:46:23 AM »
Nice one. So Gratulin, this means that the track grip automatically displays for everyone on the server?

You wouldn't want to overdo it and mess with people's displays too much. It seems like you could come up with pretty crappy servers that clutter you with all this stuff you don't want.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”

Offline Joe

  • Hero Member
  • *****
  • Posts: 2368
  • Karma: 39
    • View Profile
Re: Web Based Server Manager
« Reply #56 on: August 06, 2015, 08:01:46 AM »
It was only coming up for the person completing the lap I believe

Offline Wally

  • Administrator
  • Hero Member
  • *****
  • Posts: 11033
  • Karma: 152
  • AC Admin
    • View Profile
Re: Web Based Server Manager
« Reply #57 on: August 06, 2015, 09:15:58 AM »
It was only coming up for the person completing the lap I believe
Yeah, but my point is that it's forced on for everyone to see, whether they want it or not. I know this is just a proof of concept, but you wouldn't want too much stuff being flashed up on everyone's screen out of their control.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”

Offline Gratulin

  • Hero Member
  • *****
  • Posts: 2159
  • Karma: 44
    • View Profile
Re: Web Based Server Manager
« Reply #58 on: August 06, 2015, 09:38:37 AM »
It was only coming up for the person completing the lap I believe
Yeah, but my point is that it's forced on for everyone to see, whether they want it or not. I know this is just a proof of concept, but you wouldn't want too much stuff being flashed up on everyone's screen out of their control.
Totally agree. This is just a proof of concept but I noticed that it overwrote the laptime display that flashes up at the end of each lap. Hence the message I put up shows the laptime as well. I actually don't think the message feature is the main purpose of the plugin. The only real use for these messages is for server admin announcements for server shutdown etc. These messages only appear in the one area and in the chat stream.

A bigger issue for server plugins is that it seems you can only define one plugin per server. Which actually addresses the concern you raise re plugins messing up everyone's screen. I actually think a server plugin will be most useful for

a) league management system
b) managing a "farm" of casual servers

How I envisage it working is that a server admin would select a management "environment" (eg stracker, Joe's system or PLP or other league system) and then connect their server to that "environment". Remember LiveTracker? It can now connect to Assetto Corsa servers but an AC Server connects to LiveTracker then it would not be able to connect to another server plugin "environment".

Here's the protocol messages from the example in the sdk.

static class ACSProtocol {
        public const byte ACSP_NEW_SESSION = 50;
        public const byte ACSP_NEW_CONNECTION = 51;
        public const byte ACSP_CONNECTION_CLOSED = 52;
        public const byte ACSP_CAR_UPDATE = 53;
        public const byte ACSP_CAR_INFO = 54; // Sent as response to ACSP_GET_CAR_INFO command
        public const byte ACSP_END_SESSION = 55;
        public const byte ACSP_LAP_COMPLETED = 73;

        // EVENTS
        public const byte ACSP_CLIENT_EVENT = 130;

        // EVENT TYPES
        public const byte ACSP_CE_COLLISION_WITH_CAR = 10;
        public const byte ACSP_CE_COLLISION_WITH_ENV = 11;

        // COMMANDS
        public const byte ACSP_REALTIMEPOS_INTERVAL = 200;
        public const byte ACSP_GET_CAR_INFO = 201;
        public const byte ACSP_SEND_CHAT = 202; // Sends chat to one car
        public const byte ACSP_BROADCAST_CHAT = 203; // Sends chat to everybody
« Last Edit: August 06, 2015, 09:45:17 AM by Gratulin »

Offline Wally

  • Administrator
  • Hero Member
  • *****
  • Posts: 11033
  • Karma: 152
  • AC Admin
    • View Profile
Re: Web Based Server Manager
« Reply #59 on: August 06, 2015, 10:26:51 AM »
There's stuff on the AC forums about chaining plugins to run more than one.
I wonder how much you can actually *do* with these plugins. The protocol seems to be limited to sending messages.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal