General > Developers Corner

Using ULib as an all around admin system

<< < (2/5) > >>

JamminR:
I can't replicate your error. Speaking works fine for me.
However!!
Not sure this would help you, but I found this while searching for the error that occurs when trying to use console say, rcon say, or ulx rcon say...


--- Code: ---lua/init/eventhook.lua

-- Developing? Want to see what events are being called?
-- in the HL2 console:
--
-- lua ShowEvents = true;

--- End code ---

Perhaps you could use it to assist.
Prepare to have a console full of extraneous info. Doesn't get logged.

Do you have your users.ini set correctly?
As you stated, you got very similar error when you joined, not just chatted. Might be an 'access' comparison problem.
Copying them straight from ulx 1.x won't work, as you may already know, but when adjusting them the first time, I left out an important part. Here's me in my users.ini

"STEAM_0:1:6016299" "" "abcdefghijklmnopqrstuvwxyz" "c" //JamminR
                              /\--- Don't miss that pw spot     /\-- don't forget that 'type'

I originally didn't put in the password column (can be left blank with double quotes ""), but did add the type.

The only other thing I can think of is that you have another conflicting script. Ulib/ULX tries to accomodate, but I'm sure it may not always. Running any other? Prop protect/anti-spam? Anything?




aschmack:
I took out all of the scripts from the init folder and re-added them one by one. Turns out that xstack and vmfloader were conflicting with ULib.

Also, I force resent the Admin menu with the lua command and it worked. I think that it is being called too soon and the user hadn't been probed yet, so they didn't have access. So I added a timer to the function and now it works beautifully. On to the next mod to add admin support to.


Thanks for the help man


UPDATE: Finished with updating all of my mods, if anyone would like to see what I did with the following mods, feel free to PM me:

PropProtector
eSWEP Menu
Entity Command Suite

JamminR:
If you could find the time to write a "how to convert for Ulib" for any of the more popular scripts, it would be greatly appreciated.
 Post them in Ulib releases section. (PropProtect would be wonderful!!)
 I'm not sure of the best way to present them. I wouldn't recommend just changing the script and then hosting it somewhere. That wouldn't allow for manual updates later, or see-and-learn for the code writers.
Perhaps post the original function(s), then your function changes (before and after).
 I'd also recommend putting a link to the original FP release (or whever it might be hosted) at the top with a disclaimer stating your non-affiliation with the original (unless of course you are affiliated. (You are an up and coming Ulib/ULX/lua developer, right :D :D )
  All of us Ulib devs would appreciate any contributions you make.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version