Xtreme Gaming Network

Simulation Racing Leagues => Assetto Corsa => Apps => Topic started by: Joe on April 24, 2015, 01:41:26 PM

Title: Web Based Server Manager
Post by: Joe on April 24, 2015, 01:41:26 PM
Was wanting to play around with NodeJS so I created an API for modifying the AC server config files. I've also started a quick web based UI for it using Bootstrap and AngularJS. Also hoping I can start and stop the server/stracker with Node, meaning you could make any changes to the server and reset it straight from your phone. Haven't looked into that part yet. Could even create an embedded browser in AC like RSR does.

Anyone know if something like this already exists? I've been running a server for a few weeks and seems like it would be something useful.

Cheers
Title: Re: Web Based Server Manager
Post by: Gratulin on April 24, 2015, 02:49:37 PM
Very interesting. Stracker is written in Bootstrap I think. It already has a feature to create an Entry.ini from an online session (including GUIDs) so I think what you propose is definitely doable. What stracker  doesn't do is build a reverse grid and things like that.
Title: Re: Web Based Server Manager
Post by: Bird on April 24, 2015, 03:52:26 PM
Gents I have never worked with bootstrap.  As far I understand it's some framework-salad of html/css/js handling.  Why is it preferred here?
Wouldn't it be cleaner to work with tools like jquery and do the rest properly in html/css as needed?
Does AC support bootstrap, or it's simply a tool to get there because support for html/js/css is included?
Title: Re: Web Based Server Manager
Post by: Joe on April 25, 2015, 08:23:11 AM
Bootstrap is irrelevant in term of AC, just so happens ptracker also use it. Like you say it's just boiler plate HTML/CSS with some JS components. Chose to use it for this mini project I'm doing as I was more interested in the NodeJS part and didn't want to waste time writing CSS to make a few simple forms. The Bootstrap grid system is pretty good, and can be responsive so you can build something very quickly that will scale down nicely to moblie.
Title: Re: Web Based Server Manager
Post by: Bird on April 25, 2015, 08:26:41 AM
Sounds good :)
thanks
Title: Web Based Server Manager
Post by: Gratulin on April 25, 2015, 10:09:35 AM
Joe,

I have question re the stracker feature I mentioned that is a button that generates an entry.ini from the results of a QUAL, practise or race session. How hard would it be to modify that code to generate a reverse grid entry.ini within stracker?
Title: Re: Web Based Server Manager
Post by: Joe on April 27, 2015, 05:56:46 PM
Joe,

I have question re the stracker feature I mentioned that is a button that generates an entry.ini from the results of a QUAL, practise or race session. How hard would it be to modify that code to generate a reverse grid entry.ini within stracker?

Sorry dude was away over the weekend. I can't see the source code for stracker so not sure it could really be done within stracker, but it would be easy to write something that takes an existing race.ini and reverses it.
Title: Re: Web Based Server Manager
Post by: Wally on April 27, 2015, 10:54:23 PM
On race night, I have a remote desktop connection open to the server on my laptop. That works fine for me. But to be able to restart or reconfigure the practice server from my phone or tablet would be very handy.
Title: Re: Web Based Server Manager
Post by: faz on April 29, 2015, 10:44:03 PM
www.raceme.io has been around for a while

edit: seems it's in close beta now for new people.
Title: Re: Web Based Server Manager
Post by: Wally on April 29, 2015, 10:51:55 PM
www.raceme.io has been around for a while

