Jump to content

Help
Latest News Article

[V1.1.0]Time mod + Change Sky Colors GUI


219 replies to this topic

#1

Posted 10 January 2011 - 09:19 PM

This mod allows you to change the colors of the sky, the fog and allows you to change the time/set it to system time/or real time (not fully tested).

Posted Image

Posted Image

Posted Image

Posted Image

Time Mod and Change Sky Gui 1.1.0 v1.00

Time is in a 24 hour format. 600 means 6 in the morning 1200 is noon, 2400 or 0 is midnight.

A while ago I responded to a request for an "Age of Darkness" Mod that I hacked together real quick, I actually enjoyed the challenge it presented and I was asked for an update to it, so I went ahead and did that. It is compatible with the change sky mod, and I may add more features to it later, including an options GUI for it.

Posted Image

Posted Image

The first thing you want to do is find a tree, trust me.

Link to the original thread.

Age of Darkness 1.8.1 v1.0

If you want to motivate me... donate using paypal! (I am poor and in college) </sob_story>:
Posted Image


Copyright:
Spoiler


Register or log in to remove.

#2

    coconimula

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 11 January 2011 - 04:32 AM

That is rather awesome.

#3

    Telgar

    Obsidian Miner

  • Members
  • 1204 posts
  • Location: In World 4

Posted 11 January 2011 - 05:23 AM

This looks awesome. Is it possible to make the sky different colors too? Like red or green?

Posted Image


#4

Posted 12 January 2011 - 04:46 AM

Telgar said:

This looks awesome. Is it possible to make the sky different colors too? Like red or green?

It kind of depends on what you are expecting. Cloud colors can currently be changed by coloring the clouds.png in minecraft.jar but gets blended with some functions of time of day. This mod works by having the various different calls to the time of day checks to return a -1. I also disabled the call to the draw lists that handle the horizons, disabled the draw lists for stars, and setting the clear-color to black. Since college started back up I probably wont have the time to make a fancy user interface like the previous skymod but if someone is willing to do it, I'm willing to help point them in the direction of the various functions that handle drawing the sky (It is pretty spread out and I did not experiment very much with it)

#5

    Telgar

    Obsidian Miner

  • Members
  • 1204 posts
  • Location: In World 4

Posted 12 January 2011 - 05:31 AM

OK, thanks for explaining that to me. A gui that would allow you to change the color would be great. Maybe that will happen one day. I wish you the best with your college studies.

Posted Image


#6

Posted 12 January 2011 - 02:48 PM

Strebler said:

It kind of depends on what you are expecting. Cloud colors can currently be changed by coloring the clouds.png in minecraft.jar but gets blended with some functions of time of day. This mod works by having the various different calls to the time of day checks to return a -1. I also disabled the call to the draw lists that handle the horizons, disabled the draw lists for stars, and setting the clear-color to black. Since college started back up I probably wont have the time to make a fancy user interface like the previous skymod but if someone is willing to do it, I'm willing to help point them in the direction of the various functions that handle drawing the sky (It is pretty spread out and I did not experiment very much with it)

Strebler... if you don't get this message then I will email you... but I am curious into giving your mod a GUI.

The only issue is, if there's a lot of coding involved... as I can imagine is the case, I will have to learn java.

(UGGHHH.) :GoldBar: :Diamond: :Iron:

Anyway, tell me what you know and let's talk about this. Many people could benefit from a usable mod/application to change the environment values... I know I could.

By the by... is there any way to simply change the values of a beta minecraft map manually? Like text editing?
SPIDERSEZ AND BATZ, CANDIESEZ AND MASKS!

#7

    iceli3

    Carpenter

  • Members
  • 59 posts

Posted 12 January 2011 - 02:51 PM

Make the moon to give light x D like light lvl 4-3 on the place where moon is THAT would be cool
Posted Image

#8

Posted 12 January 2011 - 07:11 PM

Zurich Antiock said:


Strebler... if you don't get this message then I will email you... but I am curious into giving your mod a GUI.

The only issue is, if there's a lot of coding involved... as I can imagine is the case, I will have to learn java.

(UGGHHH.) :D :SSSS: :SSSS:

