Nifflas' Support Forum

Being Creative => Nifflas' Sources => Topic started by: Evil on June 10, 2009, 00:24:36

Title: LAYERS
Post by: Evil on June 10, 2009, 00:24:36
Would it be possible to  make a ks mod with more than 7 layers? D:
I can't seem to get enough stuff in the screen ("quantity over q.." you know)
Title: Re: LAYERS
Post by: LightningEagle on June 10, 2009, 00:27:38
You could suggest it for KSA.
It would require both game and editor to be rebuild, though.  :/

Who knows.. maybe someone is willing to do it.
Title: Re: LAYERS
Post by: Krumel on June 10, 2009, 01:00:26
It's a great idea, with things like normal tiles in front of Juni, or with objects behind tiles,
Although it would make KSA levels completely incompatible with normal Knytt Stories.
Title: Re: LAYERS
Post by: koromi on June 10, 2009, 01:08:23
you'd have to completely rebuild the way knytt stories stores and reads data in the map.bin. it's all in hexadecimal, which is 0-9 and a-f. if you wanted to put in more than 8, a different array of storing data would have to be used and currently hexadecimal is the best for an average between small size and lots of storage space. in short: yes but it'll be incompatible with regular knytt stories.
Title: Re: LAYERS
Post by: LightningEagle on June 10, 2009, 01:10:19
Although it would make KSA levels completely incompatible with normal Knytt Stories.

are they not that already?
I mean, if for instance the platform object was used to reach a key-point in a level it would most likely be unreachable in the original KS.
Title: Re: LAYERS
Post by: koromi on June 10, 2009, 01:57:50
ksa levels are playable but ksa-exclusive objects do not show up.
Title: Re: LAYERS
Post by: Purple Pineapple on June 10, 2009, 02:00:54
ksa levels are playable but ksa-exclusive objects do not show up.
Precisely. If you re-made the map.bin compilement, everything would end up scattered over the screen.. or crash.
Title: Re: LAYERS
Post by: AA on June 10, 2009, 10:40:48
you'd have to completely rebuild the way knytt stories stores and reads data in the map.bin. it's all in hexadecimal, which is 0-9 and a-f. if you wanted to put in more than 8, a different array of storing data would have to be used and currently hexadecimal is the best for an average between small size and lots of storage space. in short, no.

It's not actually that different: for each room, layer information is read sequentially, therefore it would suffice to add more byte sequences for it to work. It would still make levels not loadable on the standard Knytt Stories, but there's no 'hard limit' like with tiles and tilesets. Of course it would also be possible to add other layers in a separate Map.bin.

But I don't think the number of layers in the standard game is very limiting; about putting tiles on layers over Juni, for example, you can already work around it by using Custom Objects (not very practical, but still not hard either).
Title: Re: LAYERS
Post by: LPChip on June 10, 2009, 12:26:50
Not to mention that there might be performance loss by adding more layers.
Title: Re: LAYERS
Post by: TechnoGeek on June 11, 2009, 15:56:51
and 8 is a nice, round binary number! 8 bits = 2 hexadecimal digits! :crazy: :nuts:
Title: Re: LAYERS
Post by: Dataflashsabot on June 11, 2009, 16:20:36
I love powers of two \o/

2 4 8 16 32 64 128 256 512 1024 2048 4096 ... 65536
Title: Re: LAYERS
Post by: Evil on June 12, 2009, 01:41:39
have over 10000000 layers will affect the load of the game?

i mean yoy're only using like 5...its not like its gonna load all those 100000000 other layers.
Title: Re: LAYERS
Post by: TechnoGeek on June 12, 2009, 02:54:32
have over 10000000 layers will affect the load of the game?

i mean yoy're only using like 5...its not like its gonna load all those 100000000 other layers.
yes, because even though they're empty, it still has to store them as zero values.
and you mean...134217728 (227)
Title: Re: LAYERS
Post by: Bored2death on June 12, 2009, 05:58:15
 :whoa: WOW! Did you seriously ask that???
Title: Re: LAYERS
Post by: Evil on June 12, 2009, 12:58:19
:whoa: WOW! Did you seriously ask that???

meenie D:\
Title: Re: LAYERS
Post by: Bored2death on June 12, 2009, 18:57:06
:whoa: WOW! Did you seriously ask that???

meenie D:\
I'm sorry... it just seems to be more of a common sense thing... to me, at least... plus, who's going to use 134227728 layers? And, how many would you make ground stuff, and how many objects? And, if you did use more than 7, think about how slow it would be. Put 5 or so white "explosions" on one screen, and that in itself creates serious lag. So, 134217728 layers would probably not even load on standard computers.
Title: Re: LAYERS
Post by: TechnoGeek on June 13, 2009, 18:00:30
:whoa: WOW! Did you seriously ask that???

meenie D:\
I'm sorry... it just seems to be more of a common sense thing... to me, at least... plus, who's going to use 134227728 layers? And, how many would you make ground stuff, and how many objects? And, if you did use more than 7, think about how slow it would be. Put 5 or so white "explosions" on one screen, and that in itself creates serious lag. So, 134217728 layers would probably not even load on standard computers.
it most certainly would not.
Title: Re: LAYERS
Post by: Krumel on June 13, 2009, 20:18:30
You people are taking jokes to serious...
Title: Re: LAYERS
Post by: Strange Darkness on June 14, 2009, 01:47:21
You people are taking jokes to serious...
XD
shouldnt it be the other way round? dont people usally muck around or is that just me  :P2
Title: Re: LAYERS
Post by: Dandelion on June 15, 2009, 17:58:17
You people are taking jokes to serious...
Hey, good, up to date sarcasm detectors are expensive. :sad:
And Evil, the quantity over quality joke is getting really old. Unless you really believe it, in which case it's quality over quantity for sure.
Title: Re: LAYERS
Post by: LightningEagle on June 15, 2009, 20:11:39
Don't you guys think this thread has gone too far from the actual topic?

It's already been explained why more layers will not be possible or should not be implemented.
No more to post ontopic? Then don't post  :/