OpenXcom Forum

Modding => Work In Progress => Topic started by: bulletdesigner on May 16, 2017, 04:36:35 pm

Title: 50 x 30 ufo map size
Post by: bulletdesigner on May 16, 2017, 04:36:35 pm
i hate to be the one putting out these simple questions that maybe someone as answered before. so bear with me
its simple i made a 50 x 30 cathedral , i want to use it was an UFO so the environment may vary
(https://thumb.ibb.co/knkCmQ/CAT.gif) (https://ibb.co/knkCmQ)
but i guess UFO only works as 30x30 map, in mapdeploy data i made 60x60 ( a lot of space still to insert 30x50) map still no cathedral appear, also the height is capped to 4 so it do no conflict with other terrain blocks 
Why it won´t work? can it work?
Title: Re: 50 x 30 ufo map size
Post by: Meridian on May 16, 2017, 04:44:54 pm
but i guess UFO only works as 30x30 map

UFOs can also be rectangular, I just debugged a 50x20 UFO in XcomFiles earlier today.
https://openxcom.org/forum/index.php/topic,5047.msg83102.html#msg83102

Why it won´t work? can it work?

It can work.
I don't know why it doesn't work in your case... I can help debug if you can't solve it... but I will need a snapshot of your entire mod (and a save just before landing if possible; or New Battle settings).
Title: Re: 50 x 30 ufo map size
Post by: bulletdesigner on May 16, 2017, 05:32:54 pm
to be honest i made no map script, since it worked on the other ufo i created using the 30x30, they deploy vanilla script , so that´s the problem i think  if i make the new script, i need to script all terrain types with a diferent name and define other data like zone and world dat that i´m not into yet. But That way i have no problem since i have made other maps with 30 x 70 work fine, but i have to make a diferent map for all terrain types ( for what i see made in other mods, and maybe that´s the reason behind)
Title: Re: 50 x 30 ufo map size
Post by: Meridian on May 16, 2017, 05:47:21 pm
I didn't say you need a new script.
I just said it works (and should work with existing scripts too).

But I need more info to say more...
Title: Re: 50 x 30 ufo map size
Post by: bulletdesigner on May 16, 2017, 08:12:44 pm
Meridian sorry about the mess , just made it work , was a line not introduced, works fine now , noticed when i was copy pasting rullset´s to send
Title: Re: 50 x 30 ufo map size
Post by: Hobbes on May 16, 2017, 09:17:27 pm
If you need any help getting maps to work just drop me a line :)

Nice cathedral btw
Title: Re: 50 x 30 ufo map size
Post by: ohartenstein23 on May 16, 2017, 09:23:27 pm
By the way, if you're using OXCE/OXCE+, you don't need to turn the map into a UFO in order to place it on different terrains, this was one of the features of the vertical/alternate terrain code.  If you have the cathedral in it's own terrain, you can add it by the addBlock mapscript:

Code: [Select]
mapscripts:
  - type: [Some terrain name]
    commands:
    - type: addBlock
      verticalLevels:
      - type: ground
        groups: 0
        size: [1, 1, 0]
      - type: middle
        terrain: [Name of Cathedral's terrain]
        maxRepeats: 1
Title: Re: 50 x 30 ufo map size
Post by: bulletdesigner on June 19, 2017, 05:36:32 pm
By the way, if you're using OXCE/OXCE+, you don't need to turn the map into a UFO in order to place it on different terrains, this was one of the features of the vertical/alternate terrain code.  If you have the cathedral in it's own terrain, you can add it by the addBlock mapscript:

Code: [Select]
mapscripts:
  - type: [Some terrain name]
    commands:
    - type: addBlock
      verticalLevels:
      - type: ground
        groups: 0
        size: [1, 1, 0]
      - type: middle
        terrain: [Name of Cathedral's terrain]
        maxRepeats: 1

you made me interested in this vertical map option, i´m planning to add tank´s (1x1 map using terrorists units ) and crafts (1 x 1 map using civilian), and that´s seems the way to go add a map with a craft and a separated with a tank on several map´s


also thank for help all people on thread