Search found 135 matches

by adrix89
Wed Dec 31, 2014 8:58 am
Forum: Support and Development
Topic: Nested Table Iterator
Replies: 19
Views: 9166

Re: Nested Table Iterator

Yes! I manged to modify it to work. local function process(value) if (type(value)=="table") then coroutine.yield(value) for k,v in pairs(value) do process(v) end end end local function traverse(root) return coroutine.wrap(process),root end function love.load() local test = { { {x, stuff=12...
by adrix89
Tue Dec 30, 2014 10:55 pm
Forum: Support and Development
Topic: Nested Table Iterator
Replies: 19
Views: 9166

Re: Nested Table Iterator

I need a fancy iterator that traverses through all the nested tree of a table. Something like this? Your example didn't really make sense. local function process(value,key) if (type(value)=="table") then for k,v in pairs(value) do process(v,k) end else coroutine.yield(key,value) end end l...
by adrix89
Tue Dec 30, 2014 10:11 pm
Forum: General
Topic: Good RPG Tutorial?
Replies: 4
Views: 6321

Re: Good RPG Tutorial?

JRPG like Final Fantasy, since I am 1 man team with not so good graphical skills it would make several years of time, so this would be out of question for me. That is a question of scope. You can make a 1-3 hour game in RPG Maker pretty easily. I could even use ascii graphics. Don't do that if you ...
by adrix89
Tue Dec 30, 2014 9:01 pm
Forum: Support and Development
Topic: Nested Table Iterator
Replies: 19
Views: 9166

Re: Nested Table Iterator

Recursion is probably mandatory for this thing.

What I want is some wizardry to make it work with for and be generic.
I already have a reclusive function solution for the problem.
Your solution is pretty good,better then what I have currently.
by adrix89
Tue Dec 30, 2014 5:15 pm
Forum: Support and Development
Topic: Nested Table Iterator
Replies: 19
Views: 9166

Nested Table Iterator

I need a fancy iterator that traverses through all the nested tree of a table. I preferably want this with an iterator factory so that it can be reused. Something like this table = {{{ stuff=value},{}}, {{{},{stuff=value2}}} ,{},{{}}} iter_function = whatver magic is here local stuff for tbl in iter...
by adrix89
Sun Dec 28, 2014 7:50 am
Forum: General
Topic: Source code protection
Replies: 43
Views: 32483

Re: Source code protection

Pirates will only care about the serial and without online authorization any serial can work, which would make pirates not bother and your source code would be safe. When do pirates ever care about source code? That's more something cloners do, and they are very happy to just completely re-implemen...
by adrix89
Sat Dec 27, 2014 8:03 am
Forum: General
Topic: Source code protection
Replies: 43
Views: 32483

Re: Source code protection

Could you expand on this? I am not that experienced on the subject. The idea behind it is you have a launcher that is coded in another language(like C) and is used to decrypt your love.exe file that has been encrypted by a algorithm. You use a serial and that authorizes the decrypter, or you can be...
by adrix89
Sat Dec 27, 2014 7:40 am
Forum: General
Topic: LÖVE and open/closed-source, hidden/not-hidden code
Replies: 9
Views: 5156

Re: LÖVE and open/closed-source, hidden/not-hidden code

Going from how I think in general alone, if I was motivated to see how something worked, guilt tripping me would be highly ineffective and would actually work against you (the person trying to protect his work). It depends on what you want to achieve. If you have a super secret implementation stuff...
by adrix89
Fri Dec 26, 2014 10:01 am
Forum: General
Topic: Source code protection
Replies: 43
Views: 32483

Re: Source code protection

IF someone really wants DRM you could have the game encrypted and have a DRM DLL and a key to unlock it.
The DLL would have its own launcher separate from the love.exe
It would be decrypted directly into RAM so not as easy to get.

Someone could probably make something like this.
by adrix89
Fri Dec 26, 2014 9:38 am
Forum: General
Topic: Source code protection
Replies: 43
Views: 32483

Re: Source code protection

Open source is a license. Just because the source is visible doe not mean its open. If all you worry about is someone stealing your code for their own commercial projects slap a GPL or CC-NC license and they will avoid it like the plague. If you worry about someone redistributing your game you can s...