I dont know of anyway to write files to the data directory, but you can move them to the data dir and kolmafia will find them for the script...dangerpin, do you know how to get map_to_file or file_to_map to put all of the data
files into the "data" directory rather than the "scripts" directory. Right now
all of the generated data files are being put in my scripts directory.
I tried modifying the following line:
string equipmentDataFile = "data/";
But then I get filenames in the "scripts" directory called for example:
_Adventures.txt
the next version will change equipmentDataFile to '.ItemMap' which will create the files in the base script directory but hide them from the scripts menu (removing the use of directory slashes which is a bug and might be removed for security)... it should also make moving them easier but having the files in data directory might cause problems when you try and regen the item maps and im not sure what will happen if you have files with the same filename in both 'scripts/' and 'data/'
do you have a Disembodied Hand? What has the script decided to equipt?I noticed that when you maximize "Adventures" it does not equip a time sword in the offhand.
update: new posts since i started writting...
It only worked on windows because of a bug, it was suppost to be disabled to avoid scripts writting over system filesCaptain Kirk said:Hmm... this reverse slash stuff you are using doesn't really work on my mac.
Because the data directory was never created.
kolmafia must be detecting the files already exist in the data/ directory so is overwritting them which is greatCaptain Kirk said:so for some reason once they are found in the data directory they remain there
Last edited: