Forum

> > CS2D > Scripts > (closed) Map Protection
Forums overviewCS2D overview Scripts overviewLog in to reply

English (closed) Map Protection

12 replies
To the start Previous 1 Next To the start

old (closed) Map Protection

KhalidDotcom
User Off Offline

Quote
So, lately I've made a server and a lot of players liked it , so my team decided to work on maps to make the server more entertaining, and they did make a lot of new maps with great ideas, But the problem is that anyone can take our maps and use them in their own servers without asking for a permission, so if you can help I need a script to protect maps from getting stolen or used in other servers
edited 1×, last 12.09.20 01:22:19 am

old Re: (closed) Map Protection

DC
Admin Off Offline

Quote
Each map "protection" can easily be tricked. If you don't want to share the maps then you can't host a server with them.

You should be proud if people like your maps so much that they want to play them on their own servers as well. I don't really see a problem with that.

gl & hf us

old Re: (closed) Map Protection

KhalidDotcom
User Off Offline

Quote
@user DC: I think that this is a pretty good answer, But who will steal it will say that he made it and people who didn't see or join my server will say that I'm the one who stole it

old Re: (closed) Map Protection

Hador
User Off Offline

Quote
I guess the alternate answer would be to create a script that places all of the tiles with settile when the map loads, but no guarantees for a playable experience for any decently sized map.

Also, you might be able to build a lag machine with entities that takes a certain sequence of triggers activated by lua to deactivate, but that could just be cut out of the map code if someone really wanted to.

old Re: (closed) Map Protection

TimeQuesT
User Off Offline

Quote
user Hador has written
I guess the alternate answer would be to create a script that places all of the tiles with settile when the map loads, but no guarantees for a playable experience for any decently sized map.

I thinks there was a script for this uploaded here. Unfortunatelly I do not recall.

user Hador has written
Also, you might be able to build a lag machine with entities that takes a certain sequence of triggers activated by lua to deactivate, but that could just be cut out of the map code if someone really wanted to.

You can do this wither the weather effect. Though this is easy to remove with automatic means.

To have real map protection you have to find answer to one of these questions:

Is there a part of the map file that is only read by the editor?
(no, the map editor and the game uses the same load function)

Is there a part of the map file that is only read by the server?
(yes, but actually no. See the first qoute).

My opinion: Map protection is evil. It prevents mappers from learning from existing maps. Also you cannot improve maps on/for your own. As I was WC3 mapper I remember people using map protection (second question class) and it was annoying. It prevented me from learning (missunderstood as copying).


Edit: yeah that script is that one user MikuAuahDark posted.
edited 1×, last 12.09.20 01:33:34 am

old Re: (closed) Map Protection

MikuAuahDark
User Off Offline

Quote
user KhalidDotcom has written
@user MikuAuahDark: I did try your script but it gave me a error about tiles and didnt work

Ah, I guess I have to update that script. Maybe I'll make that standalone executable instead.

Honestly, no map protection is perfect. I've seen some map protection mechanism:
• Snow spam in Map Editor
• Info_TeamGate
• cs2d cmd settile

All of them have their advantages and disadvantages
• Snow spam in Map Editor: Cause the game to lag af and eventually makes CS2D think they're compromised and closes itself. The deactivation mechanism is usually done with Trigger_Start or cs2d cmd trigger. The disadvantage is you have to apply/remove the protection manually with 3rd-party scripts/tools.
• Info_TeamGate: Prevents player from spawning as they're killed directly on spawning. Same disadvantages as above.
• cs2d cmd settile: Player only download maps with tile #0 filled. For my script, it only removes tiles which doesn't use/affect(ed by) map blending as those are impossible to set with cs2d cmd settile. The disadvantages is minimap won't work properly.

A dedicated people who really wants your map will always able to build it, like when using cs2d cmd settile method, they can basically join in your server, open another CS2D instance, and recreate your map using the downloaded map as building block.

That's when talking about dedicated people. Using either or all of those methods above should stop kiddies from stealing your map. And as user DC said, the best way to protect your map is not to distribute it to public (this includes making public server with it!).

old Re: (closed) Map Protection

KhalidDotcom
User Off Offline

Quote
@user MikuAuahDark: Actually, I saw 1 map that had a great map protection in which it was fully red and hard to see by eye with thunder sounds, but in it's server the map looked normal and it had no thunders

old Re: (closed) Map Protection

MikuAuahDark
User Off Offline

Quote
That looks like variation of Info_TeamGate method using Env_Sprite. But yeah that also work but can be removed by same method as I said before in snow spam map protection.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview