drNovikov Posted September 5, 2013 Share Posted September 5, 2013 I am trying to test different aspects of the game and modding, so I opened the "items.txt" file and changed some values for Butter Knife. But they does not apply when I start the game and create a new sandbox. For example, I changed it's DisplayName to "Butter Knife Test", but in the game it is still "Butter Knife". I changed it's Weight to "3" and WeaponWeight to "2", but in the game it's still "0.3". Here are my questions: 1. Why changes to "items.txt" don't apply? Are item properties hardcoded? Is there another file to edit? 2. Which is the best way to modify existing items? For example, if I want to alter their names, weight, durability, damage, etc? I am playing the current Desura version, which seems to be (according to Desura changelog) 2.9.9.10. Link to comment Share on other sites More sharing options...
kinyoshi Posted September 5, 2013 Share Posted September 5, 2013 I don't know why it doesn't work for you, it should work by doing what you did.. As far as I know that alters vanilla items.. It is the same way I did my vanilla mod. Link to comment Share on other sites More sharing options...
drNovikov Posted September 5, 2013 Author Share Posted September 5, 2013 Interesting thing: I duplicated items.txt into itemstest.txt (with butter knife only), and butter knives beame "blooo". I wonder if there is some kind of cache. I deleted itemstest.txt -- butter knives are back. With old properties and values. Link to comment Share on other sites More sharing options...
drNovikov Posted September 5, 2013 Author Share Posted September 5, 2013 Looks like I've solved this issue. I had an items.txt.bak file in the same directory. I moved it to another directory -- and new items.txt was applied!I will do some additional tests, but at this moment it seems like the game reads every text file in the directory and applies them in some order, possibly redefining some values or giving one file a priority over another. Update:I put the .bak file back in the scripts directory -- all the old properties and values appeared in the game! That means, modders can alter default items and keep items.txt without making users to edit, delete or rewrite it, thus making possible easy uninstalling by just deleting mod files. Further test showed that the game applies the file which names is "lower" in alphabetical order. Link to comment Share on other sites More sharing options...
RoboMat Posted September 6, 2013 Share Posted September 6, 2013 I put the .bak file back in the scripts directory -- all the old properties and values appeared in the game! That means, modders can alter default items and keep items.txt without making users to edit, delete or rewrite it, thus making possible easy uninstalling by just deleting mod files. Further test showed that the game applies the file which names is "lower" in alphabetical order. With version 2.9.9.17 there is basically no need to touch the vanilla files anymore because all mods are installed into the mods folder Link to comment Share on other sites More sharing options...
drNovikov Posted September 6, 2013 Author Share Posted September 6, 2013 Thanks, Robomat. I wish Desura sold me the latest version =) Link to comment Share on other sites More sharing options...
EnigmaGrey Posted September 6, 2013 Share Posted September 6, 2013 Thanks, Robomat. I wish Desura sold me the latest version =)You can get your Steam key here, if you're so inclined: http://www.desura.com/collection Link to comment Share on other sites More sharing options...
drNovikov Posted September 6, 2013 Author Share Posted September 6, 2013 Thanks, already downloading! If I create some item file in my mod's directory, will it override the vanilla file? Link to comment Share on other sites More sharing options...
RoboMat Posted September 6, 2013 Share Posted September 6, 2013 Not atm afaik. The steam version seems to not support custom items atm - will be back shortly I hope Link to comment Share on other sites More sharing options...
drNovikov Posted September 6, 2013 Author Share Posted September 6, 2013 Developers, please, make it work like in Fallout/Skyrim mods, so players could define the load order, so the later loaded values rewrite the earlier loaded ones. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted September 6, 2013 Share Posted September 6, 2013 Developers, please, make it work like in Fallout/Skyrim mods, so players could define the load order, so the later loaded values rewrite the earlier loaded ones.It'll probably have to happen eventually. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now