edit: seems it's in close beta now for new people.
What are the features of this thing?
Title: Re: Web Based Server Manager
Post by: faz on April 30, 2015, 12:31:35 AM
you can pick max number of players, which cars available (I believe you just pick the type of car, but can't limit how many of each, so you might end up with everyone picking the same car) and after a given time (booking duration you can set – people register via the website), it'll then launch a server based on the selected track and cars picked by users.

you race, after racing, everyone can +1 or -1 everyone else, and this is how the rating is done. Over time, without trolls (it's easy to control who joins, generally), you can get a decent rating system going.

edit: found the old reddit link when it first came out

http://www.reddit.com/r/simracing/comments/2lamru/racemeio_rankings_and_matchmaking_help_test_our/
Title: Re: Web Based Server Manager
Post by: Joe on May 14, 2015, 12:24:50 AM
Sounds interesting faz but different to what I'm working on.

I've just finished the first version of it. I've created a web interface that does everything the server manager app can do as well as start and stop the server and stracker. I've just chucked it up on my server for a test. I was able to change the track and restart the server/stracker from my browser. I just need to add a bit of error handling and test each property is getting updated properly in the ini files and I'll chuck it up on GitHub so anyone else hosting their own server can try it if they want.

Couple of screenshots of it running on my mobile:

(http://i.imgur.com/Ca04SkR.png)
(http://i.imgur.com/lpy6clb.png)
Title: Re: Web Based Server Manager
Post by: Wally on May 14, 2015, 07:37:16 AM
Looks good Joe.
Title: Re: Web Based Server Manager
Post by: Joe on May 14, 2015, 09:37:10 AM
Looks good Joe.

Wally, do I remember you saying one time your parse the logs acServer creates for something? At the moment I launch it where it outputs to the console so I can read once it's started and update the status. Seems when you tell it to output to a file it doesn't write to the console.
Title: Re: Web Based Server Manager
Post by: Bruce on May 14, 2015, 11:06:56 AM
Great work Joe, that will make life so much easier... the pics on your post aren't displaying.
Title: Re: Web Based Server Manager
Post by: Wally on May 14, 2015, 01:14:07 PM
Looks good Joe.

Wally, do I remember you saying one time your parse the logs acServer creates for something? At the moment I launch it where it outputs to the console so I can read once it's started and update the status. Seems when you tell it to output to a file it doesn't write to the console.

I simply pipe the console output to a file in the command window where I start the server.
Title: Re: Web Based Server Manager
Post by: Joe on May 22, 2015, 03:25:09 PM
If anyone is interested in trying this out on their server I've now put it up on GitHub:

https://github.com/jo3stevens/ACServerManager

Just hit the Download Zip button on the right hand side and follow the instructions; not that much setup required.

I've been running it on my server for a couple of weeks and been making tweaks and improvements; seems to be running pretty stable now and I think I've fixed all the UI bugs (at least the ones I noticed).

Not really sure how useful this is, it was more of a 'lets see if I can do this with NodeJS' project, but I may be able to add more useful features to it. Was thinking something along the lines of savings drivers and their GUIDs so it would be easy to get up a set grid. Unsure if qually results get piped out of acServer.exe, but if they do I could probably make it do a proper reverse grid from a previous qually session; will look into it.

Cheers
Title: Re: Web Based Server Manager
Post by: Guybrush Threepwood on May 22, 2015, 04:25:33 PM
Is this something that Bruce could use to reverse grids on a Thursday night?
Title: Re: Web Based Server Manager
Post by: Joe on May 22, 2015, 04:29:49 PM
Yep, I checked and it is possible, but a bit more work required.
Title: Re: Web Based Server Manager
Post by: Bruce on May 22, 2015, 05:20:52 PM
If anyone is interested in trying this out on their server I've now put it up on GitHub:

https://github.com/jo3stevens/ACServerManager

Just hit the Download Zip button on the right hand side and follow the instructions; not that much setup required.

I've been running it on my server for a couple of weeks and been making tweaks and improvements; seems to be running pretty stable now and I think I've fixed all the UI bugs (at least the ones I noticed).

Not really sure how useful this is, it was more of a 'lets see if I can do this with NodeJS' project, but I may be able to add more useful features to it. Was thinking something along the lines of savings drivers and their GUIDs so it would be easy to get up a set grid. Unsure if qually results get piped out of acServer.exe, but if they do I could probably make it do a proper reverse grid from a previous qually session; will look into it.

Cheers

Ncie work Joe, I will deploy it to the prac server and have a shake out, cheers.
Title: Re: Web Based Server Manager
Post by: Joe on July 22, 2015, 04:42:56 PM
Finally found some time to start adding what could be useful features to this. Today I added a Driver Manager which just stores driver names and GUIDs on disk for easy entry list creation of known drivers.

I also added Amount and Random Skin fields useful for when not creating fixed driver grids. For example in a couple of clicks I could add 5 entries of each car with random skins to the entry list.

(http://i.imgur.com/SAWZJbf.jpg)

(http://i.imgur.com/1VbMiEEl.jpg)
Title: Re: Web Based Server Manager
Post by: Wally on July 22, 2015, 06:27:19 PM
Good one!
Title: Re: Web Based Server Manager
Post by: Gratulin on July 22, 2015, 07:56:05 PM
Would it be possible for drivers to register themselves for a race?
Title: Re: Web Based Server Manager
Post by: Joe on July 22, 2015, 10:09:21 PM
Would it be possible for drivers to register themselves for a race?

Technically yes, all it's doing is updating entry_list.ini directly on the server. Currently the whole app is password protected, so somebody logged in could change anything, but if that's something that would be useful it wouldn't be hard to do a simple UI where all somebody can do it add them self to the entry list.
Title: Re: Web Based Server Manager
Post by: Gratulin on July 22, 2015, 10:30:01 PM

Would it be possible for drivers to register themselves for a race?

Technically yes, all it's doing is updating entry_list.ini directly on the server. Currently the whole app is password protected, so somebody logged in could change anything, but if that's something that would be useful it wouldn't be hard to do a simple UI where all somebody can do it add them self to the entry list.
That would be really useful for Thursdays. Perhaps simply pre-load the XGN list of drivers/GUIDs that is in a Google Docs spreadsheet and let people use the 'usual' server password to 'select' themselves for the race if they are racing that week? That would then build an entry.ini for that week. Thursday has a more variable entry list than Tuesdays.
Title: Re: Web Based Server Manager
Post by: Bruce on July 23, 2015, 11:04:38 AM

Would it be possible for drivers to register themselves for a race?

Technically yes, all it's doing is updating entry_list.ini directly on the server. Currently the whole app is password protected, so somebody logged in could change anything, but if that's something that would be useful it wouldn't be hard to do a simple UI where all somebody can do it add them self to the entry list.
That would be really useful for Thursdays. Perhaps simply pre-load the XGN list of drivers/GUIDs that is in a Google Docs spreadsheet and let people use the 'usual' server password to 'select' themselves for the race if they are racing that week? That would then build an entry.ini for that week. Thursday has a more variable entry list than Tuesdays.

Certainly would take the stress out of the current server admin's setup processes :)
Practice Server (looking at numbers we will may not need the 'big server'):
installed 'node.js'
configured the 'settings.js'
added 'flattop' as the admin and the usual XGN's server password
setup a TCP port rule for ACSeverManager listening.

Having a MAC, means I will not be able to upload 'prep files' until tonight... but looking forward to getting this working.
Thanks Joe.
Title: Re: Web Based Server Manager
Post by: Joe on July 23, 2015, 12:51:01 PM

Would it be possible for drivers to register themselves for a race?

Technically yes, all it's doing is updating entry_list.ini directly on the server. Currently the whole app is password protected, so somebody logged in could change anything, but if that's something that would be useful it wouldn't be hard to do a simple UI where all somebody can do it add them self to the entry list.
That would be really useful for Thursdays. Perhaps simply pre-load the XGN list of drivers/GUIDs that is in a Google Docs spreadsheet and let people use the 'usual' server password to 'select' themselves for the race if they are racing that week? That would then build an entry.ini for that week. Thursday has a more variable entry list than Tuesdays.

Certainly would take the stress out of the current server admin's setup processes :)
Practice Server (looking at numbers we will may not need the 'big server'):
installed 'node.js'
configured the 'settings.js'
added 'flattop' as the admin and the usual XGN's server password
setup a TCP port rule for ACSeverManager listening.

Having a MAC, means I will not be able to upload 'prep files' until tonight... but looking forward to getting this working.
Thanks Joe.

When you run the batch file it'll probably give you a load of error the first time around, don't worry about that, it should still copy everything needed. I need to spend some time making it a bit nicer  :)
Title: Re: Web Based Server Manager
Post by: Gratulin on July 23, 2015, 02:52:30 PM
It's a winner Joe !!! Fantastic tool. Just configured a test server in no time at all. So easy. My typo problems with car names, track names and mismatching car numbers - all a thing of the past. On top of that I can change the server over without launching Remote Desktop.

Utopia would be this integrated with Wally's results system and PLP with a league booking system on top.

What would be the best format for the driver list? A text file? Comma delimited or NAME=;GUID=;SKIN=?
Title: Re: Web Based Server Manager
Post by: Bruce on July 23, 2015, 03:21:39 PM
It's a winner Joe !!! Fantastic tool. Just configured a test server in no time at all. So easy. My typo problems with car names, track names and mismatching car numbers - all a thing of the past. On top of that I can change the server over without launching Remote Desktop.

Utopia would be this integrated with Wally's results system and PLP with a league booking system on top.

What would be the best format for the driver list? A text file? Comma delimited or NAME=;GUID=;SKIN=?

I think you have just painted yourself into a corner! :)
Can you setup for tonight Andrew?  Any server, I don't mind.
Title: Re: Web Based Server Manager
Post by: Gratulin on July 23, 2015, 03:46:40 PM
It's a winner Joe !!! Fantastic tool. Just configured a test server in no time at all. So easy. My typo problems with car names, track names and mismatching car numbers - all a thing of the past. On top of that I can change the server over without launching Remote Desktop.

Utopia would be this integrated with Wally's results system and PLP with a league booking system on top.

What would be the best format for the driver list? A text file? Comma delimited or NAME=;GUID=;SKIN=?

I think you have just painted yourself into a corner! :)
Can you setup for tonight Andrew?  Any server, I don't mind.
Server's up - "AUS XGN Cobra Cup Season 6 RACE"
Title: Re: Web Based Server Manager
Post by: Gratulin on July 23, 2015, 04:11:28 PM
Joe,

In using to setup for tonight I identified 2 features that are probably needed:

1. Allow choosing drivers from a list of drivers plus GUIDs similar to how cars and tracks are selected. This list could be defined perhaps in a text file which we already have. - found the save driver option :)

2. Provide ability to save multiple configurations (you obviously realise this one already)/ Howeer, I have run into the situation for tonight that I cannot setup the server with GUIDs because I don't have one driver's GUID. Therefore I have set up a password server. It would be good to be able to setup all the other drivers now and then add the new driver later. Then just swap configs. This would also allow me to re-order the entry list for a reverse grid in the second race.

Thanks. Hope you realise this is not a request/demand. I'm just delighted to see such a tool and thought these features would be good.
Title: Re: Web Based Server Manager
Post by: Bruce on July 23, 2015, 04:27:09 PM

Server's up - "AUS XGN Cobra Cup Season 6 RACE"

@Gratulin ++

Title: Re: Web Based Server Manager
Post by: Joe on July 24, 2015, 10:02:26 AM
found the save driver option :)

Yeah I hid that pretty well, maybe it should be text and not an icon to make it more obvious :)

