• 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 - do/have you worked with the FrontRunnerTek server manager? I'm not really sure if I have things working quite right with it... it shows a green light by the fixes... but when I hit Verify Fixes, nothing seems to happen?
I'm currently running FRT SM and that verify has never worked for me. Everything about Alloc's fixes seems to run ok without that. FRT needs to get in the game and update this handy manager or release the source code so I can fix it. :chuncky:

 
Hey Alloc! Any chance we'll see an update this weekend? Maybe? Really looking forward to the changes you've made with the map and the in-game time display. I saw that you updated that ticket on your site which is beyond awesome that you took the time for my request.

REALLY can't wait for se @ x y z. It'll come in time I'm sure.

(Looks around for Alloc's tip jar.)

 
Alloc,

Since A12, when server (46 slots) is running for a couple of days, it crashes, but the server process itself doesn't disappear.

I get a message about "too many heap allocations". When i press "OK" the server.exe goes offline. When this message appears the server doesn't let people in, the RAM usage is at 0% so i guess it's some kind of crash.

I managed to capture one crash.log with dump, this is in the log (not whole of it)

Unity Player [version: Unity 5.1.1p3_369fd983d9e1]
mono.dll caused an Access Violation (0xc0000005)

in module mono.dll at 0033:3e96085d.

Error occurred at 2015-07-21_031324.

C:\gameserver\7DaysToDieServer.exe, run by Administrator.

69% memory in use.

32631 MB physical memory [10061 MB free].

42956 MB paging file [20802 MB free].

134217728 MB user address space [134197029 MB free].

Read from location 00000000 caused an access violation.

Context:

RDI: 0x14cb0550 RSI: 0xa183b730 RAX: 0x00000000

RBX: 0x5e0265b0 RCX: 0x14cb0550 RDX: 0x5e0265b0

RIP: 0x3e96085d RBP: 0x00000001 SegCs: 0x00000033

EFlags: 0x00010246 RSP: 0x0071c2f0 SegSs: 0x0000002b

R8: 0x0f826a30 R9: 0x00000001 R10: 0x00000000

R11: 0x0071c358 R12: 0x5e0265b0 R13: 0x5e0265b0

R14: 0x00000001 R15: 0x00000020

Bytes at CS:EIP:

48 8b 00 8b 70 28 c1 ee 0b 83 e6 01 75 0d 48 8b
 
...Since A12, when server (46 slots) is running for a couple of days, it crashes, but the server process itself doesn't disappear.

...
Sorry, don't see the relation to the server fixes here.

@All:

New version of the mod released. Probably the most notable new features are Steam authentication for the webmap and permissions. So you can now define who's allowed to view what part, including anonymous users or non-admin but logged in users (see release notes and the Integrated Webserver page for more details).

Web styling isn't really nice, but it's all work in progress and I had even more and worse colors on my dev stuff to properly build the page ;)

More stuff on the page will follow.

 
Sorry, don't see the relation to the server fixes here.


@All:

New version of the mod released. Probably the most notable new features are Steam authentication for the webmap and permissions. So you can now define who's allowed to view what part, including anonymous users or non-admin but logged in users (see release notes and the Integrated Webserver page for more details).

Web styling isn't really nice, but it's all work in progress and I had even more and worse colors on my dev stuff to properly build the page ;)

More stuff on the page will follow.
Thanks Alloc! Going to modify my old map (totally had it styled the way I wanted it lol) and try to add the Time / Equipment field in. I figure if I use the new files then simply replace the index.html and styles.css it "might" work. Either way, thank you very much for adding in those functions!

 
I figure if I use the new files then simply replace the index.html and styles.css it "might" work. Either way, thank you very much for adding in those functions!
Nah, both stylesheet and index are important for the new layout. But I try to make things more cleaned up so in future it should also be easier to change the styling ;)

 
Nah, both stylesheet and index are important for the new layout. But I try to make things more cleaned up so in future it should also be easier to change the styling ;)
Sure man. The only thing I honestly want to do is (I know you spent a lot of time on it) remove/hide the admin panel. On the server I host (PvE) I let anyone see locations / inventories so I honestly won't really use any of the permission settings, and the admin panel takes up a good portion of the left hand side now.

I'm sure with time I can figure out how to style it exactly how rev 243 is, and display the time on the top of the minimap (sort of like CBSM does it) - Either way, I really do appreciate all the work you're putting into this!

One quick question - How come these Server Fixes aren't baked into the game already? :p Totally seems like this is something -everyone- should have by default.

 
remove/hide the admin panel
Shouldn't be much of an issue ... easiest way (though hacky) would probably be to set the navbar-width to 0 and content left to 0.

... and display the time on the top of the minimap ...
Meh, even had a control just for this at one point but deleted it as I moved it over to the nav bar :D

Ok, got it in my backups, attaching file. Rename extension to JS, add it to the index.html and in the map.js where all the controls are created also create this one.

How come these Server Fixes aren't baked into the game already?
Basically two reasons: It requires changes to the game (as e.g. I'm currently storing user data a second time for random access) and also it's easier to update this way whenever I have the time to without requiring a new game build. And a third but less important reason is that those mods can also be seen as examples for the mod interface of the game.

leaflet.control.gametime.txt

 

Attachments

Hi Alloc, so after I type following two commands at console,

webpermission add web.map 2000

webpermission add webapi.getstats 1000

The map is open for the public. However, my players told me they cannot view the player movement, player online, land claim block and all other players static stuff after login with the steam account. When i login in with my account, the player static works for me. I assume that works for me only. Am I missing some steps?

 
"webpermission list" and you'll see what's there. Also note that while 2000 means visible to anyone (even without logging in) 1000 means only those that logged in as described on the wiki page ;)

 
"webpermission list" and you'll see what's there. Also note that while 2000 means visible to anyone (even without logging in) 1000 means only those that logged in as described on the wiki page ;)
Thanks that fix my problem! ^_^

 
Alloc, I'm getting this error in telnet:

Code:
2015-07-28T08:41:17 643.519 INF Web:Static:FileNotFound: "/static/index.html/" @ "C:\bluefang\servers\server356\Mods\Allocs_WebAndMapRendering/webserver/index.html/"
 
Alloc, I'm getting this error in telnet:
Code:
2015-07-28T08:41:17 643.519 INF Web:Static:FileNotFound: "/static/index.html/" @ "C:\bluefang\servers\server356\Mods\Allocs_WebAndMapRendering/webserver/index.html/"
Looks like a wrong request (file + terminating slash) is sent. Hard to tell why that should happen but this is browser side, not server side.

 
Also, can you possibly add getplayersonline* version of the other commands? Like getplayersonlinelocation or getplayersonlineinventory?

 
Also, can you possibly add getplayersonline* version of the other commands? Like getplayersonlinelocation or getplayersonlineinventory?
What would those be supposed to do?

 
What would those be supposed to do?
Well, the api is exponentially faster than telnet, which would be perfect for server managers.

For example, getplayerslocation lists ALL players that ever joined the server. A server manager program would need the current online players location.

 
Yeah, but what is getplayersonlineinventory? Inventory of all online players at once? Wonder what the use would be :)

The API will get updated over time anyway. Currently getplayersonline/offline aren't even used in the frontend, all three have different content etc. Gotta get cleaned up and then maybe add parameters to control what is to be retrieved instead of getting all at once (e.g. select whether it should show online, offline, both, show banned etc).

 
Back
Top