[tool] Minetest Formspec Creator [git]

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

[tool] Minetest Formspec Creator [git]

by cd2 » Tue Jul 26, 2016 17:43

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
Last edited by cd2 on Wed Jul 27, 2016 09:38, edited 2 times in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [TOOL] Minetest Formspec Creator [git]

by rubenwardy » Tue Jul 26, 2016 18:26

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
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [TOOL] Minetest Formspec Creator [git]

by cd2 » Wed Jul 27, 2016 09:08

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.
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Sun Jul 31, 2016 09:24

UPDATE


  • new textarea style
 

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

Re: [tool] Minetest Formspec Creator [git]

by mahmutelmas06 » Thu Aug 18, 2016 11:27

Nice start. Thank you +1
My Mods:

Beverage
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Thu Aug 18, 2016 13:33

mahmutelmas06 wrote:Nice start. Thank you +1

Thank you :)
 

User avatar
wilkgr76
Member
 
Posts: 680
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
IRC: wilkgr
In-game: wilkgr

Re: [tool] Minetest Formspec Creator [git]

by wilkgr76 » Mon Sep 05, 2016 01:17

+1

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

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Mon Sep 05, 2016 08:51

wilkgr76 wrote:+1

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

Thank you!
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Mon Sep 05, 2016 08:52

UPDATE


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

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [tool] Minetest Formspec Creator [git]

by MineYoshi » Mon Sep 05, 2016 23:55

+100!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

Re: [tool] Minetest Formspec Creator [git]

by addi » Tue Sep 06, 2016 08:14

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
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Tue Sep 06, 2016 09:13

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.
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

Re: [tool] Minetest Formspec Creator [git]

by addi » Tue Sep 06, 2016 10:12

Ok now its usable thanks for fixing.
+1
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [tool] Minetest Formspec Creator [git]

by cd2 » Tue Sep 06, 2016 11:33

addi wrote:Ok now its usable thanks for fixing.
+1

Thank you :)
 


Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 16 guests

cron