Anyway, tell me what you know and let's talk about this. Many people could benefit from a usable mod/application to change the environment values... I know I could.

By the by... is there any way to simply change the values of a beta minecraft map manually? Like text editing?

Minecraft maps are compressed in someway I believe so its probably not as simple as just text editing. There is a program out there for editing maps called MCEdit that is pretty fun to use.

A gui for my mod would probably be best to do through an added option when you go to the options screen. There would be a decent amount of coding I would imagine, and it would probably be best taking advantage of how java handles its classes. I code almost exclusively in C++ and doing mods for minecraft is my first time trying out anything java.

#9

Posted 12 January 2011 - 07:11 PM

Zurich Antiock said:


Strebler... if you don't get this message then I will email you... but I am curious into giving your mod a GUI.

The only issue is, if there's a lot of coding involved... as I can imagine is the case, I will have to learn java.

(UGGHHH.) :D :RFlower: :RFlower:

Anyway, tell me what you know and let's talk about this. Many people could benefit from a usable mod/application to change the environment values... I know I could.

By the by... is there any way to simply change the values of a beta minecraft map manually? Like text editing?

Minecraft maps are compressed in someway I believe so its probably not as simple as just text editing. There is a program out there for editing maps called MCEdit that is pretty fun to use.

A gui for my mod would probably be best to do through an added option when you go to the options screen. There would be a decent amount of coding I would imagine, and it would probably be best taking advantage of how java handles its classes. I code almost exclusively in C++ and doing mods for minecraft is my first time trying out anything java.

#10

Posted 12 January 2011 - 07:11 PM

Zurich Antiock said:


Strebler... if you don't get this message then I will email you... but I am curious into giving your mod a GUI.

The only issue is, if there's a lot of coding involved... as I can imagine is the case, I will have to learn java.

(UGGHHH.) :Sheep: :Sheep: :SSSS:

Anyway, tell me what you know and let's talk about this. Many people could benefit from a usable mod/application to change the environment values... I know I could.

By the by... is there any way to simply change the values of a beta minecraft map manually? Like text editing?

Minecraft maps are compressed in someway I believe so its probably not as simple as just text editing. There is a program out there for editing maps called MCEdit that is pretty fun to use.

A gui for my mod would probably be best to do through an added option when you go to the options screen. There would be a decent amount of coding I would imagine, and it would probably be best taking advantage of how java handles its classes. I code almost exclusively in C++ and doing mods for minecraft is my first time trying out anything java.

#11

Posted 12 January 2011 - 08:13 PM

Shameful bump for new content in OP.

#12

Posted 12 January 2011 - 09:46 PM

Strebler said:

Shameful bump for new content in OP.

Darn... then this really is a whole lot more complicated then I first imagined.
Personally, I think that world environment properties should be implemented as customizable in the Minecraft application itself.

Minecraft is all about creation, right? ... So, why should we have to go through all this work to mod the worlds just to change the color. Just like texture packs, I think environments and seasons should also be editable.

Heck... what if you wanted two moons???!!

It would really be cool if Notch made that possible.
SPIDERSEZ AND BATZ, CANDIESEZ AND MASKS!

#13

  • Location: Why do you need to know where I live, STALKER! By the way, where do you live?
  • Minecraft: Googie2149

Posted 12 January 2011 - 10:17 PM

Finally! The Animal Crossing texture pack is complete!
I don't see a signature here... Nope.

#14

  • Minecraft: TheName

Posted 12 January 2011 - 10:32 PM

Is it just me or did I see you say you beat up a mountain with minuets?

http://en.wikipedia.org/wiki/Minuet
Wow. I said 4 pronouns in a confusingly weird sentence...
Every time that someone on the support forums doesn't say anything after I tell them a possible solution, I assume that they are having too much fun enjoying their fixed Minecraft to reply.

#15

Posted 13 January 2011 - 01:37 AM

TheName said:

Is it just me or did I see you say you beat up a mountain with minuets?

http://en.wikipedia.org/wiki/Minuet
Wow. I said 4 pronouns in a confusingly weird sentence...

