ShotoGunss Posted June 26, 2016 Share Posted June 26, 2016 I'm working on adding new keys to make more color tiers with 700+ quality but I can't seem to get any new colors or keys to work. Can anyone offer assistance? So far I have this. <?xml version="1.0" encoding="utf-8"?> <qualityinfo> <!--Broken Grey--> <quality key="0" color="808080"/> <!--Faulty Brown--> <quality key="1" color="9C8867"/> <!--Poor Orange--> <quality key="2" color="CF7F29"/> <!--Good Yellow--> <quality key="3" color="A2A41B"/> <!--Fine Green--> <quality key="4" color="42C234"/> <!--Great Blue--> <quality key="5" color="315DCE"/> <!--Flawless Magenta--> <quality key="6" color="A42ACC"/> <quality key="7" color="9C8867"/> <!--Legendary Maroon--> <quality key="8" color="632315"/> <quality key="9" color="632315"/> </qualityinfo> All the color of the quality past 700 is the same color as flawless Magenta. So far I can make any custom quality I want but I cannot understand how to make a color attach to a grade of quality. Say color key 8 attach's to quality 700 and over and than another color attach's to quality 900. Example. I crafted a quality 700 and 800 axe. You expect maroon red but get Magenta flawless. Link to comment Share on other sites More sharing options...
Roland Posted July 16, 2016 Share Posted July 16, 2016 This sounds cool. It would be great if someone could figure it out. What about that utf-8 at the top? Let me expose my ignorance and just ask what if it was changed to utf-9..... /no clue but interested Link to comment Share on other sites More sharing options...
HAL9000 Posted July 16, 2016 Share Posted July 16, 2016 It's hardcoded to 7 entries, you'd need to mod the DLL to add more Link to comment Share on other sites More sharing options...
ShotoGunss Posted July 21, 2016 Author Share Posted July 21, 2016 It's hardcoded to 7 entries, you'd need to mod the DLL to add more Very Unfortunate. Are the Dev's planning on adding any empty ID keys in the future for community modder's or could that be a community request I could bring up on the modding forum? Link to comment Share on other sites More sharing options...
Laz Man Posted January 30, 2020 Share Posted January 30, 2020 Are there any changes since this thread? Was looking to mod higher tiers of equipment. Link to comment Share on other sites More sharing options...
Claymore Posted January 30, 2020 Share Posted January 30, 2020 Get dnSpy. Open Assembly-CSharp.dll Go to public class Constants public const int cItemMaxQuality = 6; Alter it to the amount of levels you want. Example: public const int cItemMaxQuality = 7; Go to public class QualityInfo { case 0: text = Localization.Get("lblQualityDamaged", ""); break; case 1: text = Localization.Get("lblQualityPoor", ""); break; case 2: text = Localization.Get("lblQualityAverage", ""); break; case 3: text = Localization.Get("lblQualityGreat", ""); break; case 4: text = Localization.Get("lblQualityFlawless", ""); break; case 5: text = Localization.Get("lblQualityLegendary", ""); break; case 6: text = Localization.Get("lblQualityLegendary", ""); break; } Extend it by like "lblQualitySturdy". Example: { case 0: text = Localization.Get("lblQualityDamaged", ""); break; case 1: text = Localization.Get("lblQualityPoor", ""); break; case 2: text = Localization.Get("lblQualityAverage", ""); break; case 3: text = Localization.Get("lblQualityGreat", ""); break; case 4: text = Localization.Get("lblQualityFlawless", ""); break; case 5: text = Localization.Get("lblQualityLegendary", ""); break; case 6: text = Localization.Get("lblQualityLegendary", ""); break; case 7: text = Localization.Get("lblQualitySturdy", ""); break; } Now open Localization.txt and add "lblQualitySturdy" to it. Don't forget to also alter the item.xml and qualityinfo.xml for it. Now alter Localization.txt for it. A list of once included levels: public class InvGameItem { case InvGameItem.Quality.Broken: num = 0f; break; case InvGameItem.Quality.Cursed: num = -1f; break; case InvGameItem.Quality.Damaged: num = 0.25f; break; case InvGameItem.Quality.Worn: num = 0.9f; break; case InvGameItem.Quality.Sturdy: num = 1f; break; case InvGameItem.Quality.Polished: num = 1.1f; break; case InvGameItem.Quality.Improved: num = 1.25f; break; case InvGameItem.Quality.Crafted: num = 1.5f; break; case InvGameItem.Quality.Superior: num = 1.75f; break; case InvGameItem.Quality.Enchanted: num = 2f; break; case InvGameItem.Quality.Epic: num = 2.5f; break; case InvGameItem.Quality.Legendary: num = 3f; break; } Hope, it helps a bit. Link to comment Share on other sites More sharing options...
Laz Man Posted January 31, 2020 Share Posted January 31, 2020 Thanks for the info. I was hoping for an EAC / xpath method but I am sure this information will be helpful for anyone willing to modify the dll. Link to comment Share on other sites More sharing options...
Wolfless Posted May 1, 2020 Share Posted May 1, 2020 I've went through every step and I am getting back an error saying the index is out of bounds. I'm only trying to add a 7th quality and the cItemMaxQuality is set to 7. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.