• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Improvements for the dedicated server

I.e. not only you accessing it? And others have issues, you don't? If they don't have permission level 0 they won't be able to see everything as per your permission setup. So all fine.

I was not real clear with that post...no I mean other administrators on other servers are reporting the same problem.

 
Last edited by a moderator:
Does GameUtils.GetSaveGameDir () switch context during startup maybe?
Your map files are in /Saves/RWG/CSMM (CSMM is seedname), but persistentdata is in

/Saves/Mevozo Mountains/CSMM -> player and region files are in here too.
Yeah, seems like someone (naming and shaming is forbidden on this forum so I don't have to say "Alloc", yay) is accessing that path too early in the startup process. Your second path would be correct.

I was not real clear with that post...no I mean other administrators on other servers are reporting the same problem.
And they're all set to permission level 0? Cause your post only showed one person set to 0.

 
Fixed the path issues, using the GameStartDone event in stead of GameAwake results in safe to use paths.

 
Hi Alloc!

I've set all webpermissions to 2000, yet I can not see all the things I could see on 16.4 (Hostiles, Animals, ...). Is it me or is something off :)

Check here:

http://7days.the-craftsmen.com:25003/static/index.html

$ webpermission list:

Defined web function permissions:Level: Web function

2000: web.map

2000: webapi.GetAnimalsLocation

2000: webapi.GetHostileLocation

2000: webapi.Null

2000: webapi.GetPlayersOnline

2000: webapi.GetPlayersLocation

2000: webapi.GetPlayerInventory

2000: webapi.GetLandClaims

2000: webapi.GetStats

2000: webapi.ExecuteConsoleCommand

2000: webapi.GetLog

2000: webapi.GetWebUIUpdates

2000: webapi.GetServerInfo

2000: webapi.GetPlayerList

2000: webapi.GetAllowedCommands

2000: webapi.GetPlayerInventories

2000: webapi.viewallclaims

2000: webapi.viewallplayers

Version info:


Game version: Alpha 17 (b197) Compatibility Version: Alpha 17

Mod Allocs command extensions: 15

Mod Allocs server fixes: 18

Mod Allocs MapRendering and Webinterface: 27

Thanks!

 
Yeah, seems like someone (naming and shaming is forbidden on this forum so I don't have to say "Alloc", yay) is accessing that path too early in the startup process. Your second path would be correct.


And they're all set to permission level 0? Cause your post only showed one person set to 0.
On my server I am the only one set to 0. I believe this is the same or related to the issue Gilthanaz reported.

 
Hi Alloc!

I've deployed your latest build yesterday and everything looked good and worked :) However, after the scheduled nightly server restart at 5.10 am, the /map sub-directory in the Save directory is suddenly empty and the map thus gone. The other Info is there (Player offline location, claim blocks, ...)

Should I debug on our end or do you have a possible reason in mind? :)

KR and thanks for your work!

Edit:

To be exact, the file "mapinfo.json" is still present in the /map sub-directory...

 
Last edited by a moderator:
Hi Alloc!
I've deployed your latest build yesterday and everything looked good and worked :) However, after the scheduled nightly server restart at 5.10 am, the /map sub-directory in the Save directory is suddenly empty and the map thus gone. The other Info is there (Player offline location, claim blocks, ...)

Should I debug on our end or do you have a possible reason in mind? :)

KR and thanks for your work!

Edit:

To be exact, the file "mapinfo.json" is still present in the /map sub-directory...
FYI using version 16_19_29, restarted my server several times, map still working for me

 
Hi Alloc!
I've deployed your latest build yesterday and everything looked good and worked :) However, after the scheduled nightly server restart at 5.10 am, the /map sub-directory in the Save directory is suddenly empty and the map thus gone. The other Info is there (Player offline location, claim blocks, ...)

Should I debug on our end or do you have a possible reason in mind? :)

KR and thanks for your work!

Edit:

To be exact, the file "mapinfo.json" is still present in the /map sub-directory...
Are you looking at the correct directory? I.e. saves/<worldname>/<gamename>, not saves/rwg/<gamename>?

 
using the "rendermap" command results in an error:

