Native Linux server (with management scripts)

While your at it, the chat hooks could use entid/steamid passing as catching unescaped strings as playernames is quite challenging and then filtering ;) them back to parameters for commands like teleportplayer.
So could you give an example how a console command would be executed on the user "[XXX] some name" because it doesn't work plainly [XXX] some name or with quotes "[XXX] some name", nor stripped of spaces "[XXX]somename" or escaped "\[XXX\]\ some\ name" or "[XXX]\ some\ name" or a combination of them.

Currently I have to strip the playername from the chat message of special chars, then do the same for the lpe playernames and finally compare them with each other. And finally use the resulting lpe entid or steamid.

 
Last edited by a moderator:
I redid the patching process because I think that I mightve made an error last time when switching dlls.

I am now getting the following error:

2014.09.07 19:15:07: NullReferenceException: Object reference not set to an instance of an object2014.09.07 19:15:07: at cl00b6.md0007 (System.String _bundleName, System.String _objName) [0x00000] in <filename unknown>:0

2014.09.07 19:15:07: at GameManager.Awake () [0x00000] in <filename unknown>:0

2014.09.07 19:15:07: Unloading 5 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

2014.09.07 19:15:07: Unloading 134 unused Assets to reduce memory usage. Loaded Objects now: 5781.

2014.09.07 19:15:07: Total: 6.349000 ms (FindLiveObjects: 0.290000 ms CreateObjectMapping: 0.155000 ms MarkObjects: 5.589000 ms DeleteObjects: 0.219000 ms)
Could this have anything to do with the sources not being 100% fresh at either the deobfuscator or the fixes?

The only thing I am doing btw is building new commands. Do I even have to replace the assembly-csharp then or wouldn't it just suffice to swap the fixes dll?

 
The AC# only has to be replaced when you change something that is called by one of the hooks added by the patcher.

Those errors look similar to what you get when running the server AC# on a client build ... but as you patch your AC# yourself that shouldn't be the problem.

Sorry, but I can't debug custom builds, but I will upload the latest code soon™ ;)

 
now it works :D

you should change the wiki to have "/home/sdtd/engine/webserver".. it is afteral the default install path isn't it

that "cd /path/to/7dtd/game/folder" is just confusing as hell

 
The AC# only has to be replaced when you change something that is called by one of the hooks added by the patcher.
Those errors look similar to what you get when running the server AC# on a client build ... but as you patch your AC# yourself that shouldn't be the problem.

Sorry, but I can't debug custom builds, but I will upload the latest code soon™ ;)
And I would never expect u to :D . But that hint could be helpful, swapping just the fixes dll did seem to work, except for the error when shutting down. But I will have another look in any case. Looking forward to the latest code :) .

 
you should change the wiki to have "/home/sdtd/engine/webserver".. it is afteral the default install path isn't it
For the Linux stuff: Yeah. But the mod isn't for the Linux server but for any server.

 
So could you give an example how a console command would be executed on the user "[XXX] some name" because it doesn't work plainly [XXX] some name or with quotes "[XXX] some name", nor stripped of spaces "[XXX]somename" or escaped "\[XXX\]\ some\ name" or "[XXX]\ some\ name" or a combination of them.
Currently I have to strip the playername from the chat message of special chars, then do the same for the lpe playernames and finally compare them with each other. And finally use the resulting lpe entid or steamid.
Well, yeah, for chat message hooks this is probably the way it is right now ... Currently no way around, sorry.

 
Hello friend... look this error: "/usr/local/lib/7dtd/common.sh: line 186: 9716 Killed nc 127.0.0.1 $TEL_PORT 0<&3" whats problem?

 
Hello friend... look this error: "/usr/local/lib/7dtd/common.sh: line 186: 9716 Killed nc 127.0.0.1 $TEL_PORT 0<&3" whats problem?
More context? E.g. what did you do before that happened?

 
So how does one enable remoteCommand hooks...?

Apparently it is not enough with the file

Code:
-r-xr-xr-x  1 sdtd sdtd  896 Sep  8 19:46 test.sh*
and in in-game console

Code:
cp add test 1
cp add test.sh 1
cp add /test 1
and in in-game console

Code:
test 1 2 3
test.sh 1 2 3
/test 1 2 3
** ERROR: unknown command 'test'

** ERROR: unknown command 'test.sh'

** ERROR: unknown command '/test'

 
Last edited by a moderator:
What exactly were you trying to achieve? That hook is only for when a remote client successfully executes a real command. It does not work for adding commands to the game if that's what you were trying to do. If not I just don't exactly get what your two codes should show me ;)

 
Yes I try to add a console command... =\

Somehow I got fixated by the chat hooks enabling adding chat commands...

Alloc, pretty please... ;)

 
trying to setup the VS with the project.. got the

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\Assembly-CSharp.dll (deob version)

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\EasyAntiCheat.Client.dll

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\EasyAntiCheat.Server.dll

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\README.txt

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\SteamworksManaged.dll

F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\UnityEngine.dll

what am I missing... as I get these errors

Error 1 The type or namespace name 'ConsoleCommand' could not be found (are you missing a using directive or an assembly reference?) F:\7dtdserver\7dtd\binary-improvements\7dtd-server-fixes\src\CustomCommands\GetTime.cs 5 25 7dtd-server-fixes
 
Im confused, Just started using during the 9.2 release

Im using centos 6.5// had to do the manual install the script install would make my centos unusable

How do I update to 9.3 from 9.2?

 
This error appeared after 9.2 update... when I type sudo 7dtd.sh status MyInstance... The hooks also stop working.
Hm, no idea how that could happen. Not even sure what exactly happens there ;)

Could it be your machine is running out of free memory?

trying to setup the VS with the project.. got the...

what am I missing... as I get these errors
Deobfuscated AC#.dll from where?

Also please post server fixes related questions in the thread on them. Does help the organization a bit ;)

How do I update to 9.3 from 9.2?
run the updatescripts and updateengine commands and you should be done :)

 
Deobfuscated AC#.dll from where?

Also please post server fixes related questions in the thread on them. Does help the organization a bit ;)
dunno which other thread you mean?

the Assembly-CSharp.dll from the 7dtd 9.3 folder put in the Deobfuscate-7dtd_pre0.3.1 >Assembly-CSharp.deobf.dll renamed to Assembly-CSharp.dll F:\7dtdserver\7dtd\binary-improvements\7dtd-binaries\Assembly-CSharp.dll (deob version)

 
Ran updatescripts and it broke my install

The same way it breaks when I use the auto Install

Get os screen saying a bunch of /etc/rc.d not found errors

Any ideas why this would break on centos?

 
Back
Top