Bay 12 Games Forum

Please login or register.

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

Author Topic: LegendsBrowser 1.0.12 (Window, Mac OS and Linux legends viewer for df 0.42)  (Read 10841 times)

Karater

  • Bay Watcher
    • View Profile

Seems that some others also used the holidays to write new legend viewers. So here is my take on this:

LegendsBrowser is a multi-platform (Windows, MacOS, Linux), web-based legends viewer completely written from scratch in java.
(supports loading of legends_plus.xml from DFHack)

Download: Windows or Mac OS
Project ist hosted on GitHub

To run the application just start the .exe or .app (Java 8 is required)
On linux run "java -jar legendsbrowser-x.x.x.jar"
You default browser should open (if not open http://localhost:58881)
Now can use the built-in file chooser to browse to your *-legends.xml


Civilization Overview:
Spoiler (click to show/hide)

Population Overview:
Spoiler (click to show/hide)

Civilization Wars:
Spoiler (click to show/hide)

Civilization Details:
Spoiler (click to show/hide)

War Details:
Spoiler (click to show/hide)

Site Details:
Spoiler (click to show/hide)

Historical Figure Details:
Spoiler (click to show/hide)

World Construction Details:
Spoiler (click to show/hide)

Historical Figure Filter:
Spoiler (click to show/hide)
« Last Edit: July 18, 2016, 03:12:15 am by Karater »
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

Timeless Bob

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (multi-platform legends viewer for df 0.42)
« Reply #1 on: January 05, 2016, 05:34:22 am »

Very cool!

PTW
Logged
L33tsp34k does to English what Picasso did to faces.

Dwarfopoly
The Luckiest Tourist EVER
Bloodlines of the Forii

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (multi-platform legends viewer for df 0.42)
« Reply #2 on: January 05, 2016, 11:08:19 am »

I've released version 0.0.2 with support for legends_plus.xml from DFHack:
  • Import legends_plus.xml from DFHack for DF 0.42.4 (https://github.com/DFHack/dfhack/releases)
    • load region in legends mode
    • type "exportlegends info" in DFHack
    • change date of legends_plus.xml to match the other files
  • support for buildings and world constructions
  • lots of missing information added
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

CharonM72

  • Bay Watcher
  • Proficient Laughingdwarf
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #3 on: January 07, 2016, 04:52:03 am »

PTW
Logged
Ever wanted to see your DF world Google Earth-style? Check out my Satellite Map Maker!

He he, yeah, I was like, "how are we going to be sure the leader will die in the trap?"  And then I saw the 10 adamantine weapons in the trap.  Then I was like, "but what if they live through the fall if they dodge?"  Then I saw the giant magma pool.

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #4 on: January 07, 2016, 10:09:18 am »

I've released version 0.0.4 with these new features:
  • Read Sites and Props File
  • Show Population Overview
  • Show Population of Sites
  • World Constructions enhanced (only with legends plus)
    • Show World Constructions on map
    • Show Parts and Connected Sites
    • Group by Type in List View
  • Filter for Historical Figures (leader, deity, vampire, werebeast, alive, ...)
  • Embedded JS and CSS to allow offline useage

(i've also added new screenshots to the first posting)
« Last Edit: January 07, 2016, 10:20:14 am by Karater »
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

King_of_Baboons

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #5 on: January 08, 2016, 08:12:28 pm »

I got some bugs for ya.

The viewer is not registering groups.It shows them as "The Wheels of Gold:unknown unknown"(civs are displayed as human/dwarf/elf/goblin unknown but are divided by race) and it does not divide them by race either.It just makes a long list of all the groups of the world.Which is bad in this particular case because there are far more groups than civs(Thanks,DF).

Spoiler (click to show/hide)

The War graphic is also very confusing when your world has too many wars.Could you put an option for a simpler kind of graphic rather than the default one?.

Spoiler (click to show/hide)

The viewer,despite being able to identify which hist. figs. are leaders,cannot say which kind of leader they were.Instead it just says the ID of their profession.The same happens with books and festivals and they all come out in numbers.

Spoiler (click to show/hide)


Aside from all of that,this is the only viewer so far that has an easy and cool UI to use and I hope this gets more updated.
Logged
A medium-sized creature prone to madness and insanity.

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #6 on: January 09, 2016, 04:09:59 am »

Thanks for your feedback. Most of the missing information is caused by the incomplete legends export from df (structures, world constructions and everything related to the new professions - books, performances and festivals - is missing). If you are using dfhack you can run "exportlegends info". This will export an additional file with lots of the missing information. The file will also contain the type of groups and civilizations.

The main page will show all groups it can identify as civilization (groups that own sites and have no parent group). These groups are also displayed in the war chart. If you don't have the additional data from dfhack a lot of groups can show up here. I will try to extract more details from the basic export to make the main page easier to read in the next version.
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #7 on: January 09, 2016, 10:04:10 am »

PTW
Also saying !!THANK YOU!!, and letting you know that it's going into Macnewbie.

...and I immediately have two feature requests:
1, Support setting a relative path to search for legends in a config file, so the browser doesn't start up (on osx) in ~/, but in ../../../WhateverIWant
2, Support LNP's Legends processor package format. Here's an example output. Basically the processor is just a script to convert images to .png format, sort them, and compress the xml so it takes less space.

edit: Besides the above mentioned missing performances I'm seeing a lot of UNKNOWN HISTORICAL FIGURE linked () to entries in the browser. I used exportlegends all for initial export, then I tried exportlegends info to see if it changes anything, but no. You can check the dwarves in the example posted above for clues.

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #8 on: January 09, 2016, 01:01:43 pm »

thanks for putting it in the starter pack :D
features for the file browser are already on my list and i will have a look at the compressed format.
the plus file needs it name changed to match the date of the other exports for now (dfhack exports one day later) otherwise it wont be recognized

i've also released version 1.0.5 with these new features
  • Enhanced World Map (opacity control, zoom to fit, new colors, all sites and world constructions)
  • support for merchant events
  • support for site tribute events
  • tooltips on all objects
  • race colors (also in population overview)
  • calculate entity type from events (if legends plus not available)
  • display events in collections in right order
  • calculate fallen civilizations and ruins
  • show wars on entity page
  • tables for entity and site page
  • calculate attacking beast from more events
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #9 on: January 09, 2016, 01:17:03 pm »

thanks for putting it in the starter pack :D
Oh, you don't know how long have I been waiting for a Legends app that runs on osx... :D

Quote
features for the file browser are already on my list and i will have a look at the compressed format.
the plus file needs it name changed to match the date of the other exports for now (dfhack exports one day later) otherwise it wont be recognized
Thx, noted, after renaming I'm not seeing the unknown entries any more. Looks like that +1 is not necessary then.

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #10 on: January 09, 2016, 01:36:04 pm »

Looks like that +1 is not necessary then.

i think its line 88, since days and months are 1-indexed
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

notfood

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #11 on: January 09, 2016, 04:55:16 pm »

Thank you!
Logged

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #12 on: January 10, 2016, 05:48:05 am »

Looks like that +1 is not necessary then.
correct line should be:
    local julian_day = math.floor((df.global.cur_year_tick == -1 and 0 or df.global.cur_year_tick) / 1200)
(directly after creating a new world cur_year_tick is still -1)

EDIT: seems to be fixed in this commit  8)
« Last Edit: January 10, 2016, 05:52:24 am by Karater »
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

Karater

  • Bay Watcher
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #13 on: January 10, 2016, 08:48:55 am »

i've released version 1.0.6 with these new features:
  • load legends from LNP processed .zip archive
  • properties file
    • "root" stets the path the file browser will always start with
    • "last" path of the last directory (will be show on startup, if no root is not specified)
    • on OS X legendsbrowser.properties can be found inside the app bundle
    • on Windows the file is placed next to the .exe
  • choose best fitting image from available images
  • show counts on entity and site page
  • show groups on entity page
Logged
Legends Browser - df 0.42 legends viewer for windows, os x and linux

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: LegendsBrowser (Window, Mac OS and Linux legends viewer for df 0.42)
« Reply #14 on: January 10, 2016, 12:56:46 pm »

i've released version 1.0.6 with these new features:
  • load legends from LNP processed .zip archive
  • properties file
Thx for implementing this!
Pages: [1] 2 3 4