TeamUlysses / ulx

ULX: A powerful administration addon for Garry's Mod
https://ulyssesmod.net
Other
163 stars 72 forks source link

bad argument #213

Closed deathking61 closed 11 months ago

deathking61 commented 1 year ago

Steps to reproduce

1.open server (either you own it or you can even change the settings 2.open ulx 3.try to "add new section"

Expected behavior

should have added a line

Actual behavior

Bugged out

Error(s) in server console, if any

[ulx-master] addons/ulx-master/lua/ulx/xgui/settings/server.lua:786: bad argument #1 to 'insert' (table expected, got nil)

  1. insert - [C]:-1
    1. DoClick - addons/ulx-master/lua/ulx/xgui/settings/server.lua:786
    2. OnMouseReleased - lua/vgui/dlabel.lua:237
      1. unknown - lua/vgui/dmenuoption.lua:76

Error(s) in player's console, if any

[ulx-master] addons/ulx-master/lua/ulx/xgui/settings/server.lua:786: bad argument #1 to 'insert' (table expected, got nil)

  1. insert - [C]:-1
    1. DoClick - addons/ulx-master/lua/ulx/xgui/settings/server.lua:786
    2. OnMouseReleased - lua/vgui/dlabel.lua:237
      1. unknown - lua/vgui/dmenuoption.lua:76 (x2)

Version

Run "ulx version" in console and paste the result ULib v2.71d (08/04/22) ULX v3.81d (08/04/22)

zpetty33 commented 1 year ago

What do you mean by, "add new section" I don't see that in my ULX menu. Can you show me a screenshot or be more specific?

deathking61 commented 1 year ago

ill send that in a few and it seems your current version of ulx is broken cannot change the MOTD cannot see ranks on the scoreboard so is there something i'm doing wrong? i love the addon i dont wanna change it out.

On Wed, Jul 12, 2023 at 11:05 AM Zach P. @.***> wrote:

What do you mean by, "add new section" I don't see that in my ULX menu. Can you show me a screenshot or be more specific?

— Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulx/issues/213#issuecomment-1632901107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5WDEGLWZBDYRJ7IMTEMFTXP3KNDANCNFSM6AAAAAA2HDVQMM . You are receiving this because you authored the thread.Message ID: @.***>

deathking61 commented 1 year ago

busted ulz

this is the issue and where its at

zpetty33 commented 1 year ago

Seeing ranks in the scoreboard is a function of the scoreboard. ULX has never included a scoreboard. As for the MOTD thing. It seems to be working for me with no issues at all.

Video

deathking61 commented 1 year ago

odd cause ive tried to use this and it bugs out ived tried the workshop and github version

also now getting this [ULX] lua/ulx/xgui/groups.lua:492: attempt to index a nil value

  1. DoClick - lua/ulx/xgui/groups.lua:492
    1. unknown - lua/vgui/dlabel.lua:237 (x5)

not gona lie like the addon but right now its more a pain to use as it just breaks

zpetty33 commented 1 year ago

You probably have a conflicting addon. Try removing all your addons except ULX and ULib and see if you still have issues.

deathking61 commented 1 year ago

the only other addons i have right now is some sprop stuff and some wiremod extentions / guns but they dont interfere with ulx soo but ill keep looking

zpetty33 commented 1 year ago

You may have a botched installation. If you are SURE that you don't have a conflicting addon, you can try the following:

  1. Shut down your server
  2. Remove ULX and ULib from your addons folder.
  3. Go into your server's garrysmod directory. Go into the data director and DELETE the ulx folder and the ulib folder.
  4. Download CLEAN fresh copies of ULX and ULib from here (github).. try out the experimental branch
  5. Install them as normal and start your server. You now have a clean install.
  6. Add yourself as an admin and try out the motd menu, see if you are still getting the issues you had before.
SticklyMan commented 1 year ago

MOTD issue: My guess is that there is an error in your motd.txt config file. Can you check your server startup logs and look for a line that looks something like this? [ULX] Error in motd config:

If there's nothing sensitive in it, could you share your server's data\ulx\motd.txt file so we can see what might be wrong with it? If not, you could just delete the file and restart your server to have ULX regenerate it (step 3 in zpetty33's message above)

Teams issue:

also now getting this [ULX] lua/ulx/xgui/groups.lua:492: attempt to index a nil value

Dumb bug, but I think I was able to reproduce it. Should be fixed via ecf80c325e69ea1adfb1f764a2aad55e62c8e57e and b3f3f4bb2ae2181bae00fc47ca80234471249e23

deathking61 commented 1 year ago

i got it working no idea how but i did

On Wed, Jul 12, 2023 at 11:44 PM SticklyMan @.***> wrote:

MOTD issue: My guess is that there is an error in your motd.txt config file. Can you check your server startup logs and look for a line that looks something like this? [ULX] Error in motd config:

If there's nothing sensitive in it, could you share your server's data\ulx\motd.txt file so we can see what might be wrong with it? If not, you could just delete the file and restart your server to have ULX regenerate it (step 3 in zpetty33's message above)

Teams issue:

also now getting this [ULX] lua/ulx/xgui/groups.lua:492: attempt to index a nil value

Dumb bug, but I think I was able to reproduce it. Should be fixed via ecf80c3 https://github.com/TeamUlysses/ulx/commit/ecf80c325e69ea1adfb1f764a2aad55e62c8e57e and b3f3f4b https://github.com/TeamUlysses/ulx/commit/b3f3f4bb2ae2181bae00fc47ca80234471249e23

— Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulx/issues/213#issuecomment-1633586670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5WDEGCJY4HT2XYD5AQRD3XP6DJ7ANCNFSM6AAAAAA2HDVQMM . You are receiving this because you authored the thread.Message ID: @.***>

SticklyMan commented 11 months ago

Closing as solved, user was able to get things working on their end, and I pushed out a fix for the other.