ULX

Author Topic: Modules folder moved to data?  (Read 3325 times)

0 Members and 1 Guest are viewing this topic.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Modules folder moved to data?
« on: July 17, 2009, 03:19:17 AM »
When I need to install a module I have to spend ages going to garrysmod/addons/ulx/lua/ulx/modules/cl
Can it be moved to /data/ in the next release of ULX? It would make everything much easier.

Thanks for reading.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Modules folder moved to data?
« Reply #1 on: July 17, 2009, 07:07:23 PM »
No, sorry. For the following reasons:

1. That doesn't make sense
2. Lua scripts can't be loaded from there
3. How often do you install modules?
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: Modules folder moved to data?
« Reply #2 on: July 18, 2009, 12:54:34 PM »
I install modules maybe a few times a day.

And Lua scripts CAN be loaded from data, as seen with the "FPtje virus".

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Modules folder moved to data?
« Reply #3 on: July 18, 2009, 08:51:00 PM »
Several hacks/exploits, yes, do take advantage of lua in /data
However, we're not going to rewrite ULib to use any of those hacks because of reason 1... Lua shouldn't be run from data; it doesn't make sense.
And back to reason #2... though we could, as soon as we did... Garry would block it again like he's blocked execution from so many other folders.
The path exists because of Garry's 'lua should only be run from /lua' program model
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Modules folder moved to data?
« Reply #4 on: July 18, 2009, 09:48:05 PM »
Why don't you create a shortcut to the folder on your desktop?
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: Modules folder moved to data?
« Reply #5 on: July 19, 2009, 03:23:30 PM »
I can't make a shortcut on my desktop because my FTP client doesn't let me make shortcuts within the server.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Modules folder moved to data?
« Reply #6 on: July 19, 2009, 06:49:11 PM »
If you have a good FTP client it will let you make shortcuts
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: Modules folder moved to data?
« Reply #7 on: July 20, 2009, 03:27:58 PM »
I use FileZilla.
Which FTP clients allow shortcuts?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Modules folder moved to data?
« Reply #8 on: July 20, 2009, 06:00:52 PM »
Heck, even Windows XP "Internet Explorer" will let you have shortcuts, as bad as IE is about being a true ftp client.

Right click desktop, New > Shortcut
Path = ftp://<your.host.com>/gmod/addons/ulx/lua/ulx/modules
Next
Name of Shortcut "ULX Server Modules"
Finish.
Double click... proper FTP should open, autologin or prompt depending on settings... done.

Try different ftp programs until that opens properly for you.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming