aliens

Author Topic: MAPVIEW upgrade  (Read 259551 times)

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #525 on: January 11, 2022, 07:10:42 pm »
no worries,

will look into it if/when i get a chance,

[edit]
oh sweet. Am getting toolstrip buttons to operate on firstclick when the window is inactive. eg. "Options" btn

that always annoyed me ...

[edit2]
bingo. Got TopView to accept 1-click placement (or single/double-click whatever). gimme a day or two to package a release ...

[edit3]
found some more ui-anomalies to plonk away at ...
« Last Edit: January 15, 2022, 03:35:06 am by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #526 on: January 18, 2022, 09:33:39 am »
2022 jan 18

https://github.com/kevL/OpenXCOM.Tools/releases/tag/220118

- mainly address the issue of .net's ToolStrip control ignoring a mouseclick when its parent window is inactive.
- TopView had the same issue except for different reasons.

The fix has not been extensively tested (nor tested when built against Mono at all) and although i don't expect probs, lemme know if anything glitches out,

Offline luke83

  • Commander
  • *****
  • Posts: 1558
    • View Profile
    • openxcommods
Re: MAPVIEW upgrade
« Reply #527 on: January 21, 2022, 08:41:42 am »
Hello,
  Just working on a little something something and getting this exception.... Good to see your still maintaining this  :P

Note: im  thinking as i was being  last and didn't make RMP maps for some new blocks, that this might be causing the error, well at least that's my current thought.
« Last Edit: January 21, 2022, 09:01:30 am by luke83 »

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #528 on: January 21, 2022, 09:26:28 am »
hey Luke, good to hear from ya,

Are you using the latest build? (i addressed very similar errors over the past few months)

a missing RMP file shouldn't matter; iirc. It's highly unlikely to be related to the error ... MainView doesn't care about routes.

if the newest release (i changed the download to github itself, btw) is borking, will need a link to your mapfile etc ...



from the stacktrace i notice this is a pseudo-known .net issue ... MainViewOverlay.DrawTile() should be calling a function MainViewOverlay.DrawSprite() before the Graphics.DrawImage() call ...

while i've seen it before, no one seems to have a good explanation of it,


anyway, try the latest and/or perhaps get in touch by PM so we can poke this.
« Last Edit: January 21, 2022, 09:36:31 am by kevL »

Offline luke83

  • Commander
  • *****
  • Posts: 1558
    • View Profile
    • openxcommods
Re: MAPVIEW upgrade
« Reply #529 on: January 23, 2022, 12:07:43 am »
i assume its the newest build, i still think it was the routes as I got sick of the errors and fixed it and (so far) have not had the same error again ( but i have not done much in the past 24 hours), will let you know for sure once I do a few more map blocks.

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #530 on: January 23, 2022, 01:55:34 am »
yep that's the latest. Did you fix it simply by creating .RMP file(s) ?

am going to try to reproduce it here, i don't like the app thowing that error ...

[edit]
dang can't repro... Map loads fine here without any RMP file.
« Last Edit: January 23, 2022, 10:06:54 pm by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #531 on: March 16, 2022, 08:52:07 am »
MapView 4.3.0.0
- x2 scale button for RouteView

https://github.com/kevL/OpenXCOM.Tools/releases/tag/220315

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #532 on: March 26, 2022, 08:59:15 pm »
McdView 4.1.1.0
- bugfix: clear selected id when a terrain loads, before its parts are
  instantiated not after. Else the tilepanel could try to scroll to a part past
  a terrain's total parts id.

https://github.com/kevL/OpenXCOM.Tools/releases/tag/220326

Offline Delian

  • Colonel
  • ****
  • Posts: 240
    • View Profile
Re: MAPVIEW upgrade
« Reply #533 on: April 29, 2022, 03:35:19 pm »
I tried opening one of the PCK files using PckView and got an error: "File data overflow a sprite's length."

This is a valid PCK file and is used in one of the mods without a problem. But PckView and consequently MapView2 give me an error if I try opening a map/terrain that uses such a PCK file.

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #534 on: April 29, 2022, 03:42:45 pm »
does it have a .TAB file? If so pls link it also

PckView doesn't open .PCK files unless they have a .TAB file ...

Offline Delian

  • Colonel
  • ****
  • Posts: 240
    • View Profile
Re: MAPVIEW upgrade
« Reply #535 on: April 29, 2022, 03:56:50 pm »
It has a TAB file.

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #536 on: April 29, 2022, 05:03:21 pm »
Tks, will have a look

[edit]
corrupt TAB file, try this one


I tried opening one of the PCK files using PckView and got an error: "File data overflow a sprite's length."

This is a valid PCK file and is used in one of the mods without a problem. But PckView and consequently MapView2 give me an error if I try opening a map/terrain that uses such a PCK file.

perhaps because OxC/e doesn't use the TAB files (idk). They're redundant but MapView2 / PckView will continue to use TAB files.
« Last Edit: April 29, 2022, 06:51:49 pm by kevL »

Offline Delian

  • Colonel
  • ****
  • Posts: 240
    • View Profile
Re: MAPVIEW upgrade
« Reply #537 on: April 29, 2022, 07:39:03 pm »
Corrupt in what way?

I can't say for sure either, but all the PCK files have cooresponding TAB files. Maybe you could improve the error handling of PckView, so that despite errors in the tab files, it's still able to load the PCK file anyway?

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #538 on: April 29, 2022, 08:45:41 pm »
the highlighted data in first screenshot is the 7th sprite in the PCK file, the 8th sprite begins at offset 0x0c0b ... but the second screen shot shows the offset of the 8th sprite in the TAB file as 0x0c06

0c06 != 0c0b

All of the remaining offsets are borked also ...

I have a small routine that rewrites TAB files, but it's not robust enough for general use. At some point i might put in an option to rewrite the TAB file if my time and health permit,

Offline kevL

  • Colonel
  • ****
  • Posts: 466
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #539 on: May 02, 2022, 12:25:15 am »
woohoo! no auto-rewrite routine (yet?) but better error messages

(not committed to repo atm)

yeh i was getting fed up with the other cr*p i was working on ...