Search found 259 matches

by OmarShehata
Wed Feb 05, 2014 10:03 pm
Forum: Support and Development
Topic: os.execute("mkdir Dir") not working on Mac
Replies: 9
Views: 3374

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 ...
by OmarShehata
Wed Jan 29, 2014 1:44 pm
Forum: Support and Development
Topic: Reading binary files with notepad?
Replies: 3
Views: 3533

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...
by OmarShehata
Wed Jan 29, 2014 12:48 pm
Forum: Support and Development
Topic: Reading binary files with notepad?
Replies: 3
Views: 3533

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...
by OmarShehata
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: 1531

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.
by OmarShehata
Sat Jan 18, 2014 4:43 pm
Forum: Support and Development
Topic: md5 hash png files?
Replies: 6
Views: 2871

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!
by OmarShehata
Sat Jan 18, 2014 2:28 pm
Forum: Support and Development
Topic: md5 hash png files?
Replies: 6
Views: 2871

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...
by OmarShehata
Sat Jan 18, 2014 1:16 pm
Forum: Support and Development
Topic: md5 hash png files?
Replies: 6
Views: 2871

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...
by OmarShehata
Thu Jan 09, 2014 11:45 pm
Forum: Support and Development
Topic: Tracking Memory Usage?
Replies: 3
Views: 2687

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...
by OmarShehata
Thu Jan 09, 2014 11:10 pm
Forum: Support and Development
Topic: Tracking Memory Usage?
Replies: 3
Views: 2687

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 ...
by OmarShehata
Fri Jan 03, 2014 1:03 pm
Forum: Support and Development
Topic: [Solved]How to mirror an AnAL animation
Replies: 4
Views: 3313

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...