OpenXcom Forum

Modding => Help => Topic started by: Barghum on March 17, 2024, 03:18:20 am

Title: [SOLVED] need help with these map files.
Post by: Barghum on March 17, 2024, 03:18:20 am
I am making an XCF https://openxcom.org/forum/index.php?board=21.0 (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.
Title: Re: need help with these map files.
Post by: Nord 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?
Title: Re: need help with these map files.
Post by: CrazedHarpooner 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.
Title: Re: need help with these map files.
Post by: Barghum 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  :)
Title: Re: need help with these map files.
Post by: Solarius Scorch 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.