Bay 12 Games Forum

Please login or register.

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

Author Topic: DwarfFamily  (Read 40738 times)

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #15 on: October 18, 2013, 09:09:37 am »

I will look into it, but its unlikely, that its a parsing bug, thats the kind of problems, that the xml has.
Logged

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #16 on: October 18, 2013, 11:24:26 am »

1) I switched to StAx from DOm for the XML reading and that improved the speed extremly. It also solved the memory overflow.
2) i found the error in the xml dump:
<historical_figure>
      <id>-100</id>
      <name>autochop/config abbeybrew</name>
      <appeared>0</appeared>
      <birth_year>0</birth_year>
      <birth_seconds72>0</birth_seconds72>
      <death_year>0</death_year>
      <death_seconds72>0</death_seconds72>
      <breed_id>0</breed_id>
   </historical_figure>

Anyone knows what that is, and why it is in there?
Logged

Ruhn

  • Bay Watcher
  • Adept Dwarf
    • View Profile
Re: DwarfFamily
« Reply #17 on: October 18, 2013, 12:42:27 pm »

If that is the only entry with a negative ID#, I would say it is hard coded to trigger special logic within DF?
You could add your own hard code to ignore that (if every game has the same entry).

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #18 on: October 18, 2013, 12:46:40 pm »

The point is as far as i noticed it only appears in already played worlds. In newly generated ones its not in there.
Also i cant hard code an exception there, because my xml api doesnt recognize the file as UTF-8 anymore cause of this.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DwarfFamily
« Reply #19 on: October 18, 2013, 02:06:24 pm »

That's code left by DFHack's persistent configuration. You'll want to just have it parse figs with positive IDs.

autochop/config abbeybrew means that it's the settings for autochop in the fortress called abbeybrew.

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #20 on: October 18, 2013, 02:24:44 pm »

Yea apparently that wasn't the problem for the missencoding ::)
I just settled on reencoding all the legends xmls to ISO and now everything works.

Is there any special place where i should upload a first test version?
Logged

Sallen

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #21 on: October 18, 2013, 06:11:01 pm »

I'd say the first post on this thread is as good a place as any. If you don't want to use Dropbox or something like that I can host it on my web server.

EDIT: I will probably begin work on the visualization this Sunday. Now that I finally got my home computer to behave like it should.
« Last Edit: October 18, 2013, 06:32:44 pm by Sallen »
Logged

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #22 on: October 18, 2013, 07:20:25 pm »

The program still has a problem with large xml files, but i dont know what the problem is. All the dwarfs get read but the linking doesnt happen o.O
Logged

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #23 on: October 19, 2013, 11:12:45 am »

Found the error, apparently i had so many integers, that java decided to use different objects for same numbers. Ok so this version is testing ready, just need a place to upload now.
Logged

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #24 on: October 19, 2013, 11:47:02 am »

Ok Edit on Entry Post, have fun testing ;-)
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: DwarfFamily
« Reply #25 on: October 27, 2013, 01:40:17 pm »

Good luck with this, it sounds great for succession forts. :)

Maybe you could add a screenshot to the first post, as an example of how the finished product would look for the player.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Morphyum

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #26 on: October 27, 2013, 03:53:44 pm »

Sadly there's not much to screenshot yet, since the output is only a file. How it looks depends on the program you use to open the file.
Logged

Sallen

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #27 on: October 31, 2013, 04:59:12 pm »

Good luck with this, it sounds great for succession forts. :)

Maybe you could add a screenshot to the first post, as an example of how the finished product would look for the player.

I'm sorry. I am supposed to be working on an in-house data visualizer, but sadly my day job has been keeping my hands full. No matter how hard I work there's always more waiting for me >.<

I have not forgotten about this. As soon as I'm able I will dig into it.

rmblr

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #28 on: November 03, 2013, 05:30:52 am »

I couldn't find the github link in this thread, but searching github revealed it :)

https://github.com/Morphyum/DwarfFamily
Logged

rmblr

  • Bay Watcher
    • View Profile
Re: DwarfFamily
« Reply #29 on: November 03, 2013, 06:08:00 am »

Hm, the XML parser is blowing up on some "invalid" unicode characters in my legends XML.

They might be values saved by dfhack, I'm not sure. Anyone encountered this?
Logged
Pages: 1 [2] 3 4 5