123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|598|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Monkey -> Too Big a Select Makes Monkey Make Many Ifs

Wed, 17 Aug 2016, 14:10
Jayenkai
Hmm.

So, I got Puzzobomb to export its levels as one big select statement in an includable .monkey file.
Seemed logical.

Except when exporting to iOS.
For some very silly reason, instead of exporting as
Select
Case a
Case b
Case c
End select

It exports as
If a
Else
If b
Else
If c
End if

And when there's 650 levels, it ends up with an insanely huge if statement, which Xcode can't handle!!

Derp!
Going to have to rethink that.

-=-=-
''Load, Next List!''
Wed, 17 Aug 2016, 21:27
rockford
Bonkers!

Do you really need a CASE statement for each level? Surely there must be a better way of breaking that down into smaller chunks or blocks of levels?

Or just cut the number of levels back to 10 so poor XCode can manage!
Wed, 17 Aug 2016, 22:49
Jayenkai
Yeah, given that it's just making lots of ifs, I can recode it to make "better" ifs!!!
Wish I knew that earlier, though.. Would've saved a lot of time!

-=-=-
''Load, Next List!''