A LabAPI plugin for SCP: Secret Laboratory that gives all players (except SCPs) infinite stamina.
#InfiniteStamina
1 messages · Page 1 of 1 (latest)
Using a background thread for this is a little overkill
Not even sure you're meant to touch game thread objects outside of it
Yeah, I understand what you mean about background threads. I used one initially, but I tested it and everything seems to work fine in-game. I’ll keep your advice in mind for future updates and try to rely more on events running in the main game thread.
Would be better to make a component that sets it on tick
This can be done without a plugin @solemn garden
This is in the config_gameplay
There's a ton of settings already baked into the game
ah i didnt know that
Also there's no reason to include IsEnabled in your plugin config
Every plugin generates a properties.yml where it generates configs that has this already
I know him, he uses AI.
The code is really poorly written.
Why does everyone have to use AI for everything?
I think coding should stay AI free.
In my opinion AI is not a bad thing for coding, it just needs to be used correctly and the user should not cross a limit
Just a little compilation of some of the most obvious AI mistakes and tendencies
Ong didn't even look at the plugin when I initially responded because of this, I was just curious if he pulled the classic IsEnabled manuever I saw in the last plugin I found posted here
Thanks for the feedback everyone.
I appreciate the technical advice about coroutines, components, and the built in config settings. I am still learning and trying to improve my understanding of LabAPI, so constructive criticism is helpful.
Yes, I sometimes use AI as a tool, but I do not just copy and paste blindly. I test everything myself and I am working on understanding the code better so I can improve it properly.
If you have specific suggestions on how I can structure it better or implement it in a cleaner way, I am open to learning.
🙁
I can respect learning and trying to improve
I appreciate your professional attitude in response to people dogging on you
However, when you are making plugins primarily off the back of AI, especially when it is blatant enough to where people are actively noticing issues in your code, you should not be making your projects public
The most respectable thing is to hone in your craft privately and try to do your best to improve
I've been doing dev work for probably 1.5 years now here as my first foray into the life of a developer, and I only released my first public plugin like a few days ago
The reason people are so critical of your work is because you're releasing it publicly intending for other people to use it
When you do that, you are instantly held to a higher standard
That is a standard that, so far, you have not lived up to
Thank you for taking the time to explain your perspective.
I understand what you are saying. Releasing something publicly does come with responsibility and higher expectations. That is fair.
My intention was not to push out low quality work, but to learn through feedback and real world usage. I agree that I still have a lot to improve, and I will take this as motivation to refine my skills and clean up my implementations before publishing future projects.
I genuinely appreciate constructive criticism like this. It helps more than you might think.
My opinion, AI is a grey area, AI is a tool and is literally designed to be used to make things easier, it should not be used to do it for you, for example this can be something like asking for ideas, asking to help identify an error (as sometimes it's a simple spelling error or something like that which can sometimes take long to find and debug), so should you AI, absolutely, should you use AI entirely, no, that would not be your work, when it comes to generating code AI just generate absolute slop, as some other developers have identified mistakes in your code, my advice, yes use AI, but do not rely on it, do not use it for everything, do not use it to generate your code for you, coding is an art, it takes time, it takes effort, if you take shortcuts, especially too many you will just create a sloppy plugin.
I understand your point and I actually agree with a lot of it.
I do see AI as a tool, not as a replacement for learning. I use it mainly to speed up understanding concepts, get suggestions, or help identify mistakes, but I know that relying on it too much can hurt long term growth.
You are right that coding takes time and effort, and I do not want to take shortcuts that prevent me from improving properly. I am still in the process of learning and refining my skills, and feedback like this helps me understand where I need to focus more.
I appreciate you taking the time to explain your perspective.
And yes, when you release a plugin publicly there are certain "expectations" that you must live up to, which as stated before, you have not, but that's okay, don't let that discourage you, keep going and trying
In which file is the error code located?
I will, but you also have to consider that the plugin works and that you can use it.
i mean it's doc related not to you
Also, I am unsure as to why this is a plugin, there seems to be configs for it already
The problem here is that the AI is teaching you bad practices
It's like asking a blind person to make a painting
Like yeah, they may have enough expertise to make a crude painting, but they can't actually see the result, they can't actually see what's wrong with what they made
Something I pointed out at the beginning
That's actually well said
Also, your responses are clearly AI generated, just pointing that out
I saw that just now
I appreciate that
No
I write the answers myself
Well for starters it's in an AI structure, it sounds like AI and you wrote that response like, really quickly after I sent my message, like 200wpm quickly
I use Google Translate because my English isn't very good.
My point still stands
I didn't write them with AI; at the end of the day, you can think what you want.
I think too often people use AI as a crutch
You can claim you use it for learning, but there's only so much an AI can actually teach you
All the AI knows is what gets put into it, it doesn't have any actual comprehension
Generative chatbots weren't trained to understand the inner workings of SL nor LabAPI, they will tell you what you want to hear
The code produced here is a shining example of something that looks good at a surface-level, but is filled with flaws
And it sets a bad example for people coming into this community trying to find simple plugins to learn off of
I think I will thank you, as well as other people, look, if you're gonna just use AI for almost everything then I don't see you as a fellow developer, please, with all due respect and in the nicest way possible, go back to VS and learn more, maybe with you're own brain and knowledge, AI should be a privilege as well, before you even use it you should know how to do that thing yourself first
Based take
You're right, but you have to remember I'll still be releasing updates independently, without AI!
Right but if you build your foundation out of cards, a bit of glue isn't the solution to finishing your house
You have to actually learn the skills required to not only maintain a good codebase, but to create it in the first place
Sorry for making my first plugin with AI, but in my opinion this will only help me because I now understand how to do it for future plugins.
Here's an example, cars have advanced quite a lot, most of them have parking cameras now, however, you should not be allowed to use parking cameras until you know how to park without them, only then do you get the luxury of making that shortcut
Except you don't understand how to do it for future plugins, the AI has fed you a load of rubbish
It's based of old code and faulty assumptions
Nor do you know how to do it efficiently
becuase the AI has fed you a load of rubbish
The code compiles, maybe it even works, but it's highly inefficient, poorly organized, and it's gonna be even harder to work with as a result
You weren't even knowledgeable enough in the SL codebase to know that stamina options were defined in the gameplay config, making this plugin instantly obsolete
I know I'm being critical but I'm not even being critical of your work, as most of it isn't your work
The same goes for AI, you should not use AI until you have learnt how to do that task yourself, only then do you get the luxury of taking the shortcut and using AI (but most the times if you've already learnt it you'll just be able to create better code anyway so just dont use it)
I understand how to create a plugin using AI; it's a start, and while I appreciate the feedback and it helps me improve, please remember that I still want to learn and this is my first plugin ever. Please take that into account.
If it's your first plugin ever you should've made it privately and not released it
Who in the world uses ; lmao
In casual texting on discord
Sorry, just another hint of AI lmao
This is the reason you're now being heavily scrutinized, you decided for your first work you'd generate it with AI and then release it to the public
Yes, you're right, but I thought it didn't exist yet, so I'll upload it.
Google Translator
@kindred slate
I don't think google translate puts that in for you
Oh wow, this is.. interesting
My advice, if you're trying to enter plugin development for SL
Don't use AI
Take a look at simpler plugins (like one that I made #1472919057832607992), and learn from those examples to make your own code
If you need help from someone, ask in #plugins-dev-chat, or #1274618202227216414, don't ask an AI and expect it to have a level of knowledge on par with any of the developer's here
Well said, there are plenty of developers that will gladly help you in your journey, hell, @solar badger helped me like 10 minutes ago
Yes, you're right
I love helping people
It saddens me as I keep seeing more and more plugins made by AI, or some low-effort port of an existing plugin
It feels like we're losing any semblance of creativity, of actual merit
I'll never stop being critical of people relying on AI for their work
I use AI myself, but I use it as a proper tool, not as a crutch for making my work for me
It should streamline the process, not replace it
I'm supposed to write to the developer: "You're just mad because you're getting replaced by AI."
I find that unnecessary
Look @distant depot, we aren't trying to crack down on you, we're not trying to be rude, we are simply telling you that what you have done is not the right approach and that you should change it, we can even offer advice, @solar badger already has, we understand that this is your first public, maybe even first plugin, but you need to understand that you cannot just use AI to create your first plugin and the publish (not even knowing that the feature is already in the game configs), before you start publishing just learn, @solar badger even said he's been coding SL for 1.5 years and only recently published his first plugins, same here, I've been doing it for about 1.25 years and I've only just started releasing plugins and they aren't even the best that they could be becuase I'm inexperienced still, it's hard, coding in general is hard, like I said it's an art, it takes time, dedication, it is not something you can learn on a whim, please, take this not in a way to push you down, but to you bring you up, to help you
i am horrified
Just out of curiosity, horrified of what?
everything in the source code
Oohhh
but it works
I thought you were talking about the very inspirational messages that @solar badger and I cooked up
im surprised
That is so not the point
i dont think any bit of this was written by a human
"It works"
lmao
Yeah lets get a car from the junkyard, no mirrors, wipers, the left back wheel doesnt work but hey, it drives so like lets use it
i mean
We had the same idea lmao
i assume theyve not coded before
The game runs flawlessly.
but yeah
Todd Howard moment
please learn unity, sl or anything before using AI to write it, so you at least understand why its sub optimal what the AI gave you
But does it run efficiently, is the code efficient, the best it could be, is it optimized
-# if you say yes then I don't know what I'll do to myself
It's running okay, it might have some bugs, but it works without problems.
bugs = problems, like what
You cant say might have bugs but works without problems, that's the most contradicting thing I've seen tonight
i mean:
- the game has config loading that you can use, no need to write a custom thing and handle all that
- theres LoadConfigs override instead of doing it in Enable
- Using a new thread in Unity, is horrific and CAN result in your plugin killing the server
- I'm pretty sure you can set a players stamina without getting the module manually, but maybe im wrong
- this functionality requires no plugin
did i miss anything
Also, one more thing, coding is a language, it quite literally is another language, if you're using google translate to go from german to english no wonder you're using AI to get code, if learning another language for you is hard then learning how to code/learning another language will also be hard
It's 12:14 pm here.
yes but thats not their thing
they were saying that THEYVE seen tonight, yk.. their timezone, not yours
but yeah
Since it was in my message and I was saying it, it was being said relative to my own timezone
But okay then
yes
anyway off i go, ive seen enough AI slop for today - please learn to code
-# how about the AI slop? (no offence, just the the truth)
Amen
Lemme correct that real quick, please learn to code properly
So, I wish you all a good day or a good night, and I will continue working to manage without AI! Thanks for the feedback!
-# if you couldn't tell that was sarcasm
:/
This guy is awful.
I hate that he uses AI all the time and keeps saying he made everything himself.
@kindred slate, you’re my hero.
I can’t deal with this anymore.
Yeah, its so stupid, like he even uses ai for his responses
Yeah, there's just no way bro is writing a TEAL paragraph for every response, and in about 15 seconds
By the way, that's not to say I don't use it, now before you go calling me a hypocrite, I don't use chatGPT for quite literally everything, it is a pretty powerful tool and can come in handy, a very good example of this is errors, chatGPT should be used as a search engine, not as a creating tool, chatGPT and AI in general is no where near advanced to create something better than a human could, however, searching things, now that's something else, instead of me spending 2 hours searching website like stack overflow and reddit and going on discord and asking people I can simply ask ChatGPT and it does a a search that would've taken 2 hours in just 10 seconds, that's is where chatGPT becomes useful, for me that is where I'm fine with it, also a good thing to mention this is my 2nd last resort to finding a fix to an error, not my first, I don't just ask chatGPT for any error I get as most time the error is a simple or close to simple fix
This is so real
i use ChatGPT to learn :3
Claude better 
true
true
@distant depot
InfiniteStamina v1.1.0 is out! https://github.com/Leifur713/InfiniteStamina/releases/tag/InfinitieStamina1.1.0
If any problems arise, you can write them here.

Made by **YourName** 🙏
Yeah you would know lmao
Also I thought we discussed that there was an in built feature for this already?
unser name
I forgot xD
My plugin has one advantage, namely that you can configure it using the SCPS.
Could you elaborate?
SCPs don't actually have a stamina bar, but the option is there just in case future updates add it or for any edge cases.
939
I'm pretty sure the stamina configs are also applied to 939 as well, idrk
3114
it is for all SCPS
jo
InfiniteStamina v1.3.0 is out!
Hey everyone! Dropped a new update for InfiniteStamina.
What's new:
stamina_value lets you set a custom stamina level now (0.0 = empty, 1.0 = full, default is 1.0)
allow_scps lets SCPs optionally be affected by the plugin too
Under the hood the background thread is completely gone, the plugin now uses StaticUnityMethods.OnUpdate which is way cleaner and more stable. Also migrated to Plugin<Config> with YamlConfig so LabAPI handles the config natively. Invalid stamina_value inputs get automatically clamped and logged on startup so no more silent issues.
Download here: https://github.com/Leifur713/InfiniteStamina/releases/tag/InfiniteStaminaSCPSL
If you run into any issues feel free to drop a message here!
GitHub
InfiniteStamina v1.3.0
Added stamina_value — you can now set a custom stamina level (0.0 = empty, 1.0 = full, default: 1.0)
Added allow_scps — SCPs can now optionally be affected by the plugin
Swi...
did u just change the readme or what
I don't see any changes here except the Readme.