Search found 101 matches

by Mr. Strange
Fri Sep 23, 2011 5:35 pm
Forum: Libraries and Tools
Topic: I need a collaborator (or two) for a professional project
Replies: 7
Views: 3358

Re: I need a collaborator (or two) for a professional projec

@tsturzl - I might try to tap you for a secondary part - implementing a lobby / chat room to help people set up games. Each user has a scrolling chat window, and a field at the bottom for entering text. We create a table of text strings, which is kept on the server. Each time a player sends a string...
by Mr. Strange
Thu Sep 15, 2011 6:01 pm
Forum: Libraries and Tools
Topic: I need a collaborator (or two) for a professional project
Replies: 7
Views: 3358

Re: I need a collaborator (or two) for a professional projec

Interesting, I did make a virtual card table a while a go, have a look here http://www.locofilm.co.uk/blog/2010/cards/ I'm well aware! In fact, I tried to contact you about getting your help back when you first posted this, because your implementation overlaps with some things I wanted. Are you wil...
by Mr. Strange
Thu Sep 15, 2011 6:40 am
Forum: Libraries and Tools
Topic: I need a collaborator (or two) for a professional project
Replies: 7
Views: 3358

I need a collaborator (or two) for a professional project

Two years ago, I started a project to allow people to play card-games online. I was specifically targeting Shadowfist, a CCG I've loved for about 15 years. At the time the best solution for playing online Shadowfist had just died, and I thought providing a high-quality free alternative would be awes...
by Mr. Strange
Fri Oct 08, 2010 9:21 pm
Forum: Support and Development
Topic: Question about Lube.bin:pack
Replies: 4
Views: 1274

Re: Question about Lube.bin:pack

Since my last post I re-wrote lube.bin:pack to pack tables as well, but then I realized that since the elements in the sub-table are spaced with null characters just like the elements of the parent - unpack can't differentiate. Crap. Well, unless someone steps up to write a more intelligent recursiv...
by Mr. Strange
Fri Oct 08, 2010 8:44 pm
Forum: Support and Development
Topic: Question about Lube.bin:pack
Replies: 4
Views: 1274

Re: Question about Lube.bin:pack

I have a table in this form: example = { name = myName, pos = { x = 0, y = 0}, color = "red", } When I call lube.bin:pack(example) I get an error message which says : "Type table is not supported by lube.bin" If I remove the sub-table (the pos = {} line) and replace it with a variable, it works fine...
by Mr. Strange
Fri Oct 08, 2010 7:06 am
Forum: Support and Development
Topic: Question about Lube.bin:pack
Replies: 4
Views: 1274

Question about Lube.bin:pack

I've got this working on tables for which each element is a value - but it seems to choke on tables which have other tables as elements.

Is that the intent? Or is there some way I can make this work without adjusting my data structure?
by Mr. Strange
Thu Apr 29, 2010 11:30 pm
Forum: Support and Development
Topic: Accepting user strings through the keyboard
Replies: 9
Views: 1694

Re: Accepting user strings through the keyboard

Indeed, the following code in keypressed(key, unicode) works fine. if(key == "backspace" or key == "delete") then if(string.len(tempString) > 0) then tempString = string.sub(tempString,1,string.len(tempString) - 1) end elseif((string.len(tempString) < 12) and (string.len(key) == 1))then tempString =...
by Mr. Strange
Thu Apr 29, 2010 11:25 pm
Forum: Support and Development
Topic: Accepting user strings through the keyboard
Replies: 9
Views: 1694

Re: Accepting user strings through the keyboard

Hmmm... doesn't really work. For some characters (like tab) I get a box, while others (lshift, ctrl) simply seem to provide a null character, which love then gets confused about, and prints nothing after. I can still delete characters (as per the first part of the if) and get back to a good state, b...
by Mr. Strange
Thu Apr 29, 2010 9:43 pm
Forum: Support and Development
Topic: Accepting user strings through the keyboard
Replies: 9
Views: 1694

Accepting user strings through the keyboard

I want my players to name things and save them to a file. I've got saving and loading working, and naming works somewhat. I have the following: if(key == "backspace" or key == "delete") then if(string.len(tempString) > 0) then tempString = string.sub(tempString,1,string.len(tempString) - 1) elseif(s...
by Mr. Strange
Fri Feb 26, 2010 9:27 pm
Forum: Support and Development
Topic: printing rotated text?
Replies: 2
Views: 761

Re: printing rotated text?

Nice! I have to do some tricky math to adjust for the new coordinate system, but it's totally worthwhile to get my card text printing consistently.

Thanks much for this!