Jump to content

UFO Terrain Mod


Hobbes

Recommended Posts

Hi, this is Dawn City, a replacement terrain for UFO Defense Terror Sites. It was developed from a terrain originally created for UFO2000.

 

To install, first make a backup copy of the /MAPS, /ROUTES and /TERRAIN subfolders on the UFO Defense folder. Afterwards simply unzip the attached file you to the main UFO folder and answer Yes to replace all the files. All new Terror Sites will now use the new terrain instead.

 

Dawn City Terror Site Release.zip

post-503-1330289228_thumb.pngpost-503-1330289232_thumb.png

post-503-1330709447_thumb.pngpost-503-1330709427_thumb.png

post-503-1330709432_thumb.pngpost-503-1330709440_thumb.png

 

Features

grin.gif The roads have been replaced by rows of warehouses and apartments with 3 levels.

wink.png All maps are new or redesigned.

wink.png Terrain is harder to destroy, like Port on Terror From The Deep.

argh.gif Almost all spawn points are active - aliens start more randomly scattered around the Battlescape.

argh.gif Power blackout - none of the terrain lights work.

argh.gif To further increase the difficulty I strongly suggest you install kyrub's alien AI patch. It becomes more fun (and deadly...)

 

UPDATE (June 6th) - Dawn City released, no more releases planned unless for bug fixes. Rest of the project to replace terrains stopped (lack of time).

Link to comment
Share on other sites

Maybe put canyons in the desert, and turn the mountains into more of a sloped area. Jungle could be made denser, something you really need to hack your way through perhaps.

 

Sloped area? More like the elevations on Desert and Forest?

 

The problem with making maps too dense is that the aliens won't be able to more around as well and they will create bottlenecks that an expert player will be too eager to use.

 

One of my ideas for instance is to switch the X-COM base into a ground structure rather than a subterranean one, and turn the unbuilt areas into open areas. That way it should be harder to defend your base since the aliens will also be able to use those areas for movement.

 

I've attached images of the Dawn City, Area51 and Native terrains for some visualization.

post-503-1326122727_thumb.png

post-503-1326122738_thumb.png

post-503-1326122909_thumb.png

Link to comment
Share on other sites

Re the slope thing, I was talking about the entire map - have, say, the south edge at level 0, then as you get further north, force things upwards until the final northern edge reaches level 3. But when I think about it, this design would force the craft to be situated in craters of some sort, which may look at least a bit odd where battleships are involved.

 

Putting an X-COM base above land may also be tricky, at least, if you want buildings of any respectable height. I can't remember how many tiles EU lets you stick in a single map but I'm pretty sure a 60x60x4 map is only possible in TFTD, for example... Though I've never tested this out personally and suspect CE may remove this limitation.

 

Once upon a time I experimented with maps with more then four levels - it'd be fun to romp up a tall, thin skyscraper or something. Was able to get them to work to an extent, but for whatever reason they caused the graphics to glitch like mad.

Link to comment
Share on other sites

Re the slope thing, I was talking about the entire map - have, say, the south edge at level 0, then as you get further north, force things upwards until the final northern edge reaches level 3. But when I think about it, this design would force the craft to be situated in craters of some sort, which may look at least a bit odd where battleships are involved.

 

Putting an X-COM base above land may also be tricky, at least, if you want buildings of any respectable height. I can't remember how many tiles EU lets you stick in a single map but I'm pretty sure a 60x60x4 map is only possible in TFTD, for example... Though I've never tested this out personally and suspect CE may remove this limitation.

 

Once upon a time I experimented with maps with more then four levels - it'd be fun to romp up a tall, thin skyscraper or something. Was able to get them to work to an extent, but for whatever reason they caused the graphics to glitch like mad.

 

I see what you mean by sloped and I think it won't work because each map part is placed randomly. You'd get some very weird shapes...hmmm may be interesting hehehehe.

I'll have to stick to the game limits, which mean that X-COM bases will be 60x60x2. It may sound weird to only have 2 levels above land but if you look at the maps nearly all of the fighting is done on the first 2 levels and that's what you usually 'see', unless you are using fly suits.

I haven't really looked into detail of how the buildings will be disposed because right now I'm trying to figure out on how to replace the roads on the Terror Sites with lines of apartment buildings. I still need to do a lot of testing though :)

More than 4 levels is impossible for the engine to handle I believe. And the bigger the buildings the longer it takes to move through them.

Link to comment
Share on other sites

For what it's worth, I've built my own map generator for the purpose of correctly loading EU maps into TFTD. It could easily be adapted to place any modules according to whatever rules are desired.

 

I've used XComUtil's map generator quite a bit before to use 40x40x4 maps (like the HWP Factory) but the manual prompt (and XComUtil) take time and can be tricky for people who never used it. Right now I'm definitely more inclined to just replace the original map and terrain files with new ones.

 

Speaking of which, I've just made a possible layout to use the road creation definitions on the terror site to make lines of apartment buildings. I've attached them if you want to have an idea. The last image is of the 'crossroads' map.

post-503-1326163563_thumb.png

