It's also incredibly useful. Having huge "ERROR" objects all over the place when you're missing an addon is as irritating as hell. I'm betting with this tool you can design an addon that downloads necessary files to your GMod folder, including skins/models.
I'll take a poke around and see what I can do with this.
[QUOTE=blaze_r20]This could be horribly, horribly abused easily. Malicious lua script anyone? It would be so easy to ruin your windows. Unless your running srcds using wine on linux, I really really wouldn't install this. There's a reason Garry locked down lua file access.[/QUOTE]
This is why you only install it on the SERVER. If you are dumb enough to install it on the client or have an insecure server, that's your problem.
I would LOVE to use this in a client-side addon, but how to hide? D:
[QUOTE=Hexeh]Okay, you go open a dll with a text editor and tell me if that's what you see.[/QUOTE]
[img]http://img377.imageshack.us/img377/9950/dllwr7.jpg[/img]
Where do i put this?
[QUOTE=Portal-Life]Where do i put this?[/QUOTE]
If you don't know that then this is no use to you.
I've found a few good uses for this. Thanks a lot for it.
[QUOTE=Deco Da Man]If you don't know that then this is no use to you.[/QUOTE]
I have no I dea but I need it for GMod BG Chooser v1.1.
lua/includes/modules
Thanks!
Sorry for the bump, but I put the gm_rawio.dll in to lua/includes/modules, like kevkev says to put it.
Then I go and do this: [code]lua_run print(rawio.readfile(util.RelativePathToFull("data/deathrace/test.txt")))[/code] (It's a valid text file), but it returns that rawio is nil.
I've restarted gmod, but it still says that.
Do I need to restart my computer or something?
:uhoh:
[b]Edit:[/b]
I looked at the test and saw I didn't require it.
So I do [code]lua_run require("wario")[/code] but now it says that it's not a valid module.
I've tried wario, wario.dll, gm_wario, gm_wario.dll, but they all say they're not valid modules.
What am I doing wrong? :crying:
require("wario")?
Or require("rawio")?
Or is this absolute fail and is autocorrected by the forms?
[QUOTE=Deco Da Man]require("wario")?
Or require("rawio")?
Or is this absolute fail and is autocorrected by the forms?[/QUOTE]
Fucking...
Thank you, Deco Da Man.
That was the problem.
:emo:
Nevermind.
-snip-
Big bump but, I'm trying to learn a little about how these modules work. I wanted to make a less potentially dangerous version of this. So what I did was download the source obviously, add everything to a Dev-Cpp DLL Project, named exactly to compile as the binary but it crashes the game.
Any help on how to get this to work would be great, thanks.
I think this plugin will get a healthy boost in popularity now that Garry has restricted the file writing even more in the last update. Thanks for making this! At least server-side file writing is unrestricted now.
Yeah I found this Module to be one of my favourites.
This module should be include to GMod as default (now).
Even with this, it looks like we can never send client's motd's and such anymore. I guess we force everything through umsgs or something, but that's pretty terrible.
Oh so people will get more use out of this now. Awesome.
[QUOTE=Hexxeh;13961858]Oh so people will get more use out of this now. Awesome.[/QUOTE]
Probably not now, Garry reverted the change.
-snip-
With this one could send textures and models and what not through an ext game client, its brilliant!
I agree with aVon it should be natively included with garrysmod with some exceptions (to make the paranoid happy)
- YOU MUST AUTHORISE EVERY SESSION (i.e. you connect to a server, it sends a file, Gmod throws a large dialog saying whats going on, what are the risks, etc, if authorised, its all hunky dory, if not... (plays the the bergos catch phrase "denied" sound)
- The following paths are blocked
(insert drive letter here):\Windows
(insert drive letter here):\Users (vista)
(insert drive letter here):\Documents and Settings (win xp)
C:\ (root of the C: Drive)
(insert drive letter here):\Program Data (vista)
- The "(insert drive letter here):\Program Files\" is restricted to the garrysmod folder (to prevent the addition of binary modules) and will raise a direct warning about ANY disk I/O to garrysmod\Addons, garrysmod\Lua, etc (any virus injection point)
- cfg files IN garrysmod\config are restricted (to prevent rebinding of keys)
It would prove a VALUABLE addition to garrysmod as you could actually stream a shit load of models, textures and lua files WITHOUT fear of the dreaded string table overflow
[QUOTE=mbainrot;13991680]With this one could send textures and models and what not through an ext game client, its brilliant!
I agree with aVon it should be natively included with garrysmod with some exceptions (to make the paranoid happy)
- YOU MUST AUTHORISE EVERY SESSION (i.e. you connect to a server, it sends a file, Gmod throws a large dialog saying whats going on, what are the risks, etc, if authorised, its all hunky dory, if not... (plays the the bergos catch phrase "denied" sound)
- The following paths are blocked
(insert drive letter here):\Windows
(insert drive letter here):\Users (vista)
(insert drive letter here):\Documents and Settings (win xp)
C:\ (root of the C: Drive)
(insert drive letter here):\Program Data (vista)
- The "(insert drive letter here):\Program Files\" is restricted to the garrysmod folder (to prevent the addition of binary modules) and will raise a direct warning about ANY disk I/O to garrysmod\Addons, garrysmod\Lua, etc (any virus injection point)
- cfg files IN garrysmod\config are restricted (to prevent rebinding of keys)
It would prove a VALUABLE addition to garrysmod as you could actually stream a shit load of models, textures and lua files WITHOUT fear of the dreaded string table overflow[/QUOTE]
You can already send those things using resource.AddFile .
It's a good idea for servers, but putting it on clients would be just asking for someone to find an exploit, put up a fake serveror or two, and be able to infect people's computers with "real" (non-lua) viruses.
This won't fix the "ConConsole Blocked!" errors will it?
[QUOTE=Sodisna;14000096]This won't fix the "ConConsole Blocked!" errors will it?[/QUOTE]
No. This is what you are looking for: [url]http://www.facepunch.com/showthread.php?t=697445[/url]
[QUOTE=Deco Da Man;13997672]You can already send those things using resource.AddFile .[/QUOTE]
Problem is, only to a point
Try recursing through the entire SBEP with resource.AddFile
You'll find that when a client connects, the server starts to bleed from the mouth then dies...
[QUOTE=mbainrot;14069899]Problem is, only to a point
Try recursing through the entire SBEP with resource.AddFile
You'll find that when a client connects, the server starts to bleed from the mouth then dies...[/QUOTE]
If you have that many files that the client needs to download, I suggest you let them connect without the content and provide them with a link directing them to place where they can download the content.
We are talking about 12 yr olds with an attention span of approximately 30 seconds
Also most people don't know what SVN is and its a pain having to explain how to do it when they screw up despite giving them letter for letter perfect tutorial on how to use it :|
Sorry, you need to Log In to post a reply to this thread.