ULX

Author Topic: Questions! Questions! Questions!  (Read 14835 times)

0 Members and 1 Guest are viewing this topic.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #30 on: March 07, 2015, 11:46:20 PM »
New topic.

So this: http://wiki.garrysmod.com/page/resource/AddWorkshop

Does anyone know how it works?
An example is like, let's say I force a player to download ADDON_A. The client joins the server, it downloads and it goes into <game dir>/garrysmod/downloads/server. The client leaves the server, ADDON_A gets updated, and then rejoins the same server, will the addon update itself in downloads/server?

Please try not to guess or estimating, I'd like a real answer.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Questions! Questions! Questions!
« Reply #31 on: March 07, 2015, 11:57:24 PM »
I use this on my server.
It works exactly like that.

If a player joins the server that has this, it will check the workshop to make sure they have the latest version of the addon and download it/update it if necessary.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #32 on: March 16, 2015, 03:03:21 AM »
Code: [Select]
Aborting HTTP request because pResponse->BSetBodyData() failed (RecvHTTPResponse
Data)

I'm getting this error ever since garry's mod update. Only thing I could find that Garry talked about is this:

HTTP() now supports “head”, “put” and “delete” as methods
Added a bunch of requested headers to HTTP request results
HTTP requests now accept a “headers” table
gui.OpenURL now accepts HTTPS addresses
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Questions! Questions! Questions!
« Reply #33 on: March 16, 2015, 07:33:07 AM »

Code: [Select]
Aborting HTTP request because pResponse->BSetBodyData() failed (RecvHTTPResponse
Data)

I'm getting this error ever since garry's mod update. Only thing I could find that Garry talked about is this:

HTTP() now supports “head”, “put” and “delete” as methods
Added a bunch of requested headers to HTTP request results
HTTP requests now accept a “headers” table
gui.OpenURL now accepts HTTPS addresses

I've had that ever since gm13. What I've found is that it links to a gmod Lua problem site that is invalid so it can't actually push any data to it so errors out

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #34 on: March 25, 2015, 04:23:45 PM »
Can't be bothered to search the "not wiki" page for how to make a list in xgui. Easier to ask here. How can I make a list in xgui for modules. Like, lets say I have an addon that is like hp, but instead of a string, I just have a list of preset numbers, how do I do that?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Questions! Questions! Questions!
« Reply #35 on: March 25, 2015, 07:11:45 PM »
Where exactly in XGUI? On the cmds tab?
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #36 on: March 26, 2015, 12:26:25 AM »
Where exactly in XGUI? On the cmds tab?

Yeah, like the fun.lua stuff.

Also please excuse my very simple and dumbed down language, I recently was in a vehicle collision, which has caused some brain bruising. So at the moment while my brain is repairing itself, I'm unable to think of a way to do this, and I am having a hard time picking up lua, so any terms you may use, try to keep to a minimum, as I'm trying to take it easy, without putting too much stress on something.

edit:
So bare with me if you explain something to me, I might ask another question.
« Last Edit: March 26, 2015, 12:35:26 AM by Bite That Apple »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Questions! Questions! Questions!
« Reply #37 on: March 26, 2015, 07:35:23 AM »
The user-interface on the CMDS tab is generated automatically- XGUI does not have an easy way to customize that. The only way I can think of making a list with default values would probably be to make your NumArg (like hp amount) a StringArg instead. From there, you can set autocompletes with your default values. That will make it so they get a list of numbers to choose from, but then they can also type anything they want in. (You'll have to make sure what they enter is a valid number, of course).

You might even be able to specify command-level restrictions so that they can only pick certain values.. You should take a look at the 'ulx map' command for an example of that (I think).

Does that sorta make sense? :P
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #38 on: March 27, 2015, 01:09:40 AM »
The user-interface on the CMDS tab is generated automatically- XGUI does not have an easy way to customize that. The only way I can think of making a list with default values would probably be to make your NumArg (like hp amount) a StringArg instead. From there, you can set autocompletes with your default values. That will make it so they get a list of numbers to choose from, but then they can also type anything they want in. (You'll have to make sure what they enter is a valid number, of course).

You might even be able to specify command-level restrictions so that they can only pick certain values.. You should take a look at the 'ulx map' command for an example of that (I think).

Does that sorta make sense? :P

Well I understand what you're saying, and the first place I looked was util.lua for the map thing. Though, from what you said, it's not possible on how I want it, so sadly, I'll have to wait till it is possible.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #39 on: April 08, 2015, 02:13:30 AM »
Is it possible in ULX to ask if a player has permission to use a certain command? like:

ply:ulx_has_perm('ulx slap') == true ??

I'm not saying I'm lazy, but I have a really hard time using the ulx documents, it like just doesn't like me (i know im doing something wrong but you know, yolo.)

- - -

ignore everything below this, just some notes/comments for myself to remember tomorrow:

scoreboard check !rank position id

!score find me button or check sid
« Last Edit: April 08, 2015, 02:17:06 AM by Bite That Apple »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Experiencing God's grace one day at a time.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Questions! Questions! Questions!
« Reply #41 on: April 08, 2015, 05:41:38 AM »
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #42 on: May 11, 2015, 01:20:47 AM »
The almighty apple is here for one of the biggest questions of all time, and yet the most asked question of all time on these here forums, so let's begin.

Will ULX ever go to mysql or at least sql in the nearer future of Garry's Mod, because if that ever happened, that would literally change Garry's Mod as we know it, like every server could possibly explode into tiny piece then a dinosaur would come to life because some genius watched Jurassic World, and actually made it come true, then the dinosaur would learn to swim, go to New York, and eat the NYSE, and the world would be over as we know it.

Though, honestly will it ever be part of those great systems. It' legit so helpful for creative things, and I've seen it be suggested literally maybe 4 or 5 times a year. To be honest though, I personally only need groups and their permissions, the users being mysql is just another perk though.

Signed, your best friend.
Dr. (ye, got my M.D. in garry's mod) Johnathan Milhouse Greay
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Questions! Questions! Questions!
« Reply #43 on: May 11, 2015, 01:51:36 AM »
The almighty apple is here for one of the biggest questions of all time, and yet the most asked question of all time on these here forums, so let's begin.

Will ULX ever go to mysql or at least sql in the nearer future of Garry's Mod, because if that ever happened, that would literally change Garry's Mod as we know it, like every server could possibly explode into tiny piece then a dinosaur would come to life because some genius watched Jurassic World, and actually made it come true, then the dinosaur would learn to swim, go to New York, and eat the NYSE, and the world would be over as we know it.

Though, honestly will it ever be part of those great systems. It' legit so helpful for creative things, and I've seen it be suggested literally maybe 4 or 5 times a year. To be honest though, I personally only need groups and their permissions, the users being mysql is just another perk though.

Signed, your best friend.
Dr. (ye, got my M.D. in garry's mod) Johnathan Milhouse Greay


Yes.. It's on our list of things to implement and I've already made some headway.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Questions! Questions! Questions!
« Reply #44 on: May 11, 2015, 02:13:51 AM »
Yeah, I've seen you with your ulc modification, it's a start.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.