• GCompute - In-game Lua Development IDE
    111 replies, posted
Awesome! This will go great with my 2 day lua skills ! I'm Being Sarcastic -__-
Yeah, IDE only works in Sandbox once you join in and spawn a prop or do something. For other gamemodes (mainly TTT) it doesn't work at all. Can't figure out how to get it to do anything. At first it says it's an unknown command but if I spawn a prop (again, sandbox) it will magically work because GLib does something. EDIT: Tried it on singleplayer, worked fine after a bit. Put it on my main server and got this: [CODE][ERROR] addons/glib/lua/glib/oop.lua:202: attempt to index local 'basetable' (a nil value) 1. MakeConstructor - addons/glib/lua/glib/oop.lua:202 2. unknown - addons/glib/lua/glib/io/stringinbuffer.lua:2 3. include - [C]:-1 4. unknown - addons/glib/lua/glib/stage1.lua:435 5. include - [C]:-1 6. unknown - addons/glib/lua/glib/glib.lua:1 7. include - [C]:-1 8. unknown - addons/glib/lua/autorun/glib.lua:1 [ERROR] addons/glib/lua/glib/oop.lua:202: attempt to index local 'basetable' (a nil value) 1. MakeConstructor - addons/glib/lua/glib/oop.lua:202 2. unknown - addons/glib/lua/glib/io/stringoutbuffer.lua:2 3. include - [C]:-1 4. unknown - addons/glib/lua/glib/stage1.lua:436 5. include - [C]:-1 6. unknown - addons/glib/lua/glib/glib.lua:1 7. include - [C]:-1 8. unknown - addons/glib/lua/autorun/glib.lua:1 [ERROR] addons/glib/lua/glib/resources/resourcecache.lua:121: attempt to call field 'StringInBuffer' (a nil value) 1. LoadLastAccessTimes - addons/glib/lua/glib/resources/resourcecache.lua:121 2. unknown - addons/glib/lua/glib/resources/resourcecache.lua:8 3. __ctor - addons/glib/lua/glib/oop.lua:290 4. ResourceCache - addons/glib/lua/glib/oop.lua:308 5. unknown - addons/glib/lua/glib/resources/resourcecache.lua:150 6. include - [C]:-1 7. unknown - addons/glib/lua/glib/stage1.lua:445 8. include - [C]:-1 9. unknown - addons/glib/lua/glib/glib.lua:1 10. include - [C]:-1 11. unknown - addons/glib/lua/autorun/glib.lua:1 [ERROR] addons/glib/lua/glib/transfers/transfers.lua:82: attempt to call field 'StringInBuffer' (a nil value) 1. func - addons/glib/lua/glib/transfers/transfers.lua:82 2. unknown - lua/includes/modules/net.lua:32 Warning: Unhandled usermessage 'gauth_notification' Warning: Unhandled usermessage 'gauth_notification' Warning: Unhandled usermessage 'gauth_notification' Warning: Unhandled usermessage 'gauth_notification' Warning: Unhandled usermessage 'gauth_notification' Warning: Unhandled usermessage 'gauth_notification' [/CODE] EDIT #2: Ignore all of that. Works fine. Today is the day I uninstall LeyAC the second day of getting it.
Sorry if I'm a little late to the party, but does this by default restrict non-admins from executing code?
I would guess not
[QUOTE=Z0mb1n3;46870012]Sorry if I'm a little late to the party, but does this by default restrict non-admins from executing code?[/QUOTE] Anyone can execute code on themselves. You have to be superadmin to execute code on other players or the server.
[QUOTE=!cake;46871777]Anyone can execute code on themselves. You have to be superadmin to execute code on other players or the server.[/QUOTE] Ah, perfect. Does this also mean the "gcompute_reload" command is admin only?
[QUOTE=Z0mb1n3;46872330]Ah, perfect. Does this also mean the "gcompute_reload" command is admin only?[/QUOTE] The permissions for the gcompute_reload commands are set up the same as for lua execution. Anyone can run gcompute_reload to reload the addon for themself only. Only superadmins can run gcompute_reload_sv (server) or gcompute_reload_sh (server and all players).
This needs my vguix plugin for the derma editor, then it would be beyond how amazing it already is. I like it! Haven't released anything on it yet, but its a stylesheet system for derma so that all your panels are derived from something that looks like this. [code] vguix_config = { -- Do NOT modify or remove the default style -- default = { w = 50, h = 50, pad_left = 0, pad_top = 0, pad_right = 0, pad_bottom = 0, alignx = false, tiledcontents = nil, fade_time = 0.6, bg = Color(255,40,40,200), bdr_size = 2, bdr_col = Color(0,0,0,140), bg_img = ""}, vguixframe = { pad_left = 4, pad_top = 4, pad_right = 4, pad_bottom = 2, bg = Color(60,60,60,220), bdr_size = 1, bdr_col = Color(0,0,0,100), bg_img = ""}, vguixbtn = { pad_right = 4, bg = Color(40,40,40,200), bdr_size = 1, bdr_col = Color(0,0,0,100), bg_img = ""}, } [/code] Then all you have to do is parent the panels to the frames you want them to, all drawing is done in order of operation. Frames size to their contents in which content positions and sizes of frames/panels are drawn automatically as long as they are parented correctly. A player can simply pass in arguments to change if panels are added horizontally or vertically and in addition to this may set a tiledcontents variable which allows you to designate the maximum number of panels that will be drawn along your selected axis before returning to a new line to draw the next frame/panel. Any x or y variables that are added to a style will override that position for the designated frame allowing you to offset single elements in the function which sets the positions automatically. X any Y when not set will default to the next frame/panel position when drawing. Complex menus can be created and single elements removed without having to recode positioning or set up your own position tables or work with panel:dock or dlistmenu because any derma element can be created in this fashion. If this functionality exists somewhere just kill me. Here are some of my function names; VguixSetStyle( frame, style ) VguixPaint( frame, parentframe ) -- first variable is to assign paint values, second is to assign panel.fadeIn values if you want fancy menus. VguixCheckOffscreen( frame ) VguixAddContents( frame, panel, child ) -- first two variables are required, the frame and then the panel you are adding to the frame, lastly child is for passing the element number for tiledcontents functionality. Tiledcontents builds elements such as inventory menus automatically. But ya, derma style sheets be super underground and I think I may just upload this code somewhere for everyone to use. It has been making my life a breeze creating menus. I may even implement a vgui creation tool. I didn't even mention the clientside editor for vgui that is built in allowing you to change background color, border size, and border color, soon to include bg_img! With config exporting and sharing :)
Bit of a late time to be asking such a question, but is there a way to somehow completely disable the File Browser or change everyone's permissions? With Luapad out of commission, there isn't much of an alternative, but enabling clients to read files that would otherwise be obfuscated is remarkably compromising in some cases.
[QUOTE=Sgt. Lulz;47036215]Bit of a late time to be asking such a question, but is there a way to somehow completely disable the File Browser or change everyone's permissions? With Luapad out of commission, there isn't much of an alternative, but enabling clients to read files that would otherwise be obfuscated is remarkably compromising in some cases.[/QUOTE] I am pretty sure that clients that aren't admins can't read server files. Right click on the folders you're concerned about and look at the permissions.
[QUOTE=!cake;47036450]I am pretty sure that clients that aren't admins can't read server files. Right click on the folders you're concerned about and look at the permissions.[/QUOTE] That's true, but they can still see clientside/shared scripts that are otherwise mostly rendered hardly visible to the player, and in some cases, it might be wise to hide server Lua from admins and superadmins alike.
[QUOTE]Anyone can execute code on themselves. You have to be superadmin to execute code on other players or the server.[/QUOTE] So where can i find a hook or a function to enable serverisde execution for other groups or player. I searched it about 3 hours, but i didnt found anything. Can you help me?
Hey Cake are you planing on editing this ? only need file permission
can you give me a link to just the 'GComputeCodeEditor' derma thing
for some reason gcompute_show_ide does not register as a console command.
Hello yes when i try to run any code the game stops to work on the next round (of TTT) all ranks are gone (im useing ulx), their is no roles (inno t .ect) and there are no errors in console. idk why this is a thing. and if i do a complete restart then it goes back to normal (a map change wont fix it)
Hello, on my server I have this is stalled and any one can open it and run it on the server directory, and some some wrote a some code that wont let me server start up unless I reinstall your "Coding table". So here is my question where can I edit a file that wont allow users to run code. Thank you :) PS. I don't have the script that crashes my server.
i wonder if someone would be so kind as to give a lua noob some instructions on how to install this Gcompute from the download links given in the first post please?
Hello, I know that there are a lot of questions, but I was wondering if there was a way to execute multiple files at once. EDIT: Or rather, execute multiple codes at once.
Can you teach how to install it, because I am really confused on it. ( Are you happy that even garry saw your thread ??? XD )
[QUOTE=RileyGuy1000;49756865]Hello, I know that there are a lot of questions, but I was wondering if there was a way to execute multiple files at once. EDIT: Or rather, execute multiple codes at once.[/QUOTE] You can't run a script composed of multiple files at once, sorry. But if you're developing an serverside or shared addon in the normal gmod addon format, you can use these concommands: glib_pack <addon folder name> followed by glib_upload_pack_sh/sv <addon folder name>_pack.txt (use the autocomplete)
[QUOTE=!cake;49781823]You can't run a script composed of multiple files at once, sorry. But if you're developing an serverside or shared addon in the normal gmod addon format, you can use these concommands: glib_pack <addon folder name> followed by glib_upload_pack_sh/sv <addon folder name>_pack.txt (use the autocomplete)[/QUOTE] How do I install the GCompute addon ?
Sorry, you need to Log In to post a reply to this thread.