Natural Selection 2

Natural Selection 2

[Shine] Epsilon
34 Comments
Ghoul  [author] Aug 3, 2022 @ 10:47am 
@Rusty Yes it is. Though I never added any documentation for it. It only adds the commands sh_maxbots and sh_enablecombots
|-DMD-| Rusty Aug 3, 2022 @ 6:07am 
Hi Ghoul, quick question. Is BotManager part of Epsilon? Trying to find documentation for it so our moderators can add / remove bots. Thanks.
Ghoul  [author] Aug 8, 2015 @ 4:25pm 
@Deadwing First please take code talk to github where it belongs or pm me.

That tonumber() is not needed as Playerdata.skill is always a number as tonumber gets applied on it when the value gets fetched in PlayerRanking.lua .

As mentioned at the wiki page users with permission to use sh_ignorestatscheck will be ignored by the check. So if you want admins to be checked you have to exlude the given permission.

Invalid data implies a LuaJIT compilation error.

I hope this answers your questions.
Deadwing Aug 8, 2015 @ 4:15pm 
@Ghoul:
I changed Hiveteamrestriction Line 185 to:
local Skill = tonumber(Playerdata.skill)

And then I found out that I needed to comment out something more for the mod to kick me from the server.

I think it was "not Shine:IsValidClient( Client ) or Shine:HasAccess( Client, "sh_ignorestatscheck" ) " part that prevented me from getting kicked.

If admins are automatically sh_ignorestatscheck:ed and the server remembers this so removing yourself from the admin-group does not let you try it on yourself.. then mystery solved. Otherwise one of those checks could be at fault.

