Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time/level got reset
#4
oh wow i was nowhere near this thing yesterday still need to know if xp was also reset
XP was easier for me to work with so i made a lot of changes to help prevent xp resets

I just dont know what more to do with utime many devs have tried and abandoned mysql support for utime because it just does this bs. theres like 7-8 people who tried and failed. my workaround is very crude but somewhat effective. i put a "dont save someones time unless the TOTAL time - top time - is over like 10 mins" code into it i mean if your utime is not loaded in 10 mins then something bigger happened then i can handle.

so when you join the clock starts.... then utime loads and sets it to your time. if it dosnt set it then it continues to tick to that 10 min (hopefully for a new guest) mark then the rest of the script respects the 10 min total time requirement and continues for saving and such.

i think gmod and lua are not stable enough to work together for mysql specially as small simple scripts. i mean how many times have you logged on and seen something messed up like errors then you relog and its fixed. I believe the lua support in gmod itself is very crude. LUA is a code designed initially more for just settings. i mean SQL opening ports sending network data its really not suited for it with gmod. SQL is a complex thing it involves table locks unlocks scans queries all sorts of stuff. Things happen that the game server is not even aware of.

I know the PS2 designer put a tremendous amount of work into sql coding. I cannot comprehend all the code involved in ps2 and sql. But you dont ever seem to lose your points or wallets. if ps2 dosnt load you log back on and its back. The coding he has seems to cover every scenario I just dont have the experience or knowledge to take the knowledge / theory from that and convert it into something utime can use. PS2 is extremely complicated thats why its like 40$.

I can probably eventually work out XP and add checks and balances to every single xp transaction. But its almost like rewriting the entire plugin. and if an update for xp comes out or gmod changes, gotta do it all over again. and that is the cost of having a one author "semi closed" project and not on something like github where i can just fork it discuss it and merge. I tried to contact him but he wont reply.


Messages In This Thread
time/level got reset - by Santa Shwaggins - 12-17-2017, 10:46 PM
RE: time/level got reset - by A Fish - 12-18-2017, 01:24 PM
RE: time/level got reset - by Santa Shwaggins - 12-18-2017, 09:02 PM
RE: time/level got reset - by penguinslayer4 - 12-18-2017, 04:32 PM
RE: time/level got reset - by A Fish - 12-18-2017, 06:12 PM
RE: time/level got reset - by penguinslayer4 - 12-18-2017, 08:29 PM
RE: time/level got reset - by A Fish - 12-18-2017, 09:48 PM
RE: time/level got reset - by penguinslayer4 - 12-18-2017, 11:31 PM
RE: time/level got reset - by A Fish - 12-19-2017, 12:04 AM
RE: time/level got reset - by Mallakk - 12-18-2017, 11:33 PM
RE: time/level got reset - by A Fish - 12-19-2017, 12:44 PM

Forum Jump:


Users browsing this thread:

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.