Minetest 5.0.0 is on the road

User avatar
sorcerykid
Member
Posts: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: Minetest 5.0.0 is on the road

by sorcerykid » Post

If you are using dofile(), you don't need to resort to a global table. The following trick makes it possible to to share a truly protected namespace amongst all the included files in your mod :)

In init.lua, you pass the namespace as a parameter to the function returned by dofile()

Code: Select all

local this = {}

dofile(mod_path .. "/helpers.lua")(this)
dofile(mod_path .. "/tools.lua")(this)
And in the included file(s), you simply capture the namespace via a returned function.

Code: Select all

local this

local function bar(whatever)
  -- add functionality here
  this.foo()
end

return function (parent)
  this = parent
end
PS. If you're not averse to using loadfile() instead of dofile(), then the included files could be simplified even further

Code: Select all

local this = ...

local function bar(whatever)
  -- add functionality here
  this.foo()
end

User avatar
Beerholder
Member
Posts: 199
Joined: Wed Aug 03, 2016 20:23
GitHub: evrooije
In-game: Beerholder

Re: Minetest 5.0.0 is on the road

by Beerholder » Post

sorcerykid wrote: In init.lua, you pass the namespace as a parameter to the function returned by dofile()
I learned something new today O_o Thanks sk!! I think there are some places here and there where I could use this little trick :D

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: Minetest 5.0.0 is on the road

by PolySaken » Post

sorcerykid wrote:If you are using dofile(), you don't need to resort to a global table. The following trick makes it possible to to share a truly protected namespace amongst all the included files in your mod :)

In init.lua, you pass the namespace as a parameter to the function returned by dofile()

Code: Select all

local this = {}

dofile(mod_path .. "/helpers.lua")(this)
dofile(mod_path .. "/tools.lua")(this)
And in the included file(s), you simply capture the namespace via a returned function.

Code: Select all

local this

local function bar(whatever)
  -- add functionality here
  this.foo()
end

return function (parent)
  this = parent
end
PS. If you're not averse to using loadfile() instead of dofile(), then the included files could be simplified even further

Code: Select all

local this = ...

local function bar(whatever)
  -- add functionality here
  this.foo()
end
I did in fact know of this, but I wanted other mods to be able to interact with the global table as it has functions for creating new recipes for machines and also contains it's own settings object. I don't dislike the minetest settings object, but I prefer to use my own. This also allows me to have per-world settings (being added next), and you can change some of te settings while the game is running.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Minetest 5.0.0 is on the road

by Andrey01 » Post

Will MT 5.0.0 be released anywhere eventually? More one year of development is just wondering. And how many features/bugfixes are you going to make?

Chiantos
Member
Posts: 377
Joined: Sun Jan 15, 2017 09:04

Re: Minetest 5.0.0 is on the road

by Chiantos » Post

Andrey01 wrote:Will MT 5.0.0 be released anywhere eventually? More one year of development is just wondering. And how many features/bugfixes are you going to make?
Quality takes time as an artist with a work or a craftsman with a piece of furniture, or a shoemaker with shoes. If it's to be fast as a Chinese factory with questionable quality and poor products. It's no use. Development takes time ... and often unpaid time.

Whether it is for engine developers, mods or games, it should not be forgotten that people also have a life. You are not a priority, there are things that are sometimes more important to manage, and this free time is often reduced.

You cant Wait 0.5 ? This is free and open. You can create so ...

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Post

Andrey01 wrote:Will MT 5.0.0 be released anywhere eventually? More one year of development is just wondering.
Not anytime soon. Personally I expect not before Q1/2019.
Andrey01 wrote:And how many features/bugfixes are you going to make?
https://dev.minetest.net/Changelog#0.4. ... eleased.29

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Minetest 5.0.0 is on the road

by Andrey01 » Post

Andrey01 wrote:And how many features/bugfixes are you going to make?
https://dev.minetest.net/Changelog#0.4. ... eleased.29[/quote]
I mean how many features/bugfixes they have not released yet. There is what already released for 5.0.0 in that changelog.

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Post

Everything in the Changelog will come to 5.0.0, plus everything here at least: https://github.com/minetest/minetest/projects/4

But it feels like that currently no-one has time to work on this: https://github.com/minetest/minetest/pulse (ignore closed issues, most of them were just closed and did not result in any commits).

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

Re: Minetest 5.0.0 is on the road

by 12Me21 » Post

So is it version 0.5.0.0 or 5.0.0?
What happened to the first digit?

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: Minetest 5.0.0 is on the road

by Pyrollo » Post

12Me21 wrote:So is it version 0.5.0.0 or 5.0.0?
What happened to the first digit?
It has been dug.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Post

12Me21 wrote:So is it version 0.5.0.0 or 5.0.0?
What happened to the first digit?
It was sacrificed to the fact that MT devs have no clue how version numbers work.

mini
Member
Posts: 79
Joined: Tue Jul 05, 2016 11:28
GitHub: niansa
IRC: nisa oder tuxifan
In-game: nisa oder tuxifan
Location: Deutschland

