English MikuAuahDark: Map Protection v1.0 icon

26 comments
13.04.14 07:06:52 am
like 10 like it!
3 kb, 118 Downloads
MikuAuahDark
User
Offline Off
Map Protection by MikuAuahDark

∗ Description ∗
cs2d cmd settile command is very great, specially for minecraft mod but i'm thinking about map protection.
user Infinite Rain is creating it's Map Defence program(file cs2d CS2D Map Defence v2.1 (14)) but it's NOT in lua so i create something similar with 100% LUA
Map Protection is a tool that allows you to protect your map from edited/used on another server. While you have the full constructed map, other people just downloading a blank map

∗ Features ∗
> 100% Lag free(only lag when start to protecting/loading map specially on big maps)
> Configurable(see ∗ User Configuration ∗ )
> Doesn't delete tile blending
> Doesn't overwrite existing map(but you can configure it)

∗ How to Install ∗
Install it as usual

∗ Reserved Global Variables ∗
Note: it doesn't reallocate table if it already exist
> MP

∗ Information ∗
> 176 Lines(with comments and new lines)
> 5935 Bytes
> 1 Hooks - cs2d lua hook parse

∗ User Configuuration ∗
You can find user configuration line on top of file
> MP.MakeCopy - Do not overwrite map?(default true)
> MP.Portable - Create portable tile data so you can use map protection even if this lua is not used(default false). NOTE: if you enable this, set cs2d cmd mp_luamap to 1 so it load mapfile.lua script
> MP.Password - Password to protect the map from command(default password)
> MP.FrameDir - Directory to save the tile data(if MP.Portable is false)(default sys/lua/mapdata so be sure to edit it/create that directory)

∗ How to Use ∗
1. Configure if necessary
2. load this lua to your server
3. Enter this command: protect <MP.Password> and wait if it hangs
3a. Restart your server(not the round) if you set MP.MakeCopy to false and it's done. Not need to do the next steps and you can un-load this script for your server(if MP.Portable is true)
3b. Disconnect your servr if MP.MakeCopy is true
4. Backup your original map and rename the generated file(it's named protected mapname.map and protected mapname.lua) to your map name(*.lua only avaiable if you set MP.Portable to true)
5. Start your server again with this script
6. Done it's now protected

∗ Function ∗
> MP.Protect()
> Description: Protect your map
> Returns: nothing
> It's same as typing the command at step 3 above as it declared like this
Code:
1
function MP.Protect() MP.Parse("protect "..MP.Password) end


∗ Notes ∗
1. Do you found bugs? or you want to put some suggestions? on comment always
2. Screenshot 1 = Map in server
3. Screenshot 2 = Downloaded map
4. It's already compatible with CS2D b0.1.2.5

∗ Rules ∗
√ You can use it for your lua and your server
√ You can edit it
√ Share to others
√ Say user MikuAuahDark made it
√ Reupload with me on credits
× Say you made it
× Redistribute your edited version
× Re-upload without me on credits

∗ Version History ∗
> V1.0
> > INFO Initial Release
imageimage
edited 3×, last 07.09.14 04:19:19 am
ok This file has been reviewed and approved by Seekay (04.12.15 01:07:11 pm)

Comments

26 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
16.04.14 04:00:42 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user MikuAuahDark:
I would've told you what YOU could also do. But instead I will stop being an asshole like I usually am and instead I will apologize.

So, sorry.
16.04.14 07:07:06 am
Up
MikuAuahDark
User
Offline Off
@user Infinite Rain: You could look the comment date.
15.04.14 05:34:25 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user MikuAuahDark:
Yes, it does save blending when you use that program.
edited 1×, last 15.04.14 05:48:52 pm
15.04.14 04:24:31 pm
like I like it!
Up
Hellcat
GAME BANNED
Offline Off
I use this.
15.04.14 07:39:08 am
Up
MikuAuahDark
User
Offline Off
user Lobwver has written:
the triggers of the maps i protect, get protection?...

example:
i want to protect a deathrun... what happens with the triggers?

It working fine, because it does not modify entities


it doesn't save tile blending when you use that program.
EDIT: it does save it
edited 2×, last 16.04.14 07:07:49 am
14.04.14 11:40:51 pm
like I like it!
Up
VADemon
User
Offline Off
I don't have to explain why this must be liked
14.04.14 09:51:14 pm
Up
DiC
User
Offline Off
i am tu stupid to do that
i used file cs2d CS2D Map Defence v2.1 (14)
14.04.14 09:49:51 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user Avo:
Ikr
14.04.14 09:18:24 pm
like I like it!
Up
Lobwver
User
Offline Off
the triggers of the maps i protect, get protection?...

example:
i want to protect a deathrun... what happens with the triggers?
14.04.14 08:56:46 pm
like I like it!
Up
Avo
User
Offline Off
I always cry when your files achieve so few likes.
14.04.14 08:39:50 am
Up
MikuAuahDark
User
Offline Off
user Lobwver has written:
this work with the triggers?
which trigger?
14.04.14 12:45:23 am
like I like it!
Up
massiveguy
User
Offline Off
great
13.04.14 07:54:31 pm
like I like it!
Up
Lobwver
User
Offline Off
Like!
this work with the triggers?
13.04.14 01:27:53 pm
like I like it!
Up
Xirot
User
Offline Off
There is already great map protector.
Unneeded , however it's okay.
13.04.14 01:18:55 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user MikuAuahDark:
Don't know any, do investigation.
P.S. let's stop commenting here, we just spamming the comments.
13.04.14 01:09:07 pm
Up
MikuAuahDark
User
Offline Off
@user Infinite Rain: which server that uses *.lua map?
13.04.14 01:06:07 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user MikuAuahDark:
Try to test it on the REAL server.
Then I'll believe you.
13.04.14 12:56:46 pm
like I like it!
Up
TopNotch
User
Offline Off
Great.
13.04.14 12:36:08 pm
Up
MikuAuahDark
User
Offline Off
@user Infinite Rain: Do you think that i'm not testing it?
13.04.14 12:31:17 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
@user MikuAuahDark:
I tried it when I had my server. I'm pretty sure it does transfer it.
To the start Previous 1 2 Next To the start