• GCompute - In-game Lua Development IDE
    111 replies, posted
[QUOTE=nexbr;39712530]Great Editor! The only downside is that i just can save .txt files, have anyway to save to .lua files? to the original file on addon folder?[/QUOTE] The current filesystem is locked to only be able to save text files in the data folder. If you want to be able to save any data type, you will have to use a module.
[QUOTE=vexx21322;39713484]The current filesystem is locked to only be able to save text files in the data folder. If you want to be able to save any data type, you will have to use a module.[/QUOTE] What module?
[QUOTE=nexbr;39713769]What module?[/QUOTE] Just any module that allows you to do that. It used to be gm_rawio, but I don't know if it was changed to the gmod13 format.
[QUOTE=vexx21322;39714516]Just any module that allows you to do that. It used to be gm_rawio, but I don't know if it was changed to the gmod13 format.[/QUOTE] I just need put this gm_rawio and i'll be able to edit .lua files or i need to edit the GCompute files in order to get it working?
I haven't found a working raw IO module yet. (Someone point one out to me!) I tried gm_io, but Garry's Mod crashes when loading it.
the problem with modules at each update it not work anymore. [editline]25th February 2013[/editline] I think the easier way to write to lua files is run a tiny local web server then send to a script like php. I just don't know if the Gmod File System give you the real file path
If I get the time, I'll write a module that would return a normal file metatable for any path.
It crashes Garry's Mod when you open TGA files. [url]http://i.troll.ws/db916a9b.png[/url] Also so far I'm loving it, although I would like to see a way to customize the Syntax Highlighter, since the current colors aren't exactly my style; and kind of hurt my eyes at night. :)
This is fantastic.. an in game Lua editor is something that has been on my todo list of shit to play around with for a while.
Oh yeah, also an ALT+ (UP/DOWN) feature would be great! Like exactly how Eclipse (Java IDE) has it, where you hold ALT and hit either up and down to move that focused line. I just found myself trying to do that out of habit and was sad to see it doesn't work.
[QUOTE=DaneSomdahl;39788505]Oh yeah, also an ALT+ (UP/DOWN) feature would be great! Like exactly how Eclipse (Java IDE) has it, where you hold ALT and hit either up and down to move that focused line. I just found myself trying to do that out of habit and was sad to see it doesn't work.[/QUOTE] ctrl + shift + up/down
[QUOTE=vexx21322;39788604]ctrl + shift + up/down[/QUOTE] Well a documentation of the controls would be nice as well. Personally I think using ALT instead of CTRL+SHIFT is easier to reach. (Using your index finger for ALT, and pinky for arrow keys.) Also I think a Github Repository should be opened up for the addon, so people can submit bugs/feature requests and/or make pull requests to help fix bugs or add features. That's all up to the developers though. ¢ += 2
[QUOTE=DaneSomdahl;39790065]Well a documentation of the controls would be nice as well. :D Also I think a Github Repository should be opened up for the addon, so people can submit bugs/feature requests and/or make pull requests to help fix bugs or add features. That's all up to the developers though. ¢ += 2[/QUOTE] He was working on an options menu that was going to have everything. Also, if you know lua, you can make your own keybindings to do whatever you want. Just make a new file in addons\gcompute\lua\gcompute\ui\codeeditor\keyboardmap and code whatever. Use the existing files to look how things are done.
How can I get this working on the server side? Please help I really need this. :>
[QUOTE=nazer1290;39909853]How can I get this working on the server side? Please help I really need this. :>[/QUOTE] The three files that were suggested (easylua/luadata/luadev) go in autorun.
Thank you for this. REQUEST: Add ctrl + d for duplicating lines :)
I'm a tad daft, but how do you install this? I downloaded all the files, but don't know if I should merge them with the existing folders or not.
[QUOTE=NateDude;39912632]I'm a tad daft, but how do you install this? I downloaded all the files, but don't know if I should merge them with the existing folders or not.[/QUOTE] Needs to be used like an Addon
is there a module that would allow saving files outside of data? Would be cool if you could save edited sv files
[QUOTE=!cake;39513035] [t]https://i.minus.com/ib0X8smkq4kxWu.png[/t] [/QUOTE] That gif there is the best gif on the planet.
-snip idiot-
Does anyone have these? They seem to be removed and we can't run lua on server/clients. [url]https://gmodcapsadmin.googlecode.com/svn/trunk/addons/fast_addons/lua/fast_addons/luadata.lua[/url] [url]https://gmodcapsadmin.googlecode.com/svn/trunk/addons/fast_addons/lua/fast_addons/easylua.lua[/url] Thanks.
Here you go: [url]http://pastebin.com/izs1pXqP[/url] [url]http://pastebin.com/SWKU0zw6[/url]
this looks awesome
easylua and luadata have moved, they are now at [url]https://gmodcapsadmin.googlecode.com/svn/trunk/addons/libraries/lua/[/url] [url]https://gmodcapsadmin.googlecode.com/svn/trunk/addons/libraries/lua/easylua.lua[/url] [url]https://gmodcapsadmin.googlecode.com/svn/trunk/addons/libraries/lua/luadata.lua[/url]
It doesn't work the second time I run gmod I write gcompute_show_ide and get [quote] Unknown command: gcompute_show_ide GLib.Loader : Building pack file "Server" (GLib, GLibAddons, Gooey, GAuth, VFS, GCompute)... done (725 total files, 2.31 MiB, 34.09 ms) GLib.Loader : Building pack file "GLib" (GLib)... done (120 total files, 522.17 KiB, 30.03 ms) GLib.Loader : Building pack file "GLibAddons" (GLibAddons)... done (1 total files, 945 B, 147.46 µs) GLib.Loader : Building pack file "Gooey" (Gooey)... done (123 total files, 342.06 KiB, 6.48 ms) GLib.Loader : Building pack file "GAuth" (GAuth)... done (59 total files, 145.88 KiB, 2.42 ms) GLib.Loader : Building pack file "VFS" (VFS)... done (82 total files, 215.03 KiB, 7.74 ms) GLib.Loader : Building pack file "GCompute" (GCompute)... done (340 total files, 1.12 MiB, 18.67 ms) GLib.Resources : Resource LuaPack/Server registered (2.31 MiB). GLib.Resources : Resource LuaPack/GLib registered (522.17 KiB). GLib.Resources : Resource LuaPack/GLibAddons registered (945 B). GLib.Resources : Resource LuaPack/Gooey registered (342.06 KiB). GLib.Resources : Resource LuaPack/GAuth registered (145.88 KiB). GLib.Resources : Resource LuaPack/VFS registered (215.03 KiB). GLib.Resources : Resource LuaPack/GCompute registered (1.12 MiB). GLib.Loader : Received manifest (6 pack files). GLib.Resources : Using cached resource LuaPack/GLib (6b7c8376). GLib.Resources : Using cached resource LuaPack/GLibAddons (c1e12222). GLib.Resources : Using cached resource LuaPack/Gooey (4c47999a). GLib.Resources : Using cached resource LuaPack/GAuth (6af4339c). GLib.Resources : Using cached resource LuaPack/VFS (2e0b3ffb). GLib.Resources : Using cached resource LuaPack/GCompute (ddc9ed73). GLib.Loader : Running pack file "GLib", deserialization took 213.4 ms (120 total files, 522.17 KiB). GLib.Resources : Resource UnicodeData/UnicodeData registered (data/glib_unicodedata.txt). GLib.Loader : Running pack file "GLibAddons", deserialization took 62.99 µs (1 total files, 945 B). GLib.Loader : Running pack file "Gooey", deserialization took 197.76 ms (123 total files, 342.06 KiB). GLib.Loader : Running pack file "GAuth", deserialization took 132.53 ms (59 total files, 145.88 KiB). GLib.Loader : Running pack file "VFS", deserialization took 130.32 ms (82 total files, 215.03 KiB). GLib.Loader : Running pack file "GCompute", deserialization took 524.75 ms (340 total files, 1.12 MiB). GLib.DelayedCalls : function: 0x3abe72e8 took 363.40711510518 ms. [/quote] [editline]25th January 2014[/editline] No gui pops up... Nice work though, It was really useful for viewing all of the files in my addons as one VFS under game [editline]25th January 2014[/editline] And then it magically worked again... heh have a look into that... [editline]25th January 2014[/editline] also, on first open, after loading a fresh map in SP, the ide sometimes closes itself after a good 5 seconds. again, not really a major issue, since after opening it again, it seems to stay put :P
I've just moved this to Git and updated the original post with links. [code] git clone https://github.com/notcake/glib.git git clone https://github.com/notcake/gooey.git git clone https://github.com/notcake/vfs.git git clone https://github.com/notcake/gcompute.git git clone https://github.com/notcake/gcodec.git [/code]
[QUOTE=!cake;43884417]I've just moved this to Git and updated the original post with links. [code] git clone https://github.com/notcake/glib.git git clone https://github.com/notcake/gooey.git git clone https://github.com/notcake/vfs.git git clone https://github.com/notcake/gcompute.git git clone https://github.com/notcake/gcodec.git [/code][/QUOTE]Do you still need a module to save the files as .lua or have you got that covered? I could make a module for that. File creation, folder creation, etc.
[QUOTE=Linda;43897003]Do you still need a module to save the files as .lua or have you got that covered? I could make a module for that. File creation, folder creation, etc.[/QUOTE] If you do, that'd be great! I haven't found a precompiled file IO module that doesn't crash gmod yet.
-snip-
Sorry, you need to Log In to post a reply to this thread.