aliens

Author Topic: MAPVIEW upgrade  (Read 150336 times)

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #495 on: February 20, 2020, 03:31:40 am »
( this could be interesting )

Offline hellrazor

  • Commander
  • *****
  • Posts: 1966
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: MAPVIEW upgrade
« Reply #496 on: February 20, 2020, 03:46:30 am »
( this could be interesting )

Well!!! See for yourself:

The Routeview window seems strange, maybe not drawing correctly?

Operating system Ubuntu 14.04 here on my Laptop. Will also work on the Desktop, compilation there worked ;)
And thanks so much for making it look really good and useable. Looking forward to spam MAPS!!
« Last Edit: February 20, 2020, 03:50:49 am by hellrazor »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #497 on: February 20, 2020, 04:23:20 am »
holy serious RouteView shenanigans batman!

good job on the build, though. :)


here is the core function that draws the gridlines in RouteView ->

MapView/Forms/Observers/RouteView/RoutePanel.cs
DrawGridLines()

if you want to play with it idk.


note: HalfWidth and HalfHeight are (non-trivially) variables used to translate between cartesian and isometric coordinates ... but offhand i don't have a clue what's going on




EDIT: It might be the PixelOffsetMode on line #138

Code: [Select]
    _graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

ie, try a different mode ... like none or half ...
« Last Edit: February 20, 2020, 04:46:43 am by kevL »

Offline hellrazor

  • Commander
  • *****
  • Posts: 1966
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: MAPVIEW upgrade
« Reply #498 on: February 20, 2020, 04:49:36 am »
holy serious RouteView shenanigans batman!

good job on the build, though. :)


here is the core function that draws the gridlines in RouteView ->

MapView/Forms/Observers/RouteView/RoutePanel.cs
DrawGridLines()

if you want to play with it idk.


note: HalfWidth and HalfHeight are (non-trivially) variables used to translate between cartesian and isometric coordinates ... but offhand i don't have a clue what's going on




EDIT: It might be the PixelOffsetMode on line #138

Code: [Select]
    _graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

ie, try a different mode ... like none or half ...

I think it has to do with the size of the window Routeview is drawn in.
I will have to run some tests while actually making some maps.
then i will see what issues come up.

In any case dude!!
You made me extremly happyQ!!!!!

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #499 on: February 21, 2020, 12:21:18 am »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #500 on: February 22, 2020, 01:04:55 pm »
2020 feb 22

https://github.com/kevL/OpenXCOM.Tools/blob/master/Distribution/README.md

have at it. Let me know if i goofed ...

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: MAPVIEW upgrade
« Reply #501 on: February 23, 2020, 02:47:20 pm »
The coordinates are now displayed starting with 0; thank you!

Is there anything else new to check?

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #502 on: February 23, 2020, 03:25:17 pm »
MainView|Edit|Options|Global|IgnoreRecordsExceeded = true