post-503-1326163574_thumb.png

post-503-1326163582_thumb.png

Link to comment
Share on other sites

Impressive idea and implementation. Still, can't help but cringe at the idea of searching through such a complex - puts me in mind of those shipping missions I grew to hate. :S Though I can't see inside at the moment, so I dunno how long it'd take to clear each section.
Link to comment
Share on other sites

Impressive idea and implementation. Still, can't help but cringe at the idea of searching through such a complex - puts me in mind of those shipping missions I grew to hate. :S Though I can't see inside at the moment, so I dunno how long it'd take to clear each section.

 

It won't be as big as the shipping missions - it depends if you have a E, N, or an N and R roads and the inside of those buildings needs to be open. The rest of the map blocks will be clear - I think I found a way last night to add roads, which will definitely be necessary since the Dawn tileset has a car and a van.

 

And if it's still too big and you don't feeling like searching through such a complex... explosives should work nicely there, unlike the ships. :)

Link to comment
Share on other sites

Your work is really cool, it would be great if it could be supported by OpenXcom in future versions.

 

Hey. Just looked at OpenXcom, I remember when Supsuper started posting about it at the beginning. It looks really interesting if you guys finish it (the usual problem) and using these mods should be really easy. In fact, I'm guessing many of the limitations of the original game concerning maps shouldn't exist, so you should be actually be able to use even better maps.

Link to comment
Share on other sites

OK, just been trying out some more stuff regarding the roads. They will only have one direction (either North or East) but I haven't decided upon it yet because of the Dawn City graphics (converting them to X-COM image format doesn't turn out always well). Anyways, here's how it looks right now.

My question is if I should retain the current direction (which means that you'll be taking cover on those nice sport cars) or change it and instead of cars you'll see the white van (you'll see both on the terrain - the question is where exactly). Or I could also try swapping the direction of the van so that you'll see both on the street.

 

Edit: Just tried and saw Dawn City's graphics for the first time in UFO (I had only seen them on the Map Editor and UFO2000)... check the pics :)

post-503-1326218519_thumb.png

post-503-1326226551_thumb.png

post-503-1326226559_thumb.png

Link to comment
Share on other sites

Hi Hobbes,

the screens look great, as aleays. I cannot wait for the whole maps.

 

---------

 

Here is some scattered info, that might help you and widen the options (although I have no idea if you want to fiddle with the executable). Use at your own will.

 

1) There is a conversion table in EXE file where WORLD.DAT terrain number is translated into "what terrain shall we see at the battlescape". The world.dat uses 12 types of terrain structure, so the table has just 12 entries. It starts at the address 0x743FC in UFO CE version

 

0200 = forest / jungle

0100 = farm

0100

0100

0100

0700 = mountain

0200 = forest / jungle

0600 = desert

0600

0800 = arctic

0000 = jungle (??)

0200 = forest (unused)

0800 = arctic

 

This could be good to make farm (or native) terrain less overwhelming (see Wiki terrrain talk page for %), and mountains and probably desert should be present more (and / or you may change world.dat for mountains as well, since they seem to deny world geography in vanilla UFO).

 

 

 

2) you may increase the variety of terror city terrain (or any other) and/or change the odds of a map chunk appearing.

 

a) The big maps (2x2) are randomized at 0x4E5A1 (4) and 0x4E5B3 (5), in form of Number of map = RNG (4) + 5. That will choose any big map between 5...9. Changing those numbers allows more big maps appearing (if you want to).

 

b) The 1x1 terror city maps. Even better, these have a table at 0x72C84

0E 0F 10 11 12 03 04 0E 0F 10 11 12 03 03 04 04

from which the game randomly chooses. The maps 03,04 with no building are the most likely to show up. The maps 14...18 less so. Changing these numbers will give you a possibility of variation in between 15 maps, instead of current 6 maps. The table may be even extended easily to contain many more entries.

 

 

3) similar work can be done for all other terrains. DOS version addresses can be found easily as well, in case you are interested.

 

 

Hope that helps,

kyrub

Link to comment
Share on other sites

The textures that lead to forests or jungle do so depending on which hemisphere they're located in. Forests up north, jungles down south. It may be that messing with that conversion table can override that, dunno.

 

Great to see that terror site module selection table - I thought there'd be some bias there, but I'd've had to crunch a lot of numbers to work it out myself. :)

Link to comment
Share on other sites

Hi Hobbes,

the screens look great, as aleays. I cannot wait for the whole maps.

 

---------

 

Here is some scattered info, that might help you and widen the options (although I have no idea if you want to fiddle with the executable). Use at your own will.

 

1) There is a conversion table in EXE file where WORLD.DAT terrain number is translated into "what terrain shall we see at the battlescape". The world.dat uses 12 types of terrain structure, so the table has just 12 entries. It starts at the address 0x743FC in UFO CE version

 

0200 = forest / jungle

0100 = farm

0100

0100

0100

0700 = mountain

0200 = forest / jungle

0600 = desert

0600

0800 = arctic

0000 = jungle (??)

0200 = forest (unused)

