Posted August 5, 20178 yr I'm new to modding. I'm more familiar with multiplayer bukkit server plugin coding, so please bear with me. I am messing around with the example mod that I started out with to get familiar with how it works and I'm wondering how I can change the "version" in the mcmod.info file to be replaced with something else. For example, I have "${mod_version}" as the version in the file, which is how it was by default. I figured it would be replaced with something else, perhaps the VERSION in the main class, but it wasn't. Is there a way to change this behavior? The main reason I would like to be able to change this is so that I only have 1 version variable to change. I would imagine other people would feel the same way. Thanks in advance Edited August 5, 20178 yr by smorce
August 5, 20178 yr It's handled by the gradle compile process. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
August 5, 20178 yr Author 2 minutes ago, Draco18s said: It's handled by the gradle compile process. Could you point me to somewhere specific? EDIT: I looked in build.gradle and found where i processes resources. Where is project.version? Edited August 5, 20178 yr by smorce
August 5, 20178 yr Top of the file: version = "XXX" group= "YYY" archivesBaseName = "ZZZ" Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
August 5, 20178 yr Author 7 hours ago, Draco18s said: Top of the file: version = "XXX" group= "YYY" archivesBaseName = "ZZZ" Ah. Thanks. Is there a way to have this be automatically updated in some way?
August 5, 20178 yr Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.