So i compile everything into a exe. I learned how to run external lua files which was pretty easy using the default lua io commands. Does anyone know how to do external images so people could say mod there players character and i could have the love load them externally?
btw im using love 0.5.0 im sure that shoudnt really matter for the help but just thought i throw that out there.
Loading external graphics outside of love?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Loading external graphics outside of love?
You can load files from 2 places only: the .love file and the save directory. You can get the path to this folder by using the command:
Code: Select all
love.filesystem.getSaveDirectory()
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Loading external graphics outside of love?
Actually, both are accessible as the current directory (.). So if you have an image with the name "~/.love/mygame/awesome.png"*, you can load it as "awesome.png"napco wrote:You can load files from 2 places only: the .love file and the save directory. You can get the path to this folder by using the command:Code: Select all
love.filesystem.getSaveDirectory()
* Assuming you're on Linux/UNIX. For Windows, the story is similar.
Help us help you: attach a .love.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Loading external graphics outside of love?
With 0.6.0 you can load images from strings too, thus making loading external files possible too.
Who is online
Users browsing this forum: Ahrefs [Bot], GoldenTCat, Google [Bot] and 5 guests