Aha! Now that will help make the contraptions look (sound) lively
Nice, nice.
Though, the attachment link is broken.
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:
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.
Aha! Now that will help make the contraptions look (sound) lively
Nice, nice.
Though, the attachment link is broken.
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
Last edited by Grocel; 03-07-2010 at 09:03 AM.
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.
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.
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:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
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.
Bookmarks