2. Provide ability to save multiple configurations (you obviously realise this one already)/ Howeer, I have run into the situation for tonight that I cannot setup the server with GUIDs because I don't have one driver's GUID. Therefore I have set up a password server. It would be good to be able to setup all the other drivers now and then add the new driver later. Then just swap configs. This would also allow me to re-order the entry list for a reverse grid in the second race.

I'll add this, it's the one thing the web tool doesn't have that the windows one does. I'll probably separate our saving entry lists and all the other server configuration settings though.

Next thing I'd like to do is parse the server output and save qually results so that it would be possible to load an entry list in order of the qually. From there I can add buttons to reverse or randomise the entry list.

I assume to do a fixed position grid, you just turn off the qualification session, and it will start in order of the entry list?
Title: Re: Web Based Server Manager
Post by: Gratulin on July 24, 2015, 10:23:50 AM
found the save driver option :)

Yeah I hid that pretty well, maybe it should be text and not an icon to make it more obvious :)

2. Provide ability to save multiple configurations (you obviously realise this one already)/ Howeer, I have run into the situation for tonight that I cannot setup the server with GUIDs because I don't have one driver's GUID. Therefore I have set up a password server. It would be good to be able to setup all the other drivers now and then add the new driver later. Then just swap configs. This would also allow me to re-order the entry list for a reverse grid in the second race.

