Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 today I discovered

Also, this part from another song just cracks me up every time
1588021488280.png

Its from
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 got pretty far at changing how the card engine for my card game is structured.

No longer is the engine sitting in one big file and the amount of parameters that cards needed also shrunk, as well as the amount of global functions. Problem is: it throws an error now :(
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
50 That's always fun. I had a weird issues yesterday where something broke, I reverted to earlier versions, it stayed broke, then just waited, and it all fixed itself, so... ???
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 ah, the good old "it suddenly worked, no idea why" thing.

"fun" fact: I've gotten to the point where I'm using so many functions that return functions that lua thinks tail call recursion happened. Giving stack traces like
Code:
\t(...tail calls...)
\t[string \"return {...\"]:11: in field \'func\'
\t./lua/engine/turn.lua:13: in local \'card\'
\t./lua/engine/turn.lua:70: in function \'engine/turn\'
\t(...tail calls...)"',

Oh well, a weird stacktrace is a small price to pay for tailcall optimizations. It is a shame that so few languages implement that kind of optimization :(
 
  • Like
Reactions: GamerwithnoGame

GamerwithnoGame

Over-Achiever
Jan 29, 2015
2,808
1,507
224
49. It’s always fun when something just fixes itself. I’ve had that for an entire piece of analytical equipment before.
 

GamerwithnoGame

Over-Achiever
Jan 29, 2015
2,808
1,507
224
51. It was.

*hears worrying rattle*

*worrying rattle stops*

"Uh oh, has it just broken?"

*checks it*

"Oh. No, its just... working. Huh."
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 lua does start from 1 but if you ask me, it doesn't really matter. Also, lua has a lot of other good stuff going for it. Especially if you need to embed another language as it is actually insanely fast and small.