Nifflas' Support Forum

Level Editing Support => Knytt Stories Level Editing Support => Topic started by: neverknowzx on January 13, 2011, 17:29:11

Title: Screen dimensions X Y
Post by: neverknowzx on January 13, 2011, 17:29:11
It is a rather simple question. Can we change the screen dimensions in ANY WAY?
The dimensions right now are 10 height and 25 width of squares.

I was just thinking about making more upward going levels than wide - like the flower level. Yes, I know the map made with it would not be compatible with anything. But is is possible at all?

>Thank you!
Title: Re: Screen dimensions X Y
Post by: AA on January 13, 2011, 17:47:03
It's not possible to do that in Knytt Stories. Making a mod of the game probably would, but I suppose it'd be hard to support arbitrary screen size for many reasons.
Title: Re: Screen dimensions X Y
Post by: LPChip on January 13, 2011, 19:31:57
You cannot make the game window larger, but you can make it smaller.

You can do this by adding black tiles on the edges, and use shifts to mark their exits.
Title: Re: Screen dimensions X Y
Post by: neverknowzx on January 13, 2011, 21:51:34
Weeell
I was looking for a MOD actually. A mod that changes screen dimensions forever to, say, 24 by 24 or something.
Title: Re: Screen dimensions X Y
Post by: AA on January 13, 2011, 23:08:44
No such mod exists yet, but if you have MMF2 (and some required extensions, I believe) you could try making one yourself. You could also try asking the authors of the existing mods to add this feature; the mods are:KSA (http://nifflas.lpchip.nl/index.php?topic=761), ACO (http://nifflas.lpchip.nl/index.php?topic=2458) and KS Ex (http://nifflas.lpchip.nl/index.php?topic=2458).
Title: Re: Screen dimensions X Y
Post by: egomassive on January 14, 2011, 10:25:22
It would be terribly difficult to increase the screen size. 10 x 25 = 255 and it's not arbitrary. Nifflas used a binary array system to store map data in. The whole map rendering section of the program would need to be remade. I was looking into adding more layers to the game, but when I saw how beautiful this section of the program was I couldn't bring myself to alter it.

That said, 10 tiles wide and 25 tiles vertically wouldn't be too difficult. You'd need a matching editor too though.
Title: Re: Screen dimensions X Y
Post by: AA on January 14, 2011, 14:01:36
It would be terribly difficult to increase the screen size. 10 x 25 = 255 and it's not arbitrary. Nifflas used a binary array system to store map data in. The whole map rendering section of the program would need to be remade.

Are you sure about it? Given that the Map.bin file also store the size of each room in 32 bits, despite the fact that all rooms have to have that exact size, the structure of the level would allow even differently-sized rooms in the same level (naturally that'd lead to other problems, but it wouldn't be hard to do). If there are optimizations in the game to render the screens more quickly, couldn't they be removed?

If I had MMF2 I'd look onto this stuff myself.

Quote
That said, 10 tiles wide and 25 tiles vertically wouldn't be too difficult. You'd need a matching editor too though.

Yeah, it'd probably be trivial to make such a mod; one might simply add a configuration parameter somewhere that tells you how to read the level and you'd be able to play both the normal levels and the vertical ones with little effort. The hardest part would be to rearrange the panels in the editor.
Title: Re: Screen dimensions X Y
Post by: neverknowzx on January 19, 2011, 01:56:12
I really like Knytt Experiment screens. The main area screens are very large. It will be awesome if this was put into one of the KS mods! C)p
Title: Re: Screen dimensions X Y
Post by: egomassive on January 19, 2011, 19:49:44
Terribly hard is a bit of an exaggeration, but I'm not exaggerating when I say the rendering section would need to be rewritten. The 2 tilesets have 128 spaces apiece making 256 tiles total, including the two null tiles. Each layer has 255 locations. The objects require 2 characters, 256 banks with 255 possible objects in each. Nifflas designed his map files to make use of every single bit. Changing the screen size means rewriting the algorithms. I guess the hardest part of that would be bringing oneself to ruin the original work, it's like programing poetry. Maybe it's just me. :)

If I still had MMF2 I'd find you the algorithms, but I only had the demo.
Title: Re: Screen dimensions X Y
Post by: LPChip on January 19, 2011, 20:41:56
Or it could be done by scrolling. Making it so that you are always in the center, and the screen scrolls to the left/right/up/down if there's an adjacent screen would allow you to get the impression the screen is much bigger. Knytt Experiment looks so big because the screen scrolls. The window itself is not that much bigger than Knytt Stories.