0800 = arctic

 

This could be good to make farm (or native) terrain less overwhelming (see Wiki terrrain talk page for %), and mountains and probably desert should be present more (and / or you may change world.dat for mountains as well, since they seem to deny world geography in vanilla UFO).

 

 

 

2) you may increase the variety of terror city terrain (or any other) and/or change the odds of a map chunk appearing.

 

a) The big maps (2x2) are randomized at 0x4E5A1 (4) and 0x4E5B3 (5), in form of Number of map = RNG (4) + 5. That will choose any big map between 5...9. Changing those numbers allows more big maps appearing (if you want to).

 

b) The 1x1 terror city maps. Even better, these have a table at 0x72C84

0E 0F 10 11 12 03 04 0E 0F 10 11 12 03 03 04 04

from which the game randomly chooses. The maps 03,04 with no building are the most likely to show up. The maps 14...18 less so. Changing these numbers will give you a possibility of variation in between 15 maps, instead of current 6 maps. The table may be even extended easily to contain many more entries.

 

 

3) similar work can be done for all other terrains. DOS version addresses can be found easily as well, in case you are interested.

 

 

Hope that helps,

kyrub

 

Thanks for the detailed explanation. :)

 

Concerning 1) XComUtil already has an option for the less seen terrains to appear more, so no work necessary if someone wants to see those terrains more.

 

Concerning 2) and 3), I'd definitely like to add more maps to URBAN or any other terrain (I have for instance 10 additional maps to FARM) but like you said it would be necessary to change the .EXE, which is kinda of an issue to me because it could make this mod incompatible with others (XComUtil, UFOExtender, etc.). At the same time both those editors already change the .EXE, it can be way to add additional maps (XComUtil already does it) - this is something I'll look into it later when I finish all terrains.

 

I've almost finished redoing the new graphics for Urban. I should post more screenshots this weekend :(

Link to comment
Share on other sites

Little update on the Terror Site terrain

 

Tiles - I had a quite a few graphic issues to solve but I'm almost done with the .PCK files, when it is done it's merely a matter of editing the .MCD files. Most of the graphics are new but I had to use a few ones from the original UFO and TFTD files.

Maps - I have completed most of them but I'm still trying to find the right balance between open/closed spaces. Kyrub, thanks a lot for the info on the 10x10 map placement, it has been helpful :)

Routes - 0 work at this point, first need to get the maps as ready as possible.

 

Below there's images of some of the 20x20 buildings at this point:

post-503-1326816510_thumb.png

post-503-1326816516_thumb.png

post-503-1326816523_thumb.png

post-503-1326816529_thumb.png

Link to comment
Share on other sites

All looking very good, but I'm wondering how well all these roads are going to mesh up. Perhaps place some driveways on the footpaths?

 

URBAN03, 04 and 16 are roads with the same orientation as the pics above. You'll get always a 2x1 or 2 1x1 roads because of the X-COM craft.

The disposition will depend on the randomness - the landing road(s) may be longer, you may have parallel N/S roads, occasionally you'll get a road surrounded by buildings or a weird visual effect... blame it on city hall :) . Or you may not have additional roads at all.

URBAN00-02, when present, form a row of W-E houses and/or N-S warehouses.

Link to comment
Share on other sites

  • 3 weeks later...
Wow these look really sweet, make my New Urban maps for OpenXcom look pretty crappy to be honest, i guess i have to start somewhere :clapping:

 

When I'm finished with the changes to the terrain files you'll be able to use them as you want for OpenXcom. :P

Link to comment
Share on other sites

When I'm finished with the changes to the terrain files you'll be able to use them as you want for OpenXcom. :clapping:

 

A little update. I've been away on the past weeks due to life's requirements but I've restarted working on the new Terror Site this weekend.

 

The tileset is nearly complete - still needs some minor tweaks but that's up for testing

The maps are about 80% - I haven't decided on keeping some of the original ones, slightly adapted but nearly all are done.

The routes for AI are what's lagging, still haven't done half of them

 

My focus now is to finish the AI then release a testing version on the next days, so please be a little more patient :P

Link to comment
Share on other sites

Looks fantastic, Hobbes, really.

(Looking at the 3 floors' objects, I hope that you get the right blend of building complexity, not like the tftd ships.)

 

Fingers crossed for the rest. If you need I can still try to dig for some more routes info in the code. But it seems you know all you need, don't you?

Link to comment
Share on other sites

here are some images of the buildings - I'm trying to avoid the complexity of TFTD while adding some differences. The terrain will definitely be harder to destroy like TFTD though.

 

Thanks for the help on the code but it won't really help me anymore :clapping:

post-503-1329747802_thumb.png

post-503-1329747810_thumb.png

post-503-1329747818_thumb.png

post-503-1329747824_thumb.png

post-503-1329747832_thumb.png

post-503-1329747840_thumb.png

post-503-1329747846_thumb.png

post-503-1329747861_thumb.png

post-503-1329747870_thumb.png

post-503-1329747876_thumb.png

post-503-1329747883_thumb.png

post-503-1329747889_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...