| 12-06-2002, 06:58 PM | #1 |
I've made a new map protecter I'm calling ExtProtect, and it stores an encrypted bacup inside the map file. If you know the password, the program will let you unprotect maps, and since it uses an actual encryption algoirthm(Rijndael), its very difficult to hack. It uses the same tricks as zepir's program to protect maps, except it doesn't have the problem some people complain of - making the map file much bigger. I already have the protect and unprotect code done, but what should I make for the user interface? I'm thinking about just making it a console program where you can just drag the map onto it and it will prompt for the password. I could either make 2 different executables for protecting/unprotecting, or make it autodetect if the map is protected and if so unprotect it or if not protect it. Could also make it protect/unprotect a copy of the map, like maybe make it add 'p' to the map name when protecting and change the 'p' to a 'u' when unprotecting. Or I could make a 'fancy' windows program with a browse box, 2 password boxes to confirm password, and a box to type in the name to save the protected map as(which would default to the same map name plus a 'p' at the end). I made it so that if you don't specify a password, it wont store a backup. Also, maps can either grow or shrink by about 2k when protecting them. If they grow, the map will shrink again after unprotecting, but if they shrink, they stay a little smaller than the original after unrprotecting. Feedback? |
| 12-06-2002, 08:03 PM | #2 |
I think you should make the Windows program. It'd be easy for newbies and fast for professionals (you can also include trigger support so that we can use batch scripts to access to it). |
| 12-06-2002, 11:02 PM | #3 |
If you really want to do something good, make it so WINMPQ CAN NOT see the unknown files that you put into the map, beacue it CAN see them witht the map protectors that are around now. |
| 12-06-2002, 11:53 PM | #4 |
Unfortunately, I don't think that is possible. However, I was thinking about making my protector jumble the JASS script file so that it would be basically unreable without a LOT of work. The only reason I hesitate about implementing that is because it would mean that the original would have to be stored in the backup data, meaning a slightly larger map. Also, the backed up data is encrypted, so its not possible to just extract it and rename it to get an editable map as it is with some other protectors. I did figure out a way to make it compress files more though, and it MAJORLY decreases the size of maps that include lots of text and slk files. It reduced a map with all the text files and slks in the units folder from 800k down to 200k. However, the new setting doesn't apply to sound files, so if WAVs are what make your map file so big, it won't get much smaller (but it should still decrease some). Since I'm probably going to try to make a windows GUI (I haven't done a UI in a long time, but I will at least try. Its not so easy to do with just the WinAPI esp when you are out of practice), I'll probably just make a bunch of checkboxes, with one of the options being 'Mangle JASS Script'. |