2018-11-22T15:41:49 447.787 INF Error in RenderMap.Run: System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[system.String,ThreadManager+ThreadInfo].Add (System.String key, .ThreadInfo value) [0x00000] in <filename unknown>:0 at ThreadManager.startThread (System.String _name, .ThreadFunctionDelegate _threadDelegate, .ThreadFunctionDelegate _threadInit, .ThreadFunctionLoopDelegate _threadLoop, .ThreadFunctionEndDelegate _threadEnd, ThreadPriority _threadPriority, System.Object _parameter, .ExitCallbackThread _exitCallback, Boolean _runInMainThread) [0x00000] in <filename unknown>:0 at ThreadManager.StartThread (System.String _name, .ThreadFunctionDelegate _threadInit, .ThreadFunctionLoopDelegate _threadLoop, .ThreadFunctionEndDelegate _threadEnd, ThreadPriority _threadPriority, System.Object _parameter, .ExitCallbackThread _exitCallback, Boolean _runInMainThread) [0x00000] in <filename unknown>:0 at RegionFileManager..ctor (System.String _loadDirectory, System.String _saveDirectory, Int32 _maxChunksInCache, Boolean _bSaveOnChunkDrop) [0x00000] in <filename unknown>:0 at AllocsFixes.MapRendering.MapRendering.RenderFullMap () [0x00000] in <filename unknown>:0 at AllocsFixes.CustomCommands.RenderMap.Execute (System.Collections.Generic.List`1 _params, CommandSenderInfo _senderInfo) [0x00000] in <filename unknown>:0
 
login through steam still failed

here the log:

2018-11-23T01:59:10 1092.240 ERR Error validating login:

2018-11-23T01:59:10 1092.241 EXC Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

TlsException: The authentication or decryption has failed.

at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0

at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

Rethrow as IOException: The authentication or decryption has failed.

at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

Rethrow as WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0

at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.OpenID.Validate (System.Net.HttpListenerRequest _req) [0x00000] in <filename unknown>:0

at AllocsFixes.NetConnections.Servers.Web.Web.DoAuthentication (System.Net.HttpListenerRequest _req, AllocsFixes.NetConnections.Servers.Web.WebConnection& _con) [0x00000] in <filename unknown>:0

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

Logger:masterLogException(Exception)

Logger:Exception(Exception)

Log:Exception(Exception)

AllocsFixes.NetConnections.Servers.Web.Web:DoAuthentication(HttpListenerRequest, WebConnection&)

AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult)

System.Net.ListenerAsyncResult:InvokeCallback(Object)

 
little bug in give command:

if (_params.Count == 4) {

if (!int.TryParse (_params [1], out quality) || quality <= 0) {

SdtdConsole.Instance.Output ("Quality is not an integer or not greater than zero.");

return;

}

}

should be _params [3].

Cheers

 
Dear Alloc!

I also have a feature request or two ;) In fact I once already modified these things myself für A16.4 but for **** sake can't remember exactly anymore how I did it:

* Higher maxZoom

* No clustering of Icons on the lowest 3 zoom levels

* Update interval for the icons configurable from 100ms+

Those are the things I had implemented and we were using in A16 in a "Eye in the Sky" playstyle where one guy would only be on voice chat and command a squad of players with the almost real-time information he got from the map :)

Any change we can have those things as variables for easy configuration?

Thanks!

 
lots of this in output log

Code:
2018-12-06T17:00:20 263.259 INF Error in GM_SavePlayerData: System.NullReferenceException: Object reference not set to an instance of an object
 at AllocsFixes.PersistentData.Inventory.CreateInvItem (.ItemValue _itemValue, Int32 _count, Int32 _playerId) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Inventory.ProcessEqu (.Equipment sourceEquipment, Int32 _playerId) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Inventory.Update (.PlayerDataFile pdf) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PersistentData.Player.Update (.PlayerDataFile _pdf) [0x00000] in <filename unknown>:0 
 at AllocsFixes.PlayerDataStuff.GM_SavePlayerData (.ClientInfo _cInfo, .PlayerDataFile _playerDataFile) [0x00000] in <filename unknown>:0
 
Back
Top