//========================================================================//
// AntiMisattribution - Protection against misattribution - (c) by Mutant //
// Former AntiPiracy which is outdated                                    //
//========================================================================//

This script will protect your maps against misattribution and will disable online/lan play if unauthorized changes has been detected. Offline play is not supervised.
All needed data will be stored in myLevel, so you don't need the external script files (AntiMisattribution_B, AntiMisattribution_P) on servers.

Notes: You HAVE to EXACTLY follow the instructions below! Otherwise the protection may fail!!
       To add protection should be the last thing you do, so finish your map at first.
       You have to do this for every map you want to protect.
       This script is free to use.
       If you still have problems, contact me.


Instructions:

 1. Backup your map!
 2. Place AntiMisattribution_B and AntiMisattribution_P in your UT2004/System folder.
 3. Open your UT2004.ini (inside of System) and add this entry below [Editor.EditorEngine]:
    EditPackages=AntiMisattribution_B
 4. Open the UnrealEd and load your map.
 5. In the BrushBuilder section you will notice a new Builder called AntiMisattribution. Rightclick it, enter your settings and click on Build in order to add protection.
    - Keep in mind, the password is steady and cannot be changed any more, so write it down somewhere.
    - The OrigAuthor value MUST equal the Author value which resides in LevelInfo.
    - The OrigMapName value MUST equal the mapname WITHOUT its gametype prefix (DM-, CTF-, ONS-, etc...).
    If you get an "Error, please try again." and this error persists, then contact me.
 6. Do a full rebuild and save your map.
    If you want to disable the AntiMisattribution Builder, simply put a semicolon behind the entry in your UT2004.ini (;EditPackages=AntiMisattribution_B). To enable it again remove the semicolon.
 7. Check if protection works. To do that, change the Author value in LevelInfo and host a dedicated server to check if the script works properly. When protection fails, then delete the map and start all over again with your backup.
 8. If you want to change some seetings you have to set bChange to true, enter the correct password and the new settings; a click on Build will save these new settings and a "Done" will pop up.


AntiMisattribution - Variables:

 1. bChange: Set this to true, if you want to change some settings (bAlsoListenServer, OrigMapName, OrigAuthor), but you have to enter your password so that the settings will change. This will only work if you already have protected your map before.
 2. Password: Your Password, in order to change the AntiMisattribution settings (bAlsoListenServer, OrigMapName, OrigAuthor). The password cannot be changed anymore.
 3. bAlsoListenServer: Only dedicated servers are supervised by default, this setting will enable supervision on listen servers too.
 4. OrigMapName: Enter the original mapname here, without its gametype prefix.
 5. OrigAuthor: Enter your name, initials or whatever here, but it HAS to be exactly the same as the LevelProperties.Author value.


Extending the map:

 Mapname and Author can be extended with the following dividers:
 - Mapname: '-', '_'
 - Author: '&', '+'


Example:

 OrigMapName = Rankin  |  Real mapname = DM-Rankin
 Now let's change the real mapname
 - DM-ClanXYZ-Rankin (this work, the divider '-' has been used)
 - DM-Rankin_V2 (this works, the divider '_' has been used)
 - DM-Clan-Rankin_V2 (this does also work, both dividers have been used)
 - DM-Clan-Rankin-2 (this does work, does also work with '_')
 - CTF-Rankin (this works)
 - DM-RankinV2 (this does not work)
 - DM-ranKiN (this doesn't work)
 - DM-Ranki (this doesn't work)
 - DM-MyStolenMap (this doesn't work either)

 OrigAuthor = Mutant  |  LevelInfo's Author = Mutant
 Let's change the LevelInfo's Author
 - Mutant&Co (this works, the divider '&' has been used)
 - Friend+Mutant (this works, the divider '+' has been used)
 - Friend+Mutant&Co (this does also work, both dividers have been used)
 - Friend&Mutant&Co (this does work, does also work with '+')
 - Mutant and Someone (this doesn't work)
 - MuTaNt (this doesn't work)
 - Mutnt (this doesn't work)
 - Thief (this doesn't work either)

 Between the mapname/author and the addition there has to be one of those divider characters, all other combinations will disable online/lan play.
  

Contact:

 E-Mail: viper_squad@hotmail.de
 EpicForums: Mutant117



Finally, I want to thank Wormbo who has helped me a lot to realise this protection module. :D