[Tool] Minetest Modpost Generator

Post Reply
User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

[Tool] Minetest Modpost Generator

by Lone_Wolf » Post

Minetest Modpost Generator

A CLI-based lua script that generates the contents for your mod topics/titles

I noticed as I made more mods it was always a pain to make the forum topic for them. The style of every topic was different from the others in some way too. When CDB came along I pretty much gave up posting mods here, it was such a hassle.
This tool I've made helps keep things consistent, and it speeds up the process of making the topic for a simple mod quite a bit.
It's still WIP, but I've successfully converted all of my mod topics over and even created a topic for a new one (I was sure something was broken it went so fast)
My mods don't cover every case, so I'm sure there's a lot to add/improve
Spoiler
You can find the mod topic I used this in here

Code: Select all

Subject:
-
[Mod] 3d Armor form for mobile users [3d_armor_mobile]
-

Content:
-
[size=150][b]3d Armor form for mobile users[/b][/size]

Adds a command to bring up a formspec that allows mobile users to put on armor

[img]https://github.com/LoneWolfHT/3d_armor_mobile/blob/master/screenshot.png[/img]

[b]Downloads:[/b] [url=https://content.minetest.net/packages/Lone_Wolf/3d_armor_mobile/download/]Latest Stable[/url]

[b]View:[/b] [url=https://content.minetest.net/packages/Lone_Wolf/3d_armor_mobile/]On ContentDB[/url]
[b]View:[/b] [url=https://github.com/LoneWolfHT/3d_armor_mobile/]Source Code[/url]

[b]License:[/b] MIT

[b]Depends:[/b] 3d_armor
[b]Optional Depends:[/b] None
-
Spoiler
Image
Github Link
Planned Features

Usage on Linux
  • Download this program from Github and put it in your Desktop or somewhere similar
  • Install lua (sudo apt install lua5.1)
  • Open a terminal and run lua ./MMG.lua (Found in the downloaded folder)
  • Answer the questions and copy the results out of your `output.txt`
I'm not sure how a Windows user would run this, I have Windows in a dualboot though so if someone asks for instructions I could probably work up the courage to venture over there to figure it out

Suggestions/bug reports are welcome!
Last edited by Lone_Wolf on Fri Mar 27, 2020 20:42, edited 2 times in total.
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Tool] Minetest Modpost Generator

by Linuxdirk » Post

Code: Select all

[size=150][b]…[/b][/size]
Why not simply heading tags?

Code: Select all

[h]My Cool Title[/h]
Result:

My Cool Title


User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Tool] Minetest Modpost Generator

by Lone_Wolf » Post

Linuxdirk wrote:

Code: Select all

[size=150][b]…[/b][/size]
Why not simply heading tags?

Code: Select all

[h]My Cool Title[/h]
Result:

My Cool Title

They don't fit as well with the short descriptions IMO. I'm not aware of any way to put them above the line it generates
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Tool] Minetest Modpost Generator

by Linuxdirk » Post

What short descriptions? What to put over what line what generates? Your reply makes no sense. It’s a title. You put it above the text. The text goes below the title. Done.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Tool] Minetest Modpost Generator

by Lone_Wolf » Post

Sorry, I assumed you had looked at the code
https://github.com/LoneWolfHT/minetest- ... MMG.lua#L4

The way it's currently set up you provide a short description and if you want to add anything else you put it at the bottom of the post. Like I did here and here
Linuxdirk wrote:What to put over what line what generates? Your reply makes no sense. It’s a title. You put it above the text. The text goes below the title. Done.
If I implemented your suggestion:
Image

I guess it might be personal preference, but I like it when the short description is close to the title and above the generated line like in the OP. (Not saying I won't change it. I'm waiting for your input now that I've hopefully explained myself)
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Tool] Minetest Modpost Generator

by Linuxdirk » Post

Remove the newline between heading tag and text.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Tool] Minetest Modpost Generator

by Lone_Wolf » Post

Linuxdirk wrote:Remove the newline between heading tag and text.
I guess that might work, still doesn't look perfect though
Image
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Tool] Minetest Modpost Generator

by Lone_Wolf » Post

Well it's been about a year and I no longer care. I guess I'll make it use the header format when I get around to adding support for grabbing from a ContentDB link
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests