Ulysses

Ulysses Stuff => Releases => Topic started by: Bite That Apple on March 28, 2015, 04:01:13 PM

Title: Last Joined Check [1.05v]
Post by: Bite That Apple on March 28, 2015, 04:01:13 PM
Last Joined


This addon is very easy to understand, though it can be complex depending on what version you decide to use. This addon keeps track of players joining, and all. So it tells you when a player is new, it tells you the last time someone was last online, and it also tells you how many times they've joined.
Please make sure you read this entire thing, OR YOU WILL BE CONFUSED!


Please Keep Note:
If you like this addon, I would really appreciate a "Compliment" Karma which is located next to my name. That's how I know you care :)
You must be registered and logged in the ulx forum to see the download link which is found under the preview image


Requirements:
(Recommended for multiple servers): Depending what version you decide to use, if you choose to use the MySQL version, you will need a webhost that supports MySQL, and the knowledge of simple MySQL.
You will also need the library to be able to use MySQL on a garry's mod server, if you do not have it already. This gets placed with the scrds.exe (if you're professionally hosting your server, chances are it already has libmySQL.dll with it). You can download the dll from here -> http://puu.sh/gTEIm/1c6e7fe8a9.zip (http://puu.sh/gTEIm/1c6e7fe8a9.zip)
You will also need the mysqloo dll file which gets placed in garrysmod/lua/bin (if the folder does not exist, then create it). You can download this dll from here -> http://puu.sh/gTEU8/df4c72e24f.zip (http://puu.sh/gTEU8/df4c72e24f.zip)
(Recommended for single servers): If you decide to just use this addon for one simple server, then you need nothing.


HOW TO USE:
If you are not using the version that requires you to have a webhost that supports MySQL, then just drop the folder in the addons folder, and it will work.
If you are choosing to use the MySQL version, then you will need to understand how to setup a MySQL server, ect.


FEATURES:


TO-DO-LIST:
Make it easier to check an offline players join information


KNOWN BUGS:
Only if you're using the MySQL version, and your webhost is being DDoS'd, or is having down time, which most likely would includ the mysql server, so stuff won't be recorded, and ye... so that would be the only problem I can see.


