Search found 1154 matches

by davisdude
Tue Mar 28, 2017 3:26 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

Actually I didn't realize you're on Linux. Start is a windows command. Try putting " &" at the end of the command.
by davisdude
Tue Mar 28, 2017 12:28 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

Are you sure you put the exclamation mark in front of start? I'm not really sure what else it could be.
by davisdude
Tue Mar 28, 2017 11:17 am
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

by davisdude
Tue Mar 28, 2017 11:11 am
Forum: Support and Development
Topic: Strange behavior with LuaJIT
Replies: 5
Views: 1936

Re: Strange behavior with LuaJIT

when you say all compiles from Cygwin what do you mean? Just the file is compiled with gcc from Cygwin, but then LOVE is run from it as well ("love ." when in the directory) If anyone knows a nice FFI 101 guide, i'd be happy to know it. The link in the op has a some very basic information about FFI...
by davisdude
Mon Mar 27, 2017 10:26 pm
Forum: Support and Development
Topic: Strange behavior with LuaJIT
Replies: 5
Views: 1936

Strange behavior with LuaJIT

Hey, I'm trying to learn a bit of C so I can use FFI, but I'm having a bit of trouble with some things, and I was hoping somebody with more experience/technical know-how could help me out here. I'm following this tutorial . So I started by installing gcc with Cygwin. Everything compiles correctly wi...
by davisdude
Mon Mar 27, 2017 5:50 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

Hey, thanks for pointing out that issue to me. It should be all fixed now :)
by davisdude
Mon Mar 27, 2017 12:58 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

That's weird... try `:syntax off` `:syntax on` to try and force the syntax and see if that works. I'm honestly not completely sure but it's definitely something I will try and figure out. In the meantime, we can continue this conversation on GitHub if you like, I opened an issue . *edit: I'm not sur...
by davisdude
Mon Mar 27, 2017 12:01 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 35
Views: 15566

Re: How to setup VIM

But how come it doesnt work in my existing lua files? I'm not sure why it's not working, but try running the command `:syntax sync fromstart` and let me know if that fixes your problem. Another possibility could be swap files/backups. I have no idea if this is the case or not, but my guess would be...
by davisdude
Fri Mar 10, 2017 3:13 am
Forum: Support and Development
Topic: String to Table?
Replies: 3
Views: 1337

Re: String to Table?

Even easier (assuming the string is a serialized table, and you're not very concerned with security), you could do

Code: Select all

str = '{ x = 2, y = 2, z = 5 }'

function stringToTable( str )
    return loadstring( 'return ' .. str )()
end

tab = stringToTable( str )
print( tab.z ) -- 5
by davisdude
Thu Mar 02, 2017 8:40 pm
Forum: Libraries and Tools
Topic: Brady- A Camera Library with Parallax Scrolling
Replies: 25
Views: 9270

Re: Brady- A Camera Library with Parallax Scrolling

Brady has been updated. You can find the repo here.

Updates include:

- Get the coordinates of the mouse within the world more easily with :getMouseWorldCoordinates
- Zoom into a given point (by a factor) with :scaleToPoint
- Zoom into a given point (by increment) with :incrementScaleToPoint