ULX

Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat & Help and Support / Re: Help with ULX Adduser i think
« Last post by JamminR on May 29, 2020, 04:43:16 PM »
Any errors in server console???

Adduserid expects steam id, uniqueid, or ip. What exactly are you passing?
 Also, if you are editing/developing, use the real function, instead of a console command.
Code: [Select]
ulx.adduserid( calling_ply, id, group_name )


2
General Chat & Help and Support / Help with ULX Adduser i think
« Last post by paldog hellcase.com on May 29, 2020, 10:52:45 AM »
Hi guys, recently i implemented the ''Tebex'' (virtual shop) to my gmod deathrun server... 'i created a ''VIP'' package. and when the people bought that package the command ''ulx adduserid (steamid) vip'' should work , but doesn't do anything… i test that command myself but appears ''the userid 394583453459(example) was added to vip group. but in game, the player still in user group… im using the wrong command or something? i need help with that, thanks btw.
3
General Chat & Help and Support / help me
« Last post by $VDFOREVER on May 28, 2020, 05:14:23 PM »
Hello, I have a problem. I have a bmoderator group. It comes from vip. It can’t take physgun players. Is it possible to register professions? That is, for the profession admin, I automatically register cl_pickupplayers 1 (sorry if I write in the wrong direction)good example: https://youtu.be/cEPkMKceNGI
4
Developers Corner / Re: Command with all parameters optional
« Last post by Timmy on May 28, 2020, 10:47:52 AM »
On issue tracker: https://github.com/TeamUlysses/ulib/issues/36

This error was patched, but hasn't made it in the latest ULib release yet.

The latest dev build will show a "target must be specified" validation error instead.

It looks like optional Player(s)Arg types are currently not supported from the server console.

No straightforward way to solve this without modifications to the ULib source... A custom PlayerArg comes to mind.
5
Developers Corner / Re: Command with all parameters optional
« Last post by captain1342 on May 27, 2020, 09:11:28 PM »
Best comparison to look would be ulx noclip.
It uses isValid to check target ply.
Ends if console.
https://github.com/TeamUlysses/ulx/blob/a8b31ffb3ec6ae1e7bbcea35019312d1b2ca52e1/lua/ulx/modules/sh/util.lua#L172


Thats what I tried to do, but the function doesnt even get executed, it errors out before even attempting to run the function, and if it doesn't open the function I am also unable to add a check for it
6
Developers Corner / Re: Command with all parameters optional
« Last post by JamminR on May 27, 2020, 07:25:34 PM »
Best comparison to look would be ulx noclip.
It uses isValid to check target ply.
Ends if console.
https://github.com/TeamUlysses/ulx/blob/a8b31ffb3ec6ae1e7bbcea35019312d1b2ca52e1/lua/ulx/modules/sh/util.lua#L172
7
General Chat & Help and Support / Re: ULX download and pathing issues
« Last post by iViscosity on May 27, 2020, 02:24:49 PM »
You should have paths like:
Code: [Select]
/garrysmod/addons/ulib/lua/ulib/init.lua
/garrysmod/addons/ulx/lua/ulx/init.lua

I've never installed via SVN, only through the legacy archives, so I can't give help there. If you want to just install them like that, you can get them here: ULib and ULX
8
General Chat & Help and Support / ULX download and pathing issues
« Last post by Horehey on May 27, 2020, 12:59:31 PM »
Hi guys, I apologise cos I'm a real noob, but I am struggling to get ULX and ULIB working on my TTT server.

The server in question is hosted by Nitrado, a third party company. I have spent the last 2 days trying to figure this out but I am asking because I clearly do not understand what the issue is.

I am writing this after uninstalling gmod after my first attempt and deleting all the files associated it, so it's a clean install. I have then added some maps from this collection: https://steamcommunity.com/sharedfiles/filedetails/?id=253784839

And then I used SVN to put ULX and ULIB into the the add-on folder after reading the instructions on here. I noticed that the pathing/file sequence didn't match up with the tutorial.

Whenever I go into Gmod all the commands associated with ULX don't work, it says it is unknown. I originally had the two seperate files (ULX & ULIB) seperate in the addons solder but that also didn't work.

I also tried to get the workshop versions with no luck either. I feel really stupid like I am missing something here but I am struggling to wrap my head around this. 

I have also changed the superadmin and admin .txt file:

"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //

   "superadmin"
   {
      "Horehey"         "STEAM_0:1:14616139"
   }
   
   "admin"
   {
      "Horehey"         "STEAM_0:1:14616139"
   }

}


Thank you for your time.
9
Ulysses Release Archives / Re: MSync - Keep your servers synchronised
« Last post by captain1342 on May 27, 2020, 05:05:38 AM »
MSync 1 reached EOL. It won't recieve any future updates or support by the Aperture Development team. We developed a new version MSync 2, which has been released on our github, and the steam workshop.

Here is the full explaination for it: https://steamcommunity.com/groups/Aperture-Development-EN/announcements/detail/2210648554964127529

I am asking the staff team hereby to close this thread and move it to archived or delete it entirely as MSync 1 is a unsafe product.
10
Developers Corner / Command with all parameters optional
« Last post by captain1342 on May 27, 2020, 04:50:59 AM »
Hello everyone, long time no see

I am currently running into a issue with ULX where I created a command with all parameters being optional ( the first one is a optional player parameter ), but when the console uses the command without parameters it doesn't even attempt to run the function, as the player parameter gets run trough "ulx.getUniqueIDForPlayer", which causes a error as the console is ( you guessed it ) not a player. Here is the lua error:

Code: [Select]
[ERROR] addons/ulib/lua/ulib/shared/player.lua:121: Tried to use a NULL entity!
  1. indexFn - [C]:-1
   2. getUniqueIDForPlayer - addons/ulib/lua/ulib/shared/player.lua:121
    3. parseAndValidate - addons/ulib/lua/ulib/shared/commands.lua:515
     4. __fn - addons/ulib/lua/ulib/shared/commands.lua:916
      5. execute - addons/ulib/lua/ulib/shared/commands.lua:1323
       6. unknown - addons/ulib/lua/ulib/shared/commands.lua:1351
        7. unknown - lua/includes/modules/concommand.lua:54

My question is if there is something I can do without injecting into ULX code ( which I really want to avoid ) ?
Is there some kind of hidden parameter that I don't know yet which isn't documented?

Example:
Code: [Select]
    local exampleFunction = function(calling_ply, target_ply)
        -- It doesn't even go in here
    end
    local exampleCommand= ulx.command( "Example", "example_command", exampleFunction, "!example" )
    exampleCommand:addParam{ type=ULib.cmds.PlayerArg, hint="player", ULib.cmds.optional}
    exampleCommand:defaultAccess( ULib.ACCESS_SUPERADMIN )
    exampleCommand:help( "Example command to demonstrate how the console will not be able to run this command without parameters" )

Now when you run this command "example_command" from the console without parameters, you will recieve a error message and the command function won't be executed at all.

If you know a solution, I am happy to hear about it.

Thank you for reading my rambling,
~cap
Pages: [1] 2 3 ... 10