Version number listing required

J0nnJ0nes
Member
 
Posts: 16
Joined: Thu Feb 02, 2012 10:48

Version number listing required

by J0nnJ0nes » Mon Feb 27, 2012 15:04

There needs to be a way to retrieve the correct minetest version, particularly for uses in external scripts and programs (In this case, a mod manager for minetest). I think a "minetest --version" option would be enough.

For that matter, how would you go about getting a mod's version as well? Standardizing a variable to do so, required for every mod to have somewhere? If not, then what would it take?

P.S. I remember fixing this exact post because of the bug, as usual. Maybe not :-/.
Last edited by J0nnJ0nes on Tue Feb 28, 2012 14:39, edited 1 time in total.
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Mon Feb 27, 2012 22:38

Truncated post bug. Please repost.

Wouldn't simply placing version.txt in minetest/bin/ be enough?
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

J0nnJ0nes
Member
 
Posts: 16
Joined: Thu Feb 02, 2012 10:48

by J0nnJ0nes » Tue Feb 28, 2012 14:41

Most programs have a --version. Creating a text file each time would work too. Just something to tell the version.
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Tue Feb 28, 2012 16:37

I shouldn't be to hard to add a function such as:
major, minor, build = mintest.get_version()
So the version of the program I have now is "0.4.dev-20120122-1" therefore:
major = 0
minor = 4
build = dev-20120122-1
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 3 guests

cron