[Mod] In-Game Formspec Creator [debugger]

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

[Mod] In-Game Formspec Creator [debugger]

by octacian » Sun Feb 05, 2017 03:03

Debug Tools for Mod Developers [debugger]

This is meant to be a simple tool for developers to use while attempting to debug issues in mods. As of writing, only the formspec creator has been implemented. Click on the spoiler below to see how it works or see below for planned features.

Tools are hidden from the creative inventory by default. To allow access in creative rather than just via /giveme, set not_in_creative to 0 in the config.txt.

+ Formspec Editor


+ Metadata Editor


Planned Features
  • Inventory Editor
  • Run Lua Code Under Environment (server won't crash)
  • In-Game HUD Editor (?)
..and possibly more
Last edited by octacian on Tue Apr 04, 2017 21:29, edited 1 time in total.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
cx384
Member
 
Posts: 492
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] In-Game Formspec Creator [debugger]

by cx384 » Tue Feb 07, 2017 14:35

What is the significant difference between your mod and this?
Can your read this?
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] In-Game Formspec Creator [debugger]

by octacian » Tue Feb 07, 2017 15:05

cx384 wrote:What is the significant difference between your mod and this?


Not much at all, except for the fact that it's a mod, not a subgame, meaning it is easier to use. Not only that, but it is far more stable than the other (e.g. you can exit without crashing the game, formspecs are saved per-player when the game is shut down, and all formspec elements function properly).

Actually, that link is where I got the basic idea as I didn't think that editor was very refined.

Aside from the above, this mod will in the future include several other tools as described in the "Planned Features" section.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

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

Re: [Mod] In-Game Formspec Creator [debugger]

by addi » Wed Feb 08, 2017 08:08

octacian wrote:Not much at all, except for the fact that it's a mod, not a subgame, meaning it is easier to use. Not only that, but it is far more stable than the other (e.g. you can exit without crashing the game, formspecs are saved per-player when the game is shut down, and all formspec elements function properly).

hey dont make my work bad ;-P
Is a mod with chat command+additional priv easier to uses then a subgame? not really imo.
the crash on exit was fixed a long time ago, and all the formspec elements works as expected. (well they are work at least as all minetest formspec works XD )
It only had no time to implement a save/restore functionality, thats a + for your project ;)
But its nice to see someone continues with the idea :)
 

User avatar
DS-minetest
Member
 
Posts: 1025
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] In-Game Formspec Creator [debugger]

by DS-minetest » Wed Feb 08, 2017 13:12

Useful, but we already have eg. worldedit's formspec tester.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] In-Game Formspec Creator [debugger]

by octacian » Wed Feb 08, 2017 15:18

addi wrote:hey dont make my work bad ;-P
Is a mod with chat command+additional priv easier to uses then a subgame? not really imo.
the crash on exit was fixed a long time ago, and all the formspec elements works as expected. (well they are work at least as all minetest formspec works XD )
It only had no time to implement a save/restore functionality, thats a + for your project ;)
But its nice to see someone continues with the idea :)


Sorry, it didn't appear to me that you had updated the thread or anything, so I had no way of knowing and didn't think to look through the commit history. Maybe I just missed it, but.

DS-minetest wrote:Useful, but we already have eg. worldedit's formspec tester.


Yes, IK about WorldEdit's formspec tester. However, once again, I find this one to be far more intuitive. Specifically how you can have code and formspec side-by-side, whereas you cannot in WorldEdit.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] In-Game Formspec Creator [debugger]

by octacian » Wed Apr 05, 2017 02:33

The latest commit includes a metadata editor. This allows you to edit the metadata of any block. (See OP.)

Next up is a code editor, HUD editor, and inventory editor.

Development on this mod will probably, however, be once again delayed as I have many other projects which are of greater importance to progress on.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

mr_dean
Member
 
Posts: 30
Joined: Fri Jan 06, 2017 00:38
Location: Modding...
In-game: mr_dean

Re: [Mod] In-Game Formspec Creator [debugger]

by mr_dean » Wed Apr 05, 2017 22:28

OMG thank you!

Finally I am not constantly reloading a world every five seconds while I am writing a mod! This even works good, and, doesn't cause a ton of lag like I thought that it would. Anyway, keep up the good mods Octacian
I know you believe you understand what you think I said, but, I am not sure that what you heard is not what I meant. - Author Unknown
 

User avatar
Arcelmi
Member
 
Posts: 68
Joined: Mon Dec 28, 2015 16:24
Location: Germany
GitHub: Arcelmi
IRC: Arcelmi
In-game: Arcelmi

Re: [Mod] In-Game Formspec Creator [debugger]

by Arcelmi » Sat Aug 19, 2017 08:54

I like this mod, but can you change in file meta_editor.lua line 15
Code: Select all
values = values..value..","

to
Code: Select all
values = values..minetest.formspec_escape(value)..","

so there can be meta strings with ","
I don't speak very good English... | My mods

I've got a signature!
 

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

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] In-Game Formspec Creator [debugger]

by octacian » Sun Jan 21, 2018 17:29

Arcelmi wrote:I like this mod, but can you change in file meta_editor.lua line 15
Code: Select all
values = values..value..","

to
Code: Select all
values = values..minetest.formspec_escape(value)..","

so there can be meta strings with ","


Yes, I noticed that issue. I'll be working on this mod a bit more in the near future and will see what I can do then. Thanks for pointing this out anyways!
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 


Return to WIP Mods



Who is online

Users browsing this forum: gpcf and 3 guests