OpenXcom Forum
Modding => Work In Progress => Topic started by: robin on November 08, 2014, 02:04:02 pm
-
Is there a limit to how many terrains can be associated with a map?
For example these are the terrains associated to the "URBAN00" map:
ROADS URBITS URBAN FRNITURE
could it also be something like:
ROADS URLOL URMISC URWALL URDOOR URDERP URKEK URFOO URBAR STUFF1 STUFF2 DETAILS SUPERCALIFRAGILISTICEXPIALIDOCIOUS
This of course provided that the total amount (sum) of all the MCDs remains within the limit.
Thanks
-
all mapblockentries entries share the same mapDataSets list
so changing mapDataSets to "ROADS URLOL URMISC ..." for only URBAN00 map(block) is not possible
you can add stuff at the end of the mapDataSets list but the only limit i know of is the 256 mcd entries in all "mapDataSets" entries
i would love to see a code change like this
if (mapheight > 64){
height=mapheight-64
read2bytes=true
}else{
height=mapheight
read2bytes=false
}
took a look at "src/Battlescape/BattlescapeGenerator.cpp"
shouldnt be too hard to do this
problem is convincing warbooy/susuper + mapeditor devs to both allow that
-
the only limit i know of is the 256 mcd entries in all "mapDataSets" entries
That's the limit I know too.
I used URBAN00 just as an example, I'm actually working on new maps.
-
That's the limit I know too.
I used URBAN00 just as an example, I'm actually working on new maps.
Just a drive by fanboy moment: Robin: You are awesome! I love seeing the work that you are doing, and I'm delighted we have such a skilled map maker working in the community!
(https://24.media.tumblr.com/17acbd153573178b71f07604939eeb96/tumblr_ml9okjMs521snmsc7o1_250.gif)
-
It's definately a thing that should (and would) be handled someday.
Just not that (>64) way.
Perhaps using bit7 of the Z
map16bit = mapheight & 0x80;
mapheight &= 0x7f;
There's no problem with adding that into OpenXcom, the main problem is to update map editor to work with that.
-
I have another scary doubt:
The 256 MCD entries limit applies just to the single map file, or also to the whole assembled battelscape map (so the sum of "terrains + ufo + craft" MCDs)?
-
it only applies to the mapblock
you can make a craft using 256 mcd entries
you can make a ufo using 256 mcd entries
you can make a bunch of mapblocks for one terrain using 256 mcd entries
so best case 768 mcd entries in one "real" map
the limit is the map file format (one byte to link mcd entries)
in the oxc code its read as int (at least 2147483648 entries)
with two bytes in a new mapfile format you coudllink 65536 entries per mapblock
that can fill a 90x90 map(block) with height 2 and all tiles have different ground/wall(E/W)/object mcd entries (should be enough :) )
-
Phew, safe. I suddenly noticed I accumulated lots of tiles, and got really scared.