Page 1 of 2

Map Locker

Posted: Sat May 18, 2013 1:14 am
by hl2mapper
Hi Guys!

Would like to ask a question here.

I am making a HL2:DM RP map for my rp server, and i was wondering if there was a way to lock a map.

For example: If players download my map and then they want to put it on there own server it would crash it unless they have a plugin on the server.

Is there a certain script i have to make with sourcemod? And how do i make the map search for the script??

Thank You

Re: Map Locker

Posted: Sat May 18, 2013 12:01 pm
by ant_8490
There really isn't any 100% perfect way to lock a map. If someone is really determined, they can just decompile the map and search for whatever you added.

One common way that most people lock RP maps is to have a logic_auto trigger a game_end to run on OnMapStart. Then on the server, you would have to either, rename game_end in the server.dll (if windows) or make a plugin to remove/delete the game_end entity when the map loads, so when someone joins, the logic_auto will ask for the game_end to fire, but nothing will actually happen since the entity doesn't exist.

Re: Map Locker

Posted: Sat May 18, 2013 12:03 pm
by Xseba360
spawn logic_auto, give it a name and make it so it removes "worldspawn" onmapspawn then remove the logic_auto using stripper:source plugin

@ant's method
you probably would have to rename it each time you update server or do something cron jobs related

Re: Map Locker

Posted: Sat May 18, 2013 12:10 pm
by ant_8490
Xseba360 wrote:spawn logic_auto, give it a name and make it so it removes "worldspawn" onmapspawn then remove the logic_auto using stripper:source plugin
that works also, but like most methods, anyone can do the same and decompile (or even open in Notepad++) to get the entity name.

Re: Map Locker

Posted: Sat May 18, 2013 12:16 pm
by Peter Brev
I found a way to complete lock it like Valve HL2 maps, but I don't want to share it.
Using the general lock Tools, info_target, Tools/lock texture or anything like this will still be decompiled by bsp source.

Re: Map Locker

Posted: Sat May 18, 2013 12:20 pm
by Xseba360
Peter Brev wrote:I found a way to complete lock it like Valve HL2 maps, but I don't want to share it.
Using the general lock Tools, info_target, Tools/lock texture or anything like this will still be decompiled by bsp source.
are valve hl2 maps even locked?!

Re: Map Locker

Posted: Sat May 18, 2013 1:13 pm
by Peter Brev
Xseba360 wrote:
Peter Brev wrote:I found a way to complete lock it like Valve HL2 maps, but I don't want to share it.
Using the general lock Tools, info_target, Tools/lock texture or anything like this will still be decompiled by bsp source.
are valve hl2 maps even locked?!
Yes, if you open them from gcf, some are not usuable.

Re: Map Locker

Posted: Sat May 18, 2013 1:46 pm
by Xseba360
Peter Brev wrote:
Xseba360 wrote:
Peter Brev wrote:I found a way to complete lock it like Valve HL2 maps, but I don't want to share it.
Using the general lock Tools, info_target, Tools/lock texture or anything like this will still be decompiled by bsp source.
are valve hl2 maps even locked?!
Yes, if you open them from gcf, some are not usuable.
because some arent even stored in that GCF but are visible as entries.

Re: Map Locker

Posted: Sat May 18, 2013 2:21 pm
by Anonymous
Peter Brev wrote:I found a way to [...] but I don't want to share it.
I FOUND A WAY TO HACK ALL SERVERS AND CURE CANCER BUT I DON'T WANT TO SHARE IT. I JUST WANTED TO LET EVERYONE KNOW ABOUT HOW AWESOME I AM AND MAKE THEM CARE ABOUT ME

Re: Map Locker

Posted: Sat May 18, 2013 2:50 pm
by Peter Brev
Stefan wrote:
Peter Brev wrote:I found a way to [...] but I don't want to share it.
I FOUND A WAY TO HACK ALL SERVERS AND CURE CANCER BUT I DON'T WANT TO SHARE IT. I JUST WANTED TO LET EVERYONE KNOW ABOUT HOW AWESOME I AM AND MAKE THEM CARE ABOUT ME
That's funny how you think I'm reading.

Re: Map Locker

Posted: Sat May 18, 2013 3:16 pm
by commander fury
Peter Brev wrote:
Stefan wrote:
Peter Brev wrote:I found a way to [...] but I don't want to share it.
I FOUND A WAY TO HACK ALL SERVERS AND CURE CANCER BUT I DON'T WANT TO SHARE IT. I JUST WANTED TO LET EVERYONE KNOW ABOUT HOW AWESOME I AM AND MAKE THEM CARE ABOUT ME
That's funny how you think I'm reading.
How I see that
Spoiler
Show
Image
Clues : Ginger dog = Stefan.Black dog = Peter.

Re: Map Locker

Posted: Sat May 18, 2013 3:16 pm
by Peter Brev
Peter Brev wrote: That's funny how you think I'm reading.

Re: Map Locker

Posted: Sat May 18, 2013 4:08 pm
by myback
commander fury wrote:
Peter Brev wrote:
Stefan wrote: I FOUND A WAY TO HACK ALL SERVERS AND CURE CANCER BUT I DON'T WANT TO SHARE IT. I JUST WANTED TO LET EVERYONE KNOW ABOUT HOW AWESOME I AM AND MAKE THEM CARE ABOUT ME
That's funny how you think I'm reading.
How I see that
Spoiler
Show
Image
Clues : Ginger dog = Stefan.Black dog = Peter.
LOL

Ginger Dog?

Re: Map Locker

Posted: Sat May 18, 2013 4:09 pm
by Xseba360
myback wrote: Ginger Dog?
how bout 'Orange Dog'?
also get on steam

Re: Map Locker

Posted: Sat May 18, 2013 4:32 pm
by hl2mapper
...