Jump to content

Improvements for the dedicated server


Alloc

Recommended Posts

Well my map now has 1 offline player and the icon for that player is showing up, so I think it is mostly solved. Might still be some issues with the permissions though. I tried to set viewallclaims and it errored on me, not sure what that one does. Also, there is a null permission?

 

Going to check this out more after work and see if I can get your JS changes merged into my own.

 

 

2015-10-08T11:55:02 108.864 INF Executing command 'webpermission list' by ControlPanel

Defined web function permissions:

Level: Web function

2000: web.map

2000: webapi.getanimalslocation

2000: webapi.getrawentitieslist

2000: webapi.gethostilelocation

0: webapi.null

2000: webapi.getplayersonline

2000: webapi.getplayerslocation

2000: webapi.getplayerinventory

2000: webapi.getlandclaims

2000: webapi.getstats

0: webapi.executeconsolecommand

0: webapi.getlog

2000: webapi.getwebuiupdates

0: webapi.viewallclaims

2000: webapi.viewallplayers

 

2015-10-08T11:55:48 155.091 INF Executing command 'webpermission webapi.viewallclaims 2000' by ControlPanel

Invalid sub command "webapi.viewallclaims".

 

 

 

Link to comment
Share on other sites

I tried to set viewallclaims and it errored on me

You're using the webpermission command wrong.

 

Usage:

webpermission add <webfunction> <level>
webpermission remove <webfunction>
webpermission list

 

You can also set it via .xml if you prefer.

 

 

 

I tried to set viewallclaims [...] not sure what that one does.

 

It's described in my original notes:

 

