Page 1 of 2

Minetest Mod Creator

PostPosted: Tue Feb 11, 2014 17:28
by Lukeking
Minetest Mod Creator

I'm sitting infront of my Netbook thinking of what I can do.
So I thought what it's like to write a Minetest Mod Creator - programme for modding-beginners.

Here's what I've done so far:
Image
..and some code in background :D

What's your opinion to this project?

PostPosted: Tue Feb 11, 2014 17:31
by rubenwardy
Looks good. Nice work!

Is it a .lua file editor, or does it generate them for you?

A quite important thing to keep in mind in editors is KISS: make it as user friendly as you can, without making it stupid.

Also, it looks like Visual basic, which won't run in GNU+Linux :P

Finally, I suggest you release the code, a build, and/or make a youtube showing its functionality.

PostPosted: Tue Feb 11, 2014 17:32
by Lukeking
For this appilcation I need a little minetest sandbox which runs minetest it self + activated mods. The sandbox-world only have to be 20x20x20 blocks big.

PostPosted: Tue Feb 11, 2014 17:38
by webdesigner97
Lukeking wrote:For this appilcation I need a little minetest sandbox which runs minetest it self + activated mods. The sandbox-world only have to be 20x20x20 blocks big.

Ah, you want to provide a preview for the user to help him "inspecting" his nodes? Hmm, not easy...

PostPosted: Tue Feb 11, 2014 17:41
by Lukeking
webdesigner97 wrote:
Lukeking wrote:For this appilcation I need a little minetest sandbox which runs minetest it self + activated mods. The sandbox-world only have to be 20x20x20 blocks big.

Ah, you want to provide a preview for the user to help him "inspecting" his nodes? Hmm, not easy...

Right :)

PostPosted: Tue Feb 11, 2014 17:49
by Lukeking
rubenwardy wrote:Looks good. Nice work!

Is it a .lua file editor, or does it generate them for you?

A quite important thing to keep in mind in editors is KISS: make it as user friendly as you can, without making it stupid.

Also, it looks like Visual basic, which won't run in GNU+Linux :P

Finally, I suggest you release the code, a build, and/or make a youtube showing its functionality.

1. I add a create and delete button - for creating and deleting the written mod -
you can select options write and edit code and create it
2. yes it's Visual Basic based and won't run on Linux or Mac OS X systems

