Code Monkey home page Code Monkey logo

garrysmod-chatsounds's Introduction

Chatsounds

Chat sounds system for Garry's Mod (with extra sounds) check sounds and update lists

NOTICE 2020-01-13

  • Repository was rewritten and forced pushed on 2020-01-13. Commit messages, commits and files were altered or removed to attempt removing sounds violating GitHub AUP. You will have to force pull the repository to get all changes. You can use repo-reset.cmd to do that. better_profanity python module was used for the removal.
  • Please report any remaining offensive or otherwise GitHub AUP violating sounds you might find by creating a new issue!

How to install

Installing is not necessary to hear the sounds if the server has neo-chatsounds installed.

Old alternative install method (not recommended to use)

How to install on server

Old method
  • Create directory garrysmod/addons/garrysmod-chatsounds
  • Checkout: https://github.com/Metastruct/garrysmod-chatsounds/trunk/lua to garrysmod/addons/garrysmod-chatsounds/lua
  • To see if you installed it correctly, you should now have garrysmod/addons/garrysmod-chatsounds/lua/autorun/chatsounds.lua file.

How to contribute more sounds to this repository

  • SOUNDS MUST OBEY GITHUB AUP.
    • This includes any attempt at hiding violating sounds via it's name or other means.
  • Read this.
  • We accept pull requests.
  • Running the preprocessor is not mandatory anymore - if you don't run it, lists will be auto-generated about 3 minutes after you commit/push the changes.

If you do not understand, you can ask people who have already added sounds to add them for you.

Want to preview or share sounds over the Web?

  • Check out the Web version here.

garrysmod-chatsounds's People

Contributors

0x098 avatar aminpeck avatar avernakis8 avatar cassiapurple avatar cdr1996 avatar cynosphere avatar daftlad avatar earu avatar henkeswe avatar igniscitrinus avatar kabusdev avatar max-spec avatar metaautomator avatar midoriwroth avatar mikeai avatar mitterdoo avatar notcake avatar potcfdk avatar python1320 avatar spiralp avatar sr229 avatar suchipi avatar techbot121 avatar tenrys avatar tw1stal1cky avatar ukgamer avatar v1nalt avatar verbalsilence avatar zeni44 avatar zxz41 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

garrysmod-chatsounds's Issues

Syndicate 2012 sounds

syndicate 2012.zip sounds

there is three sounds:
"ramon_youstillbreathing" - must work when says "you still breathing down there?"
"ramon_imwiredtoo" - must work when says "im wired too"
"julesmerit_emotion" - must work with other chatsounds "shit", like "shit#12" or both.

Capitalization Issue

Recently i submitted a PullRequest of which was merged, attempting to change its capital letters results in weird results, SpiralP also had this problem where it wont recognize the letter changes and often deletes them.

lua/chatsounds/cl_core.lua:465: attempt to index a nil value

Player [12][Tenrys] ERR: [Hook] Think:chatsounds_csp_think table: 0x6b9e7fc0 removed: lua/chatsounds/cl_core.lua:465: attempt to index a nil value
stack traceback:
    lua/chatsounds/cl_core.lua:465: in function <lua/chatsounds/cl_core.lua:464>
    lua/chatsounds/cl_core.lua:1315: in function <lua/chatsounds/cl_core.lua:1313>
    [C]: in function 'xpcall'
    lua/includes/modules/hook.lua:196: in function <lua/includes/modules/hook.lua:167>

Freeman's Mind Chatsounds (Help me choose the best ones)

Now, for obvious reasons with this being an effing huge series, I'm not going to add everything from it, just specific ones famous from it, and the ones people choose. This is where the people who actually browse here get some choice. List any quotes with a timestamp + the episode of the Freeman's Mind series the quote is from, and I'll add it.

Examples of three that will be added for sure:
the "Bassheads" scene https://youtu.be/J9C78b_FhKA?t=3m36s
"Fuck, my leg!" https://youtu.be/Ex-Da3NC83o?t=3m42s
The "DIPLOMACY SUCKS" scene https://youtu.be/Z5YZTHfr1P4?t=1m48s

Request: uppercase.txt (or defined in map.txt)

Instead of having "dummy distorted" or "dummy loud". We should have a system where if "soundfolder/dummy.ogg" is defined as "uppercase". It'll only play when it's typed out in "Caps Lock"

Example:

    L["dummy"] = {
        {
            path = "folderpath/dummy.ogg",
            length = 1.9051246643066,
            uppercase = true,
        },
    }

