• 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

mmm I think I see whats up.

You have it set as RenderMap: min: -717, -647, max: 6257, 6260 to generate, and while testing how far the map went in dev mode I telported so far to see if the map would go and it generated a new map from a distance really far away.

Or am I wrong and you don't have a limit on the RenderMap?

 
Hey Alloc, new patch wants me to login to the webserver page...
Uh, yeah .. forgot to mention that :D

Implementing a basic authorization right now. Username is "admin", password is the same as for control panel.

mmm I think I see whats up.You have it set as RenderMap: min: -717, -647, max: 6257, 6260 to generate, and while testing how far the map went in dev mode I telported so far to see if the map would go and it generated a new map from a distance really far away.
Ooookay, was just going to ask how the heck you got a map that big ;)

Actually the coordinates in in game dimensions are minPos and maxPos, so it's -11472/-10352 to 100112/100160 ^^

Hadn't thought about that possibility. Just uploaded a new version that disables rendering of an overview image file if the map is larger than 10k*10k. That should allow you to use "rendermap".

 
Seems to be working now but will take hours, Is there a way I could get rid of the rendered map in my save files where I teleported too without killing the save files? maybe just make my own render blank again?

Also the CM command if enabled with cm 1 will players have access or only Admin?

 
Seems to be working now but will take hours, Is there a way I could get rid of the rendered map in my save files where I teleported too without killing the save files? maybe just make my own render blank again?
You would have to delete the proper region files. It shouldn't help much though as you probably only viewed little parts of the map. It won't take longer just for having a wide map, it only takes time for the chunks that were actually visited. So the real question is how much was visited at all ;)

The status indication won't give you any time estimation as it can have some x-coords done rather quickly while for others it may take a while, depending on how many chunks in Z direction were visited for the current X coord.

Also the CM command if enabled with cm 1 will players have access or only Admin?
Everyone, can't be changed atm ... tried to get it to work but that would require bigger rewrites of some stuff :(

 
Kind of sucks about the CM command but that's o.k.

Code:
640.515 RenderMap: 6944/111600 (6%)
642.443 RenderMap: 6960/111600 (6%)
^Started this right before my last post only at 6% yea will take hours lol 6960/111600 ROFL

Kinda hoping it don't take hours for the web page to load showing the map.

 
Kind of sucks about the CM command but that's o.k.
Yeah, when I started on that one I thought it would be possible to trigger for one client only ... Didn't turn out to work :(

But at least that way one can only enable it for a short time when it's needed so most people won't even notice it ;)

Code:
640.515 RenderMap: 6944/111600 (6%)
642.443 RenderMap: 6960/111600 (6%)
^Started this right before my last post only at 6% yea will take hours lol 6960/111600 ROFL

Kinda hoping it don't take hours for the web page to load showing the map.
Won't take that long for most of it ... I would assume that at least the last 90k will be done within seconds so it would be at ~7/20 =~ 35% ;)

 
From 20 minutes ago i'm now at.

Code:
1939.686 RenderMap: 10464/111600 (9%)
1947.282 RenderMap: 10480/111600 (9%)
The irony of it all lol

 
ok deleted everything and started fresh from frustration thinking i might of made a stupid mistake and giving a fresh take on it would help, ive done it so much lately that its getting pretty easy to do lately...

any way im still having the same problem, plus my fixed prefab not being fixed anymore lol, but im getting this

43.802 Web:Static:FileNotFound: /static/js/index.js

43.803 Web:Static:FileNotFound: /static/leaflet/leaflet.js

43.872 Web:Static:FileNotFound: /static/js/index.js

does this mean i dont have the file structure right because ive went over it several times and its just like you have it on your site, folders and files.... lol should have a zip file on there so people can just unzip a webserver folder right into their base dedicated directory. Anyway not sure if thats where i went wrong or not but i still have the red page with the coords box when i open it up

 
From 20 minutes ago i'm now at.
Code:
1939.686 RenderMap: 10464/111600 (9%)
1947.282 RenderMap: 10480/111600 (9%)
Well, if I'm right that's already about 50% of your "real" map :D