I'll add this, it's the one thing the web tool doesn't have that the windows one does. I'll probably separate our saving entry lists and all the other server configuration settings though.

Next thing I'd like to do is parse the server output and save qually results so that it would be possible to load an entry list in order of the qually. From there I can add buttons to reverse or randomise the entry list.

I assume to do a fixed position grid, you just turn off the qualification session, and it will start in order of the entry list?
Joe,

After i used it last night I was thinking about how to easily make a reverse grid. A possible approach would be to do it manually. I can see the qual results from the stracker tool or in game. If you were able to enter the position number alongside each driver in the driver list and then do different sorts based on that number it would actually work quite well. Once server plugins are released then this could just get the position number from the server plugin. The advantage of this approach is that I scould order the drivers in anyway I wanted eg. there are 3 or 4 drivers who want to "crash though" the field. Most others just want to remain in there normal order or random.

Couple of other points:

1. I kept making a mistake with the Max Client number. Could this be set automatically based on driver numbers?
2. I kept adding drivers with wrong skin and then had to remove them to change the skin.
3. It would be fantastic to be able to enter the Race start time and then automatically set Practice duration when starting the server to have the Race start at that time.

Again, thanks for the tool. Last night we made config changes, adding drivers, deleting drivers, changing tracks. All things I would not have attempted without this tool.

