Addon Galacticraft Clock Mod

Discussion in 'Addons and Resource Packs' started by kyleedwardsny, Nov 16, 2017.

  1. kyleedwardsny

    kyleedwardsny Member

    Joined:
    Jan 4, 2014
    Messages:
    2
    Likes Received:
    4
    [​IMG]

    Source code: https://github.com/kyleedwardsny/GalacticraftClock

    Hi everyone!

    So, as many of you know, in recent versions of Galacticraft, the time sync behavior was changed due to issue #2643. In previous versions, you could reliably tell what time it was on the moon simply by looking at the phase of the moon from the overworld, and the time on Mars was the same on the overworld. But not anymore.

    I found this out the hard way. After spending several real-world days prepping for my trip to the moon in survival, and making sure the phase of the moon was within the daytime range so that it would be safe to land, I lifted off... and arrived on the moon in the middle of the night. I was quite distraught and panicked. Had I just spent several real-world days painstakingly mining and building only to get pwned by an Evolved Creeper on arrival and effectively end the game?

    Luckily, I was able to think and react quickly. I dug myself a 1x1x2 hole in the ground and waited out the night. Once the night was over, I completed my mission objectives and returned safely to the overworld. But this near-miss exposed what I consider to be a severe gameplay bug introduced by the time sync change: there is no longer a reliable way to know what time it is at your destination before arriving.

    So what did I do next? I sat down and coded a solution. I have written a small mod for Galacticraft that allows you to tell the time on another celestial body without having to travel there first, just as the previous behavior allowed you to do. This addon adds new behavior to the Display Screen and the previously unused Satellite Dish. It creates a new channel on the Display Screen which cycles through the various celestial bodies and shows you the time on each one for a few seconds, but only if there is a Satellite Dish within 700 blocks. The reasoning is that the dish is acting as a telescope, but it's not actually acting as a radio receiver, hence no need to travel to the destination first.

    To use the new behavior, simply place a Satellite Dish within 700 blocks of a Display Screen, and turn the Display Screen to the newly introduced Clock channel.

    Unfortunately, I don't yet have any release builds, but if you are a developer, feel free to compile the code yourself, test it, and give me some feedback.

    Things to improve:
    • Use something other than the Satellite Dish? A new block maybe? Using the Dish is mildly hokey, but I didn't want to make a new block.
    • Possible improvements to the graphics. I'm not much of a graphical/UI person myself, but at least it works pretty well and gets the point across.

    2017-11-16_13.34.33.png
    2017-11-16_13.34.41.png
    2017-11-16_13.34.44.png
    2017-11-16_13.34.46.png
    2017-11-16_13.34.49.png
    2017-11-16_13.34.57.png
     
    #1 kyleedwardsny, Nov 16, 2017
    Last edited by a moderator: Nov 20, 2017
  2. Ezer'Arch

    Ezer'Arch Administrator
    Staff Member

    Joined:
    May 18, 2013
    Messages:
    1,514
    Likes Received:
    418
    I saw your post on GitHub about making a clock addon, amazing idea. I'm surprised you got it done quickly. Thank you!

    Just a thing: could you release a jar file version? I think people will prefer a jar file than using the source code.

    Sorry for taking a while to approve the post. The first posts with external links need to be manually approved by a moderator. :)
     
    #2 Ezer'Arch, Nov 20, 2017
    Last edited: Nov 20, 2017
  3. radfast

    radfast Administrator
    Staff Member

    Joined:
    Apr 27, 2014
    Messages:
    1,087
    Likes Received:
    334
    This looks awesome, really nice job.

    It's great to see the API for the Display Screen in use.
     
    Ezer'Arch likes this.
  4. Neexxus

    Neexxus Member

    Joined:
    Jun 17, 2017
    Messages:
    3
    Likes Received:
    0
    Love this idea, but i don't know how to turn a source code into actually .jar file.

    Waiting the .jar to download :)
     
  5. ArchtypeOfEpic

    Joined:
    Jun 17, 2017
    Messages:
    14
    Likes Received:
    2
    I feel there could be more features that could easily go with this. Like a map of the surface, but requires satellites. The Map's quality is decided by the strength of the satellite and if they're in orbit around the planet.
     
    vos likes this.

Share This Page