Jump to content

Avorion Server Manager with Web API


Sir Bitesalot

Recommended Posts

The Avorion Server Manager is now Released.

The first version can be downloaded from my github repo:repo link

The wiki is located here: github wiki

The wiki is not completed yet. But the manager includes a setup assistant that should cover all steps necessary to use the Avorion Server Manager

 

Current features:

  • Sending commands (even on non beta branch)
  • Automatic Backup
  • Easy server installation and update
  • Web API to send commands from any application that can send http Requests
  • Console Interface support

 

 

Planned Features include but are not limited to:

  • German translation
  • More commands
  • More Web API commands
  • Android Web API client

 

Old Post:

 

 

Sneak Peek at my current project:

 

Figured I put this in the Mods Section because it is half a Server Tool and half a Mod.

 

I am currently working on an Application to Manage Avorion servers. It can send commands like save and stop to the server. Additionally a Web API is integrated so that the Server can be controlled Remotley via Web Requests.

More Info further down but first a Video demonstrating the Features:

 

As you can see the manager hosts a Web API Server that can be used to display Server Info or to start/stop the Server.

Currently Implemented Features are:

  • Save Command
  • Stop Command
  • Broadcast Chat Message
  • Start Server
  • Info if Server Process is running
  • Info last Update Tick

It is planned that commands can be defined dynamically. For that a definition of the command is stored as JSON file and Server Side Logic is implemented in lua.

 

 

Features currently missing that are needed for first release:

  • Server Config
  • API Authentication
  • Automatic modification of server.lua

Planned Features that will be implemented after first release:

  • More predefined commands
  • Possibility to add own commands
  • More Info (like online players)

Feedback is very much appreciated

If you have further suggestions or ideas for features let me know. If you have questions feel free to ask.

 

First release should follow sometimes next week. I will keep this topic updated.

 

 

 

 

Link to comment
Share on other sites

Nice I can see a lot of potential here!

Is it compatible with the current beta release?

Partial compatible i would say. You are not able to see what you are typing in the new console interface. You can still use it to execute commands though and the output will apear in the Log box of the manager.

 

In the future you will be able to type commands (or select them via dropdown) directly in the manager.

Link to comment
Share on other sites

hi

 

Can you in the servermanger please insert the one the IP can change? For rootserver with several ip's.

 

In which bat works --ip 12.34.5.67

 

thx

Yea there are some arguments wich are currently not configurable via GUI.

At the moment you should be able to add them in the Arguments Textbox.

In the future those will be available in the GUI.

At the moment I work on some features. Opened a github issue for missing commands so that I will not forget to add this sometime.

Link to comment
Share on other sites

A little update:

Manager should now be fully compatible with beta branch.

The console interface is now supported. This means you can send commands like you would in the console window directly from the manager.

 

The next release will include Web API support for console commands and make all commands available via gui.

 

download here

Link to comment
Share on other sites

  • 3 weeks later...

Hi there :)

 

I've a little problem when i try to start the server:

12:35:37:175 CPU: GenuineIntel 8 Cores
12:35:37:175 name: Schattenwoelfe
12:35:37:175 seed: 2YuSRZSF
12:35:37:175 port: 7783
12:35:37:175 max online players: 10
12:35:37:175 save interval: 600
12:35:37:175 broadcast interval: 5
12:35:37:175 max loaded sector time: 300
12:35:37:175 weak update: yes
12:35:37:175 worker threads: 2
12:35:37:175 difficulty: Veteran
12:35:37:175 infiniteResources: no
12:35:37:175 collision: 0
12:35:37:175 access list: Blacklist
12:35:37:175 public: yes
12:35:37:175 authentication: no
12:35:37:175 listed: no
12:35:37:175 steam networking: yes
12:35:37:175 administrators: '' 'avorion_admin' 'admin' 
12:35:37:191 An exception occurred: DataStream access error: Accessed data exceeds buffer size: 16101, offset: 16101, access size: 1
12:35:37:191 

 

I don't know how to fix this DataStrean Error.

Tried to activate/deactivate every option (i.e. steam networking), but every time i receive this error.

My OS is Windows 2012 R2 Server.

 

Any ideas ?

 

Thanks in advance :)

 

PS: To use a existing galaxy I only need to set the datapath do "D:\avorionserver\galaxies" and  galaxy to "MyGalaxy" ?

Link to comment
Share on other sites

Collision damager can not highter, why 1.00?

going Server.ini 3.00

I did not know that the damage can be set higher than 1.00.

If this really can be set higher I will remove the limit in the next Version.

 

Will look in to the other issues and made some comments/questions regarding the issues on github.

Link to comment
Share on other sites

hi, Windows 2012 r2 Rootserver

 

lua stop usw. funktioniert nicht. muß immer per hand /stop reinschreiben

 

2. Server UDP: Socket send to localhost:12345 failed. Error: send_to: Die angeforderte Adresse ist in diesem Kontext ungültig kannst du das fixen?

 

log:

 