My copy of the mod now always give "Invalid data" error when activated on the server and I got stuck right when I was about to check which test let me stay on the server... :-(

Since I got the type-error on line 186 only when someone else joined the server, it looks like admin-power...

I didn't think about checking what excactly Playerdata.skill contained. Maybe tonumber() returns 0 for an empty string?

Ghoul  [author] Aug 7, 2015 @ 4:11am 
@Deadwing: Yes that might be true, but if you remove lua from your consistency check everyone can run whatever script they likes while playing at your server.

So you open the flood gate for cheaters.

I would suggest to use the normal development process of ns2 mods (Launchpad etc.) to play around with code and then release it as own mod if you want to use it at your server.
Deadwing Aug 7, 2015 @ 3:59am 
Ahh.. Ok.

I just realized that excluding lua files in ConsistencyConfig.json lets me tinker with the code to try out stuff.. No?
Ghoul  [author] Aug 7, 2015 @ 3:40am 
@Deadwing: All config files are following the json data format. Therefore the config fields can be string, char, numbers, boolean, arrays and objects.

Make sure that the Min and Max are numbers.

Details can be found at http://json.org/
Deadwing Aug 7, 2015 @ 3:29am 
Hi I get

[10:53:14]Error: lua/shine/extensions/hiveteamrestriction/server.lua:186: attempt to compare string with number.
stack traceback:
lua/shine/core/shared/hook.lua:67: in function '__lt'
lua/shine/extensions/hiveteamrestriction/server.lua:186: in function 'CheckValues'

I guess values read from config file are all strings..?
ZERO <ibis> Jul 21, 2015 @ 8:35pm 
It was likely some sort of steam thing not an issue with the mod's code itself. That is why clearing the mod folders resolved the issue.
Ghoul  [author] Jul 21, 2015 @ 9:55am 
@Zero Could not reproduce any of your issues and have no idea how epsilon could cause those.

Non of the code is getting run or load in the menu or loading screen
ZERO <ibis> Jul 21, 2015 @ 6:20am 
Got it working after deleting mods from the server, workshop updator and my local computer.
ZERO <ibis> Jul 21, 2015 @ 6:07am 
It appears the latest update to this mod messes something up, I am having trouble accessing servers that run the mod and I am in the process now of cleaning all mod directories to see if a fresh install helps the issue.
ZERO <ibis> Jun 23, 2015 @ 11:03pm 
Thanks for the info and the changes in the next update :happy_creep:
Ghoul  [author] Jun 23, 2015 @ 4:30am 
@Zero:
Just assign your admin badges to another row: https://github.com/Person8880/Shine/wiki/Badges#assigning-badges-to-rows-for-the-badges-mod

Furthermore I will add options to change the rows the epsilonbadge plugin uses for the next update
ZERO <ibis> Jun 22, 2015 @ 6:35pm 
The steam badge conflicts with the admin badge is there any way this can be changes so you can have your country flag, steam badge, admin badge and normal ns2 badges without issue?
medi Apr 21, 2015 @ 4:50pm 
Awesome thank you!
Ghoul  [author] Apr 21, 2015 @ 12:23am 
Ok the "gestation time" issue was a compatible issue with CompMod or similar mods which overload the given function i hook into. I made sure my hook gets registered now after the other mods have overloaded the given function.

The status message was a network latency issue. Sometimes the config packets just arrived later than the "show the message now" package. I changed the plug-in so it covers up for 500 ms.

And the mines one well that was just a dumb mistake of mine. Moving a method to some other place without moving the related private variables is never a good idea.
medi Apr 20, 2015 @ 5:45pm 
This mod is broken on my server for some reason, it ignores the RGB color I picked and uses default and alien evolve time is the default (slow) time, e.g. evolving to onos without a mist takes forever.

also after being disabled and re-enabled it does not show the status text at all, though it still runs and pgp becomes active after 30 seconds, with slow evolve times...

also ignores other commands from the PregamePlus.json, like allowmines: false
Hellrunner Mar 14, 2015 @ 2:28pm 
where is the enforceteamssizes plug? not documented
Ghoul  [author] Jan 30, 2015 @ 5:00am 
@Kaiser Kane: Try to join a server which runs a backup server like DMD or The thirst onos to get the mod ;)
Kaiserkane Jan 29, 2015 @ 10:39pm 
This mod is still preventing me from joining most servers. EVERY other mod will update except for this one.. such a shame the most servers in my area use it :(
Ghoul  [author] Jan 24, 2015 @ 5:10am 
Currently there is a issue that servers only update mods at restart. Sadly i didn't know that when i pushed out that update 2 days ago.

There is nothing i can do to fix this atm beside not pushing more updates for now.
Uncanny Jan 24, 2015 @ 12:30am 
btw, the state of the file is "??" in game.
Uncanny Jan 24, 2015 @ 12:28am 
I have a repeating problem with this plugin and I believe it is due to servers not updating this plugin in particular when and update is present. I try to join any server( most have this plugin present) and I get an immediate error saying I do not have the mod installed, then I check my workshop folder and it indeed is infact installed and seems to be that the client installs the update even though the server and its other players that have not subscribed to the plugin have not, this is annoying since I will have to wait untill tommorrow to play any reasonably pinged server, I hope that there is some sort of self updating set of code you can use. thanks, Dealskeptic
Vertex Oct 2, 2014 @ 5:13pm 
Would it be possible to make an feature that lets you cap team sizes less than the server count? (with optional reserved slot immunity) This would help get the last few players on teams faster to improve team balance. (essentially minimizing the load time/ afk players effect on team balance)
Vertex Jun 30, 2014 @ 10:25pm 
any chance combans could include eject immunity for admins? i've had people try to eject me so they can get in and sell all the ips lol
Ghoul  [author] May 1, 2014 @ 9:37pm 
Atm there is only one third plugin included into this package. It's called PasswordReset and allows you to set a certain password if the server dropps below a given player count.

Usefull for some private events.
Nuord May 1, 2014 @ 5:23pm 
Besides 2nd ip, and cross spawns what else is here. If the name isn't incredibly obvious, what do they do?
[ZM] Darkflame Apr 11, 2014 @ 7:47am 
Hi Ghoul,

Is the Cross Spawn plugin suppose to be working with MvM mod?

Currently isn't.
Ghoul  [author] Feb 3, 2014 @ 2:07am 
These plugins don't really fit in ns2stats or shine. And as i published many plugins in those two mods many ppl don't even noticed these new plugins.

Also as my mods are smaller than 100 kb, it doesn't really matter for loading speed.
Vertex Feb 2, 2014 @ 11:34pm 
is there any chance [Shine] NS2Stats could be included in this plugin aswell? clients tend to connect faster with plugins bundled up. it also makes it easier for server owners to install, setup and maintain.
Jamb0t Dec 28, 2013 @ 11:07am 
Yep i checked wasn't working.
Ghoul  [author] Dec 28, 2013 @ 5:10am 
@Jambot it is. Did you checked, that you had more players than in the 2ndip.json defined (default 18)

Also ofc this requires Shine to work
Jamb0t Dec 27, 2013 @ 8:01pm 
Nice mod but 2nd ip isnt working.