Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Dwarf Fortress Historian: Android app for viewing Legends  (Read 8031 times)

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Dwarf Fortress Historian: Android app for viewing Legends
« on: September 02, 2014, 01:27:57 am »

Hia!

Fist, wheres:

* App: https://play.google.com/store/apps/details?id=cz.zweistein.android.legendsviewer
* Homepage: http://df.zweistein.cz/historian/

Historian is app that parses legends xml export, stopes them in database and then lets user browse results.

Right, now, it handles about 90% of stuff in legends export and other exports: There are many types of events and smaller items like death causes that are not mapped to sensible output yet and some unknow corner causes might cause crash - this is where public release comes. If you encounter error, I would greatly appreciate if you shared your legends exports which were used and what lead to it. Call it "beta".

Small note: legends itself is not exported fully, you will find nonsensical stuff relating to thefts or merchants where only that something happened is exported, but not where or who was participating.

App should be safe to use - only permissions it needs is read access to sd card.

Performance: It can import small legends (~30 mb) in ~12 seconds in  current smartphones (zopo zp980+) to about 1:40 on older models (Samsung Galaxy S1), Biggest world I have tested is 550 years old weighting 160MB with several thousands of historical figures and hundreds of thousands of events - It is fairly snappy, but some bigger lists (events, event groups and historical figures) can take few moments.

Cheers!

Poonyen

  • Bay Watcher
  • Yarg!
    • View Profile
    • My YouTube page
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #1 on: September 02, 2014, 05:26:00 am »