Basicly only added to the pool of chatsounds that might play when it's typed out as "STUPID".
I don't know if the sound should ignore the "uppercase" rule when defined using #number thing.

(No, this don't mean every loud chatsound should only trigger with uppercase just sayin.)

disable playing of random words if sentences has no match

Hi, I like this addon and want to use it on my server.

On my server people are allowed to speak in their foreign languages.
Lot speak english or german, some france.

The problem I currently have is, if someone writes a whole sentence, and the addon can't find a match on the whole sentence, it splits the sentences into its words and tries to find sub-matches and plays them, which sounds kind of strange and begins to suck a little, because it sounds like hiccup.

A option to disable this "sub-match-playing" would be great, so it only plays sounds if it can find full match across the whole sentence. Maybe only if modifiers are being used, allow sub-match-playing.

Tried to modify the lua files myself, but it seems not so easy as it sounds. I hoped you could give me a little help or a hint/patchfile whats need to be changed.

Remove/Change name of autoadd\tf2extra\lol.ogg

Or at least rename it so it doesnt override the most common chatsound I hear in the game. I'm not one to bitch about chatsounds' content and what's in it, but this sound is unpleasent to hear and it overrides probably one of the most common chatsounds played in Gmod, it is #1 in the list of "lol" chatsounds and has become the most common one to hear. I'd do it myself but I'd at least run the idea by everyone else before doing it, in the event someone would actually care for this god-awful sound.

added streaming

Maybe I'm just dumb, but I couldn't figure out how the playing of the lists_nosend files is currently supposed to work if the client hasn't downloaded all the sound files before.

So I added direct streaming from a apache like webserver in this commit 5aa28759fd85343ce4f8fa40eb10cfb51d13265d, if you are interested.

You need to define your URL of the hosted files inside the top of cl_core.lua file.

Just make a good test before using it, because it might have break some things.
The modifiers doesn't work with this yet, but at least it streams from my webserver, using gmod's internal BASS.

PostRenderVGUI:chatsounds_autocomplete removed: attempt to call field 'DrawPrettyText'

[Hook] PostRenderVGUI:chatsounds_autocomplete removed: addons/chatsoundsforgmod/lua/chatsounds/autocomplete.lua:160: attempt to call field 'DrawPrettyText' (a nil value)
stack traceback:
    addons/chatsoundsforgmod/lua/chatsounds/autocomplete.lua:160: in function 'render'
    addons/chatsoundsforgmod/lua/chatsounds/autocomplete.lua:276: in function <addons/chatsoundsforgmod/lua/chatsounds/autocomplete.lua:262>
    [C]: in function 'xpcall'
    lua/includes/modules/hook.lua:196: in function <lua/includes/modules/hook.

adding a sound volume property for the postprocessor

This is something I've been thinking for a while.
When the preprocessor runs it gets the length of the soundsample, wouldn't it be also useful to have other information as well? For example sample-volume (or similar) so you could filter all sounds by volume and potentially, for instance, filtering out loud sounds locally.

character limit

What do you do if a sound exceeds the character limit (255)?

The qoute is:
"no no im still not feeling it i want this achievement to have meant something it has to be a true reward for valiant effort i want to see some hustle stanley i want to see commitment a willingness to go all the way no matter what the cost"

But due to Windows not liking long filenames. it shorten to:
"no no im still not feeling it i want this achievement to have meant something it has to be a true reward for valiant effort i want to see some hustle stanley i want to see commitment a willingness to go"

Maximum sound duration check?

So this commit gave me an idea:

How about adding a configurable maximum sound duration check to the preprocessor?
It would check all files if they are longer than X seconds, and if so, they would be marked as invalid unless they are explicitly whitelisted somewhere.

The possible advantages:

  • Makes it harder for accidental mistakes in editing to go unnoticed
    (I've committed the entire audio stream instead of just the correct part before and didn't notice it for quite some time)
  • Forcing people to explicitly whitelist costs more willpower/effort -> more careful consideration -> reduced amount of overlong sounds
  • A whitelist makes it easy to see, inspect, audit and re-consider the violations

separate version for prefixed

So many people we're fine with the chatsounds not being prefixed, especially other server owners. I don't get why you should push a global change and piss people off.

Certain chatsounds don't work on linux

09:12 - KaosHeaven: i figured out why certain files dont work with chatsounds on linux
09:12 - KaosHeaven: the lua lists are sometimes capped
09:13 - KaosHeaven: and gmods file system on linux doesnt read capital letters

We need to uncapitalize a lot of paths.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.