thanks for putting it in the starter pack :DOh, you don't know how long have I been waiting for a Legends app that runs on osx... :D
features for the file browser are already on my list and i will have a look at the compressed format.Thx, noted, after renaming I'm not seeing the unknown entries any more. Looks like that (https://github.com/DFHack/dfhack/blob/master/scripts/exportlegends.lua#L90) +1 is not necessary then.
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
Looks like that (https://github.com/DFHack/dfhack/blob/master/scripts/exportlegends.lua#L90) +1 is not necessary then.
Looks like that (https://github.com/DFHack/dfhack/blob/master/scripts/exportlegends.lua#L90) +1 is not necessary then.correct line should be:
i've released version 1.0.6 with these new features:Thx for implementing this!
- load legends from LNP processed .zip archive
- properties file
I notice that it doesn't convert the characters from ascii to unicode. You may want to correct that.can you give me an example where this happens?
I notice that it doesn't convert the characters from ascii to unicode. You may want to correct that.can you give me an example where this happens?
i've released version 1.0.7 with the following new features:
- maps for regions
How did you get the maps for regions information? I thought it wasn't available in the xml export.
thanks for putting it in the starter pack :DOh, you don't know how long have I been waiting for a Legends app that runs on osx... :D
Total newbie here. As in I started playing DF the day before yesterday. I got this utility via the Macnewbie package. I went ahead and installed Java and when I launch Legendsbrowser I get a new window in Safari. I have no idea where to direct it to though. I can't find any xml files, where is the appropriate file and how do I get this to work?
/snip
To use it:
- Load your fortress with dfhack (backup first...)
- Press Ctrl-Shift-L to load legends mode
- Press Ctrl-A to export legends information
- Start Legends Browser, wait for the browser window to open and navigate to /Macnewbie/Dwarf Fortress to load legends.xml
that bug has been fixed, but that version is still in the pack. you can get the latest version from here: DFFD (http://dffd.bay12games.com/file.php?id=11618)
Hmm, downloaded the new version and installed it. Now when I launch LedgendsBrowser it gets as far as loading maps and then it brings me back to the main directory of my drive. Not sure what I need to do from here.so you did select an exported xml-file from your DF folder and it started loading and then returned to the main drive?
Hmm, downloaded the new version and installed it. Now when I launch LedgendsBrowser it gets as far as loading maps and then it brings me back to the main directory of my drive. Not sure what I need to do from here.so you did select an exported xml-file from your DF folder and it started loading and then returned to the main drive?
(PS. if you find bugs you can also use the github issue page (https://github.com/robertjanetzko/LegendsBrowser/issues))
Yes, that's what happened. Wasn't sure if it was buggy behavior or me not knowing what I'm doing. If it sounds like a bug I'll post it on github. Thanks.
i've uploaded version 1.0.10a which will write errors to a log file (on mac os the console window is hidden). The log can be found next to the application or on mac os inside the app bundle (right click and show package contents).Yes, that's what happened. Wasn't sure if it was buggy behavior or me not knowing what I'm doing. If it sounds like a bug I'll post it on github. Thanks.
Can you open an issue on git hub and attach the log file there as I cant reproduce your problem right now.
Could you crosscompile this so it works with java7? some distros don't have java8 in the repositories. (Ubuntu14.04 LTS for example)
-p,--port <arg> use specific port
-s,--serverMode run in server mode (disables file chooser)
-u,--subUri <arg> run on /<subUri>
-w,--world <arg> path to legends.xml or archive$ sudo dnf install --enablerepo=updates-testing legendsbrowser
$ legendsbrowser
i've released version 1.0.12 with the following new features:
[2016-08-04 09:00:55] INFO: loading world: region1-00126-03-07-legends.xml
[2016-08-04 09:00:55] SEVERE: error loading legends
java.lang.NullPointerException
at java.nio.file.Files.newDirectoryStream(Unknown Source)
at legends.helper.WorldConfig.<init>(WorldConfig.java:45)
at legends.model.World$1.run(World.java:438)
Exception in thread "main" java.lang.UnsupportedClassVersionError: legends/Application : Unsupported major.minor version 52.0
Am I missing something? All this does is open a file browser in Firefox. I can navigate to the save folders, but that's about it.From there you should be able to open the .xml file you exported from Legends Mode. I think. Been a while since I used this.
Edit: Still getting the error after creating the .ini file. And doubling the memory allotment. Where does that .ini file need to go?the file should have exactly the same name as your EXE but but with .l4j.ini instead of .exe
[2017-06-01 18:45:27] SEVERE: error in request: /hf/33268
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at legends.RequestThread.findMapping(RequestThread.java:263)
at legends.RequestThread.run(RequestThread.java:167)
Caused by: java.lang.NullPointerException
at legends.web.HfsController$FamilyMember.layout(HfsController.java:166)
at legends.web.HfsController$Family.<init>(HfsController.java:409)
at legends.web.HfsController.hf(HfsController.java:91)
... 5 morehttps://a.pomf.cat/sqqpif.zipThe raw xml from dwarf fortress is 44 GB. Zip-compressed is it 1.6 GB.
What are my options? I have access to a 32 GB RAM machine (although it's currently generating a 20k years world) if that helps.
Minor request to help out with modding:
Could you add an option to define the colours given to each race rather than have Legends Viewer assign them?
Right now each time I mod in a new race, I have to relearn the colours for every single other civ.
Minor request to help out with modding:
Could you add an option to define the colours given to each race rather than have Legends Viewer assign them?
Right now each time I mod in a new race, I have to relearn the colours for every single other civ.
I thought I added a feature so that races always get the same random color, but it looks like i didn't add it to the last release. I will have a look at it on the weekend. An option to configure race colors should also be possible.That'd be excellent!
The raw xml from dwarf fortress is 44 GB. Zip-compressed is it 1.6 GB.
What are my options? I have access to a 32 GB RAM machine (although it's currently generating a 20k years world) if that helps.
Sorry, but I don't think you will be able to load these large files. The viewer is programmed to load the contents of the xml files into memory. So memory usage should be more or less equal to the size of the xml files.
Don't quote me on this, but I seem to remember something about there being a way to set up one's computer so that the system can use some of the hard drive space as if it was RAM. I wouldn't know how to do it or where to look to find out, but if what I remember is right then that might be a usable work around to load up crazy huge files that otherwise would be too much for the system RAM to handle.
How would I go about choosing the map that is loaded? Or is it possible to change the map presented after the browser has loaded?
How would I go about choosing the map that is loaded? Or is it possible to change the map presented after the browser has loaded?
just hit exit in the top left (or close the console window) and restart the application
But I can't choose which map is loaded. Unless I'm doing something wrong, as soon as I pick the .xml dump it loads everything automatically. I'm never prompted or given an option to which map I want to load. For example it is currently automatically loading the "detailed map", so if I want to load the "world map", I need to delete the first one. Or if I wanted to load some other map, like trade, for example, I'm not given the option.
I tried running 1.15 for Mac but when I try to open the .dmg file it says it is "damaged" and can't be opened. 1.13 worked fine.Same here. Try downloading the .jar instead.
I tried downloading the dmg from github and DFFD and both worked for me. I've rebuilt the image and uploaded it to to both locations and hope it'll work for you.I tried running 1.15 for Mac but when I try to open the .dmg file it says it is "damaged" and can't be opened. 1.13 worked fine.Same here. Try downloading the .jar instead.
Just to let you know that I downloaded the 1.15 .dmg and it gave the same problem. I am running MacOS Sierra 10.12.6. However I tried downloading the .jar file and that runs ok. Thanks very much for developing such a useful tool for us Mac DF players.i've updated the plugin that creates the .dmg and reuploaded it to github and dffd. Can you send me a screenshot if you still get an error message?
Just to let you know that I downloaded the 1.15 .dmg and it gave the same problem. I am running MacOS Sierra 10.12.6. However I tried downloading the .jar file and that runs ok. Thanks very much for developing such a useful tool for us Mac DF players.i've updated the plugin that creates the .dmg and reuploaded it to github and dffd. Can you send me a screenshot if you still get an error message?
Just to let you know that I downloaded the 1.15 .dmg and it gave the same problem. I am running MacOS Sierra 10.12.6. However I tried downloading the .jar file and that runs ok. Thanks very much for developing such a useful tool for us Mac DF players.i've updated the plugin that creates the .dmg and reuploaded it to github and dffd. Can you send me a screenshot if you still get an error message?
The following disk images couldn't be opened
Image: legendsbrowser-1.14.dmg
Reason: no mountable file system
Just to let you know that I downloaded the 1.15 .dmg and it gave the same problem. I am running MacOS Sierra 10.12.6. However I tried downloading the .jar file and that runs ok. Thanks very much for developing such a useful tool for us Mac DF players.i've updated the plugin that creates the .dmg and reuploaded it to github and dffd. Can you send me a screenshot if you still get an error message?
MD5 (Downloads/legendsbrowser-1.15 (1).dmg) = 267c22819c4d77c71e63b1f0c69bd18f
MD5 (Downloads/legendsbrowser-1.15.dmg) = b140ba0671c36aaf872ba0e82729a3be
Disk utility fails to open these silently.
Mine have the same md5 hashes as yours. I wonder why they are not the same.I'm not sure what you're saying... ours are and aren't the same? I have two copies, one from before Karater replaced it and one from after. Yours should match the one on top if you just downloaded it.
[DFHack]# open-legends
[DFHack]# exportlegends alland I'm getting thisI've used these commands in a fortress mode to export dataCode: [Select][DFHack]# open-legendsand I'm getting this
[DFHack]# exportlegends all
https://www.reddit.com/r/dwarffortress/comments/7z0hu1/while_in_reality_she_was_59_married_with_6_kids/
Is it a bug in LegendsBrowser, or I exported it wrong?
What exactly is wrong there? False identities are a thing in vanilla DF.it's supposed to say "character title, character name", but it just shows character id. In-game legends shows it correctly
haha :D but the "28" is actually only the id of the identity she used...This id does not lead to any actual id in exported files? Hmm, let me check.
(afaik the export currently has no information about these identities, the events only show their id)
Update: yep, they assume a made-up name (not a real historical figure), and it's nowhere to be found
Looks like the DFHack legends export needs to be updated to export that stuff.
last time i checked the memory structures for identities were not mapped in dfhack and so cannot be exported right nowThey're in df.global.world.identities
Searching for false identity produces no results
Found a bug https://imgur.com/a/t101S
Looks like a case of unescaped quote (search for "diamond age")it links the leader list using the name (because there is no id in this file). And with the nickname this seems to be problematic...
[DFHack]# open-legends
[DFHack]# exportlegends allFirst time ive not haplessly failed to export and find the xml file to see Legends viewer working - its magnificent! Thankyou dev!
Found a minor issue: clicking a link to an adventurer's biography doesn't work. The wheel is spinning but the hamster is dead.
I waited a few minutes for it to load, nothing. Seems to happen only to adventurers. Regular people load just fine.
When I change the memory alocated to -Xmx2048M the program opens then immediately quits. 1024 works though. Any ideas? I am still getting an out of memeory error at 1024.This can happen if there isn't enough free memory anymore to be allocated. Try closing some programs and check if that helped.
Checked, I have 10 gigs of available memory. This is odd.32-bit processes can only allocate 2 gigs.
Checked, I have 10 gigs of available memory. This is odd.32-bit processes can only allocate 2 gigs.
thanks for your work :), the file for mac seems corrupted for the last version, when I copy from the .dmg repository, it says that "the file is damaged and can't be opened"
How do I get dark mode to work? I'm on linux (openSUSE) and have downloaded the latest version (1.18.2). There is no choice to enable dark mode and I'm not sure I understand "based on system settings"?I've solved this by forcing dark mode in chromium. In file:
/etc/chromium.d/default-flagsadd at the end:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-features=WebUIDarkMode --force-dark-mode"
...Mac...“Legends Browser” is damaged and can’t be opened. You should eject the disk image.
Not sure if this is a problem in LegendsBrowser or a some kind of glitch in DFHack export function; everything seems to be correct when viewed directly in Legends mode.
There are corrupted item creation lines in my fortress history; mentions about someone creating things like "a masterful toad parchment corpse" or "a masterful blue jay nervous tissue barrel" (example in pic below).
Spoiler (click to show/hide)
In addition to that, many militia dwarves are labeled erroneously as necromancers. They have never read any secret books but they did raid few necromantic towers some years ago. At some point they all seem to have picked "SECRET_RES_POWER_1_2" in their Active Interactions slot. Again, when viewed directly in Legends mode everything looks normal.
This is in DF .47.04, DFHack .47.04-r1 and LegendsBrowser latest version 1.19.
legends.xml & legends_plus.xml[2020-06-16 15:58:59] WARNING: site - unknown element: rectangle = 151,424:153,426
[2020-06-16 15:58:59] WARNING: artifact - unknown element: abs_tile_x = 67200
[2020-06-16 15:58:59] WARNING: artifact - unknown element: abs_tile_y = 24960
[2020-06-16 15:58:59] WARNING: artifact - unknown element: abs_tile_z = -1000000
[2020-06-16 15:58:59] WARNING: artifact - unknown element: subregion_id = 212
[2020-06-16 15:58:59] WARNING: relationship_profile_hf_visual - unknown element: known_identity_id = 5975
[2020-06-16 15:59:00] WARNING: historical_figure - unknown element: honor_entity = 5
Exception in thread "Thread-323" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedHashMap.newNode(Unknown Source)
at java.util.HashMap.putVal(Unknown Source)
at java.util.HashMap.put(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookup(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(Unknown Source)
at sun.util.resources.OpenListResourceBundle.handleKeySet(Unknown Source)
at java.util.ResourceBundle.containsKey(Unknown Source)
at sun.util.locale.provider.LocaleResources.getTimeZoneNames(Unknown Source)
at sun.util.locale.provider.TimeZoneNameProviderImpl.getDisplayNameArray(Unknown Source)
at sun.util.locale.provider.TimeZoneNameProviderImpl.getDisplayName(Unknown Source)
at sun.util.locale.provider.TimeZoneNameUtility$TimeZoneNameGetter.getName(Unknown Source)
at sun.util.locale.provider.TimeZoneNameUtility$TimeZoneNameGetter.getObject(Unknown Source)
at sun.util.locale.provider.TimeZoneNameUtility$TimeZoneNameGetter.getObject(Unknown Source)
at sun.util.locale.provider.LocaleServiceProviderPool.getLocalizedObjectImpl(Unknown Source)
at sun.util.locale.provider.LocaleServiceProviderPool.getLocalizedObject(Unknown Source)
at sun.util.locale.provider.TimeZoneNameUtility.retrieveDisplayNamesImpl(Unknown Source)
at sun.util.locale.provider.TimeZoneNameUtility.retrieveDisplayName(Unknown Source)
at java.util.TimeZone.getDisplayName(Unknown Source)
at java.util.Date.toString(Unknown Source)
at legends.RequestThread.sendHeader(RequestThread.java:54)
at legends.RequestThread.run(RequestThread.java:167)
Exception in thread "Thread-324" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-324"
Exception in thread "Thread-325" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-326"
Exception in thread "Thread-192" java.lang.OutOfMemoryError: Java heap space "OutOfMemoryError" suggests to me that this fix might help: https://github.com/robertjanetzko/LegendsBrowser/blob/master/README.md#outofmemoryerror
LegendsBrowser 2.0.0
I've decided to completely rewrite the legends browser the new version is available here: LegendsBrowser 2 (http://www.bay12forums.com/smf/index.php?topic=179848.0)
I checked it out, and so far it seems to be more bare-bones than the original, missing a lot of old features, and even not being able to parse data that the old version could. However, I would love to contribute to the project to get it up to snuff (and hopefully make it a viable alternative to Legends Viewer). Is there any way for me to get started with contributions?