(default is false, you'll want it true i believe)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: MAPVIEW upgrade
« Reply #503 on: February 23, 2020, 06:44:27 pm »
Ah, right. Works perfectly. Thanks again!

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #504 on: November 26, 2020, 12:58:03 am »
heh - partids detected in the Mapfile that exceed the bounds of the allocated terrainset
« Last Edit: November 26, 2020, 11:25:43 am by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #505 on: December 07, 2020, 12:17:14 am »
2020 dec 7

https://github.com/kevL/OpenXCOM.Tools/tree/master/Distribution

Please read the changes, back up your files, and report bugs.


found a bug re. tilepart deletion in TopView, pls wait ...

gtg!

found another one wrt/ tile placement at the top of the set ... looks tricky atm. pls wait

done, take 3 : https://www.youtube.com/watch?v=nzpnWuk3RjU
« Last Edit: December 07, 2020, 11:52:03 pm by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #506 on: July 02, 2021, 08:42:45 pm »
helloo,

Can someone who owns both UFO and TFTD tell me if the files CURSOR.PCK and CURSOR.TAB are *identical* in both games' UFOGRAPH folders?

if not, id appreciate a link to TFTD's cursor.pck/tab files ...


I want to put in a user-pref for which spriteset to use, in Mv2

all i could find on Ufopaedia.org is
https://www.ufopaedia.org/index.php/CURSOR.PCK
https://www.ufopaedia.org/index.php/Image_Formats#PCK


EDIT; I think i got it covered ...
« Last Edit: July 13, 2021, 06:44:13 am by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: [NEW request] Import from mod rule file
« Reply #507 on: July 13, 2021, 06:43:27 am »
from an old post

Hi Kevl,
i wish a new  import function in mapview to select a mod rule file and automatically load tilesets with ufo, terrain and craft maps (or 3 different actions to do it).

Code: [Select]
ufos:
  - type: STR_SURVEY_SHIP
    sprite: 1
    battlescapeTerrainData:
      name: UFO02
      mapDataSets:
        - BLANKS
        - UEXT2
        - UEXT3
        - UINT1
        - UINT2
        - UINT3
      mapBlocks:
        - name: UFO02
          width: 10
          length: 10
        - name: UFO02bl1
          width: 10
          length: 10
        - name: UFO02bl2
          width: 10
          length: 10
        - name: UFO02bl3
          width: 10
          length: 10
....

the rule file would enhance the maptilesets

Code: [Select]
#----- tftdShips --------------------------------------------------------------#
#----- USO --------------------------------------------------------------------#
  - type: UFO02
    terrains:
      - UEXT2
      - UEXT3
      - UINT1
      - UINT2
      - UINT3
    category: USO
    group: tftdShips_TWoTS
  - type: UFO02l1
    terrains:
      - UEXT2
      - UEXT3
      - UINT1
      - UINT2
      - UINT3
    category: USO
    group: tftdShips_TWoTS
...

When import a rule file you could create a new group name by path segment.

the RulesetConverter.exe ought handle this. It outputs any terrains found in a specified .RUL file to a .TPL (template) file -- converting the metadata from OxC-format to MapView2 format. Look in the latter and copy what you want into your settings/MapTilesets.yml ...


EDIT: oh wait, that's "ufos" -- will look into it ... (and "crafts")

edit2: ok, next release (or currently on Github), user can select "terrains", "crafts", or "ufos" and the RulesetConverter should parse the data out to Mapview2 metadata format. I've been jabbing away at ver4 code lately ...
« Last Edit: July 14, 2021, 06:37:20 pm by kevL »

Offline kevL

  • Colonel
  • ****
  • Posts: 371
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #508 on: August 24, 2021, 07:43:42 am »
time to unleash this. I put a whackload of manhours in (again :)_~

There's a few minor fixes, but I wasn't keeping track ... there's a lot of
underlying code changes so things could screw up. Perhaps a couple of minor
enhancements i forget.

oh, PckView ought handle LOFTEMPS.DAT

So, for the time, consider this BETA version! Ie. if you back up your stuff
(MAPS,ROUTES,TERRAIN folders) and aren't afraid of glitches etc.

Paranoid usage: backup your current installation of Mapview2 by appending an
underscore to the label of its root folder. Unzip this version alongside it.
Copy your current MapTilesets.yml file into /settings. There are some
MapOptions.cfg changes that might bork on first run ... just keep yer eye on the
ball and things should be ok.


Pls report any weirdness (after trying to resolve it on your end ;),

on the other hand if you're happy with your current version of Mapview2 then
just hold tight


https://github.com/kevL/OpenXCOM.Tools/tree/master/Distribution

Offline Grober Nitho

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: MAPVIEW upgrade
« Reply #509 on: August 25, 2021, 05:06:36 pm »
time to unleash this. I put a whackload of manhours in (again :)_~

There's a few minor fixes, but I wasn't keeping track ... there's a lot of
underlying code changes so things could screw up. Perhaps a couple of minor
enhancements i forget.

oh, PckView ought handle LOFTEMPS.DAT

Thank you, I'm downloaded, will trying today. I hope will good and usefull.

Working without problem, thank you again. This version is wonderfull.
« Last Edit: August 26, 2021, 01:21:51 pm by Grober Nitho »