• gm_svn: SVN update from within GMod
    83 replies, posted
why do u have to download lots of shit just for one stupid wire update it doesnt make sense
He was just using that as an example. You can use it for any Svn. [lua] svn.update("garrysmod/addons/###"); --Just change the ### to whatever Svn folder in your addons folder to update [/lua]
[QUOTE=echo1001;16484162]I think you were missing [url=http://ungamers.googlecode.com/svn/trunk/orangebox/bin/libsasl.dll]libsasl.dll[/url]. I had an error with it on both my dedicated server and a local test server I ran.[/QUOTE] Now it works for me now. :D
[QUOTE=XxNemisis116xX;16497578]why do u have to download lots of shit just for one stupid wire update it doesnt make sense[/QUOTE] Building svn support into an application requires these libraries. Also svn is messy :D
[QUOTE=Grocel;16498044]Now it works for me now. :D[/QUOTE] Cool :D [QUOTE=ahref;16498362]Building svn support into an application requires these libraries. Also svn is messy :D[/QUOTE] Well, if all of those libraries are compiled into one dll file its pretty clean. (I'm writing a threaded .NET powered svn module for my servers; 2 dll files)
svn as a format is messy the .svn files are huge. Im getting a new error: [code] L 08/05/2009 - 18:43:32: rcon from "82.34.105.224:65478": command "lua_run require("svn") MsgAll("Updated wire to: "..svn.update("garrysmod/addons/wire"))" > require("svn") MsgAll("Updated wire to: "..svn.update("garrysmod/addons/wire"))... L 08/05/2009 - 18:43:32: Lua Error: Working copy 'garrysmod\addons\wire' locked Working copy 'garrysmod\addons\wire' locked[/code] i know exactly what an svn lock is but it there anyway to unlock it without reuploading all the .svn folders?
[QUOTE=echo1001;16484162]I think you were missing [url=http://ungamers.googlecode.com/svn/trunk/orangebox/bin/libsasl.dll]libsasl.dll[/url]. I had an error with it on both my dedicated server and a local test server I ran.[/QUOTE] Yeah, it looks like I missed that one cause my system have that particular DLL in the system PATH or something. I'll reupload the pack in a in a little while. [QUOTE=echo1001;16497874]He was just using that as an example. You can use it for any Svn. [lua] svn.update("garrysmod/addons/###"); --Just change the ### to whatever Svn folder in your addons folder to update [/lua][/QUOTE] Yeah, works on any folder with an SVN checkout. [QUOTE=ahref;16516272]svn as a format is messy the .svn files are huge. Im getting a new error: [code] L 08/05/2009 - 18:43:32: rcon from "82.34.105.224:65478": command "lua_run require("svn") MsgAll("Updated wire to: "..svn.update("garrysmod/addons/wire"))" > require("svn") MsgAll("Updated wire to: "..svn.update("garrysmod/addons/wire"))... L 08/05/2009 - 18:43:32: Lua Error: Working copy 'garrysmod\addons\wire' locked Working copy 'garrysmod\addons\wire' locked[/code] i know exactly what an svn lock is but it there anyway to unlock it without reuploading all the .svn folders?[/QUOTE] I think you need to run the svn unlock on the the folder. If you have shell access and subversion instead, use that. You could recompile my module with svn.unlock enabled also. If you think subversion is mess and takes lot of space, then you've never used GIT. It's control files take just over 100% more space than the source tree.
unfourtunately i dont have shell acess. I just reuploaded wire :P. Yeah ive heard git is a mess.
Can anyone re-upload this with the source? The server seems to have bit the dust.
Yes, please upload it elsewhere. I was looking forward to the svn updating prefan had put in Exsto.
And can you add a function to return the revision correct installed? Because you cant no longer read the files in the .svn folder with file.Read. And is there a way to prevent the game from freezing while updating the svn-addon?
[QUOTE=Grocel;22300238]And can you add a function to return the revision correct installed? And is there a way to [b]pervert[/b] the game from freezing while updating the svn-addon?[/QUOTE] What?
[QUOTE=|FlapJack|;22300256]What?[/QUOTE] Sorry I misspelled it, I've corrected it. ;)
Can you compile this module for Linux?
Don't know if you're still offering support for this, but upon ' require("svn") ' I get this error: [code] Lua Error: error loading module 'svn' from file 'c:\<truncated>\orangebox\garrysmod\lua\includes\modules\gm_svn.dll': The specified procedure could not be found. [/code] The error popup being: [code] The procedure entry point lua_error could not be located in the dynamic link library lua_shared.dll. [/code]
Needs to be modified and recompiled for the new gmod revisions.
If you still support this, can it be updated to work with the new gmod updates?
[QUOTE=aRaptor_024;22460188]Can you compile this module for Linux?[/QUOTE] I second this. For GSP's that don't offer SVN updates from their panels, this is extremely useful.
I got many servers and i ever wondered to get a serverside svn autoupdate... And now i'm sad because i get this error =/ : [code] lua_run require("svn") MsgN("Updated wire to: "..svn.update("garrysmod/addons/wire")) > require("svn") MsgN("Updated wire to: "..svn.update("garrysmod/addons/wire"))... Lua Error: error loading module 'svn' from file 'z:\data\server88\home\games\garrysmod\orangebox\garrysmod\lua\includes\modules\gm_svn.dll': <TAB>Module not found error loading module 'svn' from file 'z:\data\server88\home\games\garrysmod\orangebox\garrysmod\lua\includes\modules\gm_svn.dll': <TAB>Module not found [/code]
[QUOTE=warnaud;24269051]I got many servers and i ever wondered to get a serverside svn autoupdate... And now i'm sad because i get this error =/ : [code] lua_run require("svn") MsgN("Updated wire to: "..svn.update("garrysmod/addons/wire")) > require("svn") MsgN("Updated wire to: "..svn.update("garrysmod/addons/wire"))... Lua Error: error loading module 'svn' from file 'z:\data\server88\home\games\garrysmod\orangebox\garrysmod\lua\includes\modules\gm_svn.dll': <TAB>Module not found error loading module 'svn' from file 'z:\data\server88\home\games\garrysmod\orangebox\garrysmod\lua\includes\modules\gm_svn.dll': <TAB>Module not found [/code][/QUOTE] Use lua_run_cl.
The module is broken, its in a pure mess. Would be better writing a new module rather than fixing this one
[QUOTE=Tobba;24369244]The module is broken, its in a pure mess. Would be better writing a new module rather than fixing this one[/QUOTE] Maybe one with buildin svn DLLs, be cause this one needs the about 20 svn extra Dlls to work.
Anyone up to the challenge? It would be quite useful.
I know this is somewhat old, but is anyone up for the task of updating this?
[QUOTE=blackops7799;26466088]I know this is somewhat old, but is anyone up for the task of updating this?[/QUOTE] please?
Just use that something cmd module and console svn to update. No need to overcomplicate things.
yeha i posted that before i saw what you did.
[QUOTE=Python1320;26958602]Just use that something cmd module and console svn to update. No need to overcomplicate things.[/QUOTE] if anyone ever finds another up/down exploit. Or obtains your rcon password somehow.
You can also remake the cmd module so it only does that specific task ;)
[QUOTE=Python1320;26960122]You can also remake the cmd module so it only does that specific task ;)[/QUOTE] Well .... You din't said that. But thats also what i would do.
Sorry, you need to Log In to post a reply to this thread.