[Request] Minetest Formspecs Maker

User avatar
mahmutelmas06
Member
 
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

[Request] Minetest Formspecs Maker

by mahmutelmas06 » Tue Dec 08, 2015 20:46

Hi

That is an editor request from programmers for minetest.

As you know there are some machines which provides their own textboxes or buttons to craft some nodes.
For example abjhabet , mineshaft
So it could be nice if we could create this kind of formspecs with graphical intearface.

example picture

Image
Last edited by mahmutelmas06 on Tue Dec 08, 2015 22:05, edited 1 time in total.
My Mods:

Beverage
 

User avatar
benrob0329
Member
 
Posts: 1313
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03

Re: [Request] Minetest Formspecs Maker

by benrob0329 » Tue Dec 08, 2015 21:33

It should have an option for Unified_Inventory style formspecks too.
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
Location: On earth
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Request] Minetest Formspecs Maker

by Minetestforfun » Wed Dec 09, 2015 16:03

So, your idea is a "formspec editor" for Minetest ?

That's a great idea !

Actually, if you want to create great formspecs in Minetest, it's just a crazy thing...
 

User avatar
Nathan.S
Member
 
Posts: 924
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [Request] Minetest Formspecs Maker

by Nathan.S » Thu Dec 10, 2015 04:06

While this as an idea certainly isn't bad, once you've made a few formspecs they get pretty easy to do, they just have a very steep learning curve.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Calinou
Moderator
 
Posts: 3157
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Request] Minetest Formspecs Maker

by Calinou » Sun Apr 24, 2016 10:39

Maybe we'd be better off changing the GUI system entirely for something more standard (and prettier?), but it would break all mods. Those choices all seem viable to me:


Really, lightweight C or C++ UI toolkits are not lacking in 2016, as you can notice. :)

Somebody could work on a branch to try to integrate one of those to Minetest.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
Location: Germany
In-game: lof

Re: [Request] Minetest Formspecs Maker

by lightonflux » Sun Apr 24, 2016 12:24

IMHO that is the way to go. Calinou would it be possible to have compatibility for old formspec for one or two releases so mods don't break immediately? Because some mod devs don't use the dev version and would need to make the changes immediately after release which can be quite hard with limited free time.
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Request] Minetest Formspecs Maker

by wilkgr76 » Sun Apr 24, 2016 23:19

lightonflux wrote:IMHO that is the way to go. Calinou would it be possible to have compatibility for old formspec for one or two releases so mods don't break immediately? Because some mod devs don't use the dev version and would need to make the changes immediately after release which can be quite hard with limited free time.

Or perhaps change it in 0.5. Isn't 0.5 supposed to break compatibility with all current mods anyways?
N/A
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
Location: Germany
In-game: lof

Re: [Request] Minetest Formspecs Maker

by lightonflux » Mon Apr 25, 2016 00:02

wilkgr76 wrote:Or perhaps change it in 0.5. Isn't 0.5 supposed to break compatibility with all current mods anyways?


Afaik the planned incompatibility in 0.5 was limited to the network layer.
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Request] Minetest Formspecs Maker

by wilkgr76 » Mon Apr 25, 2016 04:34

lightonflux wrote:
wilkgr76 wrote:Or perhaps change it in 0.5. Isn't 0.5 supposed to break compatibility with all current mods anyways?


Afaik the planned incompatibility in 0.5 was limited to the network layer.

Oh
N/A
 

User avatar
Napiophelios
Member
 
Posts: 985
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Request] Minetest Formspecs Maker

by Napiophelios » Mon Apr 25, 2016 05:35

I would prefer to just have a small app to quickly render/preview formspecs;
similar to the way many HTML editors are nowadays.
Just a text editor with a preview button.
 

User avatar
MineYoshi
Member
 
Posts: 5371
Joined: Wed Jul 08, 2015 13:20

Re: [Request] Minetest Formspecs Maker

by MineYoshi » Mon Apr 25, 2016 20:56

Napiophelios wrote:I would prefer to just have a small app to quickly render/preview formspecs;
similar to the way many HTML editors are nowadays.
Just a text editor with a preview button.

+100
 

User avatar
addi
Member
 
Posts: 659
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: [Request] Minetest Formspecs Maker

by addi » Tue Apr 26, 2016 05:45

Just wrote this:
https://bitbucket.org/adrido/formspec_viewer/overview
Its a Subgame so you have to install it into games directory.
Screenshot:
Image
If I would have more time, I would extend it to a full Editor/Designer, but sadly the day does only have 24 hours.
Pull Requests wellcome.

