Luapad - In-game scripting environment with syntax highlighting
156 replies, posted
OMG WTF YES FINALLY no more restarting gmod to debug you saved me hours of work dude
tell me if im wrong but isnt this a big secureity risk?
think of the damage a mingebag with the right skills could do on a server with this
im problably just being paraniod tho, but i dont feel like getting a lua virus.
Lua viruses are history (well, depends on what you call a virus). Minges can't use this if they're not admins. You're quite safe.
Requesting a feature or something so that the whole table(s?) wouldn't have to be regenerated every map change and written to the file and so forth.. I disabled it serverside for now as the server's map change delays grew enormously.
Hmm, while I was debugging it there was no noticeable effect. I'll have a convar to toggle it in the next version.
So, me being a bad reader, does this allow creating and changing of lua files on the fly? If so, HUD making is gonna be a ton easier.
Nice work, DarK.
[QUOTE=chrbarrol;16346640]OMG WTF YES FINALLY no more restarting gmod to debug you saved me hours of work dude[/QUOTE]
Ever heard of reloading the map?
[QUOTE=Dlaor;16353578]So, me being a bad reader, does this allow creating and changing of lua files on the fly? If so, HUD making is gonna be a ton easier.[/QUOTE]
You can already do that with lua_openscript_cl.
[QUOTE=Overv;16357007]
You can already do that with lua_openscript_cl.[/QUOTE]
I know, but then I'd have to alt-tab all the time.
[QUOTE=Dlaor;16358675]I know, but then I'd have to alt-tab all the time.[/QUOTE]
-sw -noborder
Put it in launch commands and alt-tab.
I can't run anything on the server, it says that I am not an admin.
I am a superadmin of users.txt, the addon is on the server, and was downloaded from there to me.
I have the 3d youtube addon my IamMcLovin, which also uses datastream, on the server...
[QUOTE=Bletotum;16361811]I can't run anything on the server, it says that I am not an admin.
I am a superadmin of users.txt, the addon is on the server, and was downloaded from there to me.
I have the 3d youtube addon my IamMcLovin, which also uses datastream, on the server...[/QUOTE]
I recently discovered that this may break some other plugins which use datastream, but I'll have it fixed on the next version, so be patient. To temporary fix it, you can just find:
[lua]require("datastream");[/lua]
in lua/autorun/luapad.lua -file, and replace it with:
[lua]if(!datastream) then require("datastream"); end[/lua]
If that doesn't work, you have to do the same with the YouTube addon, because the creator may have forgot to put this in.
i espected that is was posible to code in the Gmod>lua>autorun folder, trugh i cant. i only see data... what isnt rly... luaish.
toobad hope to see this in next version trugh
[QUOTE=Dlaor;16353578]So, me being a bad reader, does this allow creating and changing of lua files on the fly? If so, HUD making is gonna be a ton easier.[/QUOTE]
How would ctrl+s -- alt+tab be any different with having an in-game file saver? You're still going to have to reload the file somehow, there's no such thing as hot-loading files in the source engine at all.
[QUOTE=chrbarrol;16346640]OMG WTF YES FINALLY no more restarting gmod to debug you saved me hours of work dude[/QUOTE]
Use this:
[url=http://www.garrysmod.org/downloads/?a=view&id=74066][img]http://www.garrysmod.org/img/?t=dll&id=74066[/img][/url]
... and lua_openscript(_cl) for the autorun scripts.
[editline]11:46AM[/editline]
[QUOTE=bromvlieg;16367445]i espected that is was posible to code in the Gmod>lua>autorun folder, trugh i cant. i only see data... what isnt rly... luaish.
toobad hope to see this in next version trugh[/QUOTE]
horrible spelling and bad reading! too bad I could only rate you once :P
you have to install gm_rawio to be able to write to any folder.
Could this addon be made to use the above one to work for tool development?
EDIT:
What is rawio?
EDIT-2:
And that 'fix' didn't work...
[QUOTE=TomyLobo;16368040]horrible spelling and bad reading! too bad I could only rate you once :P[/QUOTE]
His spelling is always horrible, so you can safely rate him bad reading.
[QUOTE=Bletotum;16370296]What is rawio?
EDIT-2:
And that 'fix' didn't work...[/QUOTE]
Search it from the forums. And if the fix didn't work, I guess it's some of your other addons that breaks stuff.
I'm pretty new at this, so forgive me if this sounds like the newbie-est question ever, but for some odd reason I can't open .lua files. Is this a bug, a feature, or am I just missing something?
ThisTime: from what I read, you need gm_rawio
DarkSunrise should really mention that in the first post.
I have little problem :)
autorun/luapad.lua:138: attempt to call global 'RunString' (a nil value)
One and only error :/
[QUOTE=ThisTime;16417557]I'm pretty new at this, so forgive me if this sounds like the newbie-est question ever, but for some odd reason I can't open .lua files. Is this a bug, a feature, or am I just missing something?[/QUOTE]
It's the result of utter notepad/++ failiure.
Great Work. finally some useful stuff.
I like lua, but N*I*G*G*E*R (Nothing*In*Gmod*Goes*Effectively*Radioactive)
EDIT:
im not racist
No files in gamemodes open right, they just open blank...
I have rawio.
I'll look into it, but I'm extermely busy at the moment so you'll probably have to wait.
It's a damn shame that lua_reloadent (Not reloadentS.) doesn't work right either. :/ . It's hell to change parenting offsets...
It does work fine for me? I constantly use it.
[QUOTE=DarKSunrise;16433976]I constantly use it.[/QUOTE]
I feel honored :)
Wrongthread.
Lazy Man's request (once again):
Add a variable (player entity) like (luapad_)LocalPlayer() when you run a script server side. That way I don't have to always find which player I am when I want to try something on myself. Shouldn't be too hard to make either.
make it "me" and also add "this" for the current target (this = me:GetEyeTrace().Entity)
another plugin I know of has these names as well :)
Sorry, you need to Log In to post a reply to this thread.