• Print

Author Topic: Motd error  (Read 7722 times)

0 Members and 1 Guest are viewing this topic.

Offline ShaggySGD

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Motd error
« on: September 17, 2014, 12:23:55 pm »
I got this error when installing QAC (Quack Anti Cheat), Anyone know whats causing this? I talked to the owner of QAC and said it was Ulx.
Quote
[ERROR] addons/ulx/lua/ulx/modules/cl/motdmenu.lua:29: bad argument #1 to 'SetHTML' (string expected, got no value)
  1. SetHTML - [C]:-1
   2. fn - addons/ulx/lua/ulx/modules/cl/motdmenu.lua:29
    3. func - addons/ulib/lua/ulib/client/cl_util.lua:22
     4. unknown - lua/includes/modules/net.lua:31

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Motd error
« Reply #1 on: September 18, 2014, 04:18:36 am »
Remove QAC and see if the error persists
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Motd error
« Reply #2 on: September 18, 2014, 07:04:19 am »
If it works when you remove QAC, you'll need to find out from QAC dev what it's preventing from running or reading when clients connect.
The ULX motd is a both server side and client side process.
Server sees player connect, if motd is "on", server reads file or URL, sends the data to client, client reads that data, and is supposed to open it.
Seems QAC could break any of that process.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Motd error
« Reply #3 on: September 18, 2014, 07:52:55 am »
QAC was a skid anti cheat, I wouldn't be surprised if it causes errors with stock download.
The issue is within the client side file. ZTF made some weird aliases.
Out of the Garry's Mod business.

Offline ShaggySGD

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Motd error
« Reply #4 on: September 18, 2014, 04:26:42 pm »
Are there and other free alternatives? I'm not good with coding at all, ill look at the files but I most likely will not fix it.

Also, I don know if I should be posting non-Ulx problems here but anyone know how to set the direction of a custom spawn (in game)?
« Last Edit: September 18, 2014, 04:30:23 pm by ShaggySGD »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Motd error
« Reply #5 on: September 18, 2014, 04:31:15 pm »
If in free, you mean released publicly, then no.
There is HeX Anti-Cheat, but you can't use it with ULX.
Out of the Garry's Mod business.

Offline ShaggySGD

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Motd error
« Reply #6 on: September 18, 2014, 05:45:12 pm »
Okay, thanks.. I guess ill see what I can do with QAC.

Edit: Okay I just removed the client folder and that fixed it (I think you told me to do that).
Any way, thanks a ton and I hope QAC still works :P
« Last Edit: September 18, 2014, 06:56:21 pm by ShaggySGD »

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Motd error
« Reply #7 on: September 18, 2014, 08:55:36 pm »
wot

Removing the client folder will make it cease to work.
All you need to do is to un-alias the functions in clientside.

Code: Lua
  1. local nr = _G["net"]["Receive"]
  2. local ns = _G["net"]["Start"]
  3. local ns2s = _G["net"]["SendToServer"]
  4. local nws = _G["net"]["WriteString"]
  5. local nwi = _G["net"]["WriteInt"]
  6. local nwt = _G["net"]["WriteTable"]
  7. local nwb = _G["net"]["WriteBit"]
  8. local nrt = _G["net"]["ReadTable"]
  9. local cvarcb = cvars.AddChangeCallback
  10. local dbgg = debug.getinfo
  11. local up = unpack
  12. local gc = GetConVar

Those are the aliases.

EDIT: I also found this within the code, I don't know why the comment says what it says though. Perhaps the Staff could elaborate?

Code: Lua
  1. --{_G, "CreateClientConVar"}, -- ULX IS <mean adjective>   // note to self, create detour
« Last Edit: September 18, 2014, 09:06:04 pm by Neku »
Out of the Garry's Mod business.

Offline ShaggySGD

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Motd error
« Reply #8 on: September 19, 2014, 04:29:57 am »
..Okay, I'm so sorry but were would I put those?
(I know i'm bad, as you can tell... Honestly I have no clue what you talking about...)

I dragged them into the client folder file an it did nothing, I'm guess that was to wrong file..
Also thanks for being so patience with me (you're probably pulling your hair out).
« Last Edit: September 19, 2014, 02:37:29 pm by ShaggySGD »

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Motd error
« Reply #9 on: September 19, 2014, 05:32:43 am »
EDIT: I also found this within the code, I don't know why the comment says what it says though. Perhaps the Staff could elaborate?

Code: Lua
  1. --{_G, "CreateClientConVar"}, -- ULX IS <mean adjective>   // note to self, create detour

That is general facepunch attitude, just do look around almost all more experienced users on there literally hate ULX, eventhough there is no reason.
Usually they recommend using something like Moderator or Evolve, eventhough I absolutley dislike those admin plugins!

Also they bring up arguments like "two addons for one admin plugin (ulib/ulx)", "it rewrites hooks, which is soooooooo bad", etc.

Offline ShaggySGD

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Motd error
« Reply #10 on: September 27, 2014, 08:58:32 pm »
Don't know if you guys care or not, but my problem still isn't solved.. I know I'm bad a lua.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Motd error
« Reply #11 on: September 27, 2014, 09:05:53 pm »
Don't know if you guys care or not, but my problem still isn't solved.. I know I'm bad a lua.

Did you remove QAC and test if ULX still functioned like I suggested earlier or did you just skip that part?
Once you get to know me, you'll find you'll have never met me at all.

  • Print