[Mod] Daytime [0.2][daytime]

User avatar
Dipity
New member
 
Posts: 5
Joined: Fri Nov 21, 2014 05:31
Location: Germany
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays

[Mod] Daytime [0.2][daytime]

by Dipity » Fri Nov 21, 2014 05:54

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
Last edited by Dipity on Sun Nov 23, 2014 14:52, edited 3 times in total.
 

User avatar
Esteban
Member
 
Posts: 873
Joined: Sun Sep 08, 2013 13:26
Location: Somewhere in the Caribbean...
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

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

by Esteban » Fri Nov 21, 2014 13:13

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
Last edited by Esteban on Fri Nov 21, 2014 14:06, edited 1 time in total.
 

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

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

by Linuxdirk » Fri Nov 21, 2014 14:01

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.
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

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

by philipbenr » Fri Nov 21, 2014 14:46

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

User avatar
Dipity
New member
 
Posts: 5
Joined: Fri Nov 21, 2014 05:31
Location: Germany
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays

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

by Dipity » Fri Nov 21, 2014 18:41

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.
 

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

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

by Linuxdirk » Fri Nov 21, 2014 19:11

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

User avatar
Dipity
New member
 
Posts: 5
Joined: Fri Nov 21, 2014 05:31
Location: Germany
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays

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

by Dipity » Fri Nov 21, 2014 19:32

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.
 

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
 

User avatar
Dipity
New member
 
Posts: 5
Joined: Fri Nov 21, 2014 05:31
Location: Germany
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays

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

by Dipity » Fri Nov 21, 2014 22:29

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
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Sat Nov 22, 2014 00:59

+1
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

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

by Hybrid Dog » Sat Nov 22, 2014 13:02

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

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
srifqi
Member
 
Posts: 549
Joined: Sat Jun 28, 2014 04:31
Location: Indonesia
GitHub: srifqi
IRC: srifqi
In-game: srifqi

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

by srifqi » Sun Nov 23, 2014 07:15

+1

But, why should create new privileges? Just use "settime".
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
Dipity
New member
 
Posts: 5
Joined: Fri Nov 21, 2014 05:31
Location: Germany
GitHub: Dipity
IRC: DipityPlays
In-game: DipityPlays

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

by Dipity » Sun Nov 23, 2014 11:59

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.
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 3 guests