symlink not supported ?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: symlink not supported ?

Post by Robin » Wed Apr 27, 2011 4:21 am

Oh god, it has started. Quick, everyone leave before the thread explodes with an interesting but off-topic discussion!
Help us help you: attach a .love.

User avatar
BlackBulletIV
Inner party member
Posts: 1260
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: symlink not supported ?

Post by BlackBulletIV » Wed Apr 27, 2011 4:37 am

anjo wrote:
BlackBulletIV wrote:As for sandboxing, I personally think that folders and merged executables should have full rights, only to have their rights governed by the OS. This would make LOVE a good game development platform. But when it comes to a .love, sandboxing should be started; this makes LOVE a good game platform.
*downloads sandboxed .love*
*merges .love into executable*
:joker:
I don't see why the user would want to turn off sandboxing themselves.

But anyway, where were we... yes, symlinks... symlinks. Interesting members of society they are :P.

User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: symlink not supported ?

Post by TsT » Wed Apr 27, 2011 7:28 am

Robin wrote:Oh god, it has started. Quick, everyone leave before the thread explodes with an interesting but off-topic discussion!
You're right. I don't want security for now, I just want symlink support :P
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: symlink not supported ?

Post by Robin » Wed Apr 27, 2011 11:20 am

TsT wrote:You're right. I don't want security for now, I just want symlink support :P
What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
(At the start of main.lua.)

Then you can place the shared libs in ../common/. You then only need to remember to copy the common/ directory into the game dir when distributing your game.
Help us help you: attach a .love.

User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: symlink not supported ?

Post by TsT » Wed Apr 27, 2011 12:34 pm

Robin wrote:What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
Oh it seems a good and beautiful workaround ! Thanks Robin :awesome:
Robin wrote:You then only need to remember to copy the common/ directory into the game dir when distributing your game.
This is for mainly for development. The release process is different and you can not forget so much libs ;)
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)

User avatar
BlackBulletIV
Inner party member
Posts: 1260
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: symlink not supported ?

Post by BlackBulletIV » Wed Apr 27, 2011 9:30 pm

Robin wrote:
TsT wrote:You're right. I don't want security for now, I just want symlink support :P
What I use, it's a bit of a hack:

Code: Select all

package.path = package.path .. ";../common/?.lua"
(At the start of main.lua.)

Then you can place the shared libs in ../common/. You then only need to remember to copy the common/ directory into the game dir when distributing your game.
Hey that's a pretty cool hack!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests