Search found 259 matches
- Wed Feb 05, 2014 10:03 pm
- Forum: Support and Development
- Topic: os.execute("mkdir Dir") not working on Mac
- Replies: 9
- Views: 3424
os.execute("mkdir Dir") not working on Mac
So I have a launcher for my game. This launcher downloads the game's files, and automatically looks for and downloads updates. The launcher is written in love. In order to do that, I need to be able to write files outside of the launcher.love, so I can't use love's filesystem. I simply use Lua's io ...
- Wed Jan 29, 2014 1:44 pm
- Forum: Support and Development
- Topic: Reading binary files with notepad?
- Replies: 3
- Views: 3556
Re: Reading binary files with notepad?
I don't think any other program really does this, and I can't really find a good answer for it. There's really no way to secure something in such a way that the program can figure out the credentials (which it needs in order to log in) while at the same not allowing a user who has access to that ve...
- Wed Jan 29, 2014 12:48 pm
- Forum: Support and Development
- Topic: Reading binary files with notepad?
- Replies: 3
- Views: 3556
Reading binary files with notepad?
I'm at a point where I need a certain Lua file to not be very easily accessible. Why you might ask? My Setup I have a login system set up on a server. All my Lua code does is make an http request to a php file, sending a username and password, and the server tells me if they are correct. Since authe...
- Mon Jan 20, 2014 2:09 pm
- Forum: Support and Development
- Topic: How can I draw "quads" in LÖVE 0.9.0?
- Replies: 2
- Views: 1544
Re: How can I draw "quads" in LÖVE 0.9.0?
It's now just draw instead of drawq.
Just replace any "drawq" in your code with "draw" and it will work.
Just replace any "drawq" in your code with "draw" and it will work.
- Sat Jan 18, 2014 4:43 pm
- Forum: Support and Development
- Topic: md5 hash png files?
- Replies: 6
- Views: 2883
Re: md5 hash png files?
I rewrote some bit functions to use LuaJIT's bit library instead, and it runs super fast, but I still get all 0's.
I tried using the hash library used by Vapor, and it works correctly!
https://github.com/josefnpat/vapor/blob ... b/hash.lua
Thanks Robin and Bartbes!
I tried using the hash library used by Vapor, and it works correctly!
https://github.com/josefnpat/vapor/blob ... b/hash.lua
Thanks Robin and Bartbes!
- Sat Jan 18, 2014 2:28 pm
- Forum: Support and Development
- Topic: md5 hash png files?
- Replies: 6
- Views: 2883
Re: md5 hash png files?
Here's a zip of a .love file plus a test image outside of it: http://4urentertainment.org/storage/HashTest.zip This is all the code inside main.lua function love.load(args) local file = io.open("BioloJoeSheet.png","rb"); local data = file:read("*a"); local hasher = requ...
- Sat Jan 18, 2014 1:16 pm
- Forum: Support and Development
- Topic: md5 hash png files?
- Replies: 6
- Views: 2883
md5 hash png files?
I'm making an automatic updater for my game, and in order to compare whether two files are the same (so I only upload the file that have been changed), I'm using an md5 hash with kikito's library https://github.com/kikito/md5.lua This system works really well. Except there seems to be a small proble...
- Thu Jan 09, 2014 11:45 pm
- Forum: Support and Development
- Topic: Tracking Memory Usage?
- Replies: 3
- Views: 2708
Re: Tracking Memory Usage?
collectgarbage("count") will only track memory used by Lua, so it won't report the true size of LÖVE objects (since their memory is handled in the C++ side of LÖVE, for the most part.) While we're on the same topic, any suggestions for helpful tools and profilers would be appreciated! Whi...
- Thu Jan 09, 2014 11:10 pm
- Forum: Support and Development
- Topic: Tracking Memory Usage?
- Replies: 3
- Views: 2708
Tracking Memory Usage?
I had a memory leak in my game trying to load and unload images, and as I was fixing it, I thought it would be convenient to have the RAM consumption displayed in the game instead of having to look at the task manager. I'm using collectgarbage("count") to track this, and it seems like the ...
- Fri Jan 03, 2014 1:03 pm
- Forum: Support and Development
- Topic: [Solved]How to mirror an AnAL animation
- Replies: 4
- Views: 3328
Re: How to mirror an AnAL animation
You're already drawing the "stand" animation, and commenting out the walking one. And if you comment out the stand, and leave the walking, then the character walks, right? So all I did was make a variable "walking", which is set to false every frame, and if either the right or le...