Jump to content

Improvements for the dedicated server


Alloc
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 5 months later...

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...

Edited by HOSH (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 3 months later...
  • 2 weeks later...

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)?

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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:

Quote

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. 

 

Edited by Dead Meat (see edit history)
Link to comment
Share on other sites

  • 2 months later...
On 1/25/2021 at 6:18 AM, Dead Meat said:

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

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

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

 

On 1/18/2021 at 6:19 PM, Cadamier said:

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.

 

On 1/24/2021 at 11:18 PM, Dead Meat said:

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?

 

 

On 5/5/2021 at 8:13 AM, Szynsz said:

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.

Link to comment
Share on other sites

  • 1 month later...

@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?

 

Link to comment
Share on other sites

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):

<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>

 

Link to comment
Share on other sites

Of course it will be at least maintained (hopefully extended somewhat ;) ). At some point most of it will probably move to the core game, with just minor parts staying as a mod to show how to do some stuff in mods.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...