Downloaded. Will try it out asap!
Logged
I like to make music especially for Dwarf Fortress and Soundsense in my spare time (https://www.youtube.com/simonswerwer, http://soundcloud.com/simonswerwer). Also check out Toadese Language Utility to read and write DF dwarven texts (http://www.bay12forums.com/smf/index.php?topic=136098). Bang the tankards!

Capsicum

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #2 on: September 02, 2014, 07:00:07 am »

Very cool, and surprisingly snappy. Are you considering a paid version?
Logged

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #3 on: September 02, 2014, 11:45:09 am »

Very cool, and surprisingly snappy. Are you considering a paid version?

I'd think that paid version of tool relating to Dwarf Fortress would be kind of bad taste.

Would not mind cash flowing my way, of course, but people should consider donating to Tarn first.

eccentric

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #4 on: September 02, 2014, 03:59:27 pm »

Thanks zwei works great.

Never played much in Legends before but this is pretty neat.

DF Legends mode much death and drama; who knew that an elf could love/marry a night-creature(is that normal?) or that humans had disputes about fishing and grazing rights... or the story of 2 young elves both kidnapped and abused as children who found each other and wed (they were murdered by their own people shortly after marriage sure they were warped/twisted from living in a Dark Pit still it's tragic)
Logged

BigD145

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #5 on: September 02, 2014, 06:47:46 pm »

I figured I would test this with a large 1,000 or so year history in a medium sized world. It was 5 minutes to copy a 1GB legends xml to my tablet and 6 minutes to import the raws until I got an error. It said "entity_link.entityld may not be NULL (code 19) occured during import, only partial import was made."
Logged

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #6 on: September 03, 2014, 01:26:57 am »

I figured I would test this with a large 1,000 or so year history in a medium sized world. It was 5 minutes to copy a 1GB legends xml to my tablet and 6 minutes to import the raws until I got an error. It said "entity_link.entityld may not be NULL (code 19) occured during import, only partial import was made."

That means that somewhere, Historical Figure has link to Entity, but that Entity does not exist anymore? I need to see if it is some variation of that information with specific format change.

Curious, can you check how many historical figures were imported (Open Current Legends -> Number on Historical Figures Button) and then dig into legends.xml file and post here historical figures with id of +/- 1 of that number? Alternative is to zip those legends and upload them somehwere for my examination.

Thanks!

BigD145

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #7 on: September 03, 2014, 09:09:42 am »

The Android app has 36304 historical figures. The xml opened in Legends Viewer has 194451.

Link to xml incoming. Watch this post. https://www.dropbox.com/s/3q4d0vz27w0p36d/region1-01050-01-01-legends.zip?dl=0
« Last Edit: September 03, 2014, 09:25:06 am by BigD145 »
Logged

Button

  • Bay Watcher
  • Plants Specialist
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #8 on: September 03, 2014, 09:33:00 am »

who knew that an elf could love/marry a night-creature(is that normal?)

The "night creature" status gets applied retroactively. The elves were married, and one of them later became a night creature.
Logged
I used to work on Modest Mod and Plant Fixes.

Always assume I'm not seriously back

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #9 on: September 03, 2014, 02:20:31 pm »

The Android app has 36304 historical figures. The xml opened in Legends Viewer has 194451.

Link to xml incoming. Watch this post. https://www.dropbox.com/s/3q4d0vz27w0p36d/region1-01050-01-01-legends.zip?dl=0

Thank you!

I have found bug and squashed it, now import goes unhitched and completes.

It will be in next version along with other fixes (Which I have put on market, so expect android to prompt for update).

Beware: right now, new version is not backwards compatible and might require reimport of world.

BigD145

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #10 on: September 03, 2014, 03:27:14 pm »

You're welcome. It's good to see supported Android software. I'll try loading again and check back in half an hour, considering how long it took to get through 1/6th of the historical figures. I need to do some small and tiny worlds now.

edit: It pauses importing when the screen shuts off. I'm not sure how I feel about that. Possibly annoyed. It's potentially battery saving but largely just a hassle when my device is plugged in. Is that on your end or on Google's end? I seem to remember Progress Quest running no matter what the device is doing.
« Last Edit: September 03, 2014, 07:10:45 pm by BigD145 »
Logged

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #11 on: September 04, 2014, 03:04:58 am »

edit: It pauses importing when the screen shuts off. I'm not sure how I feel about that. Possibly annoyed. It's potentially battery saving but largely just a hassle when my device is plugged in. Is that on your end or on Google's end? I seem to remember Progress Quest running no matter what the device is doing.

It does not pause for me - what device do you use?

In any case, I made no effort to keep app from pausing when android desides it should pause. That should change and be fixed.

BigD145

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #12 on: September 04, 2014, 07:59:58 am »

I'm using an Asus Memopad. It might just be my device.

Looking at the timestamp on my post edit I could very well be wrong about it pausing. It could indeed take a solid 4+ hours to import such a large xml. There were over a million events.
« Last Edit: September 04, 2014, 08:05:35 am by BigD145 »
Logged

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #13 on: September 07, 2014, 04:07:48 pm »

New version should be up shortly

- Fixed conversion of Historical Figure to night creature
- Added notification for completed import when left running in background.
- Added social share feature for several screens (some details and list of historical events).
- Fixed device sleep so that imports are no longer paused/aborted when screen turns off.
- Added squad membership in historical figure detail and screen with squad members for squad.

I'm using an Asus Memopad. It might just be my device.

Looking at the timestamp on my post edit I could very well be wrong about it pausing. It could indeed take a solid 4+ hours to import such a large xml. There were over a million events.

I have added wake lock so that turning of screen should not pause app.

Also, if srceen is of there will be notification - that shows how log it took to import file.

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress Historian: Android app for viewing Legends
« Reply #14 on: October 19, 2014, 11:48:37 am »

I have just uploaded new version to play store:

- Added ability to import zip file containing legends.xml and related files.
- Added cancel button to file selection so that you do not have to navigate all the way up if you mis-click it.
- Fixed small typo in site death event.
- Improved better labels for exported/shared text.
- Fixed typo in skill list for historical figure.
- Improved error messages when importing files.
- Added relationship profile loading for historical figure.
- Fixed rare crash when displaying hf destroyed site event.
Pages: [1] 2