mikemaster Posted June 17, 2014 Posted June 17, 2014 Hello guys i use acis project..I tried to add a code manualy everything worked correctly expect this... Properties pvpcolor = new Properties(); InputStream is = new FileInputStream(new File(PVP_COLOR_SYSTEM_CONFIG_FILE)); pvpcolor.load(is); is.close();someone pls tell me what i need to change in order to make it work <3
0 SweeTs Posted June 17, 2014 Posted June 17, 2014 Check the file (Config.java) how the properties file is separated. You don't need this.
0 mikemaster Posted June 17, 2014 Author Posted June 17, 2014 Check the file (Config.java) how the properties file is separated. You don't need this. what do you mean :((( :D :D
0 SweeTs Posted June 17, 2014 Posted June 17, 2014 public static final String CLANS_FILE = "./config/clans.properties"; // Clans settings ExProperties clans = load(CLANS_FILE); That's it.
0 mikemaster Posted June 17, 2014 Author Posted June 17, 2014 and i still didn't understand a thing pfff.....
0 SweeTs Posted June 17, 2014 Posted June 17, 2014 That's.. sad.. I gave you example on HOW TO create "new property". So.. do like that.
0 mikemaster Posted June 17, 2014 Author Posted June 17, 2014 (edited) i am still learning the basics... :/ something like that? i have to change the part of the code and make it look like this ? // Clans settings ExProperties clans = load(CLANS_FILE); ALT_CLAN_JOIN_DAYS = clans.getProperty("DaysBeforeJoinAClan", 5); ALT_CLAN_CREATE_DAYS = clans.getProperty("DaysBeforeCreateAClan", 10); ALT_MAX_NUM_OF_CLANS_IN_ALLY = clans.getProperty("AltMaxNumOfClansInAlly", 3); ALT_CLAN_MEMBERS_FOR_WAR = clans.getProperty("AltClanMembersForWar", 15); ALT_CLAN_DISSOLVE_DAYS = clans.getProperty("DaysToPassToDissolveAClan", 7); ALT_ALLY_JOIN_DAYS_WHEN_LEAVED = clans.getProperty("DaysBeforeJoinAllyWhenLeaved", 1); ALT_ALLY_JOIN_DAYS_WHEN_DISMISSED = clans.getProperty("DaysBeforeJoinAllyWhenDismissed", 1); ALT_ACCEPT_CLAN_DAYS_WHEN_DISMISSED = clans.getProperty("DaysBeforeAcceptNewClanWhenDismissed", 1); ALT_CREATE_ALLY_DAYS_WHEN_DISSOLVED = clans.getProperty("DaysBeforeCreateNewAllyWhenDissolved", 10); ALT_MEMBERS_CAN_WITHDRAW_FROM_CLANWH = clans.getProperty("AltMembersCanWithdrawFromClanWH", false); REMOVE_CASTLE_CIRCLETS = clans.getProperty("RemoveCastleCirclets", true); Edited June 17, 2014 by mikemaster
0 SweeTs Posted June 18, 2014 Posted June 18, 2014 (edited) Yup. Just change the name of property to w/e you want. Edited June 18, 2014 by SweeTs
0 mikemaster Posted June 18, 2014 Author Posted June 18, 2014 okey done fixed thanks to you Sweets <3 i appreciate it a lot
0 yhn Posted June 18, 2014 Posted June 18, 2014 okey done fixed thanks to you Sweets <3 i appreciate it a lot Locked then, if you have any other roblem feel free to open a new thread!
Question
mikemaster
Hello guys i use acis project..
I tried to add a code manualy everything worked correctly expect this...
someone pls tell me what i need to change in order to make it work <3
9 answers to this question
Recommended Posts