1. Post #1
    Exitus's Avatar
    January 2005
    56 Posts
    Alrighty, so I don't know about the rest of you devs, but I hate sorting through the GCF files to find stuff. So, I made a resource browser. It allows you to browse through all the files that are mounted in game.

    VERSION 2




    Changelog:
    [Add] Find in files
    [Add] Options
    [Add] History for folder locations
    [Add] Preset examples for filters
    [Add] Image Viewer
    [Add] Folder tree on the left

    [Change] Text viewer greatly improved:
    - Line numbers toggleable
    - Word Wrap toggleable
    - Vertical and horizontal scrollbars
    - Copy to Data shortcut
    [Change] Improved material viewer
    - New look
    - RGBA modifiers for images that support it
    [Change] Improved Properties Viewer
    [Change] Improved sound player interface
    [Change] Improved map changer interface
    [Change] Browser and Text Viewer are resizeable

    [Fix] Address bar buggyness
    [Fix] Derma compatibility


    Main browser


    Text reader


    Sound player


    Material viewer


    Map Changer






    VERSION 1(old)

    http://www.joudoki.com/downloads/rBr...ser_window.jpg

    It allows you to browse through all available content, and at a fast rate. To give an example, my models folder has 1,223 files in it, and it takes 3 seconds to open it. That's .002 seconds per file!

    However, this would be much less awesome and useful if it stopped there. I've also included functionality in "readers" - there are currently ( in v1 ) a handful of readers:

    Text Reader:
    http://www.joudoki.com/downloads/rBr...textreader.jpg
    The text reader currently supports word wrapping and vertical scrolling.

    Sound Player:
    http://www.joudoki.com/downloads/rBr...oundplayer.jpg
    The sound player allows you to listen to sounds, and be able to change the pitch / volume to get a preview.

    Material Viewer:
    http://www.joudoki.com/downloads/rBr..._matviewer.jpg

    Map Changer:
    http://www.joudoki.com/downloads/rBr...mapchanger.jpg

    I've also included an HTML viewer.

    With this plethora of functionality, you will never ever have to sort through those damned .gcf files again.

    This is all completely client side, so you can use this on any server ( for whatever reason ). ( I don't know if ScriptEnforce blocks this or not ).

    I've worked on this for a long time, and all code is 100% original. If you would like to borrow code or extend the functionality, please let me know :)

    If you are interested in adding a view ( or have a suggestion to improve one ), send me a pm, reply here, or email me.

    -- INSTRUCTIONS --
    Download. Extract to addons/
    In-game, type browser_open to open the browser. It's that simple!

    -- KNOWN BUGS --
    - The filebrowser scrollbar is a little funky ( I recoded the scrollbar for this one, I hate how DVScrollbar works
    - Really large materials aren't very viewable in material viewer

    -- DOWNLOAD --

    Reply With Quote Edit / Delete Reply Show Events Useful Useful x 3Winner Winner x 1Disagree Disagree x 1 (list)

  2. Post #2

    July 2005
    22 Posts
    Very awesome, I really needed this.

  3. Post #3
    Gold Member
    LPine's Avatar
    April 2007
    260 Posts
    Very very useful. Kinged.

  4. Post #4
    There's only one person in this whole world like you. And people can like you exactly as you are.
    Lambda 217's Avatar
    March 2008
    4,434 Posts
    Oh yes.
    Oh yes.
    OH YES!
    EHUUQFUHWUIFW
    Text editing?

  5. Post #5
    Exitus's Avatar
    January 2005
    56 Posts
    You can't edit the text, for two reasons:
    - You can only edit text files in the data/ folder ( you can access these outside of garrys mod anyways )
    - I coded the text viewer from scratch, and it's just that - a viewer. It has no editing functionality right now.

    Let me know if you guys find any bugs or have any suggestions.. I worked very hard on this and am always glad to improve it to make it more useful =)

    Here's what I have planned for the next version:
    - Extension of the material viewer functionality
    - A Model viewer ( I'm not sure how useful this actually is, seeing as to how you can just spawn the model )
    - Allow the resizing of the text viewer ( DFrame seems to lack resizing functionality at the moment )
    - Better file sorting ( sort by file name, type, etc )

    Also, one thing I forgot to mention, you can right click on an item to bring up a context menu to allow you to copy the location to the clipboard, open in text viewer, open in default, view properties, etc.

    Oh, and don't download this and expect it to look the same as mine, I'm using a custom skin =)

  6. Post #6
    Gold Member
    RichyZ's Avatar
    September 2007
    15,330 Posts
    Have a lua king.

  7. Post #7
    Gold Member
    SuPeR_MaN's Avatar
    May 2007
    2,466 Posts
    oh... this looks really helpfull... looks like i to may give a lua king!

  8. Post #8

    February 2005
    189 Posts
    This is a good idea.

  9. Post #9
    Gold Member
    Foda's Avatar
    April 2006
    2,726 Posts
    I was just about to say that it should have a VTF viewer, but you already have it. Great Job!

  10. Post #10
    Internet Detective (HBIED certified)
    leach139's Avatar
    August 2007
    7,212 Posts
    Incredibly awesome. Kinged.

  11. Post #11
    Gold Member
    Arkantos's Avatar
    July 2006
    974 Posts
    Awesome! Thanks a lot dude. Lua King for you! :D

  12. Post #12
    Gold Member
    Spacetech's Avatar
    January 2006
    510 Posts
    Good job with this.
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 1 (list)

  13. Post #13
    Gold Member
    SamPerson123's Avatar
    September 2007
    3,505 Posts
    Awesome! Scripting will be easier now! It would be even cooler if you could edit the text.

  14. Post #14
    Gold Member
    Dennab
    February 2007
    6,746 Posts
    Now, Will there be a way to search through other GCF Files? That would make it good for contraption makers too. (Finding sounds/effects)

  15. Post #15
    Exitus's Avatar
    January 2005
    56 Posts
    DireAvenger posted:
    Now, Will there be a way to search through other GCF Files? That would make it good for contraption makers too. (Finding sounds/effects)
    Yes, that's part of what this does. If the content is available in Garry's Mod ( whether you mounted it, downloaded it, whatever ), this will be able to find it.

  16. Post #16
    Gold Member
    FluD's Avatar
    February 2006
    1,133 Posts
    i waiting this when play gmod9 :P
    Epic Thanks

  17. Post #17
    Aussie Joe's Avatar
    June 2008
    26 Posts
    Ohmigosh

    It's sex. :4chan:

    Lua King for you good chap

  18. Post #18
    Hemuli's Avatar
    May 2008
    18 Posts
    I'm interested to see how this finds everything :keke:

  19. Post #19
    Exitus's Avatar
    January 2005
    56 Posts
    Hemuli posted:
    I'm interested to see how this finds everything :keke:
    Open up cl_filelib.lua.
    The function is file.Find

  20. Post #20
    hedhunta95's Avatar
    July 2007
    256 Posts
    Cool beans.

  21. Post #21
    Ask Xyxen about L-Leaf.
    mcd1992's Avatar
    March 2008
    296 Posts
    you should add text editing, a full search (be in the root then ctrl + f and search all files and folders) and image support

    also mabey a good web browser

  22. Post #22
    Ryx
    Gold Member
    Ryx's Avatar
    August 2006
    410 Posts
    Add a sound browser and I will deem you lua king. (Unless it already has one, in which case awesome.)

  23. Post #23
    Exitus's Avatar
    January 2005
    56 Posts
    Erm, navigate to the sound folder?


    mcd1992 posted:
    you should add text editing, a full search (be in the root then ctrl + f and search all files and folders) and image support

    also mabey a good web browser
    Text editing wouldn't be useful at all, for two reasons:
    1) You would only be able to edit text inside of the data/ directory
    2) You can modify these outside of garrysmod anyways with any text editor.

    I agree with the full search - that's actually something I've been working on.

    And image support? What do you mean? What would this mean beyond what it can already do ( open and view .vtf and .vmt? )

  24. Post #24
    Gold Member
    Vampired's Avatar
    February 2005
    371 Posts
    Brilliant, I'm impressed. Does exactly what it says and is useful. Lua King.

  25. Post #25
    Gold Member
    Kogitsune's Avatar
    September 2005
    2,748 Posts
    For image support, you could always create an HTML control with the HTML being just the image, as Vicis, I think it was him, did the screenshot viewer.

  26. Post #26
    Gold Member
    LPine's Avatar
    April 2007
    260 Posts
    And what if we need to extract some files and edit them?

  27. Post #27
    Exitus's Avatar
    January 2005
    56 Posts
    LPine posted:
    And what if we need to extract some files and edit them?
    I added a "Copy to Data" function in the right click context menu; however, it only works on text files ( due to limitations of file.Read and file.Write ).

    Kogitsune posted:
    For image support, you could always create an HTML control with the HTML being just the image, as Vicis, I think it was him, did the screenshot viewer.
    Ah, this would make sense =) I'll see what I can do.

  28. Post #28
    Fucking awesome :D Easy management finally.

  29. Post #29
    Gold Member
    Nevec's Avatar
    June 2008
    1,091 Posts
    You should add the ability to open text files that have tables in them in a list view or something like that.

    Oh and excellent work!

  30. Post #30

    January 2008
    12 Posts
    Brilliant. Finding extra sounds to use for emitters should be easier now!

  31. Post #31
    Exitus's Avatar
    January 2005
    56 Posts
    Alrighty, a quick progress report.
    File search has been implemented:


    and the HTML-based image viewer:


    ( I'm not sure if the checkered scrollbars is a problem with me or everyone )

  32. Post #32
    ers35's Avatar
    March 2007
    28 Posts
    Exitus posted:
    ( I'm not sure if the checkered scrollbars is a problem with me or everyone )
    Everyone experiences this problem and it is not the easiest bug in the world to fix.

  33. Post #33
    Gold Member
    huntskikbut's Avatar
    November 2005
    735 Posts
    Needs a folder tree view on the left, like GCFScape does. Would make it much easier to use.

  34. Post #34
    PC Camp's Avatar
    July 2007
    363 Posts
    Wow. Amazing this is. And this is all ingame?

  35. Post #35
    Exitus's Avatar
    January 2005
    56 Posts
    Yep. All Derma, too =)

  36. Post #36

    June 2008
    1 Posts
    very nice piece here, have a lua king!

  37. Post #37
    Gold Member
    5NTG6's Avatar
    March 2005
    20 Posts
    Excellent, I can see this being very useful for finding sounds to use with wired sound emitters and getting the exact scene names of VCDs without having to alt+tab.

  38. Post #38
    red ryder's Avatar
    May 2008
    18 Posts
    oh man I am going to be using sound emitters so much now

  39. Post #39
    nofearkid's Avatar
    April 2007
    146 Posts
    I. Love. This.

  40. Post #40
    Gold Member
    conman420's Avatar
    January 2007
    1,794 Posts
    Do all the file directories have copy to clipboard options like the spawnicons? If so awesomely useful :D