Heh, I typed in min and let the spellchecker choose a word, didn't even re-read my sentence, once music blocks are out I will make that a new mod, have all the creepers do a dance and blow up if the right sequence of notes are played.

#16

Posted 13 January 2011 - 05:57 PM

Strebler said:


Heh, I typed in min and let the spellchecker choose a word, didn't even re-read my sentence, once music blocks are out I will make that a new mod, have all the creepers do a dance and blow up if the right sequence of notes are played.

LOL. Nice. I'd love to see that.

If you had time to make that, though... Its certain you'd have plenty of time to make an extremely bare-bones basic program to change world environment colors, right??? ;)

Strebler... here's my question... What did you do to make this mod? What program did you use to tell minecraft to set all the default environment settings to -1? Was it java? And if so, does the mod set up the Minecraft app's defaults with these instructions... or the beta level.dat files themselves?

I know that you can simply change these settings on a classic level using the NBT Forge program. (viewtopic.php?f=25&t=6382)
So why can't you do the same thing for a alpha/beta level?
SPIDERSEZ AND BATZ, CANDIESEZ AND MASKS!

#17

Posted 13 January 2011 - 10:16 PM

Zurich Antiock said:

Strebler said:


Heh, I typed in min and let the spellchecker choose a word, didn't even re-read my sentence, once music blocks are out I will make that a new mod, have all the creepers do a dance and blow up if the right sequence of notes are played.

LOL. Nice. I'd love to see that.

If you had time to make that, though... Its certain you'd have plenty of time to make an extremely bare-bones basic program to change world environment colors, right??? :)

Strebler... here's my question... What did you do to make this mod? What program did you use to tell minecraft to set all the default environment settings to -1? Was it java? And if so, does the mod set up the Minecraft app's defaults with these instructions... or the beta level.dat files themselves?

I know that you can simply change these settings on a classic level using the NBT Forge program. (viewtopic.php?f=25&t=6382)
So why can't you do the same thing for a alpha/beta level?

Prepare for a wall of text!

I looked through the code and looked for areas where moon.png/sun.png/cloud.png were called, I knew that there would have to be a way to calculate where those were placed. Near to the moon/sun code I found an openGL drawlist call, which had the list for how the stars are drawn. (stars are randomly scattered rectangles of various sizes of which I could change, along with number of stars or even the pattern of how the stars are drawn)
Anyway, I found a few other functions that also had a call to the function that determined how the position is determined (position is a calculation based on the time of the world 0 being sunrise 6000 being noon, and so on, I replaced this with code that found out the hour of the clock and multiplied it by 1000 and added minutes in the hour to it, this change in code became the realtime mod). Mucking around with the other formulas gave me lighter/darker clouds, fog, and most of the sky. Changing the value to -1 gave both the fog and the clouds a dark black, setting it to 0 gave an odd blue/gray color to the fog and a light gray cloud (of early morning). Changing it to an even smaller number made fog thicker, and no big change to the clouds. The horizon is drawn using a drawlist call that smooths out the transition from horizon to sky, I simply deleted those drawlist calls. After that I was left with a constant color that was left on the horizon. I realized that this must be the glClearColor that is set so I looked for that function call and set it to be black.

None of these things were really that hard for me to do and only took me an hour or two of looking around the code to find. Since this was just changing a few lines of code and not an actual program on my part it was very easy and not time consuming on my end. If I were to make a program that allows all of this without modding the code directly I wouldn't even know where to begin.

I could probably find out where the functions I changed got called at, look through that code to determine where the final color call for the sky/fog is at and modify it there, and create some way to change it when you go to the options menu, but that would take me a lot of time to do and I hate making interfaces because that is a lot of effort since the only thing I wanted was a black sky to start with.

As a side note, if you change clouds.png by drawing pictures on it and set your render to fast that will change your sky.

Posted Image

#18

Posted 14 January 2011 - 02:34 PM

Can you update it for 1.2.0.1 I need it T.T
Cake.

#19

Posted 16 January 2011 - 02:51 AM

Is the creator still on the forums or did he quit?
Cake.

#20

Posted 16 January 2011 - 04:11 AM

I'm still around, will probably get an update tomorrow or Monday. I have a couple of Greek tests to take before I can focus on modding/gaming.