Permission level for 'webapi.viewallclaims' is now required for a viewer to see all claims, otherwise the permission level for 'webapi.getlandclaims' will only show viewer-owned claims. A viewer requires both 'webapi.getlandclaims' and 'webapi.viewallclaims' to be set for all claims to show (you can't just set 'webapi.viewallclaims').

 

 

 

Also, there is a null permission?
Yes, the permissions I added are mapped to the webapi Null (which sends a blank plain/text response). This is used to work around the limitation that every permission must map to a webapi handler method so that we can set multiple permissions per api module. Edited by psouza4 (see edit history)
Link to comment
Share on other sites

Same way... we wrote our own server manager, so we just applied the change to all teleport actions

 

I am having the issue where /home returns players to a void so I would love to know how to do this myself to avoid the hassle of logging in/out after every use of /home. I am using FrontRunnerTek, just need to know how to set this up so when someone types /home it executes the teleport several times but then has a time limit still. If anyone could tell me how to do this I would be most appreciative. Thank you and happy hunting.

Link to comment
Share on other sites

I am having the issue where /home returns players to a void so I would love to know how to do this myself to avoid the hassle of logging in/out after every use of /home. I am using FrontRunnerTek, just need to know how to set this up so when someone types /home it executes the teleport several times but then has a time limit still. If anyone could tell me how to do this I would be most appreciative. Thank you and happy hunting.

 

You could try the safe fall method I have explained here. Not exactly what you're looking for, but works great until A13 gets here.

 

https://7daystodie.com/forums/showthread.php?32862-Server-Tools&p=324602&viewfull=1#post324602

Link to comment
Share on other sites

You could try the safe fall method I have explained here. Not exactly what you're looking for, but works great until A13 gets here.

 

https://7daystodie.com/forums/showthread.php?32862-Server-Tools&p=324602&viewfull=1#post324602

 

I appreciate the shared method, it is much apprecaited. I will set something up like that , myself and try it out. Happy hunting!

Link to comment
Share on other sites

Great -- I found what was causing those permissions to be dropped. Basically, the framework for this mod is dynamically reading each API and loading it as a module with a permission, so each permission must be mapped to an API. I've worked around that for this next build, which should read and allow you to set these new permissions.

 

New build binaries:

server_fixes_psouza_28115_697.zip

 

New build source code:

server_fixes_source_psouza_28115_697.zip

 

I'm running this version of the fixes. When I look at the logs from the web/map, They load from the beginning every time and "Mark As Read" does nothing to help in that regard. I've got a log over 7000 lines long as this point that loads every time I use that section. Is there a fix or workaround?

Link to comment
Share on other sites

I'm running this version of the fixes. When I look at the logs from the web/map, They load from the beginning every time and "Mark As Read" does nothing to help in that regard. I've got a log over 7000 lines long as this point that loads every time I use that section. Is there a fix or workaround?

 

None of my updates touch or interfere with how the web represents server logs, so that's probably an issue in the svn copy Alloc has, too. I can take a look at it and see if I can reproduce the problem. If I can reproduce it, I can fix it. If not, well -- I'll have to have you help with getting me more information.

 

Log issue aside, how are you enjoying my enhancements to the server mod?

Link to comment
Share on other sites

Theyre great. My only gripe is the player icons are way too big and seem to take away from the precision of their placement on the map. I liked the pins used in the base version better, but that doesnt mean a smaller icon like the zombie or animal icons wouldnt be good.

Link to comment
Share on other sites

  • 1 month later...

sry for 2nd Post, but could not edit the first post.

 

I set my control panel port to 25080:

but Output_log says its out of range.

Look here:

 

WARNING: Shader Unsupported: 'Suimono/effect_refractDroplets' - Setting to default shader.

WARNING: Shader Unsupported: 'Suimono/effect_refractionViewDepth' - Setting to default shader.

WARNING: Shader Unsupported: 'Code/GoggleEyed' - Setting to default shader.

2015-12-13T03:18:04 11.272 INF WorldStaticData.Init() needed 7.459s

Platform assembly: /home/sdtd/engine/7DaysToDieServer_Data/Managed/System.Configuration.dll (this message is harmless)

2015-12-13T03:18:04 11.342 INF Started Telnet on 25023

2015-12-13T03:18:04 11.352 INF Error in StateManager.Awake: System.MissingMethodException: Method not found: 'NGuiInvGridCreativeMenu.GetAllItems'.

at AllocsFixes.StateManager.Awake () [0x00000] in <filename unknown>:0

2015-12-13T03:18:04 11.353 ERR GetInt: InvalidCastException FavoriteServersList

2015-12-13T03:18:04 11.353 INF Webserver not started (ControlPanelPort not within 1-65534)

2015-12-13T03:18:04 11.353 INF Awake done

2015-12-13T03:18:04 11.682 INF Atlas reset took 93 ms

2015-12-13T03:18:04 11.682 INF Atlas load took 325 ms

2015-12-13T03:18:04 11.767 INF NET: Starting server protocols

2015-12-13T03:18:04 11.798 INF NET: Unity NW server started

2015-12-13T03:18:04 11.798 INF [steamworks.NET] NET: Server started

2015-12-13T03:18:04 11.798 INF StartGame

2015-12-13T03:18:04 11.917 INF Atlas reset took 117 ms

2015-12-13T03:18:04 11.920 INF Persistent GamePrefs saved

Link to comment
Share on other sites

@Follo What happens if you use a much lower port, like the default for the control panel?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

 

- - - Updated - - -

 

@Follo What happens if you use a much lower port, like the default for the control panel?

 

Also, did you update the mod files to the A13 version?

Link to comment
Share on other sites

sry for 2nd Post, but could not edit the first post.

 

I set my control panel port to 25080:

but Output_log says its out of range.

Look here:

 

WARNING: Shader Unsupported: 'Suimono/effect_refractDroplets' - Setting to default shader.

WARNING: Shader Unsupported: 'Suimono/effect_refractionViewDepth' - Setting to default shader.

WARNING: Shader Unsupported: 'Code/GoggleEyed' - Setting to default shader.

2015-12-13T03:18:04 11.272 INF WorldStaticData.Init() needed 7.459s

Platform assembly: /home/sdtd/engine/7DaysToDieServer_Data/Managed/System.Configuration.dll (this message is harmless)

2015-12-13T03:18:04 11.342 INF Started Telnet on 25023

2015-12-13T03:18:04 11.352 INF Error in StateManager.Awake: System.MissingMethodException: Method not found: 'NGuiInvGridCreativeMenu.GetAllItems'.

at AllocsFixes.StateManager.Awake () [0x00000] in <filename unknown>:0

2015-12-13T03:18:04 11.353 ERR GetInt: InvalidCastException FavoriteServersList

2015-12-13T03:18:04 11.353 INF Webserver not started (ControlPanelPort not within 1-65534)

2015-12-13T03:18:04 11.353 INF Awake done

2015-12-13T03:18:04 11.682 INF Atlas reset took 93 ms

2015-12-13T03:18:04 11.682 INF Atlas load took 325 ms

2015-12-13T03:18:04 11.767 INF NET: Starting server protocols

2015-12-13T03:18:04 11.798 INF NET: Unity NW server started

2015-12-13T03:18:04 11.798 INF [steamworks.NET] NET: Server started

2015-12-13T03:18:04 11.798 INF StartGame

2015-12-13T03:18:04 11.917 INF Atlas reset took 117 ms

2015-12-13T03:18:04 11.920 INF Persistent GamePrefs saved

 

I get the same error in the log. So what did you do to fix this?

I checked all my settings and they are the same as before the new alpha.

Link to comment
Share on other sites

I can 't get webmap working. I have the latest Alloc's update. When I type "webtokens list" I get this weird response:

 

2015-12-13T10:02:20 36574.540 INF Executing command 'webtokens list' by Telnet from xxxxxxx
2015-12-13T10:02:20 36574.542 ERR GetString: InvalidCastException MaxSpawnedZombies
ArgumentException: Path is empty

 

And then it immediately spawns like 30 zombies in a row (BiomeSpawnManager).

 

When I type "webpermission list" it does exactly the same thing.

 

And "reloadwebpermissions" does this:

 

2015-12-13T10:13:26 37240.559 INF Executing command 'reloadwebpermissions' by Telnet from xxx
2015-12-13T10:13:26 37240.560 ERR GetString: InvalidCastException MaxSpawnedZombies
2015-12-13T10:13:26 37240.560 INF Error in ReloadWebPermissions.Run: System.ArgumentException: Path is empty
 at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.WebPermissions..ctor () [0x00000] in <filename unknown>:0
 at AllocsFixes.NetConnections.Servers.Web.WebPermissions.get_Instance () [0x00000] in <filename unknown>:0
 at AllocsFixes.CustomCommands.ReloadWebPermissions.Execute (System.Collections.Generic.List`1 _params, CommandSenderInfo _senderInfo) [0x00000] in <filename unknown>:0

Edited by Soylent (see edit history)
Link to comment
Share on other sites

Great, what did you do? I have the same problem and am using the default port.

 

i was getting that error too, but I changed the Game Server World Folder to the proper one at

 

C:\Users"youruserid"\AppData\Roaming\7DaysToDie\Saves\Random Gen"your_server_world"

 

now I am getting a different error on the webpage itself:

 

An error occured or you have not logged in. Try logging in with the Steam login in the lower left!

Link to comment
Share on other sites

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...