Giter VIP home page Giter VIP logo

acservermanager's Introduction

ACServerManager

Web based server manager for Assetto Corsa directly manipulating the ini files on the server as an alternative to the windows app and having to copy files to your server.

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.

ACServerManager on Windows

This is the installation guide for a Windows machine, to review the Linux installation guide go here.

Updates

27/01/2017:

  • Update to UI layout
  • Added restart feature for AC & sTracker server

17/10/2015:

  • 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 seperated (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

22/08/2015:

  • Finished adding all the new settings from 1.2 including tyres and weather

Prep

NOTE: If you've been using the new windows server manager that came with 1.2 then you may not need this step as when you package the server files it does the same thing.

The application needs some additional files added to the server/content/tracks and server/content/cars folders to be able to choose track configurations and car skins.

Copy acServerManager.bat to your root aessettocorsa folder and run it to copy the required folders into server/content/*. You'll then need to copy the content folder to your server.

For tracks it will copy the ui folder which will contain sub folders when there are multiple track configurations. It will also copy the contents of these directories which contains additional track information which is displayed when choosing a track.

For cars it will copy the skins/* folder structure but not the files; this is just to be able to choose the skin when setting up the entry list.

Install Node.js

To install Node.js, follow the installation guide on its home page here.

Install ACServerManager

Create a directory called 'acmanager', go into that directory and click here to download the latest version. Extract the contents of the zip file into the directory.

ACServerManager Configuration

To configure your manager's settings, open the 'settings.js' file. You'll see a number of variables, point the 'serverPath' to your Assetto Corsa Server directory. You can configure your username, password & port settings for ACServerManager, also if you use sTracker, point the 'sTrackerPath' variable to your installation.

  • serverPath: The path to your server folder containing acServer.exe
  • sTrackerPath: The path to your stracker folder container stracker.exe (If you don't run stracker just leave this as an empty string ('') to disable it
  • username/password: Set these values if you want basic authentication on the application
  • port: The port that the application will listen on (Be sure to open up this port on firewalls)

Note: I've currently set the Assetto Corsa Server installation to one directory up in 'server', change if necessary.

Firewall

If your machine has a firewall enabled (i.e) windows firewall, you'll need to open / allow the ACServerManager port defined in your settings.js file.

Running ACServerManager

You first need to make sure you have the necessary Node.js dependencies, run the following command in the command prompt in the same directory as the 'server.js' file:

npm install

To run ACServerManager, execute the 'start.bat' file. If you see no errors, ACServerManager should now be running.

Using ACServerManager

  • Browse to the application using your servers IP and the chosen port (or any DNS configured)
  • Click the 'Start' button under Assetto Corsa Server section
  • If using sTracker wait until the AC server has started and then click 'Start' in the sTracker Server section

The server should now be running. You'll be able to see any server output in the command window and it will be logged to a file in the 'ACServerManager/log' folder.

You can change any of settings and it will be applied directly to server_cfg.ini and entry_list.ini on the server. After making a change just stop and start the server from the Server Status page to apply the changes to Assetto Corsa Server.

Note, the server may fail to start in some cases if the Assetto Corsa Server cannot connect to the master server. Make sure you portforward / open the necessary ports for the server to function correctly.

Screenshots

Server Status

Server Status

Server Configuration

Server Config

Entry List

Entry List

Rules

Rules

Advanced

Advanced

acservermanager's People

Contributors

jo3stevens avatar p3t3c avatar pringlez avatar surtic86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acservermanager's Issues

Problem with old server_cfg on multiple server

I'm noticing problems on multiple servers. I have some servers with the new panel, and some with the old panel. If I try to install the new panel on a server that had the old panel, the new panel starts giving problems, such as the time appears and the field is empty (hh, mm) and if I try to do "Save "it does not appear green "Save" confirmation. But if I take a new cfg last release of Assetto Corsa, everything goes back to work. Everything breaks down again if I change the UDP / TCP or sTracker in cfg. Solutions?

Panel not save with with some mod cars

For a while I'm noticing the problem described in the title. If I try to save the server configuration with cars mods, the server will not save it and will not respond with the "successful save" message.

The panel does not save the tires

The new restyle the panel does not save the tires only if you select a mix. Keep writing LEGAL_TYRES=SV even if you select a car that has no "SV" tyre

about stracker on linux

I can run stacker on linux, but not on the web page? Is the webpage stracker start function only support windows? I have tried to set stacker loaction as .../stracker or .../stracker/stracker_linux_x86 and doesn't work. Could anyone help me? Thanks a lot.

Restart button not work

If you click, he stops the server and the cmd creates this error

Error listening %!e(syscall.Errno=536870951)
DynamicTrack: first session, resetting grip
Error listening %!e(syscall.Errno=536870951)
Weather update. Ambient: 19.150816 Road: 28.775797 Graphics: 3_clear
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
No laptime available, use car index for grids
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
POS: 1, SessionID:0
POS: 2, SessionID:1
POS: 3, SessionID:2
POS: 4, SessionID:3
POS: 5, SessionID:4
POS: 6, SessionID:5
POS: 7, SessionID:6
POS: 8, SessionID:7
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
POS: 9, SessionID:8
POS: 10, SessionID:9
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
POS: 11, SessionID:10
POS: 12, SessionID:11
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
POS: 13, SessionID:12
POS: 14, SessionID:13
POS: 15, SessionID:14
POS: 16, SessionID:15
Error listening %!e(syscall.Errno=536870951)
POS: 17, SessionID:16
POS: 18, SessionID:17
POS: 19, SessionID:18
POS: 20, SessionID:19
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
SENDING session name : Practice
SENDING session index : 0
Error listening %!e(syscall.Errno=536870951)
SENDING session type : 1
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
SENDING session time : 480
SENDING session laps : 0
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Server started
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)

stderr: panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x4e19ed]

goroutine 18 [running]:
net.(*UDPConn).ReadFromUDP(0x0, 0x1265e800, 0x800, 0x800, 0x862f1dd8, 0x0, 0x232
4bb0, 0x0)
        c:/go/src/net/udpsock.go:94 +0x1d
ksnet.(*UDPSocket).ReceivePacket(0x12646be0, 0x0)
        D:/dev/kunosprivate/go/src/ksnet/udp_socket.go:99 +0x68
main.ReceiveRun(0x12668000)
        D:/dev/kunosprivate/go/src/acServer/ac_server.go:317 +0x23
created by main.RunServer
        D:/dev/kunosprivate/go/src/acServer/ac_server.go:473 +0x7d

Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)
Error listening %!e(syscall.Errno=536870951)

exit code: 2
closing code: 2
exit code: 1
closing code: 1

Help page background page blank

I do not see the background for the help page. I also tried to create a new re assigning it with the new name but still does not see.

Idea/Request: Minorating status

It would be nice to have the status of Minorating. Having the start/stop I think is problematic, since (in my case) can be started only a few seconds after sTracker. :) I hope these my ideas are not useless :P

Missing Something to make it works

Hello and thank you for this very usefull tool....

My knowledges are very basics...I have this error message runing it on windows server:
C:_ACServers\AC_Server_Manager_17>node server.js
C:_ACServers\AC_Server_Manager_17\settings.js:2
serverPath: 'C:_ACServers\Server_17',
^^^^^^^^^^^^^^^^^^^^^^^^^^^
_SyntaxError: Invalid or unexpected token
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:_ACServers\AC_Server_Manager_17\server.js:11:16)
at Module.compile (module.js:570:32)

C:_ACServers\AC_Server_Manager_17>pause

Any help is welcome.
Regards.
Phil.

STracker not working any longer

Hi Joe,
yes, it's me again. :)

I updated STracker to the latest version and now it won't start any longer. In the readme of STracker you can find following note:


Since version 3.0.0 the AC server has to be configured for plugin usage in server_cfg.ini:

[SERVER]
UDP_PLUGIN_LOCAL_PORT=11000
UDP_PLUGIN_ADDRESS=127.0.0.1:12000


So... did I miss something? Is it possible that ACServerManager writes this settings into the server_cfg.ini?

Thanks in advance

Cheers
Flo

can't get it to run

image

so i have nodejs and everything else set but i seem to be getting this error, im assuming this is something simple but i cant figure it out, have been trying all day

Problem Pre-Configuration

Hi, maybe it's me that I can not configure but after having done all the reported passages, I can not understand why when I start the Web script can not find the folder where and containing the server "Assetto corsa Server", or at least try but goes to bet on an insesitente link .. and in fact I can neither load nor see the server up or down and even configure it and save it ...
Tomorrow place some image (the path of the server and the apposto folder)
Thanks in advance for the help

Sorry for my bad English

Track and Skin Drop Menus

Hi,

Thanks for this great tool, which I installed a week or so ago. It's working well except for two things:

  1. if I choose a track that has variant lay-outs, I don't see a way to choose the variant. Result is no one can join the server

  2. the skin selection on the entrylist menu is empty

Installed on Linux (Ubuntu) via directions in the readme and running lastest version of AC. I tried running the batch file and moving the content folder over from my gaming PC, but not change.

Thanks.
skinmenu
trackmenu

Still working on the current builds?

Hi there,

This tool look promising but I just wonder if it still work with the lastest game update.
I currently look for a solution for mates (not using it myself) and this would be really nice to give them this server manager panel.

Thanks for your reply.
Regards

Problem with saving some track configuration

I'm having several problems in saving some tracks configurations. If I select ks_vallelunga, and the "club" configuration, the panel writes "club" in cfg, but if I refresh the page in the panel appear "classic" , but in the cfg there are "club"

not working on linux?

I have downloaded this program, and when I start the start.sh, then no response it is just version problem or sth?

Still no access

Hello, as I am starting to be a little desperate, I would like to ask for help. I am still not able to connetct to IP, where the Assetto manager is installed and running.

What I did:

  1. instal EC2 server on Amazon, with Amazon linux. On a security groups I set all port AC needs HTTP 80, SSH 22, UDP 9600, TCP 8081, TCP 50041 a 2, TCP 42820
  2. Install NVM, Node, MP2 and ACmanager
  3. set the settings.js to:
    serverPath: 'home/ec2-user/server/',
    contentPath: 'home/ec2-user/server/content/',
    sTrackerPath: '',
    port: 42820
    4)with "netstat -tanp | grep LISTEN":
    tcp 0 0 0.0.0.0:42820 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
    tcp 0 0 :::111 :::* LISTEN -
    tcp 0 0 :::49141 :::* LISTEN -
    tcp 0 0 :::22 :::* LISTEN -

5)with "sudo iptables -L":
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:42820
6) ACmanager is running

and nothing, the IP is not accesable at all. Could please someone tell me what I am doing wrong?
As I do not understand linux at all I am noob on this, but I hope I did everythnig from the manual.

Confusing for me is:

  1. 'home/ec2-user/server/' in settings.js is this correct way for amazon EC2 linux ?
  2. I put to the home/ec2-user/server/ whole SERVER folder from game, but....the game is for windows and this is linux? isnt it wrong?

Thank you very much.

Jakub

Tracks with multiple layouts not selectable in the gui (and then some)?

Something weird happening here... Done the installation exactly as told, but the tracks with multiple layouts only appear as one in the drop down menu. Also it seems (have to test some more) that the server config is not saved after all?!

Is this a known problem?

Also one feature request. Please add a button "update car to all the players in the entry list." We have a closed league, so that would be really handy :)

Thanks!

Linux version?

Hey,

Do you intend to release a linux version for the Linux stand alone server?

File Path

Hi
I've some problemes, this is my setting.jr

module.exports = {
serverPath: 'C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server',
contentPath: 'C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server\content',
sTrackerPath: '',
username: '',
password: '',
port: 3000
};

And server manager dont run! But path is correct! This is warning

C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server\acmanager>node server.js
module.js:471
throw err;
^

Error: Cannot find module 'basic-auth-connect'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server\acmanager\server.js:7:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server\acmanager>pause
Premere un tasto per continuare . . .

My server path is C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server
And content is C:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Dedicated Server\content

Where am I wrong?
Ty for patience

Idea/Request: Draggable entrylist

jo3stevens Forgive me if I'm wrong section
I think it's really hard to write code that idea. :S It would be nice and useful to have the entrylist where you can drag and arrange the pilots in "live", dragging them to the desired location

server_cfg.ini fix and issue with skins dropdown menu

for some reason, the server_cfg,ini cannot be edited, i am not receiving an error code for this in the console but on the web configuration it also never saves or cannot save, the entry_list.ini does get edited and does save on the web, so wondering why the server_cfg doesnt react the same...
currently running : @Pringlez (very nice updates btw)
also tried : jo3stevens

both have the same issue, so i have a feeling it on my end

AC Manager does not save some values

I noticed that the panel does not save some things. After setting several things, click save and in the cfg I always find values not changed
(Win server 2008)

README Links

@jo3stevens Just a heads up Joe, some of the links in the readme files point towards my fork repository. People would probably get confused on which version to download & use.

Web Site Problem

Hi
First of all... good Job man! Like your work!!

But I've a problem here. After a while running the ACSERVERMANAGER the Website is not reachable any longer, probably about 1 hour is enough and the service is unreachable.
The AC Server runs in the meantime like a charm, sTracker also still running and works also in Game. As said, only the Web interface quit working and I can't find out what the problem is exactly.
Do you have an idea?
Thanks in Advance and please keep on your good work!

Os: Windows Server 2012 r2

Idea/Request: Editable entrylist

Possible make editable the entrylist table? Example: If I want to add ballast to a driver who is already in entrylist without rewriting it from scratch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.