Page 1 of 1

Better Level Editor: Special Edition

Posted: 05 Aug 2015, 05:50
by TurretBot
pbalazs wrote:By replacing the original editor.lua file with the modded one you can:
    Selected Tile Controls:
    • Select multiple tiles by holding CTRL and clicking with the left mouse button, or select everything with CTRL + A.
      Delete selected tiles with delete/backspace keys
      Move selected tiles by clicking on the selection with left mouse button
      Move a copy of the selected tiles by clicking on the selection with right mouse button
      Cut, copy, paste selected tiles: CTRL+X / CTRL+C / CTRL+V
      Replace all X tiles with Y tile by holding E + left click
      Save selected tile region for later use: CTRL + S. You can then select it from the objects tab. The data is saved to objects.txt in the mappack folder. To change object names, you have to edit the file directly. Objects.txt file can be shared along with tilesets to get predefined multitile objects ready for use in Better Level Editor.
    Editor Settings:
    • Opaque Paste makes Tile 1 (hopefully air) replace other tiles while handling selected tiles.
      Copy to Clipboard will make cutting and copying tiles also save an object code to your clipboard.
      Draw All Links, Show Hitboxes, and Skip Level Screens enable self-explanatory debug functions.
      • There's also a hidden checkbox with a special feature if you can make it appear.
    Other Features:
    • • NEW: Time limit is now an input value.
      Access an infinite number correctly sorted* maps, supported by the game but not the vanilla editor.
      Put any number you want in a pipe's right-click menu! Because you gotta access them worlds.
      Princessmusic.ogg is now selectable in-game!
      Hovering over a tile in the tiles tab will show all of its properties next to the mouse.
      The Power Line Draw tool has been expanded and can now draw Mushroom Platforms.
      Add maps in-game. Comes with every mod now, so it's not too special. But it's there.
      *Only worlds 0-99 are sorted correctly.

    Mappacks created with this mod are fully compatible with the unmodded version of the game.
    (Editor tested with Hatninja's Special Edition Extended Vanilla and the stickied Bugfixes.)

    GET IT HERE!
    (Mirror.)

    Credits:
    • • WillWare for testing, ideas, and less than 90 lines of code.
      Plzbalbzab Pbalazs for the original Better Level Editor.
      • Turtle for the editor.lua in the SE Bugfixes thread.
      • TurretBot for literally everything else.

    Re: Better Level Editor: Special Edition

    Posted: 08 Aug 2015, 08:22
    by Qwerbey
    TurretBot wrote:Access an infinite number of maps
    Actually, you can only have 10,000,000,000,000,000,000,000,000,000 maps.

    Anyway, on to the actual mod, and not trivia:
    I don't like how the levels are ordered alphabetically, not numerically, so world 11 would be listed before world 2. Also, would it be at all possible to make warp pipes use text boxes rather than dropdowns?

    Re: Better Level Editor: Special Edition

    Posted: 08 Aug 2015, 16:49
    by TurretBot
    QwertymanO07 wrote:
    TurretBot wrote:Access an infinite number of maps
    Actually, you can only have 10,000,000,000,000,000,000,000,000,000 maps.
    Fixed. You must be fun at parties.
    QwertymanO07 wrote:I don't like how the levels are ordered alphabetically, not numerically, so world 11 would be listed before world 2.
    Last time I tried to fix this it broke everything.
    I'll try again.
    QwertymanO07 wrote:Also, would it be at all possible to make warp pipes use text boxes rather than dropdowns?
    Yeah, I can do that. (There is already some code commented out which makes it a scrollbar, but that only goes to 25.)

    Re: Better Level Editor: Special Edition

    Posted: 09 Aug 2015, 07:15
    by Qwerbey
    TurretBot wrote:
    QwertymanO07 wrote:
    TurretBot wrote:Access an infinite number of maps
    Actually, you can only have 10,000,000,000,000,000,000,000,000,000 maps.
    Fixed. You must be fun at parties.
    I was just joking. I thought the juxtaposition of "only" and a big-ass number was enough, but I guess not.

    Re: Better Level Editor: Special Edition

    Posted: 17 Aug 2015, 18:29
    by Villager103
    But... Doesn't pressing CTRL crash the game? or is it just me?

    Re: Better Level Editor: Special Edition

    Posted: 17 Aug 2015, 22:12
    by TurretBot
    Villager103 wrote:But... Doesn't pressing CTRL crash the game? or is it just me?
    use a newer version of SE

    Re: Better Level Editor: Special Edition

    Posted: 19 Aug 2015, 01:01
    by faves3000
    TurretBot wrote:
    Villager103 wrote:But... Doesn't pressing CTRL crash the game? or is it just me?
    use a newer version of SE
    I'm also using the latest version I can find and pressing ctrl crashes the game as well

    Re: Better Level Editor: Special Edition

    Posted: 19 Aug 2015, 05:09
    by Qwerbey
    I checked on Beta 9, and it works just fine.

    Re: Better Level Editor: Special Edition

    Posted: 19 Aug 2015, 06:43
    by Sky
    Just finished testing this on every version of SE I have. Pressing Ctrl doesn't ever crash the game.

    In SE beta 7 (or 8) and below, it does freeze the game, but it will do that whether the game is modded or not. The reason it freezes is to open the console in the other window. Typing "cont" returns to the game. This is a known issue and was fixed in 9. The editor works fine otherwise.

    Side note: strangely, this mod doesn't work with an old modded version of 9 that I have (where I reverted the editor mapscreen back to 7's as a quick fix). THAT one crashes for some reason, but only when I hit Esc, not Ctrl.

    Re: Better Level Editor: Special Edition

    Posted: 27 Aug 2015, 02:41
    by TurretBot
    WillWare wrote:Side note: strangely, this mod doesn't work with an old modded version of 9 that I have (where I reverted the editor mapscreen back to 7's as a quick fix). THAT one crashes for some reason, but only when I hit Esc, not Ctrl.
    why would you even add this mod to a mod that only changes the editor

    EDIT:
    CORRECTLY SORTED WORLDS!!1!*
    ALSO PIPE RIGHT CLICK MENU STUFF YOU DON'T CARE ABOUT!1!!1

    DOWNLOAD IN FIRST POST!!!11!1

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 27 Aug 2015, 15:13
    by Qwerbey
    It doesn't seem to be working. Did you upload the wrong version or is this all just a prank?

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 27 Aug 2015, 20:50
    by TurretBot
    the download didn't update automatically, i just fixed it so try now

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 07 Sep 2015, 18:22
    by imgudman4567
    How do you put said mod into the mari0 game?

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 07 Sep 2015, 20:53
    by Sky
    1. Use the latest version of Mari0: SE.
    2. Open your mappacks folder. (Start the game, choose Select Mappack, and press M.)
    3. Go up one folder, from mari0_se/mappacks to mari0_se.
    4. Place the modified file there.
    5. Restart the game.
    This process works for all mods that aren't already prepackaged.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 08 Sep 2015, 12:48
    by TurretBot
    also updated

    edit: of course the bbcode doesn't work

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 09 Sep 2015, 03:03
    by imgudman4567
    @WillWare cant get the actual file. :/

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 09 Sep 2015, 04:05
    by Sky
    You mean editor.lua, the file that's available in the first post? Does clicking the download link not work?

    Re: Better Level Editor: Special Edition

    Posted: 10 Sep 2015, 02:00
    by Mari0_Player
    Villager103 wrote:But... Doesn't pressing CTRL crash the game? or is it just me?
    Sorry if I'm a little late, but CTRL just allows access the console, pausing the game until CTRL is pressed again.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 11 Sep 2015, 01:57
    by imgudman4567
    @Willware was trying a different file, xd

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 11 Sep 2015, 02:02
    by imgudman4567
    but, how do I put it in the game?

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 11 Sep 2015, 17:07
    by Sky
    I kinda already answered that
    WillWare wrote:
    1. Use the latest version of Mari0: SE.
    2. Open your mappacks folder. (Start the game, choose Select Mappack, and press M.)
    3. Go up one folder, from mari0_se/mappacks to mari0_se.
    4. Place the modified file there.
    5. Restart the game.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 12 Sep 2015, 16:44
    by imgudman4567
    I don't see a mari0_se... like, anywhere

    Re: Better Level Editor: Special Edition (NOW WITH CORRECTLY SORTED WORLDS!!1!)

    Posted: 12 Sep 2015, 17:06
    by Mari0_Player
    You have to exit the mappacks folder.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 13 Sep 2015, 00:01
    by imgudman4567
    Oh, ok

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 13 Sep 2015, 08:51
    by Superjustinbros
    Oh my god, I'm super glad to see this is back.
    All I want to ask though is if the editor could contain data for the Beetle_Half entity so any imported 1.6 maps don't crash when it tries to load an otherwise non-existent enemy.

    Additionally, when selecting tiles in the custom tileset palette, it'd be useful to have each "tick" on a mouse wheel not scroll as much on bigger tilesets so scrolling doesn't skip over parts of the tileset, kinda like on a webpage.

    Those are just my two cents.
    Edit: I just want to add, since on Mac OSXes holding Control normally goes through the different sessions (dashboard included), maybe it's functions could be added to the Command key?

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 25 Sep 2015, 20:11
    by I LÖVE LUA
    Superjustinbros wrote:All I want to ask though is if the editor could contain data for the Beetle_Half entity so any imported 1.6 maps don't crash when it tries to load an otherwise non-existent enemy.

    Code: Select all

    base=beetle
    {
      "spawnoffsetx" : 0.5
    }
    Here you go. Just place it in the enemies folder, as "beetlehalf.json" for exemple

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 26 Sep 2015, 08:26
    by Superjustinbros
    Thank.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 26 Sep 2015, 08:28
    by TurretBot
    BTW. You can make the game do that for you. But probably not in editor.lua so it doesn't belong here.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 04 Oct 2015, 23:02
    by BarbarianKabbage
    I added the editor.lua to the game, and it kept crashing after the StabYourself.net Logo.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 04 Oct 2015, 23:09
    by Sky
    Can you get a screenshot of the crash? A description of what steps you took would also be helpful.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 04 Oct 2015, 23:40
    by BarbarianKabbage
    Actually, I figured it out I was using the wrong folders because I still had 1.6 and I thought you put the editor.lua in the appdata/ mari0 folder, but I was wrong.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 05 Oct 2015, 00:24
    by TurretBot
    For 1.6, please use the original mod by pblsazb. Unless you're trying to use the SE version in SE. In which case ignore this.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 05 Oct 2015, 01:50
    by Qwerbey
    I just noticed that this mod doesn't have the brush size ability. Could you add that?

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 05 Oct 2015, 02:46
    by BarbarianKabbage
    Left control crashes the game. It crashes even in vanilla, is there any way to fix that? (Other than drinking a potion that makes you left handed)

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 05 Oct 2015, 03:01
    by Qwerbey
    Delete lines 1555-1558 in main.lua, or use Beta 9.

    Re: Better Level Editor: Special Edition

    Posted: 05 Oct 2015, 03:18
    by TurretBot
    WillWare wrote:Just finished testing this on every version of SE I have. Pressing Ctrl doesn't ever crash the game.

    In SE beta 7 (or 8) and below, it does freeze the game, but it will do that whether the game is modded or not. The reason it freezes is to open the console in the other window. Typing "cont" returns to the game. This is a known issue and was fixed in 9. The editor works fine otherwise.

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 16 Nov 2015, 17:23
    by craftersshaftstuff
    Is it compatible with SE Extended?

    Re: Better Level Editor: Special Edition (Willware did something maybe)

    Posted: 17 Nov 2015, 04:36
    by TurretBot
    Yes, though some features he added to his editor aren't in this one.