Minetest 5.0.0 is on the road

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

Re: Minetest 5.0.0 is on the road

by sorcerykid » Thu Sep 13, 2018 12:15

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: 198
Joined: Wed Aug 03, 2016 20:23
GitHub: evrooije
In-game: Beerholder

Re: Minetest 5.0.0 is on the road

by Beerholder » Thu Sep 13, 2018 15:08

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: 268
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: Minetest 5.0.0 is on the road

by PolySaken » Thu Sep 13, 2018 20:44

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.
 

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

Re: Minetest 5.0.0 is on the road

by Andrey01 » Fri Sep 21, 2018 11:37

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?
DL9Eh7xVBw7DXwLAMX1lStE21bSD2XUQ
 

User avatar
Chiantos
Member
 
Posts: 304
Joined: Sun Jan 15, 2017 09:04
Location: Earth
GitHub: BlockColor
IRC: mrchiantos
In-game: mrchiantos

Re: Minetest 5.0.0 is on the road

by Chiantos » Fri Sep 21, 2018 14:56

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 ...
Game : BlockColor - Avatar Mod with Cms : SkinKey
 

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Fri Sep 21, 2018 15:47

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: 2154
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: Minetest 5.0.0 is on the road

by Andrey01 » Fri Sep 21, 2018 16:33

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.
DL9Eh7xVBw7DXwLAMX1lStE21bSD2XUQ
 

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Fri Sep 21, 2018 17:04

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
Location: (Ignore all of my posts before 2018)
GitHub: 12Me21

Re: Minetest 5.0.0 is on the road

by 12Me21 » Mon Sep 24, 2018 01:10

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

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

Re: Minetest 5.0.0 is on the road

by Pyrollo » Mon Sep 24, 2018 09:22

12Me21 wrote:So is it version 0.5.0.0 or 5.0.0?
What happened to the first digit?


It has been dug.
 

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Mon Sep 24, 2018 10:22

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: 45
Joined: Tue Jul 05, 2016 11:28
Location: Deutschland
GitHub: niansa
IRC: nisa oder niansa
In-game: nisa oder tuxifan

Re: Minetest 5.0.0 is on the road

by mini » Mon Sep 24, 2018 15:07

They changed the version number scheme.
 

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

Re: Minetest 5.0.0 is on the road

by CESTRayCRYSTALwZ » Tue Sep 25, 2018 19:04

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: 706
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
In-game: orwell

Re: Minetest 5.0.0 is on the road

by orwell » Tue Sep 25, 2018 20:18

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...
 

User avatar
Chiantos
Member
 
Posts: 304
Joined: Sun Jan 15, 2017 09:04
Location: Earth
GitHub: BlockColor
IRC: mrchiantos
In-game: mrchiantos

Re: Minetest 5.0.0 is on the road

by Chiantos » Tue Sep 25, 2018 23:11

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.
Game : BlockColor - Avatar Mod with Cms : SkinKey
 

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

Re: Minetest 5.0.0 is on the road

by v-rob » Wed Sep 26, 2018 00:13

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).
 

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

Re: Minetest 5.0.0 is on the road

by Wuzzy » Thu Sep 27, 2018 11:16

Given the low release frequency of Minetest, I don't think an auto-updater is really needed.
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

Re: Minetest 5.0.0 is on the road

by Linuxdirk » Thu Sep 27, 2018 12:51

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

User avatar
orwell
Member
 
Posts: 706
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
In-game: orwell

Re: Minetest 5.0.0 is on the road

by orwell » Thu Sep 27, 2018 17:08

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...
 

User avatar
Chiantos
Member
 
Posts: 304
Joined: Sun Jan 15, 2017 09:04
Location: Earth
GitHub: BlockColor
IRC: mrchiantos
In-game: mrchiantos

Re: Minetest 5.0.0 is on the road

by Chiantos » Thu Sep 27, 2018 17:53

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.
Game : BlockColor - Avatar Mod with Cms : SkinKey
 

User avatar
orwell
Member
 
Posts: 706
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
In-game: orwell

Re: Minetest 5.0.0 is on the road

by orwell » Thu Sep 27, 2018 18:42

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
Location: xanadu Capture The Flag
In-game: SouperRayene10 CESTRayCRYSTAL

Re: Minetest 5.0.0 is on the road

by CESTRayCRYSTALwZ » Fri Sep 28, 2018 10:40

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: 892
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: Minetest 5.0.0 is on the road

by ManElevation » Tue Oct 02, 2018 09:35

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

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

Re: Minetest 5.0.0 is on the road

by Enrikoo » Tue Oct 02, 2018 12:16

ManElevation wrote:any news on the release date?

It will probably last more years, who knows? :P
 

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

Re: Minetest 5.0.0 is on the road

by paramat » Sun Oct 07, 2018 00:18

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.
 

PreviousNext

Return to News



Who is online

Users browsing this forum: No registered users and 0 guests