Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [1.7.10]Automatic Versioning
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
theOriginalByte

[1.7.10]Automatic Versioning

By theOriginalByte, February 20, 2015 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

theOriginalByte    7

theOriginalByte

theOriginalByte    7

  • Creeper Killer
  • theOriginalByte
  • Forge Modder
  • 7
  • 181 posts
Posted February 20, 2015

Hey everyone!

I was wanting to setup a system to automatically jump the dev build every time I run the build script. Here is something I found off google.

http://bit.ly/1AqhWFM

The only problem is that it is only for windows. Does anyone know what i'd need to convert it to Mac or if it will work without the build.bat file?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6687

diesieben07

diesieben07    6687

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6687
  • 45711 posts
Posted February 20, 2015

Gradle scripts are just groovy programs. And (almost) any valid java program is groovy, too.

So you can just program direcltly inside your build script. Read a file, parse it as a number, increment it, write it back.

  • Quote

Share this post


Link to post
Share on other sites

theOriginalByte    7

theOriginalByte

theOriginalByte    7

  • Creeper Killer
  • theOriginalByte
  • Forge Modder
  • 7
  • 181 posts
Posted February 20, 2015

Gradle scripts are just groovy programs. And (almost) any valid java program is groovy, too.

So you can just program direcltly inside your build script. Read a file, parse it as a number, increment it, write it back.

So technically I don't need the build.bat file?

  • Quote

Share this post


Link to post
Share on other sites

theOriginalByte    7

theOriginalByte

theOriginalByte    7

  • Creeper Killer
  • theOriginalByte
  • Forge Modder
  • 7
  • 181 posts
Posted February 20, 2015

Nevermind I figured it out.

  • Quote

Share this post


Link to post
Share on other sites

LordDrikon    0

LordDrikon

LordDrikon    0

  • Tree Puncher
  • LordDrikon
  • Members
  • 0
  • 18 posts
Posted October 18, 2015

Could you post your actual solution?

  • Quote

Share this post


Link to post
Share on other sites

theOriginalByte    7

theOriginalByte

theOriginalByte    7

  • Creeper Killer
  • theOriginalByte
  • Forge Modder
  • 7
  • 181 posts
Posted October 18, 2015

Could you post your actual solution?

 

You can find it by looking through the build.gradle script and config.xml here: https://github.com/KaminoCoding/CommuMod

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Professional Derp
      Server frequently crashes

      By Professional Derp · Posted 3 minutes ago

      Hello. I am running a 1.12.2 forge server on google compute engine with 3 GB of ram and the server frequently crashes. The crashes are not frequent enough to stop us from playing but they are just annoying. I'd say they happen once every day or two if there is people on, if no one is logged in it can stay running forever.   Here is the latest.log: https://pastebin.com/KgVvkmAw   Here is the list of mods: https://pastebin.com/sJbNWd1N   I am assuming the crashes are due to lack of memory since they only happen when someone is on but the interesting thing is we don't get any lag right before it crashes.   Any help would be appreciated. Thanks.
    • DaemonUmbra
      problema con el heap space

      By DaemonUmbra · Posted 13 minutes ago

      User was banned for piracy. Buy the game.
    • lockedlol9
      problema con el heap space

      By lockedlol9 · Posted 14 minutes ago

    • JMAS
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS · Posted 30 minutes ago

      Thank you for the answer and for the constructive instruction.  Officially, I started learning Java about three weeks ago.  I completed the SoloLearn program last week, and am 82% of the way done re-viewing it to confirm that what I learned did stick.  I'm reading the Oracle tutorials at their website and am up to Controlling Access to Members of a Class.  Completed the first seven Mr Crayfish modding tutorials, and devoured Jorrit Tyberghein's "Modding Tutorial 1.14: Episode 1 (IDEA setup, basic mod and first block)" after being excoriated by Daemon Umbra for asking questions about 1.7.10. I've jumped in and started with the Minecraft mods as the review code because I can't learn in a vacuum.  I set up the Procyon decompiler and have been reviewing my son's favorite mods and attempting to recompile them for 1.14.4 (per D.U.), which is why my questions are oriented as they are; its the jump from 1.12.2 to 1.14.4 (which would be JDK 7 to JDK 8, I gather). I suspect that Daemon Umbra has lots of experience in coding but very little in human interaction and forgets that his position isn't aiding experts but is aiding newcomers. I thank you again for your instruction and for your good-natured demeanor. Respectfully, JMAS  
    • DaemonUmbra
      problema con el heap space

      By DaemonUmbra · Posted 31 minutes ago

      This crash report says you're in 1.13.2 What launcher are you using? Please provide a screenshot
  • Topics

    • Professional Derp
      0
      Server frequently crashes

      By Professional Derp
      Started 3 minutes ago

    • lockedlol9
      5
      problema con el heap space

      By lockedlol9
      Started 1 hour ago

    • JMAS
      7
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS
      Started 7 hours ago

    • Barca
      6
      cant use mods in survival 1.12.2

      By Barca
      Started 4 hours ago

    • JMAS
      5
      pointing to MCP folder instead of MDK ???

      By JMAS
      Started 2 hours ago

  • Who's Online (See full list)

    • JMAS
    • thevortex
    • DaemonUmbra
    • Professional Derp
    • Ronaldi2001
    • blender dog
    • lockedlol9
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [1.7.10]Automatic Versioning
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community