Sun Mar 19 02:54:26 2017| Enabled Traces:

Sun Mar 19 02:54:26 2017| Avorion server 0x246ea50 running on Windows 8.1+ starting up in "C:\Users\Administrator\AppData\Roaming\Avorion\galaxies\avorion_galaxy2"

Sun Mar 19 02:54:26 2017| CPU: GenuineIntel 8 Cores

Sun Mar 19 02:54:26 2017| name: [DE]_24/7__Lost-Survivors.com_Server_2__(Beta)_Wiped_18.3.2017

Sun Mar 19 02:54:26 2017| seed: gdMXbBQSwJ

Sun Mar 19 02:54:26 2017| port: 27000

Sun Mar 19 02:54:26 2017| ip: 46.4.63.209

Sun Mar 19 02:54:26 2017| max online players: 15

Sun Mar 19 02:54:26 2017| save interval: 600

Sun Mar 19 02:54:26 2017| broadcast interval: 5

Sun Mar 19 02:54:26 2017| max loaded sector time: 300

Sun Mar 19 02:54:26 2017| weak update: yes

Sun Mar 19 02:54:26 2017| worker threads: 8

Sun Mar 19 02:54:26 2017| generator threads: 3

Sun Mar 19 02:54:26 2017| difficulty: Insane

Sun Mar 19 02:54:26 2017| infiniteResources: no

Sun Mar 19 02:54:26 2017| collision: 1

Sun Mar 19 02:54:26 2017| access list: Blacklist

Sun Mar 19 02:54:26 2017| public: yes

Sun Mar 19 02:54:26 2017| authentication: yes

Sun Mar 19 02:54:26 2017| listed: yes

Sun Mar 19 02:54:26 2017| steam networking: yes

Sun Mar 19 02:54:26 2017| administrators: 'admin'

Sun Mar 19 02:54:26 2017| Initializing sector database...

Sun Mar 19 02:54:26 2017| Initializing faction database...

Sun Mar 19 02:54:26 2017| Starting up 8 worker threads...

Sun Mar 19 02:54:26 2017| Loading jumping entities...

Sun Mar 19 02:54:26 2017| Galaxy initialized.

Sun Mar 19 02:54:26 2017| Starting game server on ip 46.4.63.209, 772030417

Sun Mar 19 02:54:26 2017| Listed server version: 0.10.5.7633

Sun Mar 19 02:54:27 2017| Server UDP: Socket send to localhost:12345 failed. Error: send_to: Die angeforderte Adresse ist in diesem Kontext ungültig

Sun Mar 19 02:54:27 2017| Game Port: 27000

Sun Mar 19 02:54:27 2017| Steam Port: 27021

Sun Mar 19 02:54:27 2017| Steam Query Port: 27020

Sun Mar 19 02:54:27 2017| Query Port: 27003

Sun Mar 19 02:54:27 2017|

Sun Mar 19 02:54:28 2017| Server connected to Steam successfully

Sun Mar 19 02:54:28 2017| Server is VAC Secure!

Sun Mar 19 02:54:28 2017| Game Server Steam ID: 90107556539379716

Sun Mar 19 03:04:26 2017| Triggered saving of all server data.

Sun Mar 19 03:06:40 2017| External command: /stop

Sun Mar 19 03:06:41 2017| Server is shutting down.

Sun Mar 19 03:06:41 2017| Saving settings...

Sun Mar 19 03:06:41 2017| Saving script values...

Sun Mar 19 03:06:41 2017| Saving factions...

Sun Mar 19 03:06:41 2017| Saving sectors...

Sun Mar 19 03:06:41 2017| Saving jumping ships...

Sun Mar 19 03:06:41 2017| scheduled save for sector (0:0), 0x23e490, entities: 0

Sun Mar 19 03:06:41 2017| saving sector (0:0)

Sun Mar 19 03:06:41 2017| sector (0:0) saved to "C:\Users\Administrator\AppData\Roaming\Avorion\galaxies\avorion_galaxy2\jumps.dat"

Sun Mar 19 03:06:41 2017| Saving settings...

Sun Mar 19 03:06:41 2017| waiting for unfinished sector generation jobs...

Sun Mar 19 03:06:41 2017| waiting for unfinished sector save jobs...

Sun Mar 19 03:06:41 2017| shutting down networking...

Sun Mar 19 03:06:41 2017| UDP closed

Sun Mar 19 03:06:41 2017| Server UDP: Connection closed

Sun Mar 19 03:06:41 2017| cleaning up communicators...

Sun Mar 19 03:06:41 2017| waiting for unfinished sector generation jobs...

Sun Mar 19 03:06:41 2017| waiting for unfinished sector save jobs...

Sun Mar 19 03:06:41 2017| shutting down galaxy...

Sun Mar 19 03:06:41 2017| shutting down faction database...

Sun Mar 19 03:06:41 2017| shutting down sector database...

Sun Mar 19 03:06:41 2017| cleaning up timers...

Sun Mar 19 03:06:41 2017| Server shutdown successful.

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...