Author Topic: (Cheat protection) Server crashes when adding a new map.  (Read 2083 times)

0 Members and 1 Guest are viewing this topic.

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
(Cheat protection) Server crashes when adding a new map.
« on: March 30, 2012, 11:50:39 AM »
Hello Devs,

When we add a map to a running server, the server will crash with:

Code: [Select]
<11:40:31> Cheat protection triggered: mods/mwll/Game/Levels
<11:40:31> Your MWLL installation has modified files.
Please revert them to their original state to play.
The game will now exit.

That is really kinda bad.
Reason why is that sometimes you like to change the levelrotation and add(upload) a new map to the server. Prior before a crash is happening.
Is there a way that you can code this to prevent this?


Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline MerfMerf

  • Lead Developer
  • Star Colonel
  • *
  • Posts: 1779
  • l33tp0intz: +90/-0
  • Clan Smoke Jaguar, 331st Feral Fangs
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #1 on: March 30, 2012, 01:36:45 PM »
How erectly exactly are you uploading (and when I suppose? During server running?)?
It is perfectly possible to add community maps for instance to a server without it triggering any cheat-protection.

You would have to supply a bit more detail about what you are doing.

/Merf - Specifics please.

[edit] Spelling, but kept for hilarity.
« Last Edit: March 30, 2012, 01:45:49 PM by MerfMerf »

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #2 on: March 30, 2012, 01:55:38 PM »
How erectly are you uploading (and when I suppose? During server running?)?
It is perfectly possible to add community maps for instance to a server without it triggering any cheat-protection.

You would have to supply a bit more detail about what you are doing.

/Merf - Specifics please.

Alright here are the steps I take.

1. Downloading the map from MWLLMaps.
2. Uploading that ZIP to our redirect for the "net_mapDownloadURL".
3. Extracting the content of the ZIP file.
4. Uploading the content to :  /CrysisWars/Mods/mwll/Game/Levels/Multiplayer/TC of the dedicated server. (Of course it depends on gamemode/map)
5. Server crashed and gives that error in the server.log.

We have been doing this for years for Crysis Wars and now it seems that is the problem.
Normally we could upload a custom map and we don't have to restart the server.  We just had to restart the server manually or wait for the server to crash.
By that means after the crash the map(s) is 'Live'.

Why is this in the cheatprotection? I don't see a reason why the levels needs to be checked by the Cheatprotection.
Hackers/Cheaters can not edit the levels as they have to redownload it due to level/map mismatch.

Lol @ [edit] "Spelling, but kept for hilarity." When I translate that word into Dutch, it mean like "candle straight" :D
 

Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline MerfMerf

  • Lead Developer
  • Star Colonel
  • *
  • Posts: 1779
  • l33tp0intz: +90/-0
  • Clan Smoke Jaguar, 331st Feral Fangs
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #3 on: March 30, 2012, 02:01:30 PM »
Now I understand your issue. Thank you for the clarification.

/Merf -  :)

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #4 on: March 30, 2012, 02:04:35 PM »
Now I understand your issue. Thank you for the clarification.

/Merf -  :)

Thank you for your time and reply sir :)

I know it is not a big deal, but it is a "luxery" to work this way and you can step away from the server and it would crash afterall.
I am not 100% sure, but maybe the same for the "levelrotation" xml file.

Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline SJ SaKhan Wolf

  • Moderator
  • Star Captain
  • *
  • Posts: 894
  • l33tp0intz: +125/-33
  • Cheese!
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #5 on: March 30, 2012, 02:43:48 PM »
Now I understand your issue. Thank you for the clarification.

/Merf -  :)

Thank you for your time and reply sir :)

I know it is not a big deal, but it is a "luxery" to work this way and you can step away from the server and it would crash afterall.
I am not 100% sure, but maybe the same for the "levelrotation" xml file.

Have you tried adding new maps without the sever running?
My milk shakes!

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #6 on: March 30, 2012, 02:47:14 PM »
Now I understand your issue. Thank you for the clarification.

/Merf -  :)

Thank you for your time and reply sir :)

I know it is not a big deal, but it is a "luxery" to work this way and you can step away from the server and it would crash afterall.
I am not 100% sure, but maybe the same for the "levelrotation" xml file.

Have you tried adding new maps without the sever running?

Of course that would work/ is working, but to change them "on the fly" gives more options.
Now if the server of full of players, you can upload other maps and after a crash they have a fresh levelrotation with the ones added.
Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline (TLL)KitLightning

  • Resident Necromancer
  • Moderator
  • Living Legend
  • *
  • Posts: 6012
  • l33tp0intz: +524/-2
  • πάντα ρει, και ουδέν μένει
    • The Living Legends
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #7 on: March 31, 2012, 09:45:32 AM »
5. Server crashed and gives that error in the server.log.

