Page 1 of 1

[tool] Minetest Formspec Creator [git]

PostPosted: Tue Jul 26, 2016 17:43
by cd2

Minetest Formspec Creator


I decided to program a simple tool which helps you to build formspecs for your mod/game!

You can type code in the text area at the right and the preview will update when you press return.
You can also just "draw" your formspec in the preview area. Just click and drag.


RUN!


GitHub : https://github.com/cdqwertz/minetestFormspecCreator

Re: [TOOL] Minetest Formspec Creator [git]

PostPosted: Tue Jul 26, 2016 18:26
by rubenwardy
Is it accurate to formspecs ingame? Buttons are offset randomly compared to other elements.
Also, I suggest automatically creating the button name etc, and then allow changing them afterwards using a side panel

Re: [TOOL] Minetest Formspec Creator [git]

PostPosted: Wed Jul 27, 2016 09:08
by cd2
rubenwardy wrote:Is it accurate to formspecs ingame?

It should be quite accurate. I tested some formspecs from dev.minetest.net/formspec and it worked pretty well.

rubenwardy wrote:Buttons are offset randomly compared to other elements.

Huh, that seems to be a bug. Could you show me a screenshot please, because it is working for me.

rubenwardy wrote:Also, I suggest automatically creating the button name etc, and then allow changing them afterwards using a side panel

You can just press return when it asks you about values. It will fill in them automatically. Afterwards you can change the values in the text area on the right.

PS : You can also add list,size and other gui components.

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Sun Jul 31, 2016 09:24
by cd2

UPDATE


  • new textarea style

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Thu Aug 18, 2016 11:27
by mahmutelmas06
Nice start. Thank you +1

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Thu Aug 18, 2016 13:33
by cd2
mahmutelmas06 wrote:Nice start. Thank you +1

Thank you :)

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Mon Sep 05, 2016 01:17
by wilkgr76
+1

Y'know, there's a reason why I've never messed around with formspecs! lol

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Mon Sep 05, 2016 08:51
by cd2
wilkgr76 wrote:+1

Y'know, there's a reason why I've never messed around with formspecs! lol

Thank you!

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Mon Sep 05, 2016 08:52
by cd2

UPDATE


  • added menu
  • added convert to lua button
  • added help button

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Mon Sep 05, 2016 23:55
by MineYoshi
+100!

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Tue Sep 06, 2016 08:14
by addi
Im a bit confused right now, if Im the only one who realy tried it out or if the bugs only occurring to me (Firefox 48.0.2) :-/
This does not seem to produce valid formspecs.

code I got after playing around:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
size[7,6;]
list[current_player;main;1,1;2,2;]
button[4,1;3,4;asdf;asdfasdf;]
label[3,0;asdfasdf,]


I have 3 points about it:

  • there is always a ; too much before the closing bracket ] (except for list) which will result in ERROR[Main]: Invalid <formspec> element():
  • Also there is currently no way to see the selected tool.
  • If I hit cancel button, I want to cancel, not to proceed with default value.

I generaly like the idea, but the tool in is current state is just unusable :-( . Dont understand why people here vote +1 or +100

+1 if finished,
-1 currently

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Tue Sep 06, 2016 09:13
by cd2
addi wrote:there is always a ; too much before the closing bracket ] (except for list) which will result in ERROR[Main]: Invalid <formspec> element():

Should be fixed now, thank you :)

addi wrote:Also there is currently no way to see the selected tool.

You can see which tool is selected in the top right corner, now.

addi wrote:If I hit cancel button, I want to cancel, not to proceed with default value.

I removed the whole thing with the prompts now, because it seems to annoy many people.

addi wrote:I generaly like the idea, but the tool in is current state is just unusable :-( .

I dont think its unusable. I wrote this tool that I can create formspecs for rpgtest easily. I normally dont use the drag and drop feature, I just use the live editor.

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Tue Sep 06, 2016 10:12
by addi
Ok now its usable thanks for fixing.
+1

Re: [tool] Minetest Formspec Creator [git]

PostPosted: Tue Sep 06, 2016 11:33
by cd2
addi wrote:Ok now its usable thanks for fixing.
+1

Thank you :)