KS Editor Mod

  • 140 Replies
  • 73640 Views
*

Offline Looki

  • 166
  • 7
    • View Profile
KS Editor Mod
« on: March 24, 2009, 17:20:21 »
Hey everybody. I've been working on a modification of the KS Editor.

Level Editor Modification by Looki, 2009

New features:

* Open a world by double-clicking it.
* Open a world by searching for it in the input box above the list.
* Hold down the arrow keys when navigating through the world.
* Custom objects are displayed on-screen if "Screen->Show custom objects" is set.
* In-built INI Editor with syntax highlighting:
---Press F3 or "Script" left to the tileset settings. Reload the original file by "Edit->Reload World.ini".
---(NOT WORKING) You can press on a room's group, e.g. [x1000y1000], to jump to the room.
---The font can be changed in Worlds\EditorSettings.temp.
* Tile replacing, Press Shift+Right click. Like Flood Fill, but not only for connected tiles.
* Rectangular selection: Select multiple tiles at once.
---You can right-click a tile to keep the current selection rectangle. You can press F to reset it.
* Rectangular filling: Hold down Ctrl while placing tiles. You can select multiple tiles to fill using a pattern.
* Undo, Press Ctrl+Z or "Edit->Undo". Undo only works for object and tile placement.
* Flood Fill, Press Shift+Click. Use can select multiple tiles to use a pattern. Only for tiles (single layer).
* Minor fix for German users by setting "Qwertz" in EditorSettings.temp to 1 (Z gets Y, bank-changing shortcut).
* The executable to use for testing is read from "Executable" in EditorSettings.temp.
* Press Ctrl+G or "Go to>Coordinates" to jump to a screen by entering its coordinates.

The Worlds folder only contains a EditorSettings.temp file which has to be updated in order to be able to test your level.

One note, undo only works per screen. If you switch the screen, all the undo information is lost.

I hope you like it as much as I do!  >)

Get it here!
Pictures:
http://clickteam.info/looki/Pictures/KSE1.png
http://clickteam.info/looki/Pictures/KSE2.png
« Last Edit: February 21, 2010, 03:32:34 by Looki »

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: Slight KS Editor tweak
« Reply #1 on: March 24, 2009, 19:04:11 »
Nice :)

I'm moving this to Nifflas' Sources forum, cus it suits that better I think.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline Shawnachu

  • 223
  • 1
  • Contemplating
    • View Profile
Re: Slight KS Editor tweak
« Reply #2 on: March 24, 2009, 22:24:10 »
Flood fill?
UNDO?

 :nuts:

EDIT: This is awesome! The only problem I could find was that you can't undo a flood fill. Also, why does it say "Knytt Stories - Level Editor 1.1?
« Last Edit: March 24, 2009, 22:27:30 by shawnachu »

Re: Slight KS Editor tweak
« Reply #3 on: March 25, 2009, 01:16:26 »
Flood fill?
UNDO?

 :nuts:
Oh boy oh boy oh boy.
Also, why does it say "Knytt Stories - Level Editor 1.1?
Does it support COs?
Lurk more.

*

Offline Mr. Monkey

  • 222
  • 1
  • jolly good fellow
    • View Profile
Re: Slight KS Editor tweak
« Reply #4 on: March 25, 2009, 01:53:48 »
It should.  The editor doesn't do the CO work, really.  If it works like I think it does (and reads images from the Data directories, and writes values to the map file without needing to know if an object exists), then it should be fine :D
o__  o

Re: Slight KS Editor tweak
« Reply #5 on: March 25, 2009, 04:15:51 »
So Level Editor 1.1 in KS folder 1.2.1 would still be able to test COs?
Lurk more.

*

Offline Pumpkinbot

  • 1134
  • 20
  • No terrain is too hard. Not even dragons.
    • View Profile
    • My DeviantART page
Re: Slight KS Editor tweak
« Reply #6 on: March 25, 2009, 04:17:55 »
So Level Editor 1.1 in KS folder 1.2.1 would still be able to test COs?
Actually, no. The first Level Editor didn't have Bank 255, so I don't think it would work. :/ Try fixing that, Looki.
A God, a Messiah, an Angel, a King, a Prince, and an All Terrain Vehicle.

Re: Slight KS Editor tweak
« Reply #7 on: March 25, 2009, 04:19:05 »
But, if you added the images for that bank in the folder...
Lurk more.

*

Offline Pumpkinbot

  • 1134
  • 20
  • No terrain is too hard. Not even dragons.
    • View Profile
    • My DeviantART page
Re: Slight KS Editor tweak
« Reply #8 on: March 25, 2009, 04:26:50 »
But, if you added the images for that bank in the folder...
...That might work. Try it.
A God, a Messiah, an Angel, a King, a Prince, and an All Terrain Vehicle.

Re: Slight KS Editor tweak
« Reply #9 on: March 25, 2009, 05:04:01 »
It works! This is awesome. Editing power now greatly increased.
Lurk more.

*

Offline Looki

  • 166
  • 7
    • View Profile
Re: Slight KS Editor tweak
« Reply #10 on: March 25, 2009, 13:40:20 »
Thanks a lot, guys. :)
I'm planning to add undo for flood fill, it shouldn't be that hard. Can't access the source code right now, though.
I also wanted to add rectangular selection onthe tileset, instead of single tiles, so you can easily place trees etc.
LPChip: Sorry for that :oops:

Oh by the way, I took the "No dev edition" source, silly me. I even have MMF2 Developer, so I could've used the latest version of the Editor...

I added that new selection mode. It works perfectly, but I can't release a new version right now.
« Last Edit: March 25, 2009, 14:20:54 by Looki »

*

Offline AmADizii

  • 59
  • 0
  • From The Black Comes Rays Of Hope.
    • View Profile
Re: Slight KS Editor tweak
« Reply #11 on: March 25, 2009, 19:28:02 »
I also wanted to add rectangular selection onthe tileset, instead of single tiles, so you can easily place trees etc.

Like you can drag a rectangle around what you want to use? Something like that, you'll be legend. Also,m this is really cool. undo teh oosum.
TeamWork - Gives The Enemy More People To Shoot At.

- Unknown.

*

Offline Looki

  • 166
  • 7
    • View Profile
Re: Slight KS Editor tweak
« Reply #12 on: March 25, 2009, 20:49:30 »
Indeed. As I said, it works. I'll be able to release it tomorrow. And thanks. :^^:

*

Offline Looki

  • 166
  • 7
    • View Profile
Re: Slight KS Editor tweak
« Reply #13 on: March 26, 2009, 15:06:23 »
I added the new selection feature. As I said in the changelog, you can press F to reset the selection size to 1x1, and you can right-click a tile to select it to keep the "selection rectangle".

*

Offline Joozey

  • 122
  • 0
  • It's a clockwork universe.
    • View Profile
Re: Slight KS Editor tweak
« Reply #14 on: March 27, 2009, 15:00:46 »
Excellent!
Gears grinding on maximum power, belts slipping to high speed.<br />In name of Her Majesty Victoria, FULL THRUST INTO ARMADA!