EthanChi Posted June 20, 2016 Share Posted June 20, 2016 hi alloc there is a new api added in latest version of server fixed named executeconsolecommand but i found no usage or guide to read cloud you tell me how to use is? thanks i have send a pm to you ignore that plz Link to comment Share on other sites More sharing options...
Alloc Posted June 21, 2016 Author Share Posted June 21, 2016 Just add the command as GET parameter 'command', that's it. Link to comment Share on other sites More sharing options...
EthanChi Posted June 21, 2016 Share Posted June 21, 2016 Just add the command as GET parameter 'command', that's it. thankyou:adoration: Link to comment Share on other sites More sharing options...
zigstum Posted June 21, 2016 Share Posted June 21, 2016 Nice work on the new Web API commands Link to comment Share on other sites More sharing options...
schwanz9000 Posted June 21, 2016 Share Posted June 21, 2016 Added API executeconsolecommand: Executes a console command and returns result. Uses the same permission checks as would apply to any ingame user Just add the command as GET parameter 'command', that's it. So just add a new js file with code like this? var myfunction = function() { $.getJSON( "../api/executeconsolecommand?llp") [color="#FF8C00"]<-- Format???[/color] .done(function(data) { //do things with returned data here }) Link to comment Share on other sites More sharing options...
Alloc Posted June 21, 2016 Author Share Posted June 21, 2016 You're missing the actual parameter there: $.getJSON( "../api/executeconsolecommand?[b]command=[/b]llp") .done(function(data) { //do things with returned data here }) Link to comment Share on other sites More sharing options...
schwanz9000 Posted June 21, 2016 Share Posted June 21, 2016 Dang! I was so close. Link to comment Share on other sites More sharing options...
BeatKidz Posted June 26, 2016 Share Posted June 26, 2016 Any idea what could be causing this? Setting breakpad minidump AppID = 251570mmap(...PROT_NONE...) failed IP address: 127.0.0.1 IP address: 208.110.84.250 eac_server.so [x64] :: OnLoad() STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed Stacktrace: at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0x00064> at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0x00064> at System.Collections.Hashtable.Rehash () <0x00070> at System.Collections.Hashtable.PutImpl (object,object,bool) <0x00071> at System.Collections.Hashtable.Add (object,object) <0x0002a> at System.Runtime.Serialization.ObjectIDGenerator.GetId (object,bool&) <0x000c9> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteValue (System.IO.BinaryWriter,System.Type,object) <0x001f3> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteSingleDimensionArrayElements (System.IO.BinaryWriter,System.Array,System.Type) <0x000e7> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteGenericArray (System.IO.BinaryWriter,long,System.Array) <0x001f8> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray (System.IO.BinaryWriter,long,System.Array) <0x0010d> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance (System.IO.BinaryWriter,object,bool) <0x0016a> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects (System.IO.BinaryWriter) <0x00042> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph (System.IO.BinaryWriter,object,System.Runtime.Remoting.Messaging.Header[]) <0x00073> at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream,object,System.Runtime.Remoting.Messaging.Header[]) <0x0038a> at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream,object) <0x0002d> at AllocsFixes.PersistentData.PersistentContainer.Save () <0x00098> at AllocsFixes.AllocsLogFunctions.RequestToSpawnPlayer (ClientInfo,int,PlayerProfile) <0x00283> at AllocsFixes.API.PlayerSpawning (ClientInfo,int,PlayerProfile) <0x0002c> at ModManager.PlayerSpawning (ClientInfo,int,PlayerProfile) <0x00206> at GameManager.RequestToSpawnPlayer (ClientInfo,int,PlayerProfile) <0x00edc> at NetPackageRequestToSpawnPlayer.ProcessPackage (World,INetConnectionCallbacks) <0x00030> at ConnectionManager.QP (INetConnection,NetPackageDirection) <0x002c2> at ConnectionManager.Update () <0x000db> at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x0005e> Native stacktrace: /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x91772) [0x7f592ab5a772] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7f592c0e8d10] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f592b30e267] /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f592b30feca] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19fc07) [0x7f592ac68c07] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1a0f5a) [0x7f592ac69f5a] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x197773) [0x7f592ac60773] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1988f2) [0x7f592ac618f2] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x198a81) [0x7f592ac61a81] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1992c6) [0x7f592ac622c6] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19c8d6) [0x7f592ac658d6] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19cb82) [0x7f592ac65b82] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19cd5d) [0x7f592ac65d5d] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x132bae) [0x7f592abfbbae] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(mono_array_new_specific+0xaa) [0x7f592abfdec0] [0x401d38a4] Debug info from gdb: ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= viour (Game Object 'wdwFocusHealthState') is missing! Link to comment Share on other sites More sharing options...
Alloc Posted June 27, 2016 Author Share Posted June 27, 2016 Any idea what could be causing this? Setting breakpad minidump AppID = 251570mmap(...PROT_NONE...) failed IP address: 127.0.0.1 IP address: 208.110.84.250 eac_server.so [x64] :: OnLoad() STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsyncTCPSocket created STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed STEAMPS3 - AsncTCPSocket destroyed Stacktrace: at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0x00064> at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0x00064> at System.Collections.Hashtable.Rehash () <0x00070> at System.Collections.Hashtable.PutImpl (object,object,bool) <0x00071> at System.Collections.Hashtable.Add (object,object) <0x0002a> at System.Runtime.Serialization.ObjectIDGenerator.GetId (object,bool&) <0x000c9> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteValue (System.IO.BinaryWriter,System.Type,object) <0x001f3> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteSingleDimensionArrayElements (System.IO.BinaryWriter,System.Array,System.Type) <0x000e7> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteGenericArray (System.IO.BinaryWriter,long,System.Array) <0x001f8> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray (System.IO.BinaryWriter,long,System.Array) <0x0010d> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance (System.IO.BinaryWriter,object,bool) <0x0016a> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects (System.IO.BinaryWriter) <0x00042> at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph (System.IO.BinaryWriter,object,System.Runtime.Remoting.Messaging.Header[]) <0x00073> at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream,object,System.Runtime.Remoting.Messaging.Header[]) <0x0038a> at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream,object) <0x0002d> at AllocsFixes.PersistentData.PersistentContainer.Save () <0x00098> at AllocsFixes.AllocsLogFunctions.RequestToSpawnPlayer (ClientInfo,int,PlayerProfile) <0x00283> at AllocsFixes.API.PlayerSpawning (ClientInfo,int,PlayerProfile) <0x0002c> at ModManager.PlayerSpawning (ClientInfo,int,PlayerProfile) <0x00206> at GameManager.RequestToSpawnPlayer (ClientInfo,int,PlayerProfile) <0x00edc> at NetPackageRequestToSpawnPlayer.ProcessPackage (World,INetConnectionCallbacks) <0x00030> at ConnectionManager.QP (INetConnection,NetPackageDirection) <0x002c2> at ConnectionManager.Update () <0x000db> at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x0005e> Native stacktrace: /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x91772) [0x7f592ab5a772] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7f592c0e8d10] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f592b30e267] /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f592b30feca] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19fc07) [0x7f592ac68c07] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1a0f5a) [0x7f592ac69f5a] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x197773) [0x7f592ac60773] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1988f2) [0x7f592ac618f2] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x198a81) [0x7f592ac61a81] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x1992c6) [0x7f592ac622c6] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19c8d6) [0x7f592ac658d6] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19cb82) [0x7f592ac65b82] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x19cd5d) [0x7f592ac65d5d] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(+0x132bae) [0x7f592abfbbae] /home/sdtd/engine/7DaysToDieServer_Data/Mono/x86_64/libmono.so(mono_array_new_specific+0xaa) [0x7f592abfdec0] [0x401d38a4] Debug info from gdb: ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= viour (Game Object 'wdwFocusHealthState') is missing! Haven't seen that one before ... Can you post the full log please? Link to comment Share on other sites More sharing options...
thomtree Posted July 4, 2016 Share Posted July 4, 2016 Server Crashed: 2016-07-04T16:55:42 2.934 ERR Error in ApiHandler.HandleRequest(): Handler getwebuiupdates threw an exception: 2016-07-04T16:55:42 2.935 EXC Object reference not set to an instance of an object NullReferenceException: Object reference not set to an instance of an object at AllocsFixes.NetConnections.Servers.Web.API.GetWebUIUpdates.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0 at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [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.Handlers.ApiHandler:HandleRequest(HttpListenerRequest, HttpListenerResponse, WebConnection, Int32) AllocsFixes.NetConnections.Servers.Web.Web:HandleRequest(IAsyncResult) System.Net.ListenerAsyncResult:InvokeCallback(Object) full log: http://nopainnogaincommunity.de/crash.txt Link to comment Share on other sites More sharing options...
Alloc Posted July 4, 2016 Author Share Posted July 4, 2016 Not seeing a crash. Also don't pick some part of a log randomly and point it out as a crash reason ... Link to comment Share on other sites More sharing options...
HjortenDK Posted July 4, 2016 Share Posted July 4, 2016 Hey. CoppisAdditions commands you have unlockall. now that i have used it. i can open and see what people have etc. But how do i turn it off again ? Best regards Hjorten Link to comment Share on other sites More sharing options...
Alloc Posted July 4, 2016 Author Share Posted July 4, 2016 No way to undo as of now. Might think about adding that later on though. Link to comment Share on other sites More sharing options...
HjortenDK Posted July 4, 2016 Share Posted July 4, 2016 Woud be nice.. not even a file or something you can delete. so it will work normaly again ? Shoud be warring about it.. Link to comment Share on other sites More sharing options...
thomtree Posted July 5, 2016 Share Posted July 5, 2016 Not seeing a crash. Also don't pick some part of a log randomly and point it out as a crash reason ... right, its only a clpping. I had post the full log too there. Did you look at this ? Link to comment Share on other sites More sharing options...
Alloc Posted July 5, 2016 Author Share Posted July 5, 2016 right, its only a clpping. I had post the full log too there. Did you look at this ? ---> Not seeing a crash. - - - Updated - - - Woud be nice.. not even a file or something you can delete. so it will work normaly again ? Nope, you're simply added to the access list of the containers so nothing that can be easily done to revert this (besides coding this). Link to comment Share on other sites More sharing options...
thomtree Posted July 5, 2016 Share Posted July 5, 2016 Hm, But the server was crashed! even if it is not in the logs. where are all the error messages ? Maybe there is a problem if there 2 Server instances at 1 Server ? Link to comment Share on other sites More sharing options...
mrsteej Posted July 5, 2016 Share Posted July 5, 2016 Is it possible to increase the tile size uncovered by a player when exploring the map? Link to comment Share on other sites More sharing options...
zigstum Posted July 6, 2016 Share Posted July 6, 2016 Hm, But the server was crashed! even if it is not in the logs. where are all the error messages ? Maybe there is a problem if there 2 Server instances at 1 Server ? I've run two instances concurrently without any issues. I've had loads of crashes/mass disconnects without any error messages in log. I've had loads of error messages without any crash or mass disconnect. I had a 13GB log file in 4hours and still no crash ^^ Link to comment Share on other sites More sharing options...
Alloc Posted July 6, 2016 Author Share Posted July 6, 2016 Hm, But the server was crashed! even if it is not in the logs. where are all the error messages ? Maybe there is a problem if there 2 Server instances at 1 Server ? No idea, but unlikely to be multiple instances on a single server. GSPs would have a hard day if that was an issue. Is it possible to increase the tile size uncovered by a player when exploring the map? You mean the size of the area around a player that shows up e.g. on the ingame map when walking around? If so that's basically a "no", would require deeper game changes and also hurt server performance *a lot*. I've run two instances concurrently without any issues. I've had loads of crashes/mass disconnects without any error messages in log. I've had loads of error messages without any crash or mass disconnect. I had a 13GB log file in 4hours and still no crash ^^ Wow. Did you check what was most of this data? E.g. was it like 90% the <steamid> -> <entityid> output in the logs on player connects or something like that? Link to comment Share on other sites More sharing options...
thomtree Posted July 6, 2016 Share Posted July 6, 2016 Is there a way to use differents webpermssions.xml for 2 server instances ? Link to comment Share on other sites More sharing options...
Alloc Posted July 6, 2016 Author Share Posted July 6, 2016 Yes, same as with everything else save related (especially admins.xml): Use different savegamefolders. Link to comment Share on other sites More sharing options...
janzend Posted July 6, 2016 Share Posted July 6, 2016 I just loaded up a server for the first time in a while last night, as well as the latest version of the Alloc's fixes. Im running server 2012 as well. When I launch the server the game starts fine, and the website starts, however the map isn't being shown whether I log into steam or not. Do I need to make changes to the default permissions or install additional software to get the map to render online? Thanks! Link to comment Share on other sites More sharing options...
Guppycur Posted July 6, 2016 Share Posted July 6, 2016 Permissions. Link to comment Share on other sites More sharing options...
janzend Posted July 6, 2016 Share Posted July 6, 2016 (edited) Permissions. Default permissions wont show the map? any suggestions on what ideal settings are? This is my current output. Defined web function permissions: Level: Web function 0: web.map 0: webapi.getanimalslocation 0: webapi.gethostilelocation 0: webapi.null 0: webapi.getplayersonline 0: webapi.getplayerslocation 0: webapi.getplayerinventory 0: webapi.getlandclaims 2000: webapi.getstats 2000: webapi.executeconsolecommand 0: webapi.getlog 2000: webapi.getwebuiupdates 0: webapi.getserverinfo 0: webapi.getplayerlist 2000: webapi.getallowedcommands 0: webapi.viewallclaims 0: webapi.viewallplayers Sorted it out, lower numbers are higher level! Edited July 6, 2016 by janzend (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now