Cheers
Andrew
Title: Re: Web Based Server Manager
Post by: Wally on July 24, 2015, 11:01:40 AM
The server doesn't currently support fixed position entry lists unless you hack the server, which I have done for Tuesday nights.
Title: Re: Web Based Server Manager
Post by: Joe on July 24, 2015, 11:06:06 AM
The server doesn't currently support fixed position entry lists unless you hack the server, which I have done for Tuesday nights.

Damn, won't be possible to do a proper reverse grid then.
Title: Re: Web Based Server Manager
Post by: Joe on July 24, 2015, 11:14:48 AM

Couple of other points:

1. I kept making a mistake with the Max Client number. Could this be set automatically based on driver numbers?
2. I kept adding drivers with wrong skin and then had to remove them to change the skin.
3. It would be fantastic to be able to enter the Race start time and then automatically set Practice duration when starting the server to have the Race start at that time.

1. Yeah I can do that, I wonder if there is ever a scenario where the max client number doesn't match the entry list length, probably not.
2. Can probably add inline editing for that
3. Again, it's doable :)

Will add them to the list of improvements.

I'm glad it will get more use now as it will help find any bugs etc. I've been running it on my server for a while, but I never race on that server,  I just change the track and cars from time to time :)
Title: Re: Web Based Server Manager
Post by: Gratulin on July 24, 2015, 11:59:00 AM


Couple of other points:

1. I kept making a mistake with the Max Client number. Could this be set automatically based on driver numbers?
2. I kept adding drivers with wrong skin and then had to remove them to change the skin.
3. It would be fantastic to be able to enter the Race start time and then automatically set Practice duration when starting the server to have the Race start at that time.

1. Yeah I can do that, I wonder if there is ever a scenario where the max client number doesn't match the entry list length, probably not.
2. Can probably add inline editing for that
3. Again, it's doable :)

Will add them to the list of improvements.

I'm glad it will get more use now as it will help find any bugs etc. I've been running it on my server for a while, but I never race on that server,  I just change the track and cars from time to time :)
Perhaps we run some XGN Friday races on your server to test options?
Title: Re: Web Based Server Manager
Post by: Bacchulum on July 24, 2015, 03:02:56 PM
If you want it 'easy enough for an idiot to use', I can test that for you. :o
Title: Re: Web Based Server Manager
Post by: Guybrush Threepwood on July 24, 2015, 04:06:59 PM
If you want it easy enough for a perverted sociopath with an intellectual disability to use, I think Marty might be free?
Title: Re: Web Based Server Manager
Post by: Bruce on August 05, 2015, 02:07:28 PM
Thanks to Joe, and to Gratulin for updating my server with "stuff" over lunch I setup and have the server and stracker running (and stopping) via the app.  Noice!

thinking....
where does it get the GUIDs from?
are they persistent once entered?
Title: Re: Web Based Server Manager
Post by: Joe on August 05, 2015, 03:59:46 PM
Thanks to Joe, and to Gratulin for updating my server with "stuff" over lunch I setup and have the server and stracker running (and stopping) via the app.  Noice!

thinking....
where does it get the GUIDs from?
are they persistent once entered?

Click the icon next to the name textbox to load the player manager. Players entered there are persisted to a json file. Gratulin sent me a copy with all xgn guids in. Can send it over once I get home
Title: Web Based Server Manager
Post by: Gratulin on August 05, 2015, 04:09:50 PM
Thanks to Joe, and to Gratulin for updating my server with "stuff" over lunch I setup and have the server and stracker running (and stopping) via the app.  Noice!

