hamsterready / love-console

Simple Counter-Strike-like console for LÖVE games
MIT License
34 stars 6 forks source link

lua command does not work #11

Closed ghost closed 10 years ago

ghost commented 10 years ago

I am assuming I'm supposed to for example type:

lua print("something")

That doesn't work. I've also tried:

lua "print('something')"
lua {print("something")}

And it does not work. I tried that last one because the error is saying that pairs() is getting a string instead of a table.

pablomayobre commented 10 years ago

Try lua "print("something")" "--[[Nothing]]" But this shouldnt happen. I'll see if there is an error an make a pull request with a fix

hamsterready commented 10 years ago

Ehm, did I break pull request merge? I guess it was me. Will merge afternoon, as usual guys - thanks for the fix.

pablomayobre commented 10 years ago

Maybe haha! But I had the same problem, so it could be my mistake (or a change in the commands made by @shakesoda ) but it's fixed now.

Other problem that may arise is passing nil to the command. This can be fixed and it could be used to display the help of the command (which is not shown with the help command). If you like the idea I can add it to the pull request.

hamsterready commented 10 years ago

print(1) works fine for me, closing now