Known Bugs:
size[] does not work with a floatpoint. eg. size[7,8] works, size[5.5,6.5] will not work.

Bugs wontfix:
Crash when pressing ESC button. (If you press ESC you probably want to exit the game. This way it exits without the pause-Menu. so its not a bug, Its a feature :-)
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Request] Minetest Formspecs Maker

by wilkgr76 » Tue Apr 26, 2016 06:58

addi wrote:Just wrote this:
https://bitbucket.org/adrido/formspec_viewer/overview
Its a Subgame so you have to install it into games directory.
Screenshot:
Image
If I would have more time, I would extend it to a full Editor/Designer, but sadly the day does only have 24 hours.
Pull Requests wellcome.

Known Bugs:
size[] does not work with a floatpoint. eg. size[7,8] works, size[5.5,6.5] will not work.

Bugs wontfix:
Crash when pressing ESC button. (If you press ESC you probably want to exit the game. This way it exits without the pause-Menu.

That looks cool!

addi wrote:so its not a bug, Its a feature :-)

Thank you Microsoft ☺
N/A
 

Byakuren
Member
 
Posts: 816
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Request] Minetest Formspecs Maker

by Byakuren » Tue Jun 21, 2016 03:26

Napiophelios wrote:I would prefer to just have a small app to quickly render/preview formspecs;
similar to the way many HTML editors are nowadays.
Just a text editor with a preview button.


This doesn't cover cases where you want to generate the elements of a formspec at runtime.
Every time a mod API is left undocumented, a koala dies.
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Request] Minetest Formspecs Maker

by kaeza » Wed Jul 20, 2016 22:53

Byakuren wrote:This doesn't cover cases where you want to generate the elements of a formspec at runtime.

Still better than blindly editing files and reloading every 5 seconds just to get the layout "right" :)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

Byakuren
Member
 
Posts: 816
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Request] Minetest Formspecs Maker

by Byakuren » Thu Jul 21, 2016 00:20

kaeza wrote:
Byakuren wrote:This doesn't cover cases where you want to generate the elements of a formspec at runtime.

Still better than blindly editing files and reloading every 5 seconds just to get the layout "right" :)

The post I was responding to was in response to a post about replacing formspecs with a better system.

EDIT: Or maybe I mistook it for being that.
Every time a mod API is left undocumented, a koala dies.
 

KCoombes
Member
 
Posts: 412
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: [Request] Minetest Formspecs Maker

by KCoombes » Thu Jul 21, 2016 14:36

Bug Report:

changing the values in size does not change the size of the formspec
 

User avatar
addi
Member
 
Posts: 659
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: [Request] Minetest Formspecs Maker

by addi » Thu Jul 21, 2016 14:46

addi wrote:Known Bugs:
size[] does not work with a floatpoint. eg. size[7,8] works, size[5.5,6.5] will not work.


Anyway I Improved the parsing of the size[w,h] element, so It should work now even with float numbers
latest version: https://bitbucket.org/adrido/formspec_v ... master.zip
 

KCoombes
Member
 
Posts: 412
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: [Request] Minetest Formspecs Maker

by KCoombes » Thu Jul 21, 2016 15:16

Works now! (although I had not used a floatpoint value when I tried it first)

The only improvement I can think of would be to add buttons at the bottom to load common formspec code(s) such as 'craft guide', furnace', etc
 

User avatar
addi
Member
 
Posts: 659
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: [Request] Minetest Formspecs Maker

by addi » Thu Jul 21, 2016 15:35

Yes, I may add this in future versions. Furnaces or chests might be a bit more difficult, because the "context" is missing.
 

User avatar
cd2
Member
 
Posts: 562
Joined: Mon Jun 01, 2015 06:30
Location: Linux
GitHub: cdqwertz
In-game: cd cd2

Re: [Request] Minetest Formspecs Maker

by cd2 » Sun Jul 24, 2016 10:47

I decided to create a simple web app which allows you to create formspecs using drag and drop : https://github.com/cdqwertz/minetestFormspecCreator

It is not finished yet.
 

User avatar
cd2
Member
 
Posts: 562
Joined: Mon Jun 01, 2015 06:30
Location: Linux
GitHub: cdqwertz
In-game: cd cd2
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

Next

Return to Minetest-related projects



Who is online

Users browsing this forum: No registered users and 1 guest