Author Topic: UtimeMOO - Utime for MySQL (Linux Compatible)  (Read 39997 times)

0 Members and 6 Guests are viewing this topic.

Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #15 on: August 03, 2013, 02:28:24 AM »
I'm getting this error when a player joins.


Code: [Select]
[ERROR] addons/utimem/lua/autorun/cl_utime.lua:310: attempt to index local 'cpanel' (a nil value)
1. buildCP - addons/utimem/lua/autorun/cl_utime.lua:310
2. resetCvars - addons/utimem/lua/autorun/cl_utime.lua:305
3. fn - addons/utimem/lua/autorun/cl_utime.lua:406
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
5. GetAll - [C]:-1
6. fn - addons/ulx/lua/ulx/modules/sh/chat.lua:245
7. Call - addons/ulib/lua/ulib/shared/hook.lua:183
8. fn - addons/ulib/lua/ulib/cl_init.lua:40
9. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
 
 
[anulka.w1106|3|STEAM_0:0:61718709] Lua Error:
controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!
 
[anulka.w1106|3|STEAM_0:0:61718709] Lua Error:
 
[ERROR] addons/utimem/lua/autorun/cl_utime.lua:310: attempt to index local 'cpanel' (a nil value)
1. buildCP - addons/utimem/lua/autorun/cl_utime.lua:310
2. resetCvars - addons/utimem/lua/autorun/cl_utime.lua:305
3. fn - addons/utimem/lua/autorun/cl_utime.lua:406
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
 
 
[anulka.w1106|3|STEAM_0:0:61718709] Lua Error:
controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #16 on: August 03, 2013, 04:09:39 AM »
Make sure your using the latest 'fix' by Tweak. It appears several posts after the original release, June 29 I think.
Also make sure you've got the latest svn of Utime from https://github.com/Nayruden/Ulysses/
Seems I remember seeing the cpanel bug you mention fixed months if not years ago.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #17 on: August 03, 2013, 11:33:11 AM »
I was using his fix, I will try the latest svn. Are you suggesting that I should mix the latest svn with Tweak's fix?

EDIT: Newest svn gives me the same error, strange thing is I only get it on my Zombie Survival server and not on my sandbox...
« Last Edit: August 03, 2013, 11:49:38 AM by alexys95 »

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #18 on: August 03, 2013, 12:44:37 PM »
Yeah you can mix them, if you overwrite just the SVN's sv_utime.lua with mine. I think the cpanel error is from running it on gamemodes without a spawnmenu. I'll see about including the fixed client file with mine.


Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #19 on: August 04, 2013, 08:41:49 AM »
Yeah you can mix them, if you overwrite just the SVN's sv_utime.lua with mine. I think the cpanel error is from running it on gamemodes without a spawnmenu. I'll see about including the fixed client file with mine.

It will mean the world to me if you could fix the UtimeMOO so it works with a gamemode without a spawnmenu :D


EDIT: I assume utime uses pdata, so is there a way to import the pdata to mysql?
« Last Edit: August 05, 2013, 01:30:56 PM by alexys95 »

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #20 on: August 05, 2013, 04:15:24 PM »
Not sure what you mean by pdata, the original utime stores data in the SQLite database (sv.db). It's possible to migrate the data from SQLite to MySQL with a script, or maybe there is a way to just dump it to CSV and import it straight to MySQL, I dunno. The table structure is a little different. I did it using Lua but I don't have the script anymore...

Anyway, you can just grab the cl_utime file from the official SVN and overwrite it, that should make it not error when there is no spawnmenu.
« Last Edit: August 05, 2013, 05:58:10 PM by TweaK »


Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #21 on: August 06, 2013, 01:20:40 PM »
Not sure what you mean by pdata, the original utime stores data in the SQLite database (sv.db). It's possible to migrate the data from SQLite to MySQL with a script, or maybe there is a way to just dump it to CSV and import it straight to MySQL, I dunno. The table structure is a little different. I did it using Lua but I don't have the script anymore...

Anyway, you can just grab the cl_utime file from the official SVN and overwrite it, that should make it not error when there is no spawnmenu.

Oh my bad, I assumed that all addons used "pdata" I've seen some other ones have it. I will try to import it directly.
« Last Edit: August 06, 2013, 01:26:42 PM by alexys95 »

Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #22 on: August 07, 2013, 04:50:13 PM »
Not sure what you mean by pdata, the original utime stores data in the SQLite database (sv.db). It's possible to migrate the data from SQLite to MySQL with a script, or maybe there is a way to just dump it to CSV and import it straight to MySQL, I dunno. The table structure is a little different. I did it using Lua but I don't have the script anymore...

Anyway, you can just grab the cl_utime file from the official SVN and overwrite it, that should make it not error when there is no spawnmenu.

I successfully extracted the SQLite data and imported it to my MySQL db and it works on my sandbox and zombie survival server! Thanks :D
« Last Edit: August 07, 2013, 05:32:41 PM by alexys95 »

Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #23 on: August 08, 2013, 05:17:55 AM »
Scratch that it worked on the zombie survival server. I still get this error and I've updated the cl_utime file....

Code: [Select]
[antbert|15|STEAM_0:1:70488492] Lua Error:
 
[ERROR] addons/utimem/lua/autorun/cl_utime.lua:310: attempt to index local 'cpanel' (a nil value)
  1. buildCP - addons/utimem/lua/autorun/cl_utime.lua:310
   2. resetCvars - addons/utimem/lua/autorun/cl_utime.lua:305
    3. fn - addons/utimem/lua/autorun/cl_utime.lua:334
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
 
 
[antbert|15|STEAM_0:1:70488492] Lua Error:
controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!
 
[antbert|15|STEAM_0:1:70488492] Lua Error:
 
[ERROR] addons/utimem/lua/autorun/cl_utime.lua:310: attempt to index local 'cpanel' (a nil value)
  1. buildCP - addons/utimem/lua/autorun/cl_utime.lua:310
   2. resetCvars - addons/utimem/lua/autorun/cl_utime.lua:305
    3. fn - addons/utimem/lua/autorun/cl_utime.lua:334
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
      5. TraceLine - [C]:-1
       6. unknown - addons/utimem/lua/autorun/cl_utime.lua:143

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #24 on: August 08, 2013, 09:08:41 PM »
And you're using the cl_utime.lua from the official SVN?


Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #25 on: August 09, 2013, 08:12:05 AM »
And you're using the cl_utime.lua from the official SVN?http://forums.ulyssesmod.net/Themes/default/images/bbc/email.gif


I'm using this svn: "https://github.com/Nayruden/Ulysses/".

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #26 on: August 09, 2013, 05:11:22 PM »
Hmm, that is weird. And zombie survival does not have a spawnmenu, correct? You might be able to get away with just commenting out that block of code (lines 322-330) just to suppress the error for now...


Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #27 on: August 10, 2013, 03:29:52 PM »
Hmm, that is weird. And zombie survival does not have a spawnmenu, correct? You might be able to get away with just commenting out that block of code (lines 322-330) just to suppress the error for now...

Uhm, not sure what you mean with a spawn menu, but Zombies can change class if they press F3.

Edit: *facepalm* did you mean "Q" where you spawn props/etc?
« Last Edit: August 10, 2013, 03:43:42 PM by alexys95 »

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #28 on: August 11, 2013, 01:33:41 AM »
yeah that


Offline alexys95

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UtimeMOO - Utime for MySQL (Linux Compatible)
« Reply #29 on: August 11, 2013, 09:17:35 AM »
Okay, well no it does not have a spawn menu.