Preview:
(http://puu.sh/hPSCo/e229e6bf36.jpg)


DOWNLOAD LINK BELOW
You must be registered and logged in the ulx forum to see the download link which is found under the preview image
Title: Re: Last Joined Check [1.00]
Post by: Bite That Apple on March 28, 2015, 04:15:04 PM
I never was planning on releasing this, but I recently had stopped caring about things I've made on Garry's Mod anymore for what ever reason. So I'm most likely going to start releasing all my private addons soon.

If you have any questions about this addon, feel free to ask.
Title: Re: Last Joined Check [1.01v]
Post by: Bite That Apple on April 03, 2015, 02:25:17 AM
Updated, now can check players who are offline
Title: Re: Last Joined Check [1.01v]
Post by: JamminR on April 03, 2015, 08:09:03 PM
So, I've not looked in the code, can it be used like the old IRC !seen command many op-bot's used?
!seen blah
[bot] I've seen several characters with the word "blah" in them, the 3 most recent where blah1, date/time, blah2, date/time and blah3, date/time.
or
[bot] Open your eyes, blah is online 'now'.

The op-bot was usually limited to only showing those seen in past 1-2 months on really busy IRC channels.

Title: Re: Last Joined Check [1.01v]
Post by: Zaddion on April 03, 2015, 10:10:33 PM
I just tried this today, I think I got the v1 (before the most recent update) and it was interfering with something and making the pointshop return a whole bunch of lua errors. Your addon is possibly interfering with pointshop 1?

https://github.com/adamdburton/pointshop
Title: Re: Last Joined Check [1.01v]
Post by: Bite That Apple on April 03, 2015, 10:38:57 PM
I just tried this today, I think I got the v1 (before the most recent update) and it was interfering with something and making the pointshop return a whole bunch of lua errors. Your addon is possibly interfering with pointshop 1?

https://github.com/adamdburton/pointshop

Can you please copy the errors and send them here, it most likely is a variable or hook name that is similar.


So, I've not looked in the code, can it be used like the old IRC !seen command many op-bot's used?
!seen blah
[bot] I've seen several characters with the word "blah" in them, the 3 most recent where blah1, date/time, blah2, date/time and blah3, date/time.
or
[bot] Open your eyes, blah is online 'now'.

The op-bot was usually limited to only showing those seen in past 1-2 months on really busy IRC channels.

I'm not familiar with op-bot, sorry :/
Nah, I didn't want to make it so you can search the database offline with player names, I just didn't feel like going that OP on the addon, I could do it if I want to, but I'd have to limit it on like 5 names, and a certain amount of characters, or some very nice person would search the word like "a" and crash the server.

The checking players thing was really recent, to be honest. I made it I liked to see when players last joined instead of just looking at the little cute message that pops up. The last update made it so I could do offline players. Also made it so that when a player is online, and is checked, it doesn't just say "today's date" (technically because if they joined, it would be the last time they were on), because that's kinda useless, so I made it so it gets the date of the last time they were on (unless of course they rejoined today), then updates it.
Title: Re: Last Joined Check [1.01v]
Post by: JamminR on April 04, 2015, 12:06:27 PM
The op bots were common, and were actually much more complex than just running a seen command.
They were used to maintain a chat room in case the main chat networks bot 'left' for any reason.

I was mostly asking about if it would act like, or suggesting the addition of, the 'seen' command.
I understand you'd have to put limits on it. The seen command that I remember had similar min character input, min historical search limits, max times used by <anyone/individual> in a time period, etc to prevent abuse.
 
Nostalgia. This release is neat and reminds me of it.
Title: Re: Last Joined Check [1.01v]
Post by: Bite That Apple on April 08, 2015, 11:05:22 PM
The op bots were common, and were actually much more complex than just running a seen command.
They were used to maintain a chat room in case the main chat networks bot 'left' for any reason.

I was mostly asking about if it would act like, or suggesting the addition of, the 'seen' command.
I understand you'd have to put limits on it. The seen command that I remember had similar min character input, min historical search limits, max times used by <anyone/individual> in a time period, etc to prevent abuse.
 
Nostalgia. This release is neat and reminds me of it.

Most of the things I have made, I did not get inspired from something else (besides chat tags) to make addons, most of them in my mind are creative and unique, so if by any mistake there is an addon familiar with this addon, it was just coincidental.
Title: Re: Last Joined Check [1.02v]
Post by: Tomzen on May 16, 2015, 03:22:51 AM
Preview:
i'll get some soon
Title: Re: Last Joined Check [1.02v]
Post by: Bite That Apple on May 16, 2015, 03:52:00 PM


yeah, yeah, done
Title: Re: Last Joined Check [1.02v]
Post by: PaRappa the Rapper (Gaming PC) on May 31, 2015, 08:28:20 AM
This script breaks the gamemode EFT on my server, i didint used the SQL version
Title: Re: Last Joined Check [1.02v]
Post by: Bite That Apple on May 31, 2015, 08:34:58 PM
This script breaks the gamemode EFT on my server, i didint used the SQL version

Can you please describe what's happening? Telling me it's broken, doesn't help me at all... So what are the errors, and or better yet, giving me the console log would be better.
Title: Re: Last Joined Check [1.02v]
Post by: PaRappa the Rapper (Gaming PC) on June 01, 2015, 04:43:22 AM
Can you please describe what's happening? Telling me it's broken, doesn't help me at all... So what are the errors, and or better yet, giving me the console log would be better.

Everytime im spawned, this error keeps spamming and spamming into the console until i leave, this also may happen to the other players, this cause for the players to dont fall after a dive in, they will be stuck, that is the only thing what i saw and probably more things can be broken

L 06/01/2015 - 13:40:38: "Dani The Master Driver<2><STEAM_0:0:39520635><>" entered the game
L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38


L 06/01/2015 - 13:40:38: Lua Error:
[ERROR] gamemodes/extremefootballthrowdown/gamemode/init.lua:38: attempt to compare nil with number
  1. unknown - gamemodes/extremefootballthrowdown/gamemode/init.lua:38
Title: Re: Last Joined Check [1.02v]
Post by: Bite That Apple on June 01, 2015, 11:07:19 PM
Just by curiosity, what happens if you remove my addon, does it still cause errors?
Title: Re: Last Joined Check [1.02v]
Post by: PaRappa the Rapper (Gaming PC) on June 02, 2015, 04:51:39 AM
Just by curiosity, what happens if you remove my addon, does it still cause errors?

No, when i remove your last joined check script, everithing goes back to normal just fine
Title: Re: Last Joined Check [1.02v]
Post by: Bite That Apple on June 02, 2015, 12:52:45 PM
No, when i remove your last joined check script, everithing goes back to normal just fine

I'm thinking that maybe my addon isn't right for you :(

Your Gamemode, init:38
Code: Lua
  1. if CurTime() >= pl.NextHealthRegen and CurTime() >= pl.LastDamaged + 5 and pl:Health() < pl:GetMaxHealth() then

That's what line 38 says, and I use none of those elements in my addon which would cause your gamemode to break for no reasons.
Title: Re: Last Joined Check [1.02v]
Post by: Vangarde on May 11, 2016, 05:08:29 PM
I put your add-on in the folder, yet nothing happens when I reconnect to my own LAN server.

All your other add-ons seem to work perfectly, just this one doesn't do anything.. no errors nothing, as if it's not even there, HELP.
Title: Re: Last Joined Check [1.02v]
Post by: JamminR on May 11, 2016, 06:47:31 PM
Which addon file?
Which folder?
Title: Re: Last Joined Check [1.02v]
Post by: Vangarde on May 12, 2016, 07:31:44 PM
I put the folder apple_lastjoined into the addons folder. I am not a complete noob. I have multiple other add-ons currently setup on my LAN server for testing before creating a real online server.
Title: Re: Last Joined Check [1.02v]
Post by: JamminR on May 12, 2016, 08:04:30 PM
You mention "LAN" server.
Is it authenticated with Valve? The addon uses steamids.
Is it a "Listen" server, or an actual dedicated running on a LAN box?

Some addons don't like listen servers.
I've no idea for this one.

More importantly, are you getting any server console errors related to this addon when server starts up, or a player joins in server or client console?
Title: Re: Last Joined Check [1.02v]
Post by: Vangarde on May 13, 2016, 07:55:50 AM
Yes I was using SteamCMD and server was VAC secured.

Could you clarify the difference? I mean, it wasn't run off an ACTUAL server box, it was run off my computer, so I guess a listen?

No errors appear from it or anything when a player joins in console, just the usual.

I bought a server now with Halcuro hosting. I really could use some tips JamminR and appreciate your help so far.

Maybe I could pay you to add me on steam so I could communicate with you easier? :D

Cheers.
Title: Re: Last Joined Check [1.02v]
Post by: 1day2die on June 04, 2016, 08:14:18 AM
Dosent work for me either
[ERROR] addons/apple_lastjoined/lua/autorun/sv_lastjoin.lua:63: attempt to concatenate a nil value
  1. fn - addons/apple_lastjoined/lua/autorun/sv_lastjoin.lua:63
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:110

and everything goes to (TTT)
Title: Re: Last Joined Check [1.02v]
Post by: Ace on June 28, 2016, 07:53:58 PM
This didn't work for me so I deleted it and now my servers messed up... Im getting an error

Lua Error: [ERROR] addons/apple_lastjoined/lua/autorun/sv_lastjoin.lua:121: attempt to concatenate a nil value 1. fn - addons/apple_lastjoined/lua/autorun/sv_lastjoin.lua:121 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:179
Title: Re: Last Joined Check [1.02v]
Post by: Undercover Orange on June 30, 2016, 10:56:40 PM
could you update this to let you see the IP of past joined players? in case you wish to IP ban them
Title: Re: Last Joined Check [1.02v]
Post by: Bite That Apple on July 03, 2016, 11:33:41 PM
could you update this to let you see the IP of past joined players? in case you wish to IP ban them

I'm sure there already is an addon that does that, or you could edit mine if you needed it to do that. I don't do gmod related things anymore, except update addons if they become broken, in which I have updated my addon today as there was a small issue with it. So errors should be gone.
Title: Re: Last Joined Check [1.04v]
Post by: Shu | Pexie on August 01, 2018, 11:50:26 AM
Hey! Are you sure the command "!ocheckjoin" is working? I was checking all the files in the folders and i didn't see any code related to it...
Title: Re: Last Joined Check [1.04v]
Post by: Bite That Apple on August 01, 2018, 12:04:34 PM
Hey! Are you sure the command "!ocheckjoin" is working? I was checking all the files in the folders and i didn't see any code related to it...

Maybe I never finished it or uploaded it then, not sure anymore, I’ve actually forgotten about Garry’s Mod and other things at this point. I haven’t gotten an email from this place in two years...
Title: Re: Last Joined Check [1.04v]
Post by: Shu | Pexie on August 02, 2018, 10:32:39 PM
Maybe I never finished it or uploaded it then, not sure anymore, I’ve actually forgotten about Garry’s Mod and other things at this point. I haven’t gotten an email from this place in two years...

Yeah this topic is very old, but since i'm using your script in one of my servers and i was wondering where it was this command, so i give it a try to resurrect this from the dead.  :)
Title: Re: Last Joined Check [1.04v]
Post by: Bite That Apple on August 02, 2018, 10:44:51 PM
Yeah this topic is very old, but since i'm using your script in one of my servers and i was wondering where it was this command, so i give it a try to resurrect this from the dead.  :)

I have no idea if this will work or not, but I have edited it. It looks like I only made the mysql version have ocheckjoin. It's been so long since I've messed with lua now, that I've forgotten most of it now at this point, and I don't know if this will work at all, but I pretty much copied and pasted it. Let me know if it works for you.
Title: Re: Last Joined Check [1.04v]
Post by: Shu | Pexie on August 09, 2018, 09:51:41 AM
I have no idea if this will work or not, but I have edited it. It looks like I only made the mysql version have ocheckjoin. It's been so long since I've messed with lua now, that I've forgotten most of it now at this point, and I don't know if this will work at all, but I pretty much copied and pasted it. Let me know if it works for you.

It doesn't work, even the command itself... It's weird, since i have the same code here without errors, also checking those lines i didn't find anything uncommon...

Code: [Select]
[ERROR] lua/autorun/sv_lastjoin.lua:221: 'end' expected (to close 'function' at line 155) near 'elseif'
  1. unknown - lua/autorun/sv_lastjoin.lua:0

[ERROR] lua/autorun/sv_lastjoin.lua:176: 'end' expected (to close 'function' at line 155) near 'elseif'
  1. unknown - lua/autorun/sv_lastjoin.lua:0
Title: Re: Last Joined Check [1.04v]
Post by: Bite That Apple on August 09, 2018, 12:29:30 PM
It doesn't work, even the command itself... It's weird, since i have the same code here without errors, also checking those lines i didn't find anything uncommon...

Code: [Select]
[ERROR] lua/autorun/sv_lastjoin.lua:221: 'end' expected (to close 'function' at line 155) near 'elseif'
  1. unknown - lua/autorun/sv_lastjoin.lua:0

[ERROR] lua/autorun/sv_lastjoin.lua:176: 'end' expected (to close 'function' at line 155) near 'elseif'
  1. unknown - lua/autorun/sv_lastjoin.lua:0

Yeah, I don't mess around with Garry's Mod anymore, and I don't have a proper code editor anymore. I opened it on my old laptop that I used to use for coding and found the issue, I copied and pasted in the wrong area, and forgot about an end statement.

 This will work now.
Title: Re: Last Joined Check [1.05v]
Post by: Bite That Apple on August 09, 2018, 12:33:48 PM
Code: [Select]
Updated to 1.05
-Fixed !ocheckjoin STEAMID
Title: Re: Last Joined Check [1.05v]
Post by: Shu | Pexie on August 09, 2018, 03:20:33 PM
Code: [Select]
Updated to 1.05
-Fixed !ocheckjoin STEAMID

Everything is working now, but since you are here.... You can tell me about the string called "tostring(timesjoined)" means. The first time i saw this, i was thinking it had something related of how many seconds you were in the server (after authentication), but probably i'm wrong about it...
Title: Re: Last Joined Check [1.05v]
Post by: Bite That Apple on August 09, 2018, 06:25:35 PM
Everything is working now, but since you are here.... You can tell me about the string called "tostring(timesjoined)" means. The first time i saw this, i was thinking it had something related of how many seconds you were in the server (after authentication), but probably i'm wrong about it...

pretty sure it just lets the user or other people know how many times they joined the server. If I recall it's a number in parentheses (x)
Title: Re: Last Joined Check [1.05v]
Post by: Shu | Pexie on August 09, 2018, 10:23:18 PM
pretty sure it just lets the user or other people know how many times they joined the server. If I recall it's a number in parentheses (x)

Yeah now that you said, it makes sense... Anyway thanks for the help and the update after years later  ;)