Recent Posts

Pages: [1] 2 3 ... 10
1
News / Re: New Team Member: Timmy
« Last post by mark272 on August 17, 2019, 04:50:27 PM »
 :D :D :D
Really deserved it! I hope that you’ll have a wonderful time in the team, Timmy.
2
News / New Team Member: Timmy
« Last post by MrPresident on August 17, 2019, 04:01:59 PM »
We would like to welcome Timmy to the Ulysses Team!

Timmy has been a huge asset to our team as a community member, contributing much in the way of code that has found its way into the official release as well as many hours of help supporting others here on the forums.

Timmy's skills will be a great asset to our team, and we are excited to see what he brings to the table going forward!

Welcome!
3
Developers Corner / Re: Using webhooks in gmod
« Last post by BlueNova on August 17, 2019, 12:26:41 PM »
It looks like Discord has blacklisted the User-Agent that Garry's Mod uses to make HTTP requests.

This can be verified with cURL:
Code: [Select]
# This works:
curl -X POST https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}?wait=true \
     -d content=Hello%20discord

# This doesn't:
curl -X POST https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}?wait=true \
     -H "User-Agent: Valve/Steam HTTP Client 1.0 (4000)"
     -d content=Hello%20discord

The User-Agent is hard coded and can not be changed. See: https://github.com/Facepunch/garrysmod-requests/issues/1365

Ahhh that sucks
Thanks Timmy
4
Developers Corner / Re: Using webhooks in gmod
« Last post by Timmy on August 17, 2019, 08:39:04 AM »
It looks like Discord has blacklisted the User-Agent that Garry's Mod uses to make HTTP requests.

This can be verified with cURL:
Code: [Select]
# This works:
curl -X POST https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}?wait=true \
     -d content=Hello%20discord

# This doesn't:
curl -X POST https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}?wait=true \
     -H "User-Agent: Valve/Steam HTTP Client 1.0 (4000)"
     -d content=Hello%20discord

The User-Agent is hard coded and can not be changed. See: https://github.com/Facepunch/garrysmod-requests/issues/1365
5
Developers Corner / Using webhooks in gmod
« Last post by BlueNova on August 16, 2019, 11:08:22 PM »
So I'm kind of new to using webhooks and I haven't been able to figure this out so I would like some perspective from others.
Basically what I'm just trying to do is have messages relayed from garry's mod to discord.

I have tried some of the examples I have found online but none of them have seemed to work. The general idea of what I have is something like this

Code: Lua
  1. local webhook = "insertmywebhookhere"
  2.  
  3. hook.Add("PlayerSay", "discord_relay", function(ply, text)
  4.     http.Post(webook, {content = text}, nil, function(failed)
  5.         print("Something went wrong!")
  6.         print(failed)
  7.     end)
  8. end)

Any help would be appreciated!
Thanks
6
I think the question you're asking is specific to the game mode, and unfortunately, I don't know much about star wars RP. If the second life is tied to a permission, you can just give them that permission.
7
I'm running a star wars rp server that hasn't started yet, and want to give players a second life when they reach a certain rank(a free Fleet second life to be exact.), but the problem is I don't know how to set it up. I looked it up and people say it involves the inherit function, but I don't want to give a fleet member access to all other battalions. Is there a way to basically single out which groups they can and can't use?
8
Off-Topic / Re: YT playlist to mp3 site/app.
« Last post by JamminR on August 13, 2019, 07:23:07 PM »
Because some keep spamming this post with sites that are limited to time or number of vids, or, to time before they get shut down.

I use Youtube-dl as recommended by others.
https://github.com/ytdl-org/youtube-dl

The win batch file I use is as follows. (URL must be in quotes)
Code: [Select]
youtube-dl.exe -x --audio-quality 0 --audio-format mp3 --add-metadata --no-mark-watched -o %%(title)s.%%(ext)s --restrict-filenames --no-mtime -i %1
I forget what all the options mean at this time.
See youtube-dl documentation.

I've obtained many items this way. (Not tried it in past few months, youtube-dl updates often, as does YT in trying to prevent it)


9
General Chat & Help and Support / Re: Unable to use any commands using xgui.
« Last post by JamminR on August 11, 2019, 07:07:41 PM »
With server shut down, go to server garrysmod\data\ULib\ folder, and delete misc_registered.txt - Restart server. It will get rebuilt with existing ones
If the ones you mention come back, it's another addon or gamemode.
10
General Chat & Help and Support / Re: Unable to use any commands using xgui.
« Last post by Cfozzi on August 11, 2019, 02:34:25 PM »
I have no idea how, but i fixed the xgui commands. I deleted and downloaded some CAMI files and re-downloaded the gamemode files. But the _Uncategorised section is still in the xgui and is full of CAMI commands/permissions that dont seem to do anything but i want to get rid of. Any idea how i can get rid of it? or is it normal?
Pages: [1] 2 3 ... 10