Server Map Persister, never lose your favourite map!
14 replies, posted
Sick of losing the map you changed to just because the server crashed? Then you need this!
In the event of a crash, when your server reboots, this addon will recognise that the server did not shut down correctly, and will change the map back to the same map that the server crashed on.
Important information:
- This does NOT work on local servers, dedicated servers only!
- A server restart or manual map change does not get affected by this addon. It only runs if the server did NOT shut down correctly.
- For servers that add and remove maps a lot, it is suggested to change your default map to a map that is not likely to be removed, such as the default maps built into Garry's Mod.
Workshop: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=527660365[/url]
well done
A GitHub link would be nicer than a workshop link.
[QUOTE=xbeastguyx;48814869]A GitHub link would be nicer than a workshop link.[/QUOTE]
not much of a difference
[QUOTE=tyguy;48816242]not much of a difference[/QUOTE]
Well I mean, with GitHub you don't have to download it, find it in your Garry's Mod directory, extract it and then you can use it. Plus, people can make requests for your script on GitHub.
You can avoid requiring someone to join before it changes the map by spawning a bot and kicking it from the initpostentity hook afaik.
[QUOTE=xbeastguyx;48817475]Well I mean, with GitHub you don't have to download it, find it in your Garry's Mod directory, extract it and then you can use it. Plus, people can make requests for your script on GitHub.[/QUOTE]
I put it on the workshop so people can just simply add it to their server collection. And since this is just a simple small script, I don't really see people making many requests for it.
[editline]7th October 2015[/editline]
[QUOTE=James xX;48825240]You can avoid requiring someone to join before it changes the map by spawning a bot and kicking it from the initpostentity hook afaik.[/QUOTE]
I'll take a look into it, but last time a tried this, it would not allow me to spawn a bot through console commands, how would I go about spawning the bot?
[QUOTE=Extra Mental;48848128]
I'll take a look into it, but last time a tried this, it would not allow me to spawn a bot through console commands, how would I go about spawning the bot?[/QUOTE]
This might be stating the obvious but... RunConsoleCommand( "bot" ) ?
If that doesn't work you can always try game.ConsoleCommand( "bot\n" )
[QUOTE=JasonMan34;48848954]This might be stating the obvious but... RunConsoleCommand( "bot" ) ?
If that doesn't work you can always try game.ConsoleCommand( "bot\n" )[/QUOTE]
If I could do that, I would also be able to change the map. So no, that does not work. However I have tried using the bot functions and it seems to be working well.
Boom, [url]https://github.com/MrUnknownGamer/Server-Map-Persister[/url]
I also granted access for Extra Mental (Maker) to commit changes, etc. (Collaborator)
[QUOTE=Unknown Gamer;48857611]Boom, [url]https://github.com/MrUnknownGamer/Server-Map-Persister[/url]
I also granted access for Extra Mental (Maker) to commit changes, etc. (Collaborator)[/QUOTE]
I would appreciate if you didn't upload my code to github without my permission.
[QUOTE=Extra Mental;48863763]I would appreciate if you didn't upload my code to github without my permission.[/QUOTE]
Whats wrong with that? Its open to the public on steam
I think the issue is that you uploaded it without prior consultation. It wasn't within his interests to make the code available on Github for collaborators, and to be honest, he probably didn't want you with access to the repo if it was just his code, since he'd want to be in control of it.
Not to mention that calling him stupid and an idiot doesn't make you seem better.
[QUOTE=Unknown Gamer;48865130]Whats wrong with that? Its open to the public on steam[/QUOTE]
It's against copyright. Just because it's freely available, does not mean anyone can do what they want with it publicly.
Why isn't Unknown Gamer banned for being a douche? And basically taking credit.
Sorry, you need to Log In to post a reply to this thread.