Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 7 8 [9] 10 11 ... 18

Author Topic: World Viewer - Supports Mods + Graphical Map! (8/12)  (Read 68862 times)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #120 on: July 30, 2010, 03:22:03 pm »

Okay, I've just got a "runtime error: Invalid *** argument 5" or something (I don't remember what *** was).

I can upload the world info which caused it.

P.S. It's:
Code: [Select]
Runtime error '5'.
Invalid procedure call or argument

It happens on 85% of XML parsing.

P.S. Here's the world data which is not being parsed.
http://dffd.wimbli.com/file.php?id=2862
« Last Edit: July 30, 2010, 03:28:56 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #121 on: July 30, 2010, 04:54:16 pm »

Okay, I've just got a "runtime error: Invalid *** argument 5" or something (I don't remember what *** was).

I can upload the world info which caused it.

P.S. It's:
Code: [Select]
Runtime error '5'.
Invalid procedure call or argument

It happens on 85% of XML parsing.

P.S. Here's the world data which is not being parsed.
http://dffd.wimbli.com/file.php?id=2862

This forced me to rework a few parts of the program.

V 2.0.1

Your files should now work, and it should support larger xml files.  Still crashes on my 387MB one though.  It appears the way I allocate memory to parse the XML files isn't efficient enough to keep me under some OS (or Visual Basic) memory limit.  I've never had a need to throw around hundreds of MB in a program before though, so this is uncharted territory.  Thankfully there is a lot of memory I can save if I do things smarter.  I didn't bother earlier because I didn't know this limit even existed lol.

Let me know if it works for you and any questions you have.

Edit: I knew it would be a great idea to add the progress % on top, I knew what the problem was before I even ran your files :).
« Last Edit: July 30, 2010, 05:16:47 pm by Mason11987 »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #122 on: July 30, 2010, 05:17:53 pm »

Can you reupload it? I get only 101 kb out of the download.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #123 on: July 30, 2010, 05:24:05 pm »

Can you reupload it? I get only 101 kb out of the download.

Just uploaded it again, but the zip is only 98 KB or so.

Edit - Just downloaded myself and confirmed that it works.
« Last Edit: July 30, 2010, 05:25:37 pm by Mason11987 »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #124 on: July 30, 2010, 05:37:19 pm »

That's what I get



And a couple of other errors like that.

It looks like it doesn't know "site taken over" and "razed structure".

P.S. It would be cool if "filter out" was toggleable, not a one-time action or something. After I clicked filters a bit I was unable to see any site in the "sites" list at all.
« Last Edit: July 30, 2010, 05:42:27 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #125 on: July 30, 2010, 06:47:26 pm »

That's what I get



And a couple of other errors like that.

It looks like it doesn't know "site taken over" and "razed structure".

P.S. It would be cool if "filter out" was toggleable, not a one-time action or something. After I clicked filters a bit I was unable to see any site in the "sites" list at all.

Those events I have noted and they'll be included in some form next version, if only enough to stop that messagebox.

Lol, yeah that was a really early feature I didn't do very well.  I'm not sure how I'll mess with those, but yeah, they've become outdated/irrelevant especially after mod support.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #126 on: July 30, 2010, 07:56:19 pm »

Also note the site plundering event. There may be more.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #127 on: July 30, 2010, 08:44:03 pm »

Also note the site plundering event. There may be more.

I already captured a large number of events, if you can screenshot what comes up it'll help me out though, there can't be that many more.

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #128 on: July 30, 2010, 09:40:23 pm »

V 2.1

  • Added sorting options for regions, entities, and historical figs
  • Fixed bug linking sites to entities
  • Map now has civs expanding out from their original site, which I think is pretty cool
  • Map shows founding entity and founding year
  • site taken over and razed structure events handled, in the case of an undiscovered event coming up during world parsing, a new popup will save text directly to your clipboard so you can easily post and share here.
  • Added kill counts and kill filters
  • Added option to undo filters per Deon's request
  • Added some summary information to the World Data tab that might be interesting.

