Results 1 to 7 of 7

Thread: overwriting data/adventures.txt

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    4

    Question overwriting data/adventures.txt

    I just started using svn to retrieve mafia code, so i'm grabbing whatever's current, not the daily or hourly build, since I can build locally. I'm on OSX and I stuck a symlink under /Applications/KoLMafia/Contents/Resources/Java to the one in my dist folder under svn. hope that's about right.

    All I've been doing out of the ordinary is maintaining a local adventures.txt with some additional goals that it drives me nuts to type in each time. I'm not messing in the build directory but rather in the ~/Library/Application Support dir.

    This is the main thing that is keeping me from updating every time I run. Because whether or not there was a revision in svn, the first time I run a new build it always deletes adventures.txt! So, I manually merge the file with new stuff from svn, then copy it into the dir, start mafia, close it w/o logging in, copy *again*, and start mafia again. So it also doesn't realize that, say, my adventures.txt is newer than the build so I might know what I'm doing...

    Is there any way to locally disable whatever idiot-proofing is removing my adventures.txt every time I run a new build for the first time?

  2. #2

    Default

    Find the adventures.txt file in your subversion directory. Edit that one. Your changes will be merged in with any mafia updates, not overwritten.

  3. #3
    Junior Member
    Join Date
    Jan 2010
    Posts
    4

    Default

    Thanks, I'll try that. Guess I'm old school and didn't trust it. Or maybe it's that I always get the danged C flags instead of actual merging when I try this kind of thing at work.

  4. #4
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,292

    Default

    The reason we are now deleting the overrides when we detect that you have upgraded is that we are now aggressively WRITING override files when we notice new items. We used to clear the overrides whenever you upgraded a major version. Now, we do it for revision upgrades, too.

    I'd consider doing a full clear for a major upgrade and a semi-clear (only tradeitems, itemdescs, equipment, modifiers, statuseffects) on a minor upgrade.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  5. #5
    Senior Member
    Join Date
    Jul 2007
    Posts
    1,193

    Default

    The reason we are now deleting the overrides when we detect that you have upgraded is that we are now aggressively WRITING override files when we notice new items. We used to clear the overrides whenever you upgraded a major version. Now, we do it for revision upgrades, too.

    I'd consider doing a full clear for a major upgrade and a semi-clear (only tradeitems, itemdescs, equipment, modifiers, statuseffects) on a minor upgrade.
    Originally Posted by Veracity View Post
    Thoughts on something like "custom_adventures.txt" that just gets appended to or overwrites matching adventures in adventures.txt?

    Same would apply for all other data files.

  6. #6
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,292

    Default

    You just responded to a note I wrote almost 2 years ago.
    Things have changed considerably since then.
    What I said is nothing like current reality.
    What you suggested is irrelevant.
    Thanks and/or sorry.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  7. #7
    Senior Member
    Join Date
    Jul 2007
    Posts
    1,193

    Default

    You just responded to a note I wrote almost 2 years ago.
    Things have changed considerably since then.
    What I said is nothing like current reality.
    What you suggested is irrelevant.
    Thanks and/or sorry.
    Originally Posted by Veracity View Post
    Haha, oops, my bad.

Similar Threads

  1. Replies: 0
    Last Post: 01-08-2015, 10:10 PM
  2. Bug Location input keeps overwriting clipboard
    By Voker57 in forum Bug Reports
    Replies: 11
    Last Post: 02-05-2013, 12:00 PM
  3. Replies: 0
    Last Post: 02-28-2012, 07:03 PM
  4. Bug - Not A Bug Adventures not including bonus rollover adventures from Clan furniture
    By Terion in forum Bug Reports
    Replies: 1
    Last Post: 04-27-2010, 01:22 AM
  5. Replies: 0
    Last Post: 04-11-2010, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •