What is editable by the level editor?

  • 7 Replies
  • 7751 Views
*

Offline Exp HP

  • 259
  • 2
  • 1 in 166 children
    • View Profile
What is editable by the level editor?
« on: December 12, 2009, 19:09:50 »
Unless people object, I would be interested in writing a guide to the various .ini's like I did for World.ini in Knytt Stories, because that was a fun project and I would enjoy doing it again.  (and this time I'll make the format less awkward; <a | b | c> was stupid)

I would like to know what .inis are most important that I start looking into.  As in, which ones aren't controlled by the editor.  Because it looks like some of them are (for instance, it would really surprise me if Sprites.ini wasn't).
(secretly hoping nobody will mention the object compendium)
My stars:   :hiddenstar:(Object Compendium):hiddenstar:(By PM)
Check out my Youtube channel for some terrible Let's Plays by a socially inept nerd!

*

Offline Nifflas

  • 1532
  • 61
    • View Profile
Re: What is editable by the level editor?
« Reply #1 on: December 12, 2009, 19:18:57 »
Sorry, no ini file is edited through the editor. It's all notepad, the editor is for placing tiles, objects and sprites only.

*

Offline Exp HP

  • 259
  • 2
  • 1 in 166 children
    • View Profile
Re: What is editable by the level editor?
« Reply #2 on: December 12, 2009, 19:38:13 »
Ohhhhh...
Sprites.ini doesn't define sprite locations, it defines what they are.

Wow, the degree of level editing in this game is much greater than KS!


Alright, so I'll be writing about all the following:

For the episode:
Galaxy.ini
Credits.ini
For a solar system:
Star.ini
For a planet:
Objects.ini
Planet.ini
Sprites.ini
For a cutscene:
Objects.ini
Planet.ini

Some of these might constitute the need for separate threads, though.  It doesn't seem logical to have a guide that involves all the .ini's, because they all have different times when you would use each one.  In fact, the cutscene .ini files might not deserve a guide at all; instead, when somebody writes a guide about Cutscenes, that guide should integrate details on how to appropriately edit the two .inis associated with it.

Nonetheless, I'll start taking notes now.  When the time comes, I'll find a logical place for everything, or I'll share relevant notes with people writing other guides.
« Last Edit: December 12, 2009, 19:49:10 by Exp HP »
(secretly hoping nobody will mention the object compendium)
My stars:   :hiddenstar:(Object Compendium):hiddenstar:(By PM)
Check out my Youtube channel for some terrible Let's Plays by a socially inept nerd!

*

Offline Nifflas

  • 1532
  • 61
    • View Profile
Re: What is editable by the level editor?
« Reply #3 on: December 12, 2009, 20:05:22 »
To make it more complicated, cutscenes and levels are the same thing and work the same way. It just depends on what parameters you set and what sprites you define in the actual level.

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: What is editable by the level editor?
« Reply #4 on: December 12, 2009, 20:10:44 »
The only binary stuff in the game seem to be the tile maps and the .ccn modules; the rest is all ASCII, mostly in .ini files. Even the Map.bin file in each planet contains .ini stuff for Objects, Sprites etc.
Videogames are for everyone, by everyone

*

Offline Exp HP

  • 259
  • 2
  • 1 in 166 children
    • View Profile
Re: What is editable by the level editor?
« Reply #5 on: December 12, 2009, 20:27:16 »
Even the Map.bin file in each planet contains .ini stuff for Objects, Sprites etc.
Can't say I've noticed this.

Which planet are you looking at that has readable text in Map.bin?
I think that much will be handled by the editor, not through Notepad.  Especially if it's in unicode, which is the form I predict it is in since it's in an otherwise binary file.
« Last Edit: December 12, 2009, 21:17:08 by Exp HP »
(secretly hoping nobody will mention the object compendium)
My stars:   :hiddenstar:(Object Compendium):hiddenstar:(By PM)
Check out my Youtube channel for some terrible Let's Plays by a socially inept nerd!

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: What is editable by the level editor?
« Reply #6 on: December 12, 2009, 21:13:07 »
^ The Map.bin file, just like with Knytt Stories, is simply a GZipped file. Opening it with a hex editor reveals a structure like this:
  • A 6 bytes initial header
  • For each screen:
  • Screen coordinates in ASCII (xayb, where a and b are integers)
  • The 'Objects' string in ASCII, probably followed by the size expressed like in KS (32-bit little endian)
  • A string representing an .ini-like file with Windows carriage return (example: [Object 1]...)
  • The 'Tiles' string in ASCII, probably followed by the size expressed like in KS (32-bit little endian)
  • The tile map, probably made like in KS, only maybe with just one tileset?
Videogames are for everyone, by everyone

*

Offline Nifflas

  • 1532
  • 61
    • View Profile
Re: What is editable by the level editor?
« Reply #7 on: December 12, 2009, 22:05:32 »
Ah, by the way, the Map.bin Settings workspace is edited with a built in .ini editor, but the Objects and Sprites workspaces are handled by the editor itself.