ULX

Author Topic: Help with ULX 2.1 and ULib 1.1  (Read 3745 times)

0 Members and 1 Guest are viewing this topic.

Otacon

  • Guest
Help with ULX 2.1 and ULib 1.1
« on: October 12, 2006, 05:02:51 PM »
I just downloaded ULib 1.1 and ULX 2.1 and I removed the old ULX files and put everything where it needs to be but there are problems. Problem 1: Admin config is not working, I went into users.ini and even had one generated because mine wasn't working. It still won't work. Problem 2: I had eSWEP and it isn't working. Problem 3: Every time I spawn an SWEP, my server crashes. I don't know how many of these are related to the upgrade, but any ideas would be helpful. :-\

spbogie.

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #1 on: October 12, 2006, 05:32:15 PM »
1) Please post your user.ini aswell as the output of "status" and "ulx who" in console.

2) eSWEP uses the old ULX admin system, and needs some modification to work correctly with ULX 2. I will try to explain these modifications later

3) Are you trying to spawn SWEPs through the normal SWEP menu or the eSWEP menu, and is it all SWEPs or just some?

P.S. @Megiddo I'm posting as guest because it won't let me post outsied of the Team section

Otacon

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #2 on: October 12, 2006, 05:46:30 PM »

Code: [Select]
// User configuration file

// Line starting with // are comments

// Access flags:
// a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
// b - reservation (can join on reserved slots)
// c - kick access
// d - ban and unban access
// e - slay and slap access
// f - map access
// g - cvar access
// h - ent access (could crash the server!)
// i - misc chat access
// j - vote access
// k - prop access
// l - rcon access
// m - player control access (things that affect clients)
// n - menu access
// Other letters may be used for additional plugins (access flags are caps-sensitive).

// Account flags:
// a - this is a playername
// b - this is a clan tag (partial playername)
// c - this is a steamid
// d - this is an ip
// e - this is a steam login (the username they log into steam with)
// f - disconnect player on invalid password. This MUST be used with another account flag. (It's the only flag that can be used with others)
//      (gives them 30 seconds to enter their pass, by default)

// Password:
// When asked for the password, use "_pw <password>" in console

// Format of admin account:
// "<name|ip|steamid|clantag|steamlogin>" "<password>" "<access flags>" "<account flags>"

// Examples of admin accounts:
// "STEAM_0:0:123456" "" "abcdefghijklmnopqrstuv" "c"
// "123.45.67.89" "" "abcdefghijklmnopqrstuv" "d"
// "My Name" "my_password" "abcdefghijklmnopqrstuv" "a"
// "MingeBag" "supah_pass" "abcdefghijklmnopqrstuv" "bf" // This will disconnect any mingebag who does not know the password.

"STEAM_0:1:822712" "" "abcdefghijklmn" "c"

//Made by armpit's easy access generator




STATUS
hostname:  Otacons Playground of Destruction
version : 1.0.1.0/7 2894 insecure
udp/ip  :  192.168.1.130:27015
map     :  freespace06_v2-1 at: 0 x, 0 y, 0 z
players :  1 (7 max)

# userid name uniqueid connected ping loss state adr
#  2 "Hal Emmerich" STEAM_0:1:8227125 01:29 38 0 active 192.168.1.1:27006





ULX WHO

] ulx who
userid   name   access
End of admin list

spbogie.

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #3 on: October 12, 2006, 05:50:00 PM »
You are missing the 5 at the end of your steam id in the users.ini

spbogie.

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #4 on: October 12, 2006, 06:12:33 PM »
To get eSWEP working all you should need to do is load ULib and change HookEvent at the end.
Add This to the start:
Code: [Select]
assert( _file.Exists( "lua/ULib/init.lua" ), "eSWEP needs ULib to run!" )
_OpenScript( "ULib/init.lua" )
assert( ULib.VERSION >= 1.1, "eSWEP requires ULib version 1.1 or higher to run!" )

And change this:
Code: [Select]
HookEvent("eventPlayerInitialSpawn", eSWEP.send)to this:
Code: [Select]
ULib.mainUcl:addAccessCallback(eSWEP.send)

Otacon

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #5 on: October 12, 2006, 06:23:31 PM »
sorry, but what did you mean by "load ulib"? Oh, and nice catch with that 5 I dropped off, guess I didnt copy all of it.

spbogie.

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #6 on: October 12, 2006, 06:32:01 PM »
Loading ULib is what the first code block does. Place it right at the start of the the eSWEP lua file.

Also the missing last digit is a common problem. The console seems to always drop the last selected character.

Otacon

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #7 on: October 12, 2006, 06:32:38 PM »
Okay hold on I found what you were referring to, and thank you by the way, i'm the admin once again. now testing eswep.

Otacon

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #8 on: October 12, 2006, 06:39:31 PM »
Okay, the eSWEP menu still isn't working. First of all I only get the public SWEPs and second of all the server crashes whenever I spawn an SWEP  :o I have no clue what is going on. I had someone test, and it isn't the client side crashing, it's definetly the server. I'm lost.

spbogie.

  • Guest
Re: Help with ULX 2.1 and ULib 1.1
« Reply #9 on: October 12, 2006, 06:50:05 PM »
Otacon hop on the IRC and I can probibably help you easier. http://ulyssesmod.net/chat/