thinking....
where does it get the GUIDs from?
are they persistent once entered?

Click the icon next to the name textbox to load the player manager. Players entered there are persisted to a json file. Gratulin sent me a copy with all xgn guids in. Can send it over once I get home
@flattop check your PMs - I sent you a copy of the guid json file with all the XGN names from the online Google sheet.
Title: Re: Web Based Server Manager
Post by: Bruce on August 05, 2015, 04:24:08 PM
top stuff Gratulin, got it...

last question (for now) in which directory does it go?
Title: Re: Web Based Server Manager
Post by: Gratulin on August 05, 2015, 04:36:54 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. 
Title: Re: Web Based Server Manager
Post by: Joe 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.
Title: Re: Web Based Server Manager
Post by: Gratulin on August 05, 2015, 04:49:18 PM
Did you do the UDP plugin parameters?
Title: Re: Web Based Server Manager
Post by: Bruce 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:\>
Title: Re: Web Based Server Manager
Post by: Joe 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.
Title: Re: Web Based Server Manager
Post by: Joe 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?
Title: Re: Web Based Server Manager
Post by: Gratulin on August 05, 2015, 06:06:39 PM
The parameters just need to be their for now. They are IP addresses.
Title: Re: Web Based Server Manager
Post by: Joe 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.
Title: Re: Web Based Server Manager
Post by: Wally 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.
Title: Re: Web Based Server Manager
Post by: Joe 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.
Title: Re: Web Based Server Manager
Post by: Gratulin 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.
Title: Re: Web Based Server Manager
Post by: Wally 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.
Title: Re: Web Based Server Manager
Post by: Joe on August 06, 2015, 08:01:46 AM
It was only coming up for the person completing the lap I believe
Title: Re: Web Based Server Manager
Post by: Wally 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.
Title: Re: Web Based Server Manager
Post by: Gratulin 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
Title: Re: Web Based Server Manager
Post by: Wally 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.
Title: Re: Web Based Server Manager
Post by: Bruce on August 06, 2015, 10:36:45 AM
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?
Thanks Joe and Gratulin, done.
Title: Re: Web Based Server Manager
Post by: Guybrush Threepwood on August 09, 2015, 10:10:16 AM
Not sure where  to post this, but would it be possible to create an AC app that would display the list of drivers on server, let you easily add ballast (eg. using + and -  buttons next to each driver)  then dump that into chat so it could be applied?

I guess you could also. Have an auto calculate option based on heaviest ballast that then applies the numbers to all drivers differently down the list?

Title: Re: Web Based Server Manager
Post by: Joe on August 18, 2015, 04:58:13 PM
Not sure where  to post this, but would it be possible to create an AC app that would display the list of drivers on server, let you easily add ballast (eg. using + and -  buttons next to each driver)  then dump that into chat so it could be applied?

I guess you could also. Have an auto calculate option based on heaviest ballast that then applies the numbers to all drivers differently down the list?

This app allows you to see the drivers in the entry list and set the ballast, but you then have the reset the server to apply the changes.
Title: Re: Web Based Server Manager
Post by: Joe on August 18, 2015, 05:03:17 PM
Tyre selection getting there. I decided to display the available tyres differently to the Kunos app which doubles up tyre codes in the checklist. The web app will just show the code once, then show the different descriptions used by that code, and which cars use that description.