Only once have I been getting a cheat protection err from uploading a custom map. Only thing to do there was to delete the map and upload it again, somewhere along the upload process it may have been corrupted activating the protection.

... or wait for the server to crash.

Thats so lazy XRayXI ::)

Now if the server of full of players, you can upload other maps and after a crash they have a fresh levelrotation with the ones added.

It isn't advisable to upload content to a live server imho. You never know what will happen when uploading to a running system.

BTW don't you use a web-interface/FTP to upload the maps by? Only thing else is to reconfigure the rotation file and overwrite the old. Tops 3-5 mins work. I use FTP that I have stumbled upon issues where maps over 100mb stall on uploading or simply gets dumped in the Levels folder without being extracted, when using the web-interface. Though it takes the same amount of time and clicky-clicky.
   

                 BUG Reports                                    Technical Issues                                       Install Errors

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." ~Albert Einstein
                                     "It'll take time to restore chaos" ~George W. Bush

Offline Cygma

  • MWLL Developer
  • Star Colonel
  • *
  • Posts: 1498
  • l33tp0intz: +65/-1
    • 7th Regiment Wolfs Dragoons
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #8 on: March 31, 2012, 06:46:27 PM »
Just to clarify: From what i see in the OP it's not crashing; instead it is exiting cleanly. Adding maps to a running server is not supported.
<Insert cool content here>

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #9 on: March 31, 2012, 06:56:08 PM »
Just to clarify: From what i see in the OP it's not crashing; instead it is exiting cleanly. Adding maps to a running server is not supported.

Thank you guys you very much for the clarification.
But yes I have found a workarround to upload them in a temporary folder of the server. Uploading takes time and now I just have to move the maps/levels.
Same goes for the levelrotation edits?

Btw, one question that remains unanswered in a post that I made a few months back.
If the server is crashing, do you guys get the crash report automaticly? Or do I need to rename "mwll_debug.dll" to "mwll.dll" that you guys recieve it?
Although I am not sure if the auto-send option works on a dedicated/rent server.

Again, thank you kindly.


Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline Cygma

  • MWLL Developer
  • Star Colonel
  • *
  • Posts: 1498
  • l33tp0intz: +65/-1
    • 7th Regiment Wolfs Dragoons
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #10 on: March 31, 2012, 07:00:40 PM »
You need to use the debug dll (e.g. by renaming it to mwll.dll) and the autosend option (which works fine for the Mechwars servers).
<Insert cool content here>

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #11 on: March 31, 2012, 07:04:17 PM »
You need to use the debug dll (e.g. by renaming it to mwll.dll) and the autosend option (which works fine for the Mechwars servers).

If that helps you guys to improve the stability I can do that asap. I love to help.
Maybe I should have done that sooner, but heck it is never to late :)

Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline XRayXI

  • Recruit
  • *
  • Posts: 159
  • l33tp0intz: +17/-0
  • Senior Admin >XI<
    • Xtreme Idiots
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #12 on: April 13, 2012, 02:59:54 AM »
I have been working on some servers today.

I tested the rename on the debug dll, but the server comes up and within 2 seconds the server is down.
Side note: We run the 64 bits version on of course a 64 bits OS.
Formal Admin/ Moderator of the Patriot SSM website(closed). XI = Xtreme Idiots (.com) running: BF3,COD2, COD4, COD5, Minecraft and Crysis Wars.
>XI<; Mapping, Modding, Flowgraphing and Programming(scripts and programs).

Offline Cygma

  • MWLL Developer
  • Star Colonel
  • *
  • Posts: 1498
  • l33tp0intz: +65/-1
    • 7th Regiment Wolfs Dragoons
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #13 on: April 13, 2012, 04:03:19 PM »
Anything in the log? Or if you start it from a cmd.exe, any output there?
As mentioned, the 7WD servers run the debug dlls (64bit too), so something must be different here.
<Insert cool content here>

Offline Ingrater

  • MWLL Lead Coder
  • Project Director
  • Star Colonel
  • *
  • Posts: 1292
  • l33tp0intz: +136/-0
Re: (Cheat protection) Server crashes when adding a new map.
« Reply #14 on: April 22, 2012, 02:07:08 PM »
Just renaming the mwll_debug.dll will cause the server to crash because it needs to have all 3 dlls.
You have to delete the mwll.dll then make a copy of the mwll_debug.dll and then rename the copy to mwll.dll.

The binXX folders should always look like this:
Code: [Select]
mwll.dll
mwll_debug.dll
mwll_release.dll

If any of the three is missing, the server will not start. If the debug dll is not a debug dll, or the release dll is not a release dll clients will fail to connect.

Kind Regards
Ingrater

There comes a point where the talking must stop, and people have to do actual work.