Circuit softlock patch

[Open Assets] Circuit softlock patch 1.2

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
Hey, you may remember some early versions of OLDC would soft-lock servers in circuit maps if any players got a DNF. (Or is it circuit plus? Idk.)
Welp, not anymore!

srb20023.gif

(Map is Heavens Pass Remake by @glaber, and can be found in the OLDC 2023 R1 pack.)


All this does is exit the level 3 seconds after any player gets a DNF. Yes, this is the same script used in OLDC 2023 R1.

Feel free to credit me by the name Pikaspoop, and be sure to add a link back to this page in your credits section on your addon page, and whatever text file in your addon is used to list credits.

QNA:

Q: Can I add this script to my map pack?

A: Yes, you can! I only ask that for compatibility reasons that you don't edit the Lua if you choose to put it into a map pack. I can't stop you since I'm making this Open Assets, buuut it would be nice to do so in case someone's unrelated Circuit map breaks due to it.
If you absolutely need to make changes to this script for your map pack, I would recommend including it as a second file in your submission. (Again, I can't force you to do this. You have every right to disregard my request.)

Q: Can I edit this addon at all?
A: Yes! you can do whatever you want to this script! It's Open Assets.

Q: If I load multiple map packs with this Lua, will there be problems?
A: No! I designed this Lua to only load once in any instance of SRB2! So if you were to load 2 maps with this Lua, the first Lua script will run while the second will not.
In the case you decide to edit this Lua script, make sure you load it before your maps. Only the first loaded instance of this script will run, so make sure the version you want to work is loaded first!

Q: Is there anything I should know before editing this Lua?
A: If you find yourself needing to edit this Lua script, don't edit the namespace used to detect other versions of this script. Doing so will allow this Lua to load from another map pack, and potentially conflict with your edited version.

Q: What if the map packs I have don't have this Lua included, and are closed assets?
A: You can just run this Lua file by itself as a SRB2 addon, and it will work if none of your map packs have this Lua loaded!

Q: If you're okay with people editing the Lua, why are you not okay with putting the edited Lua into a map?
A: First, I can't stop you from doing that (see the first question).
Second, Individual users who edit the Lua to load separately have more control over the function of this script. A user loading an individual Lua file as an addon isn't being forced to use it.
By contrast, if a user loaded a closed asset map pack with a modified version of this Lua then there could be strange problems with other maps if the user doesn't know to load their own download of the script first. Worst case scenario could be that map pack changes the namespace and doesn't take the correct actions to restrict it to just the specific maps that need it, and thus breaks all other circuit maps from other packs (and not even a fresh download of this will fix that).

That's everything! Hope your servers won't soft-lock anymore!
Author
Pikaspoop
Downloads
161
Views
1,278
Extension type
lua
File size
2.2 KB
MD5 Hash
f4efd43e4521ec559e376068e4f9040d
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Pikaspoop

Share this resource

Back
Top