PostPosted: Tue Feb 11, 2014 17:50
by onpon4
I don't approve since you're choosing to make it proprietary, and I can't use it anyway since it's Windows-only. Re-do it in something that works on GNU/Linux systems (maybe Qt; try the Qt Designer, it's very nice) and release it as free/libre software, and I would be interested.

PostPosted: Tue Feb 11, 2014 17:54
by Lukeking
onpon4 wrote:I don't approve, because you're choosing to make it proprietary, and I can't use it anyway since it's Windows-only. Re-do it in something that works on GNU/Linux systems (maybe Qt; try the Qt Designer) and release it as free/libre software, and I would be interested.

1. it's version 0.1 !
2. maybe I'll teach myself python, so I can make it all-system-compatible

I'll make a german and english version first and on requests I also can add another language to it (maybe french, spanish)
Or I add a folder to it with *.LANG-files in it and in header a chance to change the languages

PostPosted: Thu Feb 20, 2014 14:59
by Lukeking
Should I add syntax highlighting to it?

PostPosted: Thu Feb 20, 2014 15:05
by rubenwardy
If you want.

Syntax highlighting with rich text boxes in visual basic is a pain

PostPosted: Thu Feb 20, 2014 15:23
by Lukeking
rubenwardy wrote:If you want.

Syntax highlighting with rich text boxes in visual basic is a pain

I don't think so... only 16 lines of code (but for every syntax)

PostPosted: Thu Feb 20, 2014 16:40
by Novacain
just noticed something. you list depends.txt as optional. it is a requirement for mods (I think).

PostPosted: Thu Feb 20, 2014 16:51
by rubenwardy
Novacain wrote:just noticed something. you list depends.txt as optional. it is a requirement for mods (I think).


It is not a requirement.

init.lua is the only requirement.

Lukeking wrote:I don't think so... only 16 lines of code (but for every syntax)


I probably did it the wrong way.

https://github.com/rubenwardy/VB_WebCreatorPro/blob/master/Multa%20Web%20Creater%20Pro/HtmlEditor.vb#L48

PostPosted: Thu Feb 20, 2014 16:53
by Lukeking
Novacain wrote:just noticed something. you list depends.txt as optional. it is a requirement for mods (I think).

not for all mods, e.g. if you make a modification for spawning something on certain areas or change inventory view.... you mustn't need depends.txt

PostPosted: Thu Feb 20, 2014 17:47
by Lukeking
rubenwardy wrote:
Novacain wrote:just noticed something. you list depends.txt as optional. it is a requirement for mods (I think).


It is not a requirement.

init.lua is the only requirement.

Lukeking wrote:I don't think so... only 16 lines of code (but for every syntax)


I probably did it the wrong way.

https://github.com/rubenwardy/VB_WebCreatorPro/blob/master/Multa%20Web%20Creater%20Pro/HtmlEditor.vb#L48

I just used following lines of code:
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
PrivateSub RichTextBox1(),KeyDown(ByVal sender As System.Object, ByVal a As System.Windows.Forms.KeyEventArgs) Handles RichTextBox1.KeyDown
        If e.KeyCode = Keys.Space Then
            Dim SelectionLength As Integer = RichTextBox1.SelectionLength
            Dim SelectionStart As Integer = RichTextBox1.SelectionStart
            Dim Letter As String = String.Empty
            Do Until Letter = " " Or RichTextBox1.SelectionStart = 0
                RichTextBox1.SelectionStart -= 1
                RichTextBox1.SelectionLength += 1
                Letter = RichTextBox1.Text.Substring(RichTextBox1.SelectionStart, 1)
            Loop

            If RichTextBox1.SelectedText = "hello" Or RichTextBox1.SelectedText = " hello" Then
                RichTextBox1.SelectionColor = Color.Blue
            Else
                'do nothing
            End If
            RichTextBox1.SelectionStart = SelectionStart
            RichTextBox1.SelectionLength = 0
            RichTextBox1.SelectionColor = Color.Black
        End If

PostPosted: Fri Feb 21, 2014 01:28
by philipbenr
This is a good project, however, I am working on an online version for dev.minetest.net That is if the moderators accept it.

PostPosted: Fri Feb 21, 2014 17:24
by rubenwardy
philipbenr wrote:This is a good project, however, I am working on an online version for dev.minetest.net That is if the moderators accept it.


dev.minetest.net is a wiki. Not sure about putting it there.

Would be cool to create an online Scratch 2.0 atmosphere.
(All update notifications in one place)

Maybe allow running of mods via:

minetest_mod://mod_download_url_to_run?conf=and_maybe_some_settings

PostPosted: Fri Feb 21, 2014 17:42
by Amaz
Do you have any plans to make this available to download in the nearish future? It looks really good! (And will save me a load of work!)

Re: Minetest Mod Creator

PostPosted: Mon Apr 28, 2014 12:55
by jojoa1997
Will a download be made for this.?

Re:

PostPosted: Mon Apr 28, 2014 18:56
by lightonflux
Lukeking wrote:I'll make a german and english version first and on requests I also can add another language to it (maybe french, spanish)
Or I add a folder to it with *.LANG-files in it and in header a chance to change the languages


I recommend using transifex (continuous localisation server), then the community can easily translate the project.

Their software is FOSS and the service is free to use for open source projects.

Re: Minetest Mod Creator

PostPosted: Sun May 25, 2014 01:42
by aldobr
We can try to make it using lazarus :

http://www.lazarus.freepascal.org

easy as visual basic, powerfull as C++ and the same exact code can run on linux, windows and mac with just a recompilaton.

ps.: It produces binary code in most platforms, besides android where it compiles to java bytecodes (generic java bytecode, can run on jre too).

Re: Minetest Mod Creator

PostPosted: Mon Jun 02, 2014 18:53
by Zane
can you make it where you don't need to code? the mcreator is a minecraft mod maker that that doesn't need any knowlage of code.
perhaps you can do the same?

Re:

PostPosted: Fri Jun 13, 2014 13:49
by Shadowfire
Lukeking wrote:
onpon4 wrote:I don't approve, because you're choosing to make it proprietary, and I can't use it anyway since it's Windows-only. Re-do it in something that works on GNU/Linux systems (maybe Qt; try the Qt Designer) and release it as free/libre software, and I would be interested.

1. it's version 0.1 !
2. maybe I'll teach myself python, so I can make it all-system-compatible

I'll make a german and english version first and on requests I also can add another language to it (maybe french, spanish)
Or I add a folder to it with *.LANG-files in it and in header a chance to change the languages



I agree with Onpon4. For crossplat form compatibility and ease of recreation, it would be wise to look in to and use QT5 and C++11. They work great together. Here is the link for both of them.

http://qt-project.org/wiki/Qt_5.0
http://woboq.com/blog/cpp11-in-qt5.html
C++11 actual website [url]http://www.stroustrup.com/C++11FAQ.html
[/url]

Videos of QT5 and C++11:
https://www.youtube.com/watch?v=HMcQM51FPFI --> QT5 Why you should be excited
https://www.youtube.com/watch?v=sajBj_eiH10 --> C++11 speed up QT5 programs
https://www.youtube.com/watch?v=BwXqJD-n2O0&list=PLS1QulWo1RIZjrD_OLju84cUaUlLRe5jQ --> QT C++ GUI

Hope this helps you out to make it availible for Mac and Linux as well.

Thanks,
-SF-

Re: Minetest Mod Creator

PostPosted: Fri Jun 13, 2014 19:12
by rubenwardy
C++ will probably be too advanced for him. Python will be more productive and easier.

Re: Minetest Mod Creator

PostPosted: Fri Jun 13, 2014 22:55
by Wuzzy
Quote from the screenshot:
You're not allowed to modify and sell this programme in any way.

What justifies this?

Re: Minetest Mod Creator

PostPosted: Mon Jul 07, 2014 17:25
by asdfref
Wuzzy wrote:Quote from the screenshot:
You're not allowed to modify and sell this programme in any way.

What justifies this?

Minetest is Opensorce NOT closesorce. It is ok. you should read what the dif is from open and close source is. Selling for monny might be a prob (i am not compleatly sure), but if it is free it is ok. ( the "...MODIFY and SELL this programme IN ANY WAY" part is WRONG)

Re: Minetest Mod Creator

PostPosted: Mon Jul 07, 2014 18:18
by rubenwardy
asdfref wrote:
Wuzzy wrote:Quote from the screenshot:
You're not allowed to modify and sell this programme in any way.

What justifies this?

Minetest is Opensorce NOT closesorce. It is ok. you should read what the dif is from open and close source is. Selling for monny might be a prob (i am not compleatly sure), but if it is free it is ok. ( the "...MODIFY and SELL this programme IN ANY WAY" part is WRONG)


err... what are you on?

Re: Minetest Mod Creator

PostPosted: Mon Jul 07, 2014 19:01
by asdfref
Open source meens you can modiffy and then give it to the public, did you look at the screenshots (pictures) dowload it will tell you.

Re: Minetest Mod Creator

PostPosted: Mon Jul 07, 2014 19:03
by rubenwardy
asdfref wrote:Open source meens you can modiffy and then give it to the public, did you look at the screenshots (pictures) dowload it will tell you.


We are talking about the mod creator program, which is not open source.

You are allowed to sell the Minetest source code, btw. You just have to give the source to the purchaser. (although it is ethically wrong if the purchaser does not know it is based on MT, see globeminner for example).

Re: Minetest Mod Creator

PostPosted: Mon Jul 07, 2014 19:06
by Krock
asdfref wrote:Open source meens you can modiffy and then give it to the public, did you look at the screenshots (pictures) dowload it will tell you.

WTF??
rubenwardy wrote:We are talking about the mod creator program, which is not open source.

Minetest: open source
Mod Creator: not open source

You've misread the post.