(http://i.imgur.com/KiZQUXs.png)
Title: Re: Web Based Server Manager
Post by: Gratulin on August 19, 2015, 02:23:53 PM
Joe, Is it ok to test the Dev version on Github?
Title: Re: Web Based Server Manager
Post by: Joe on August 19, 2015, 04:37:55 PM
Joe, Is it ok to test the Dev version on Github?

Yup go for it, that's just the branch I'm pushing stuff to as I'm working on stuff so it could have incomplete stuff or bugs. It has the settings from 1.2 except for tyres and weather. Tyres is nearly finished then i'll push it there too.
Title: Re: Web Based Server Manager
Post by: Joe on August 22, 2015, 10:16:14 AM
Tyre limitations now finished and also added weather options!

Need to add some additional validation to ensure each car has at least one valid tyre selection but that was a bit more work than my brain was prepared to do at the time.

Coming next, presets!

(http://i.imgur.com/DGpmUqM.png)
Title: Re: Web Based Server Manager
Post by: Wally on August 22, 2015, 10:27:41 AM
Good stuff. Have you been pushing this on the AC forums too?
Title: Re: Web Based Server Manager
Post by: Joe on August 22, 2015, 10:31:43 AM
Good stuff. Have you been pushing this on the AC forums too?

Not yet, I wanted to make sure it was stable first but seems have been working fine on Thursday race servers. I may put it on there later as would be good to get wider feedback.
Title: Re: Web Based Server Manager
Post by: Gratulin on August 22, 2015, 05:23:44 PM
Since 1.2 I have been using the Kunos tool for Thursdays. With this latest version I'll give this a go now. Having the web interface makes changes very easy.
Title: Re: Web Based Server Manager
Post by: Gratulin on August 26, 2015, 05:21:40 PM
Joe,

I just tried it out and found that the folder layout has changed for the server package created by the new Kunos acServerManager - basically the content folder is at the same level as the server folder. It worked if I copied the content folder into the server folder but it would be good to have the same layout so both tools can be used interchangeably. Also, there is a new mkanager folder which contains ks_tyres.ini and can also contain mod_tyres.ini.

thanks.
Title: Re: Web Based Server Manager
Post by: Joe on August 27, 2015, 09:55:28 AM
Hey Gratulin

The content folder at the same level as the server folder is the main content folder with everything in it. I still have a content folder in the server folder which just has the items needed for the manager. What exactly is the issue you are facing? I haven't used the new windows tool so unsure what's changed.

I know about the ks_tyres and mod_tyres as that's what the web app is reading to show the available tyres, are you having an issue with this too?

Cheers
Joe
Title: Re: Web Based Server Manager
Post by: Joe on August 27, 2015, 10:07:47 AM
Ah I see what you're talking about now with the generate package stuff. Looks like it does what my batch file is doing with a few extra things.

Easiest option is probably to put the content folder path as a setting in the settings file, then people can go either way.

Cheers
Title: Re: Web Based Server Manager
Post by: Joe on October 17, 2015, 04:55:57 PM
Made a few changes to the web manager this arvo:

Bug fix when switching between two tracks with multiple track configs
Added Max Ballast and UDP Plugin fields to Advanced page
Added new setting for contentPath allowing server and content folders to be separated (this happens when using a manager package from the kunos tool). If this setting it left empty it will assume the content folder is inside the server folder
Title: Re: Web Based Server Manager
Post by: Bruce on October 18, 2015, 09:24:40 AM
A big THANKS Joe. Great tool getting better.
Title: Re: Web Based Server Manager
Post by: Phil.8 on October 18, 2015, 11:54:32 AM
thanks Joe.  I just noticed my AC server just updated on steam.  Do I have to do anything to update server ?
Title: Re: Web Based Server Manager
Post by: Joe on October 18, 2015, 02:24:54 PM
thanks Joe.  I just noticed my AC server just updated on steam.  Do I have to do anything to update server ?

It depends what they updated, if they updated the server app itself you'd find your server would stop running. Mine still is so can't be that, so it could be car/track data. If that's the case you could find checksums with something they updated. To be on the safe side you could update the content folder, but you'd need to run my .bat file first. I'd just leave it for now, if you find you change your server to some combo causing a checksum just update it then :)
Title: Re: Web Based Server Manager
Post by: Wally on October 18, 2015, 04:19:48 PM
1.3.3 didn't change the server, but probably changed some cars.
Title: Re: Web Based Server Manager
Post by: Joe on October 18, 2015, 07:39:28 PM
Did the presets functionality today, could just do with a few tweaks like confirming before overwriting, and saving the changes to a page before saving a preset.

Title: Re: Web Based Server Manager
Post by: Phil.8 on October 18, 2015, 09:24:47 PM
oooo presets will be handy, 

And I am afraid to tell you its time to teach me more :) getting checksum on some cars   Formula arbarth was one
Title: Re: Web Based Server Manager
Post by: Joe on October 18, 2015, 10:19:35 PM
Copy your server/content/cars directory to your server and overwrite any changes. As its existing cars you already have the additional stuff the web manager needs on there.

Would only be new cars or tracks where you need the batch file.
Title: Re: Web Based Server Manager
Post by: Gratulin on October 18, 2015, 10:30:52 PM
Getting pretty expert now :D
Title: Re: Web Based Server Manager
Post by: Phil.8 on October 19, 2015, 12:56:00 PM
well that wasn't to difficult :0  thanks :)
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 21, 2016, 05:00:33 PM
Hi,

My name is Luis Mercury from Argentina.

This tool is very interesting for us.

Is it  operational and functional for AC 1.7?
Title: Re: Web Based Server Manager
Post by: Joe on August 21, 2016, 05:04:24 PM
Hi,

My name is Luis Mercury from Argentina.

This tool is very interesting for us.

Is it  operational and functional for AC 1.7?

Hi. I havent maintained it for around 12 months. It probably will work, but it depends on any ini changes.
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 22, 2016, 04:43:52 AM
Hi Joe,

Here in Argentina We have same problem....high ping with Europe and EEUU.

Then we need to create our own server for Assetto Corsa and Your tool It's we need.

http://clubsimracing.foroargentina.net/

Can You help us?

I can contribute some beers to the help :-)

