[Mod] Schematic Editor [1.4.0] [schemedit]

User avatar
Lone_Wolf
Member
Posts: 2371
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by Lone_Wolf » Post

Wuzzy wrote:Note that anything outside the world directory is taboo, this is a restriction dictated by Minetest's mod security system.
And I don't plan to violate that, I don't want my mod to be able to write on any directory.

The only leeway I might have is changing the directory inside the world directory, but this doesn't seem too helpful.

Maybe this should first be discussed with Minetest developers, the mod security system only allows us to write into a very few specific locations.

Please tell me your specific use case for this feature, and how you would use it. Maybe I'll understand your motivation then.
I'm using this mod to create schematics for a mod that adds items which you can use to instantly build saved structures (Right-click the ground with the item and it spawns the building). Right now I have to save the schematic, pause Minetest, and drag the schematic file into my mod.
It won't make a very large difference if you did allow me to just set the file destination to my mod. But it would be useful. My current method works

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by Wuzzy » Post

Yeah, this is writing into a foreign mod directory. Sorry, this is a no-go area.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

zing269
Member
Posts: 109
Joined: Sat Apr 30, 2016 19:10

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by zing269 » Post

Could both mods share a directory in the world directory?

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by Wuzzy » Post

Yes, but only if they are in the same world.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by texmex » Post

Would you consider supporting the Minecraft .schematic file format? It's already supported in this mod, here, so perhaps it's not that hard?
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by Wuzzy » Post

No.

First of all, this mod only seems to analyze .schematic files and return them as Lua table. That's not enough, I would also need a converter which converts from .schematic to .mts.

Ideally, there would be a separate program that converts .schematic files to MTS. Then you can make those files work for all mods.

Therefore, I think such a conversion is out of scope for schemedit.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by texmex » Post

Okay, thanks for your answer.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
BrunoMine
Member
Posts: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by BrunoMine » Post

This mod saved me a lot of time. Thanks for the simplicity and the good work. I use several of your mods, you're an excellent developer in minetest. thank you.

User avatar
runs
Member
Posts: 1785
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Schematic Editor [1.0.0] [schemedit]

by runs » Post

How to convert to lua instead of mts?
Day 42 of the quarantine

CalebJ
Member
Posts: 314
Joined: Sat Dec 29, 2018 19:21
GitHub: KaylebJay
IRC: KaylebJay
In-game: CalebJ
Location: Tunnelers' Abyss

Re: [Mod] Schematic Editor [1.1.0] [schemedit]

by CalebJ » Post

This will save me hours of work. Thanks!
If you want realism, you're in the wrong place. Get off your mobile.

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Version 1.2.0 released!

by Wuzzy » Post

Version 1.2.0 has been released!

Changelog:
  • Fix placeschem command only placing the first instance of the schematic file that Minetest loaded for the first time and ignoring subsequent changes in the same session. This made it impossible to edit a schematic if you overwrote the file multiple times in the same session (requires Minetest 5.1.0 or later)
  • Add support for importing a schematic, this restores all probability and force placement data of a schematic file (requires Minetest 5.1.0 or later)
  • Minor HUD tweaks
  • Add top and bottom faces to the preview box
  • Disallow rotation with screwdriver from Minetest Game
  • Node Probability Tool: No longer display distance (will work in upcoming Minetest 5.3.0)
How to convert to lua instead of mts?
Not possible yet, sorry.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Version 1.3.0 released!

by Wuzzy » Post

Version 1.3.0 has been released!
Changelog:
  • New server command: mts2lua: Convert .mts to .lua file (schematic in Lua code form)
  • New setting: schemedit_export_lua: If enabled, exporting a schematic to .mts will also automatically create a .lua file as well (default: disabled)
  • Much stricter privilege requirement: You now need the “server” privilege to do pretty much anything (for security reasons, because this mod messes with files on the server)
  • Fix crash when rightclicking new schematic creator (was introduced in 1.2.0)
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Schematic Editor [1.3.0] [schemedit]

by texmex » Post

Nice updates, Wuzzy. Come to think of it, I've needed a way to mass export schematics. Any ideas? Maybe an "Export schematics from all loaded schematic blocks" function?
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
runs
Member
Posts: 1785
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Schematic Editor [1.3.0] [schemedit]

by runs » Post

v5.3-dev

- Error in line 706, prob not being a string.
Day 42 of the quarantine

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Schematic Editor [1.3.0] [schemedit]

by Wuzzy » Post

Can't reproduce. This might be a regression in Minetest. In the documentation it never says the item can't be a non-string.

Care to report a bug in Minetest?
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Wuzzy
Member
Posts: 4057
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Version 1.4.0 released!

by Wuzzy » Post

Changes in version 1.4.0:
  • Fix incorrect importing of schematic size (sometimes)
  • Add buttons to convert air to schematic void (and vice-versa)
  • Fix text area size being too large
  • Fix some deprecated code
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests