Results 1 to 10 of 24

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Who would like to do some Java programming?

    I'm looking for simple plugin to do stats tracking and give announcement for our HappyDiggers AMP and RPG mod packs. I have two reasons for this:
    1. I want to let people know that if there's a problem with any given version of our mod packs.
    2. I want to see how many people are actually using our packs.

    What I want is the following:
    1. Supply version number hard coded in mod.
    2. Check against hard coded URL and compare with it's own version number.
    3. Display update message if newer version is found.
    4. Check announcement URL based on hard coded URL and display if anything is found.


    The hardcoded URLs will be something like:
    http://happydiggers.net/packupdates/AMP.php?v=2.0.1 (for AMP v2.0.1)
    http://happydiggers.net/packupdates/AMP.php?v=2.1.0 (for AMP v2.1.0)
    etc.

    Messages, if any, should be displayed right after a world loads. All messages and coding should be done in UTF8 to prevent issues with character encoding.

    I'll take care of the PHP back-end. The PHP scripts will send a header 'Content-type: application/txt' and then sends a plain text file "version.txt" or "announcement.txt" over HTTP. The rest of the PHP script will do database stuff that is not relevant for the mod.

    AtomycStryker's BattleTowers mod includes the source of his update checker, perhaps that could be modified and save a ton of work?
    http://www.atomicstryker.net/battletowers.html
    See attached file.

    I would like to include the mod in the 1.5 and 1.6 versions of our packs. And since the version numbers will be hard coded, this means that whomever updates a pack should probably be the one to change the version number in the mod's code and recompile it after the mod is done.

    CC, DOM, any takers?
    Attached Files Attached Files

  2. #2
    The Erebus has update checking I think. I'll ask chylex, see if he wants to do it, he might. But don't take my word on that, because he's also busy with the Erebus and HEE ofcourse :3.

  3. #3
    Sverf
    Guest
    Why hardcode version nummer in the mod? Makes it a pain tot maintain the pack, lot easier tot read it from a cfg file?

  4. #4
    Reason is that I don't want people messing with the config file. Almost all update checkers do it hard coded. A few steps extra aren't that much of a pain. Instead of editing a version number in a config file, you edit the version number in the mod's source and hit the compile button.

    When I'm updating a mod pack on the FTB launcher I'm already editing a couple of files just for version numbers alone.

    Also this update checker mod could perhaps later be used to do other things for our mod pack like change the main menu theme, download extra content (turtle programs, drinks, maps, etc). But that's something for later. Unless we can find someone willing to help us out with that sort of stuff soon-ish

  5. #5
    Hmmmm coders huh? Ive coded games before but no Java. Im actually going to a camp this summer about it though. I might be able to help
    Gotem team

  6. #6
    V.I.P. fredoduquartier's Avatar
    Join Date
    Mar 2014
    Location
    Paris, France, sometimes in my bed.
    Posts
    200
    Hi foes!
    Its the perfect job for me!
    let's make it rock!Ill soon post news, i also have a project foe a custum menu! ill try to make it work.

    Fred

    here is the first verion, tell me what is good, and what not, these are only the buttons:
    original minecraft buttons:
    Name:  0.png
Views: 217
Size:  9.4 KB
    the new ones:
    Name:  widgets1.png
Views: 205
Size:  4.0 KB

    tell me what you want to change or not.

    Fred
    Last edited by fredoduquartier; 1st April 2014 at 19:25.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •