• 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

Yep, but use a subdomain. map.yourdomainname.com or something.
So I’ve had limited success getting this working using mod rewrite in iis and it’s functional except for using the steam login option. That is also redirected so I have to figure out how to redirect just the map and not the login portion.

 
Missed some messages ... Well, "IIS" ... get a real server :p

No, seriously, think with rewriting this could be an issue. I *suppose* your rewrite part is fine but the server tells Steam's OpenID page to redirect to the wrong address afterwards. That's why I said reverse proxy: The mod will know about the original public address in that case and can properly instruct the OpenID page where to redirect to afterwards.

*If* that is the issue you run into you'd need a modified mod ( :D ) that has a hardcoded redirect target for OpenID. Or (can't stress this enough ;) ) look into using a reverse proxy. No idea if IIS supports this though.

 
Or alternatively, don't care about the steam login part at all, and set permissions for everyone to view.

The steam part is only handy if you want person a to see lcb's but person b not to, etc.

 
Missed some messages ... Well, "IIS" ... get a real server :p No, seriously, think with rewriting this could be an issue. I *suppose* your rewrite part is fine but the server tells Steam's OpenID page to redirect to the wrong address afterwards. That's why I said reverse proxy: The mod will know about the original public address in that case and can properly instruct the OpenID page where to redirect to afterwards.

*If* that is the issue you run into you'd need a modified mod ( :D ) that has a hardcoded redirect target for OpenID. Or (can't stress this enough ;) ) look into using a reverse proxy. No idea if IIS supports this though.
Believe me, if not for my Empyrion servers and a couple others without Linux support, I wouldn’t be bothering with Winblows...

I think I’m confusing terms as well. I don’t know much about the Apache version but from what I’ve read so far on Windows I’ll have to use Waamp or a similar package. As Guppy has said maybe just adjusting permissions would be the better option but I’d still would like to learn for later use.

Or alternatively, don't care about the steam login part at all, and set permissions for everyone to view.
The steam part is only handy if you want person a to see lcb's but person b not to, etc.
Think I might follow this suggestion if I end up not smart enough to configure properly. :fat:

 
From a quick check with google it sounds like what you're doing with the rewrite module from IIS actually is a reverse proxy setup? If so, sounds like setting preserveHostHeaders might help, though it also seems to have some drawbacks, depending on what else is running on your IIS: https://serverfault.com/questions/936922/setting-up-iis-reverse-proxy-to-preserve-host-headers
Thanks, I’ve not had the time to get back to it yet. I hate working for a living sometimes. Yes, it’s supposed to work as a reverse proxy but as with most things windows, it mostly works but not 100 percent. I’ll look at the headers to see what’s up. Be back after some testing.

 
When going through the setup I noticed the config.xml does not have the same items under server settings that the serverconfig.xml that comes with the game.  Wondering if adding them to the xml will add them or if some of them are blocked by the server fixes?

Setting up a Co-op server for about 10-12 players using 12k Nitrogenerated map.

Particularly these entries:


    property name="BloodMoonFrequency"             value="7"                <!-- What frequency (in days) should a blood moon take place. Set to "0" for no blood moons -->
    property name="BloodMoonRange"                 value="0"                <!-- How many days can the actual blood moon day randomly deviate from the above setting. Setting this to 0 makes blood moons happen exactly each Nth day as specified in BloodMoonFrequency -->
    property name="BloodMoonWarning"               value="8"                <!-- The Hour number that the red day number begins on a blood moon day. Setting this to -1 makes the red never show.  -->


    property name="LandClaimCount"                 value="5"                <!-- Maximum allowed land claims per player. -->






Thanks  and PS sorry for breaking forum post...

 
Last edited by a moderator:
Does it load and you just don't see anything on the map (which would mean you need to set your permissions), or do you get a 404 error when trying to load the map (which would likely mean port forwarding or something silly)?

 
When I run the web panel map - does it mean that I have to reload the mod when there isn't controls on the right side for enemies, animals and players online, players off line?  Cause I've reloaded it 5 times already lol

 
Can someone describe for me how to access the server map? Assume I know nothing beyond finding the files for 7dtd and 7dtd dedicated server on my computer because I have no idea where the mistake is.

