• 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

Alloc,

I'm at a stuck point in compiling the fixes myself, The latest svn head(rev223) says "Source file 'src\CustomCommands\webstat.cs' could not be found" when compiling in Visual Studio 2013.

Also if I change how that file is handled (compile -> do nothing) a few other error messages show up.

"The type or namespace name "ConsoleCommand" could not be found"

"The type or namespace name "ConsoleSdtd" could not be found"

"The type or namespace name "InventoryField" could not be found"

Do you have any pointers at what is causing it and/or how to fix it?

Thanks in advance.

 
Last edited by a moderator:
The latest svn head(rev223) says "Source file 'src\CustomCommands\webstat.cs' could not be found" when compiling in Visual Studio 2013.
Just remove the reference, not required.

"The type or namespace name "ConsoleCommand" could not be found""The type or namespace name "ConsoleSdtd" could not be found"

"The type or namespace name "InventoryField" could not be found"
You didn't supply a deobfuscated AC#.dll as reference (i.e. read the readme found in the "7dtd-binaries" folder and the build yourself notes on the wiki ;) ).

 
Any major changes for this mod with U5 update?

Hoping its all relatively the same so updates for it will be quick to do.

 
From the perspective of those that modified this thing: Probably quite a few. Some stuff already moved to the core, hope to move even more of it. So some of the API changed etc.

My version should be out at the same time as A11 though.

 
Would you say your changes of moving more of it to the core is still going to leave something that useful for c# modders or not?

Because this was the most useful api, provided hooks, among other things that just made it easier to build on from etc

Will see what the damage is or move on.

 
Would you say your changes of moving more of it to the core is still going to leave something that useful for c# modders or not?
Because this was the most useful api, provided hooks, among other things that just made it easier to build on from etc

Will see what the damage is or move on.
Some things should get easier (like adding commands) but I want to get it in a state that does not require any engine patching. Deobfuscation obviously still has to be applied if you want to access stuff that's originally obfuscated from your own code.

 
You didn't supply a deobfuscated AC#.dll as reference (i.e. read the readme found in the "7dtd-binaries" folder and the build yourself notes on the wiki ;) ).
I did supply the 7d2d-binaries folder with all of the required dlls, but when obfuscating the AC#.dll i get errors and then a "successful" at the end.

like so:

ERROR : Unable to load the patcher NamePatcher :

ERROR : System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\NamePatcher.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

File name: 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\NamePatcher.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

at System.Reflection.Assembly.LoadFrom(String assemblyFile)

at DeobfuscateMain.Deobfuscator.Main(String[] args)

ERROR : Unable to load the patcher ManualDeobfuscator :

ERROR : System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\ManualDeobfuscator.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

File name: 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\ManualDeobfuscator.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

at System.Reflection.Assembly.LoadFrom(String assemblyFile)

at DeobfuscateMain.Deobfuscator.Main(String[] args)

ERROR : Unable to load the patcher NetworkPatcher :

ERROR : System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\NetworkPatcher.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

File name: 'file:///C:\Users\Kenneth Young\Desktop\7d2d mods\Deobfuscate-7dtd_pre0.4.3\patchers\NetworkPatcher.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

at System.Reflection.Assembly.LoadFrom(String assemblyFile)

at DeobfuscateMain.Deobfuscator.Main(String[] args)

 
Last edited by a moderator:
Alloc, anything I can do to improve the performance of the webserver map? The game map is 3-4 months old, and it's gotten to the point of being barely useable, taxing both clients and server.

 
Alloc, anything I can do to improve the performance of the webserver map? The game map is 3-4 months old, and it's gotten to the point of being barely useable, taxing both clients and server.
Which clients? The game clients?

Also, is it viewing the webpage that's causing the problems or is it when no one is viewing it (i.e. is it the server or the actual rendering of the images)?

 
We also have issues with our server map, which has grown over several months now. I use my Browser and Webmod to access the map. but it is at a point now, that makes is nearly impossible to move from the center to show outer regions, or zoom in/out without the map becoming unresponsive, or losing connection and have to reload.

It is not an issue of the server itself, since my other 2 "younger" servers with smaller maps and fewer map informations have no issues to load fast and properly. It also might not be an issue of the maps size - ours is not too big, but probably overloaded with informations from all the players that have ever been on this map since it has started.

 
Oh, right, what you guys *could* try if you want to: Remove (rename whatever) the AllocsPersistentData.bin or whatever its name was (stop server before, restart after of course). That will obviously kill all the data in there, i.e. information about players that are not online currently. But it will also remove all the map markers for offline players and stuff and thus *might* help. Not sure if that's really a problem though, never had a leaflet-map with like 10k of markers or whatever you guys got by now ;)

 
Just FYI, I ran updatescripts and it does exactly what I expect, and tells me I need to update the engine to build 576370.

Unfortunately, when I run updateengine, it shows "Engine is already at the newest build (local:480993, remote: 1)."

Going to try manually downloading it from Steam now.

 
Anyone else having issues with the "tele" command? I have the latest Alloc's fixes for A11, and when I type tele x y z, it just teleports me to the location I'm currently standing at. Same thing when I try "tele username username". It looks like it teleports (the screen blinks) but I haven't moved at all.

 
I have added the two A11 Alloc file fixes into our server but now the web based map does not work. Happening to anyone else or anyone else have a solution for it?

 
Hey fella's, is there anything different about installing allocs fixes on A11? Everything was working great until I updated last night...now the green light is showing for the fixes, however i'm not able to "Give Players" any items. I have the latest SM and I believe the latest fixes. Any help appreciated.

Thanks

 
I'm confused, wanted to download the new version of Alloc's Server Fixes, but I can't find the 7dtd-server-fixes.dll or the Assembly-CSharp.patched.dll -.-

NVM...found it :)

 
Last edited by a moderator:
The archive that's linked on the wiki page includes everything you need. If you simply ignore some of the content parts of this won't work as it's split up now into a core module and "Mods" ;)

 
Back
Top