Re: Minetest 5.0.0 is on the road

by mini » Post

They changed the version number scheme.

User avatar
CESTRayCRYSTALwZ
Member
Posts: 143
Joined: Sat Feb 24, 2018 19:21
In-game: SouperRayene10 CESTRayCRYSTAL
Location: xanadu Capture The Flag

Re: Minetest 5.0.0 is on the road

by CESTRayCRYSTALwZ » Post

i hope if MT 5.0.0 will have an Auto update ......
So when an update get released .... minetest will auto install it ....
By Showing an Install GUI and an Install bar
So The user will be not able to re download MT all the time.....
So minetest will install Updates by itself
heres an example Image
or When an new update get released an GUI will appear to all MT users with notification.....
This is not an copyright but most of apps got this function

User avatar
orwell
Member
Posts: 958
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: Minetest 5.0.0 is on the road

by orwell » Post

I remember there was a Pull Request for this.
https://github.com/minetest/minetest/pull/7629
But it's not in the milestone
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

Chiantos
Member
Posts: 377
Joined: Sun Jan 15, 2017 09:04

Re: Minetest 5.0.0 is on the road

by Chiantos » Post

I suggest a news column for minetest 0.5 , For me this best .

I like the last news launcher in Minecraft. I dont like fullscreen message update fornite.

After Minetest Core Dev can use html in news column and update this. I think.
Or Add different News for Game ... And Dev'Game can use this for add news for games.

And Add update message for Engine and News Column for Games'News Dev.

I think this is a good Idea for 0.5 or 5.0 , for help dev'Gamers communicate with players.

User avatar
v-rob
Developer
Posts: 970
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: Minetest 5.0.0 is on the road

by v-rob » Post

I wouldn't like an updater that forces you to update. That would be awful. But something that offers it in a non-obtrusive way would be fine, since it would be useful for players who never check for updates (although I wouldn't use it myself).
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Minetest 5.0.0 is on the road

by Wuzzy » Post

Given the low release frequency of Minetest, I don't think an auto-updater is really needed.

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Post

Plus: It is not the job of the application to update itself but the job of the package manager.

User avatar
orwell
Member
Posts: 958
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: Minetest 5.0.0 is on the road

by orwell » Post

Tell that to 98% of desktop computer users

(PS: even on the <1% side ... debian ... need i say more?)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

Chiantos
Member
Posts: 377
Joined: Sun Jan 15, 2017 09:04

Re: Minetest 5.0.0 is on the road

by Chiantos » Post

orwell wrote:Tell that to 98% of desktop computer users

(PS: even on the <1% side ... debian ... need i say more?)
Not really, majority users use android minetest fork, i think ... And majority are kids with mobile and tablet.
For server, i look majority users use "multicraft" forks or other forks , because Play store minetest crash.

And majority no use Fdroid or apk, people use majority playstore for Android.

After majority computers devs (core, Games, mods), yes i think ... I am the only idiot use tablet for this, i think :D.

--

For Update Notification in Fullscreen, i think, this is really bad Ideas ... Really.
Majority Users not manual install, only Store Pc or Mobile, and users install manually no Need this.

I think, Add this in news launcher in Bar'News , not problem ... Use this in Fullscreen in start. No please.

User avatar
orwell
Member
Posts: 958
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: Minetest 5.0.0 is on the road

by orwell » Post

I was talking about DESKTOP PC users, which android devices are usually not.
Adding a News bar is not a bad idea, however there would be almost nothing to display... so it would be pretty useless.
Update notifications should not be shown to most users, but a small group still would benefit from that: namely Win$ows players, either running their RIP (run in place) build or having it installed with the Wix installer (which hopefully will make it into some release)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
CESTRayCRYSTALwZ
Member
Posts: 143
Joined: Sat Feb 24, 2018 19:21
In-game: SouperRayene10 CESTRayCRYSTAL
Location: xanadu Capture The Flag

Re: Minetest 5.0.0 is on the road

by CESTRayCRYSTALwZ » Post

i hope if The MT at playstore get fixed...... or adding an official MT 5.0.0 at Playstore..... when it gets released

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: Minetest 5.0.0 is on the road

by ManElevation » Post

any news on the release date?
My Public Mods! Discord: Rottweiler Games#3368

Enrikoo
Member
Posts: 452
Joined: Thu Nov 16, 2017 18:18
GitHub: Enrikoo
IRC: Enrico - Enricoo - Enrlco
In-game: Enrico - Enriko
Location: Germany
Contact:

Re: Minetest 5.0.0 is on the road

by Enrikoo » Post

ManElevation wrote:any news on the release date?
It will probably last more years, who knows? :P

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Minetest 5.0.0 is on the road

by paramat » Post

There's no release date, it will be released when it's ready. There are only a few blocking issues left, but also, development has been very quiet recently, so progress is slow. I was hoping for before winter solstice but it may be early next year.
It will be worth the wait, there are a huge number of bugfixes, improvements, performance increases and new features.

Locked

Who is online

Users browsing this forum: No registered users and 3 guests