Windows 10. Chrome browser. A19.3(b6). No mods apart from Allocs.

I've downloaded most recent Allocs update. I've gone to both http://174.85.38.115:8082 and http://174.85.38.115:8082/static/index.html but the result for me is just a blank white page. This generates the following log:

2021-01-24T13:45:25 73840.957 INF Error in Web.HandleRequest(): System.BadImageFormatException: Method has zero rva
  at .HandleRequest (System.IAsyncResult _result) [0x00073] in <563c14ed088347ba9435fd8ab8c282fe>:0 


I don't use a server manager because CBSM seems to have been discontinued since the summer, RAT has had some sort of registry error for a few years (current version produces the same error), and the rest seem to be for Linux users. 

 
Last edited by a moderator:
Can someone describe for me how to access the server map? Assume I know nothing beyond finding the files for 7dtd and 7dtd dedicated server on my computer because I have no idea where the mistake is.

Windows 10. Chrome browser. A19.3(b6). No mods apart from Allocs.

I've downloaded most recent Allocs update. I've gone to both http://174.85.38.115:8082 and http://174.85.38.115:8082/static/index.html but the result for me is just a blank white page. This generates the following log:

I don't use a server manager because CBSM seems to have been discontinued since the summer, RAT has had some sort of registry error for a few years (current version produces the same error), and the rest seem to be for Linux users. 


Server Tools by Dmustanger and ObsessiveCompulsive is an excellent server manager. Very easy to set up and is local to your server.

http://174.85.38.115:8082/static/index.html is right as long as the port is correct, usually it is control panel +2, also you must set the correct permissions for it to work. This is a link to mine, check it out - http://45.121.208.11:26905/static/index.html

 
Sorry, I was no longer subscribed to this one either (since the forum update most likely) :(

When I run the web panel map - does it mean that I have to reload the mod when there isn't controls on the right side for enemies, animals and players online, players off line?  Cause I've reloaded it 5 times already lol
When you see the web page at all (ie. background etc) and don't have any controls for the map showing it means you don't have permissions to access it. So either you are not logged in to the map, or you are and have not set your permission level to 0 or you want anyone without logging in to see the stuff but have not set that access level (2000) in the webpermissions.

I've downloaded most recent Allocs update. I've gone to both http://174.85.38.115:8082 and http://174.85.38.115:8082/static/index.html but the result for me is just a blank white page. This generates the following log:
Do you still have this issue?

Hello,

There is possible to add see traders on webmap? I don't see that option in webpermission.xml
Might add that in the future but it's currently not supported with the vanilla map.

 
@Alloc  Is there a way you are aware of  to solve a webmap issue I am having?

I run a few servers, each with their own webmap and port etc, now the web maps for each server used to be able to be viewed until I went over to ssl security for my site.  Now for whatever reason the map will not show up when it's used on a https:  all port connections go to the right machines - the web ports for each server are different and the router is forwarding to the correct machines for the given web ports... 

Any ideas as to why this might be happening or any hints on how I could get the page to 'link' and display from within my apache 2 webserver which runs on another machine?

 
Would need more details on the setup. Are you talking about an Apache reverse proxy in front of the webmaps? If so that should work just fine, that's my regular setup too with SSL. What's the exact error? No connection to the page at all? Only the map not showing?

For reference, this is my current Apache proxy config (different host than the game server, so 10.0.0.70 is the game server's internal IP):

Code:
<VirtualHost *:443>
        ServerName map.example.com

        RequestHeader set X-Forwarded-Proto "https"

        ProxyPass /.well-known !
        ProxyPass / http://10.0.0.70:8082/ retry=0
        ProxyPassReverse / http://10.0.0.70:8082/

        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>

 
Back
Top