Spoiler: Kills record! (click to show/hide)
Spoiler: World Data (click to show/hide)
« Last Edit: July 31, 2010, 02:27:36 am by Mason11987 »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #129 on: July 31, 2010, 03:45:30 am »

You work really fast. Thank you very much.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

timtek

  • Bay Watcher
  • I <3 Tacos
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #130 on: July 31, 2010, 03:46:16 am »

Just tried version 2.1 of the world viewer. It got 61% of the way through world parsing and crashed out 50% of the way through the xml file. run time error 9: subscript out of range. my xml file is 263 MB (275,906,100 bytes). Hope this info helps ya out.
Logged
My fortress brings all the dorfs to mah yard...

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #131 on: July 31, 2010, 05:49:52 am »

Just tried version 2.1 of the world viewer. It got 61% of the way through world parsing and crashed out 50% of the way through the xml file. run time error 9: subscript out of range. my xml file is 263 MB (275,906,100 bytes). Hope this info helps ya out.
Getting that even on a pocket world, so size isn't an issue here. Might be unhandled events?

Hmm, the program states it is at Parsing Events (3218) - 93%. Event id stops 3310 and starts at 93. Seems to point at around ~3084, but there doesn't seem to be a particularly odd event in the area.

I'll try to generate another pocket world, and will probably upload them to the DFFD if I can't figure it out.

Uploaded.
« Last Edit: July 31, 2010, 06:04:15 am by Knight Otu »
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #132 on: July 31, 2010, 09:02:10 am »

Just tried version 2.1 of the world viewer. It got 61% of the way through world parsing and crashed out 50% of the way through the xml file. run time error 9: subscript out of range. my xml file is 263 MB (275,906,100 bytes). Hope this info helps ya out.

Yeah, I have an idea where that's coming from, and is expected for larger files.  My next fix (today?) will either deal with bigger files (I have a 400MB I test with) and work or gracefully fail and reduce functionality if it can't handle events.  Both of these would be far better then a failure like that.

Just tried version 2.1 of the world viewer. It got 61% of the way through world parsing and crashed out 50% of the way through the xml file. run time error 9: subscript out of range. my xml file is 263 MB (275,906,100 bytes). Hope this info helps ya out.
Getting that even on a pocket world, so size isn't an issue here. Might be unhandled events?

Hmm, the program states it is at Parsing Events (3218) - 93%. Event id stops 3310 and starts at 93. Seems to point at around ~3084, but there doesn't seem to be a particularly odd event in the area.

I'll try to generate another pocket world, and will probably upload them to the DFFD if I can't figure it out.

Uploaded.


Knight Otu,

Fixed both the same way, thanks!

Spoiler: Details (click to show/hide)

Mel_Vixen

  • Bay Watcher
  • Hobby: accidently thread derailment
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #133 on: July 31, 2010, 09:53:21 am »

Cant you parse the Xml in chunks, sort the info and offload everything to own files? This way you dont need to keep everything in your memory.
Logged
[sarcasm] You know what? I love grammar Nazis! They give me that warm and fuzzy feeling. I am so ashamed of my bad english and that my first language is German. [/sarcasm]

Proud to be a Furry.

Mason11987

  • Bay Watcher
    • View Profile
Re: World Viewer - Supports Mods + Graphical Map! (7/30)
« Reply #134 on: July 31, 2010, 10:42:34 am »

Cant you parse the Xml in chunks, sort the info and offload everything to own files? This way you dont need to keep everything in your memory.

Yeah, that's what I'm inevitably going to do.  In the meantime my next update has some improvements which should prevent many crashes due to size, that way you can get the map, and lists of regions/historical figures/entities, even if it doesn't have very much info about them (due to skipping events because they are almost all of the XML files)
Pages: 1 ... 7 8 [9] 10 11 ... 18