Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old September 29, 2022, 14:28   #1
superjase
Rookie
 
Join Date: Jan 2015
Location: cape town
Posts: 7
superjase is on a distinguished road
merging two lore.txt files

hi all

i hope this is the right place to post this.

i play angband on more than one device - my home PC and my laptop. i have have angband saved on google drive and run it from there and that works fine. i have google drive installed on those two devices and load it up from windows explorer. so far, so good.

a little while ago i started to play on my work laptop because i am occasionally away from my home devices. i am unable to install google drive on my work device (because work rules) so i copied the entire angband directory structure onto my laptop drive. whenever i play on my work laptop, i copy the save file from my google drive (using my browser) to my work laptop drive and fire the game up. when i have finished playing, i copy the save file back from my laptop drive to my google drive (once again using the browser). so far, so good.

after playing like this for a while i noticed that the unique monster list when playing on my work laptop was different to the one when playing off google drive. i have now realised that the monster knowledge info is not saved to the save file, but rather to lore.txt (i think).

is there a way to merge the two lore.txt files into one so that i can get my complete monster info? i looked for a while in the github and just got overwhelmed. i noticed there is a line in lore.txt for each monster - counts:93:0:1:0:127:0:0 (for example), which i think might have something to do with it... but it is beyond my skill to know how to merge these.

i very much would like my moster knowledge to be complete. if i can merge them then i can copy the lore.txt file as well when i play on my work laptop.

thanks in advance.

Last edited by superjase; September 29, 2022 at 14:58.
superjase is offline   Reply With Quote
Old September 29, 2022, 15:56   #2
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 932
Gwarl will become famous soon enough
Just saying, if you play on angband.live you can use the same lore file and even the same character both at home and at work
Gwarl is offline   Reply With Quote
Old September 29, 2022, 16:20   #3
superjase
Rookie
 
Join Date: Jan 2015
Location: cape town
Posts: 7
superjase is on a distinguished road
that's a nice thought, but... i am often without internet access. it's nice to be able to play off the hard drive and then sync it to the cloud when i have connectivity again. and also the term setup is better with my local setup.
superjase is offline   Reply With Quote
Old October 5, 2022, 01:24   #4
Bill Peterson
Adept
 
Join Date: Jul 2007
Location: Flyover country
Posts: 165
Bill Peterson is on a distinguished road
Send a message via AIM to Bill Peterson
I would think you could put Angband on a flash drive and just move that from one computer to another. Of course, your employer might not allow portable drives.
Bill Peterson is offline   Reply With Quote
Old October 6, 2022, 02:45   #5
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 2,117
Ingwe Ingweron is on a distinguished road
Apart from just playing two different @s, the only solution I see is to copy the lore.txt file back and forth in the same way and at the same time as you are doing for the save file.
__________________
“We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see.”
― Tom Stoppard, Rosencrantz and Guildenstern are Dead
Ingwe Ingweron is offline   Reply With Quote
Old October 14, 2022, 09:59   #6
smbhax
Swordsman
 
Join Date: Oct 2021
Location: WA
Posts: 298
smbhax is on a distinguished road
I just ran into this same problem; fortunately for me I was only playing on the new install for a little while before I realized I'd left the lore behind. I wondered if there was a way to merge my tiny new one into the big old one, but in the end, for me it was such a small difference that I just deleted the new one and replaced it entirely with the old one.

Looking at how lore.txt is laid out, it looks like it just adds new monster entries onto the end of the file as you encounter them. So...possibly order doesn't matter, and you could just take whichever of your lore.txts seems the most complete, then copy and paste in the monsters that are missing. It would be a bit of a pain and wouldn't be a proper merge, but unless there's an actual programmatic lore.txt merge utility, might be the most feasible compromise.
__________________
My Angband videos
smbhax is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FrogComposband merging spellbooks or transfering spells Quantum Variants 2 June 1, 2021 03:43
lore keeper Grax Sil 2 September 30, 2020 17:47
Regarding Angband Lore... Celiend Vanilla 11 June 24, 2020 07:55
Initializing monster lore Tibarius Development 0 May 20, 2020 19:51
merging mage and priest books PowerDiver Vanilla 40 March 23, 2009 00:04


All times are GMT +1. The time now is 16:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.