Page 1 of 1

[Mod] Daytime [0.2][daytime]

PostPosted: Fri Nov 21, 2014 05:54
by Dipity
Hello everyone, this is my first - and, as such really simple - Mod for minetest.
I just learned some LUA and thought that a quick time changing method was needed in MT.

Description:
It contains four commands:
- /day
- /night
- /dawn
- /dusk

NOTE: The privilege "settime" (from default minetest) is needed to execute these commands.

Which all set the time of day to their respective time.

Changelog:
v0.2: privilege "settime" needed to execute the commands
v0.1: main commands added

License: WTFPL

Dependencies: none

Download:
v0.2:
tar: https://github.com/Dipity/mt-daytime/releases/download/0.2/daytime.tar
zip: https://github.com/Dipity/mt-daytime/releases/download/0.2/daytime.zip

old releases:
v0.1:
tar: https://github.com/Dipity/mt-daytime/releases/download/release/daytime.tar
zip: https://github.com/Dipity/mt-daytime/releases/download/release/daytime.zip

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 13:13
by Esteban
I don't know if you haven't noticed, but you can upload stuff as attachments in this forum. From the comments I've seen before, the most recommended are Dropbox and Github. I believe Github supports tarballs. Mediafire is not favored by many due to the use javascript for the page.

EDIT:Thanks for clarifying

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 14:01
by Linuxdirk
Esteban wrote:I believe Github supports tarballs.

You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 14:46
by philipbenr
I think that .zips would be the best for universal support. As for the mod, thank you, you saved me a little bit of work I was planning to do. ;)

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 18:41
by Dipity
Thanks to all of you for your comments!

philipbenr wrote:I think that .zips would be the best for universal support. As for the mod, thank you, you saved me a little bit of work I was planning to do. ;)

I thought that too, I was planning to keep a copy as .zip and one as .tar to make everyone happy :b
Glad I could help a little.

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 19:11
by Linuxdirk
Dipity wrote:I was planning to keep a copy as .zip and one as .tar to make everyone happy :b

Just create a free Github account and upload your mod files there for maximum compatibility. Plus: You get versioning and a kind of backup, too :)

If you’re on Windows have a look at their tool or search for one of the available tutorials on how to use Git on Windows :)

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 19:32
by Dipity
Just create a free Github account and upload your mod files there for maximum compatibility. Plus: You get versioning and a kind of backup, too :)

Will do that, thanks (:

If you’re on Windows have a look at their tool or search for one of the available tutorials on how to use Git on Windows :)

Again, thanks for the information - No Windows for me, though :b
Got rid of it a few months ago. For good :D

BTT: I'm planning to add privs. Can anyone link me some reference from the dev wiki? I don't seem to find myself.

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 20:36
by indriApollo
Here you go :D
- register privilege : http://dev.minetest.net/minetest.register_privilege
- chatcommands : http://dev.minetest.net/minetest.register_chatcommand
(add privs = {timechangr = true} for ex)

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Fri Nov 21, 2014 22:29
by Dipity
indriApollo wrote:Here you go :D
- register privilege : http://dev.minetest.net/minetest.register_privilege
- chatcommands : http://dev.minetest.net/minetest.register_chatcommand
(add privs = {timechangr = true} for ex)


Thanks alot :b

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Sat Nov 22, 2014 00:59
by Don
+1

Re: [Mod] Daytime [0.1] [daytime]

PostPosted: Sat Nov 22, 2014 13:02
by Hybrid Dog
Linuxdirk wrote:
Esteban wrote:I believe Github supports tarballs.

You can upload and download almost anything from Github. They provide a download link for branches (or at least for master) as ZIP file.

not only .zip is supported, you just need to change the .zip of the download link e.g. to .tar.gz

Re: [Mod] Daytime [0.2][daytime]

PostPosted: Sun Nov 23, 2014 07:15
by srifqi
+1

But, why should create new privileges? Just use "settime".

Re: [Mod] Daytime [0.2][daytime]

PostPosted: Sun Nov 23, 2014 11:59
by Dipity
srifqi wrote:But, why should create new privileges? Just use "settime".


Umm.. You're completely right.
I simply didn't think about the default privileges :D
Thanks for pointing out, I will update this in no time.