Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Please keep in mind that it's only a sound pack and the community scripts in the description can be outdated.
I did put funnysounds.py next to fun.py. I didnt know how to disable it so I just took the code out of file and saved it. 2nd time I just deleted the file and restarted the server both times. the trigger alone didnt work
yes I put the workshop number in workshop.txt and the qlx in server.cfg and minqlx.cfg....
restarted the server. what am I doing wrong?
@Melodeiro thanks for Your update.
Name it as funnysounds.py and disable the fun.py one.
!soundlist <pagenum>
!soundlist <pagenum> --re # regex ones
Filtering out the regex chars would clean it up, I just thought it may as well stay as is and be more useful to those that understood it too. Anyone can add your filter :)
@BuyukBang - you'd then be stuck with them only being triggered by the file name, whoever wrote this originally wanted to have more fun with what can trigger things, I just didn't make use of that flexibility much as I had 200 odd to add, I figured someone else could take it from here.
If someone wants to write a plugin that scans for files and adds them, great, but I've already spent way more time on this than I'd like, sorry.
(for any sound files added, a workshop item still needs to be created, there is no direct downloading files from servers, so your clients can only hear sounds from workshop items as the server tells their client to download that item from steam)
You could filter out all regex charas and list would be mostly accurate
example filter
pattern = re.compile(ur'[^\\\w\s]|\\.', re.MULTILINE)
testString = u"^haha(?:ha)?,? yeah?,? haha\W?$"
newString = re.sub(pattern , "", testString)
# hahaha yeah haha
@Yakumo There is no way to escape colour codes...
You can 'escape' ^ by prepending it with color like so : ^6^
example filter :
pattern = re.compile(ur'(?<!\^\d)\^(?!\d)', re.MULTILINE)
regexColor = "^6"
testString = u"^2hahaha : ^6^_^"
newString = re.sub(pattern , regexColor + "^", testString)
# ^2hahaha : ^6^_^6^
@Yakumo,
I believe using file names would be much easier instead of modding fun.py for each sound file for both speaking them and also soundlist command? So that a user my add addisional sound files with proper names easily without modifying py file?
usage:
!soundlist (or !slist for short) <pagenum>
eg
!slist 5
There is no way to escape colour codes in the console either so if ^? ever appears in the regex the formatting will get its colours messed up.
example output:
^5Sound list [ ^2tag : ^6regEx ] - page 4 of 6
^2hah_haha : ^6^hah haha\W?$
^2haha_yeah_haha : ^6^haha(?:ha)?,? yeah?,? haha\W?$
^2hahaha : ^6hahaha
^2hahaha_yeah : ^6^haha(?:ha)?,? yeah?\W?$
^2humiliation : ^6^humiliation\W?$
^2lose : ^6^you lose\W?$
^2oh_god : ^6^oh god\W?$
^2oink : ^6^oink\W?$
^2one : ^6^one\W?$
^2oohwee : ^6^ooh+wee\W?$
fun.py replacement link: http://pastebin.com/N6TKM5Ak
Anyway, I modded the script further to at least offer a basic list of things generated from the code instead of hand written.
The problem is filenames are useless because users don't need them, and triggers are regular expressions that not many will really understand, they're not 'set' (eg some need exactly 'hahaha' others might look for a word within the text) and I'm not writing out an explanation for all 261 triggers.
(continued above)
This is only a pure sound pack but you could ask user ^4Y^7akumo to add sound list command to the helper script he provided.
I installed this to our space ctf server. Everything is working fine except !soundlist command? Is there any other plugin that I need to install?
http://pastebin.com/PF7WKGdh
Electro.ogg [Dj Paul - Pentagramma Remix]
TuTuTu.ogg [Scooter - Maria (I Like It Loud)]
@(someone in QL)
Tuturu.ogg [Steins;Gate]