Author Topic: [SOLVED] need help with these map files.  (Read 2027 times)

Offline Barghum

  • Captain
  • ***
  • Posts: 61
  • Doing my best to help (:
    • View Profile
[SOLVED] need help with these map files.
« on: March 17, 2024, 03:18:20 am »
I am making an XCF https://openxcom.org/forum/index.php?board=21.0 Submod and am almost done.

however 2 map files have been bugged

here is the code:

Code: [Select]
terrains:     
  - name: URBAN
    addOnly: true
    mapDataSets:
      - BLANKS
      - ROADS
      - URBITS
      - URBAN
      - URBAN_MARKET     
      - FRNITURE
      - MADDECOR
      - ADVENT_MEDICINE
      - CYBERWAREEXTRA
    script: URBAN
    mapBlocks:
      - name: TATOO_REMOVAL_SHOP # Tatoo Removal Shop by Barghum (I know it's crap but its needed for the mod.)
        width: 10
        length: 10   
        items:
          STR_LASING_MEDIUM:
            - [2, 3, 0]     
          STR_MONEY_5000:
            - [4, 6, 0]     
      - name: LASER_LAB_CITY # Laser testing lab by Barghum (I know it's illogical but its needed for this... thing)
        width: 10
        length: 10   
        items:
          STR_LASING_MEDIUM:
            - [5, 5, 1]     

screenshot and map files below.
« Last Edit: April 05, 2024, 03:37:01 am by Barghum »

Offline Nord

  • Commander
  • *****
  • Posts: 1747
  • The Gate is open.
    • View Profile
Re: need help with these map files.
« Reply #1 on: March 17, 2024, 08:56:17 am »
Apparently, the terrains list which you use to create new map block is not equal to
Code: [Select]
      - ROADS
      - URBITS
      - URBAN
      - URBAN_MARKET     
      - FRNITURE
      - MADDECOR
      - ADVENT_MEDICINE
      - CYBERWAREEXTRA
Which editor do you use for mapmaking?

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 101
    • View Profile
Re: need help with these map files.
« Reply #2 on: March 17, 2024, 11:33:50 am »
Yes, the mapDataSets MUST be declared in the same order as it was done in the editor used, otherwise you will just shuffle the MCD indexes.

Offline Barghum

  • Captain
  • ***
  • Posts: 61
  • Doing my best to help (:
    • View Profile
Re: need help with these map files.
« Reply #3 on: March 17, 2024, 05:25:41 pm »
Quote
Which editor do you use for mapmaking? ~Nord
MapView 2 the info you gave me about MCD was the answer
thank you for the help  :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: need help with these map files.
« Reply #4 on: March 20, 2024, 04:00:56 pm »
Also make sure you don't place on your map any tiles with index above 253 (I believe, or very similar). You can have more tiles in your tileset(s), but anything above 253 should be a death tile (used when you destroy some other tile).

Not 100% sure about 253, maybe it's 252 or even 254.

If you ignore this rule, your map will be saved, but won't work correctly in the game - the problematic tiles will disappear.

Offline Barghum

  • Captain
  • ***
  • Posts: 61
  • Doing my best to help (:
    • View Profile
Re: [SOLVED] need help with these map files.
« Reply #5 on: May 31, 2024, 12:29:34 am »
PROBLEM SOLVED THANK YOU  :)