43.802 Web:Static:FileNotFound: /static/js/index.js43.803 Web:Static:FileNotFound: /static/leaflet/leaflet.js

43.872 Web:Static:FileNotFound: /static/js/index.js
This indeed looks like it just can't find the required files. Windows or Linux?

 
ok deleted everything and started fresh from frustration thinking i might of made a stupid mistake and giving a fresh take on it would help, ive done it so much lately that its getting pretty easy to do lately...any way im still having the same problem, plus my fixed prefab not being fixed anymore lol, but im getting this

43.802 Web:Static:FileNotFound: /static/js/index.js

43.803 Web:Static:FileNotFound: /static/leaflet/leaflet.js

43.872 Web:Static:FileNotFound: /static/js/index.js

does this mean i dont have the file structure right because ive went over it several times and its just like you have it on your site, folders and files.... lol should have a zip file on there so people can just unzip a webserver folder right into their base dedicated directory. Anyway not sure if thats where i went wrong or not but i still have the red page with the coords box when i open it up
Why is your folder named /static/??

I named mine /webserver based on what alloc said in his post.. Maybe that's your problem? Try renaming the folder /static to /webserver

 
@Lordicon: That error shows the URL relative to the host, it's not about the file path on the filesystem ;)

As the index.html etc are found the "webserver" folder itself is in the right place.

@Xyloscent: Just uploaded a new rev which also shows from where it tried to load the files on your disk so that could give a hint.

 
@Lordicon: lol i originally thought it was trying to call the files from a static folder so i created one and tried different structures trying to get that to work... it obviously didnt... :(

@Alloc: thanks, Im downloading and trying that now.

 
If you want to enable it make sure ControlPanelEnabled is set to true and put the folder webserver/ in the root of your 7dtd server installation.
Unless I did something wrong it saved the map dir and files in my saved game folder located at "\Saves\Random Gen\SERVER NAME" and not in the root at all.

 
Unless I did something wrong it saved the map dir and files in my saved game folder located at "\Saves\Random Gen\SERVER NAME" and not in the root at all.
Yeah, the map files are different for each save so they are saved within the save. But the common static webserver-files don't have to be in each save so they go to the games folder.

 
So I just copy the map files from the save to the webserver dir so it displays current map and then any new cords will be added as they pop up?

 
ok new patch new error format... here we go

Code:
22.595 Web:Static:FileNotFound: "/static/leaflet/leaflet.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/leaflet/leaflet.js"
22.597 Web:Static:FileNotFound: "/static/js/index.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/js/index.js"
22.738 Web:Static:FileNotFound: "/static/js/index.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/js/index.js"
22.787 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
22.848 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
 
So I just copy the map files from the save to the webserver dir so it displays current map and then any new cords will be added as they pop up?
Nope, don't copy anything. The webserver will access the map files from the save folder and the static files from the "webserver" folder.

Code:
22.595 Web:Static:FileNotFound: "/static/leaflet/leaflet.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/leaflet/leaflet.js"
22.597 Web:Static:FileNotFound: "/static/js/index.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/js/index.js"
22.738 Web:Static:FileNotFound: "/static/js/index.js" @ "C:/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDie_Data/../webserver/js/index.js"
22.787 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
22.848 Error in Web.HandleRequest(): No handler found for path "/favicon.ico"
The favicons are still ok and the others look ok too ... Did you check that the files are really in the place given in the error? You could try to use the "run" dialog from windows (Win+R) and paste the complete path of one of the files there and it should load it in an editor.

 
Nope, don't copy anything. The webserver will access the map files from the save folder and the static files from the "webserver" folder.
When are the static files created? I just ran all around my server trying to get them to generate but nothing happen in the files after saving or restarting server. I don't even have a static folder in /webserver

Here is my map I changed the color of the background.

http://thedecoy.net/index.php?page=map

 
Last edited by a moderator:
Back
Top