If you use "Teamviewer"...

https://www.teamviewer.com/en/download/windows/

I can give access to our server for correct setting.

Thank in advance.

Best regards

Luis Mercury from Argentina
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 22, 2016, 05:31:47 AM
I have this error !

(http://i.imgur.com/uweDr6P.jpg)

In settings.js I wrote.....

module.exports = {
  serverPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3',
  contentPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3\content',
  sTrackerPath: '',
  username: 'assetto',
  password: 'corsa',
  port: 3000
};

Can you help me?

Thks

Title: Re: Web Based Server Manager
Post by: Joe on August 22, 2016, 11:18:41 AM
I have this error !

(http://i.imgur.com/uweDr6P.jpg)

In settings.js I wrote.....

module.exports = {
  serverPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3',
  contentPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3\content',
  sTrackerPath: '',
  username: 'assetto',
  password: 'corsa',
  port: 3000
};

Can you help me?

Thks

It looks like you're missing the trailing slash on the paths in the config files. It needs '\' at the end like below. If you have further problems and are happy for me to get on your server PM me the RDP details and I'll take a look.


module.exports = {
  serverPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3\',
  contentPath: 'C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\server3\content\',
  sTrackerPath: '',
  username: 'assetto',
  password: 'corsa',
  port: 3000
};
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 22, 2016, 01:34:41 PM
Hi Joe,

I have difficulty or problem to send pm

Can You send me e-mail to luismibarrera@gmail.com

I send you password of our server in Buenos Aires.

Best Regards
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 24, 2016, 03:19:56 AM
Hi Joe,

Sorry....I have this error

(http://i.imgur.com/ee0gllw.jpg)

Can you help me?

 Having the web interface makes changes very easy.
Title: Re: Web Based Server Manager
Post by: Luis Mercury on August 25, 2016, 11:15:45 PM
Hi Joe

We need a tool like this.
We need start and stop the server, and stracker directly from the application, meaning you can make changes to the server configuration and restart the server directly from your browser or mobile phone.

You can send me a quote? (Quotation)

His work is very interesting for our league.

Best Regards
Title: Re: Web Based Server Manager
Post by: Joe on August 26, 2016, 10:04:14 AM
Hi Joe

We need a tool like this.
We need start and stop the server, and stracker directly from the application, meaning you can make changes to the server configuration and restart the server directly from your browser or mobile phone.

You can send me a quote? (Quotation)

His work is very interesting for our league.

Best Regards

I will get back to you. I just want to make sure it's running on my own server with the latest AC.

Cheers
Title: Re: Web Based Server Manager
Post by: Luis Mercury on September 27, 2016, 05:35:13 AM
Hi Joe !

Any news?

Thank you for help me !
Title: Re: Web Based Server Manager
Post by: Joe on October 02, 2016, 03:32:22 PM
Hi Joe !

Any news?

Thank you for help me !

Hi Luis. Sorry for the delay. I've only now set up my old server and the server manager is working as expected with the AC version.
Title: Re: Web Based Server Manager
Post by: Luis Mercury on November 10, 2016, 09:48:26 PM
Hi Joe,

It seems it's only loading the default values, not the ones already in my server_cfg.

I'll try and use the web based thing to set everything and see if it saves... theres also a few recent additions that haven't been added... like the max collisions per KM setting.
SimplePortal 2.3.5 © 2008-2012, SimplePortal