Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Wire Sound Browser

  1. #1
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Smile Wire Sound Browser

    A new menu I made for wiremod, with it you can browse ALL sounds inside the sound folder. You can open the menu via the sound emitter tool menu, by enter "wire_sound_browser_open" in the console or by binding "+wire_sound_browser_open" to a key, you can also open it in the e2 editor.

    Screenshots:
    Wire Sound Browser-.jpg
    Wire Sound Browser-.jpg
    Wire Sound Browser-.jpg
    Wire Sound Browser-.jpg
    Wire Sound Browser-.jpg

    Features:
    • You can resize the panel.
    • You can browse ALL sounds inside the sound folder. (It's unlike Wire Sound List v4 Final, it uses lists, they have to made before your can get custom/unlisted sounds.)
    • It generates the file tree gradually and only when needed (It ignore .svn folders.).
    • You can enter the folder manually in the top text field.
    • You can you can print, say or setup the sound emitter tool with the selected sound by right clicking on it or by clicking the "Send To" button.
    • It will not put invalid files or folders in the tree.
    • No more "Infinite Loop Detected!" errors.

    Known Bugs:
    • You can not open folders with more then 2000 files or folders inside. (For example, the "sound/vo"-folder has more then 2000 entitles inside.) (FIXED!)
    • You can not browse sounds with ".." in they file or path names, because if you enter ".." you can access the garrysmod folder and everything inside and this will cause more errors. (DON'T NEED TO BE FIXED!)

    Download:
    (Outdated)

    Update:
    (Outdated)

    Fixed the 2000 files bug, by limiting the max count of elements can shown in one folder to 1500 (That means you can only see the first 1500 elements), but if you try to open more folders with many files/folder inside then tree will disappear. Would it on 2000 then tree will disappear if you open one folder.

    Also decreased the count of files ware loaded in one step from 50 to 25, this will make the browser a bit faster and more fluid.


    Update:
    (Outdated)

    Moved some code around and cleaned-up.
    Removed the beep sound on playing a sound.
    Decreased the count of files ware loaded in one step from 25 to 15.

    Update:
    (Outdated)

    You can open folders with more then 2000 entitles inside now.
    Increased the count of elements that can be shown in one page from 1500 to 1800.
    Optimized the file searching code.

    Update:
    (Outdated)

    Added a Stop Loading Button, it is the red cross button next to the folder button and it only appears when there are files loading.
    The menu saves the last selected item now. It reselect it when you open the browser.
    The opened page is also saved now.

    Update:



    Added a sound browser button to the e2 text editor.
    Parted the lua and the materials parts of this addon to a patch or to a zip file.

    The lua patch: http://www.wiremod.com/forum/attachm...browser-.patch
    The 2 custom materials: http://www.wiremod.com/forum/attachm...browser-95.zip

    I hope you like it, please leave a feedback, bug reports or a suggestion.

    Edit: I have created a Patch Submissions thread, maybe it will be committed into wiremod.
    Last edited by Grocel; 04-14-2010 at 06:19 AM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  2. #2
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: Wire Sound Browser

    Aha! Now that will help make the contraptions look (sound) lively

    Nice, nice.

    Though, the attachment link is broken.

  3. #3
    Wire Sofaking Wizard of Ass's Avatar
    Join Date
    May 2009
    Location
    Germany Bremerhaven
    Posts
    1,044

    Default Re: Wire Sound Browser

    It keeps crashing my gmod for some reason (no I didn't access folders with even nearly 2000 files) but I opened a load of folders after each other.

    You should add custom lists like Wire Sound List v4 Final.zip Download! does it.
    seriously getting serious

  4. #4
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: Wire Sound Browser

    Quote Originally Posted by Nikita View Post
    The attachment link is broken.
    Fixed.

    Edit:
    Quote Originally Posted by Wizard of Ass View Post
    It keeps crashing my gmod for some reason (no I didn't access folders with even nearly 2000 files) but I opened a load of folders after each other.

    You should add custom lists like Wire Sound List v4 Final.zip Download! does it.
    Did the game freeze or was there an error message?

    Maybe I will add list support later, but I think it's not needed at the moment.
    Last edited by Grocel; 03-07-2010 at 09:03 AM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  5. #5
    Wire Sofaking emspike's Avatar
    Join Date
    Feb 2008
    Posts
    911

    Default Re: Wire Sound Browser

    This... needs... commit. The GMod wiki may have a HL2 sound list but no such list exists for all GMod-compatible games, or custom addons.

  6. #6
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: Wire Sound Browser

    Quote Originally Posted by Grocel View Post
    • You can not open folders with more then 2000 files or folders inside. (For example, the "sound/vo"-folder has more then 2000 entitles inside.)
    Blarg! Would it be possible to incrementally load the list as the user scrolls down?

    Anyway, nice work.

  7. #7
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: Wire Sound Browser

    Quote Originally Posted by initrd.gz View Post
    Blarg! Would it be possible to incrementally load the list as the user scrolls down?
    No or better said, I realy don't know how to accomplish it.
    The scrollbar arises from the length of the loaded files in the tree and without a scrollbar or a wrong scrollbar you can not scroll.

    But I could add a function that claims the max entires count to 2000 and say to only show the first 2000 entires, then you can at least open the folder, but some files will not shown then.
    Last edited by Grocel; 03-07-2010 at 07:14 PM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  8. #8
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: Wire Sound Browser

    Nice!

    This already exists: Wire Sound List v4 Final.zip Download!
    Although that one might be suckier.

    Edit: Wizard already posted that
    Last edited by Divran; 03-08-2010 at 03:39 AM.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  9. #9
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: Wire Sound Browser

    Quote Originally Posted by Grocel View Post
    The scrollbar arises from the length of the loaded files in the tree and without a scrollbar or a wrong scrollbar you can not scroll.
    Well, after the 2000 limit, you could stop loading but keep counting.

    BTW, is this client-side? I tried to open it on unsmarts and it said Invalid Command

  10. #10
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: Wire Sound Browser

    It counts before the files are get loaded, but I will clip the count of loaded files to 2000 then it will loads "only" the first 2000 files in a folder.

    The scrollbar orients to the elements in the tree not to a given number, the reason why you cant load more the 2000 elements is, the file tree system in gmod doesn't support more, if you try load more then 2000 files in one folder then the files won't show up, it like you don't have files there.

    Yes it's client side, but the edited wire loading script (wire/lua/autorun/Wire_Load.lua) loads this script, if the server has not the edited loading script then the browser will not work, because the server files overwrite the clients ones, so please test it in you own server/listenserver or in singleplayer or run it via console.

    Code:
    lua_openscript_cl wire/client/sound_browser.lua
    Last edited by Grocel; 03-08-2010 at 06:11 PM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

Closed Thread
Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots