• 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Ā Or whomever else that can answer,
I'm not sure if this is the correct thread to post in but here we go:

I'm trying to look at the heatmap info. Double F8 works with debug mode enabled in SP, but it does not work on my dedicated server. Looking around online in various forums, etc, that seems to be the common theme.

Is there any way to manually go about pulling that data via a console command or reading the save files somehow? I did look around on tractickets and found this:Ā https://7dtd.illy.bz/ticket/147Ā (adding a layer to the alloc web map) which would be baller, but it seems that ticket didnt catch any traction.

 
As you noticed I haven't really looked into that, but I don't see why adding such a layer would be an issue. Just needs some code to pull that data and provide it to the web frontend. Though most likely it would only work in areas around online players as I think the data is stored with the chunks. Meaning the data is only available when those chunks are loaded which in turn is only around players. Will definitely keep an eye on that one, might get done in one of the next updates maybe :)

 
Hi there,

i installed "Alloc's server fixes" on my Deticated Linux Server and all Works fine include Webmap.

And for the first: Thank you for this nice Tool/Addon ^^

The map rendering to image files as people visit the different places works fine too.

Now my question:

Is there a way to render the complete map even if there were no players yet in unknown places?

Thanks in advance.

 
Last edited by a moderator:
Vanilla command "visitmap" (see its help for detaills). Note that it will create all chunks for the world so can increase the size of the save considerably.

 
There are major changes planned but not even remotely close to a point to announce a release timeline.

The current version should work just fine for the time being, at least not seen any reports of issues with 20.5 (other than possibly having to delete the data file when migrating from < 20.4).

 
I am having some issues with the map server resetting the players list. As a consequence I am losing a lot of valuable historic information regarding player usage etc. Any ideas? I have been using it for many years, it used to happen on the very rare occasion but, recently it has been occurring about once a week.

 
Hm, first time I've read such a complaint (other than some issues with the IDs being a bit of a nuiance). Not saying this could not be the case but I don't see how it would happen without at least an appropriate error/exception being logged at that point.

I am aware though that the current system for storing that data really sucks but I can promise it's definitely going to be different soon(TM) ;)

 
OK, cool. I'll wait until then. In the mean time I'll check the logs a bit more closely for any related items. Thank you for your response.

 
Hello alloc, ive been making a serverside app that scrapes the web data, grabs each person and there co-ordinates and compares it again my home area coordinates, and then moves them to either the indoor or outdoor discord channel.

it works well but its slower then i would like, so instead i wanted to go straight through the web api, but as i dont have the web api token im sort of stuck.

is there anyway i could get that web api token? or reset it?


any help would be greatly appreciated

 
Last edited by a moderator:
That token is something you set up yourself. Have a look at the "webtokens" console command for setting it up, then you just pass that data to the API requests.

 
That token is something you set up yourself. Have a look at the "webtokens" console command for setting it up, then you just pass that data to the API requests.
is there any documentation on this webapi, as i cant seem to find much about it that isnt CSM or catalyst.

 
is there any documentation on this webapi, as i cant seem to find much about it that isnt CSM or catalyst.
No, the only official "documentation" is the backend and frontend code of the mod.

Also note that with A21 that version of the mod will be deprecated (i.e. only supported in it's current state for A21, probably with A22 at latest will no longer work) as A21 will get a vanilla implementation. The first versions won't have the full featureset of my mod (anything requiring the persistency file is not yet supported) so that's why some people might want to keep running the old mod in parallel for the time being.

 
No, the only official "documentation" is the backend and frontend code of the mod.

Also note that with A21 that version of the mod will be deprecated (i.e. only supported in it's current state for A21, probably with A22 at latest will no longer work) as A21 will get a vanilla implementation. The first versions won't have the full featureset of my mod (anything requiring the persistency file is not yet supported) so that's why some people might want to keep running the old mod in parallel for the time being.
I have spent most of the day tearing it apart for my development and it works well

My friend and i have made an application that gets the player locations from the webapi and checks them against home coordinates and move the user either to the inside home channel(discord) or outside channel for a sort of faux positional audio setup. (we know mumble is almost here but we don't really want to move from discord)

We tested it tonight with 6 people and it ran flawlessly and took about 50ms once you crossed the boundary to move you to the inside channel.Ā 

We have intentions to break up the map into chunks and have hidden discord channels. Essentially just expanding what we've done.Ā 

Alloc is thereĀ  anyway you could share the source code for the command function mod and command ext?Ā 

As I spent today rummaging around the Web api, I would be more then happy to put that knowledge to use and write some documentation up.

 
(we know mumble is almost here ...)
Oh, was that announced already? But you can actually use it now already if you want, it's available as a mod for A20 ;)

Alloc is thereĀ  anyway you could share the source code for the command function mod and command ext?Ā 
Not sure what exactly you mean. All of the mod's source is available through the as linked from the doc page:Ā https://7dtd.illy.bz/wiki/Server fixes

If you meant something else please let me know :)

 
Seems likeĀ  persistentcontainer.bin is getting corrupted at server restartsĀ 
Thanks for the reportĀ šŸ‘

Do you happen to have a log? Works just fine in my local tests.

Also, did you make sure to use a new save - i.e. no old bin file in the folder from old 7D or an old mod version?

 
Back
Top