aliens

Author Topic: [Question] alien base & geoscape  (Read 1382 times)

Offline Tekamthi

  • Sergeant
  • **
  • Posts: 45
    • View Profile
[Question] alien base & geoscape
« on: August 09, 2018, 02:43:26 am »
Can an alien base somehow reference what geoscape terrain its in?

I've mocked up a 2-stage alien base assault mission and it seems to work... only with the surface either always mars, or w/e override i give it..
« Last Edit: August 09, 2018, 02:46:13 am by Tekamthi »

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1396
    • View Profile
Re: [Question] alien base & geoscape
« Reply #1 on: August 10, 2018, 07:56:51 am »
I haven't done it myself, but it looks easy to do. Here's how I would assume it works, based on existing ruleset data for the original final mission:

Code: [Select]
  - type: STR_MARS_CYDONIA_LANDING
    terrains:
      - MARS
    nextStage: STR_MARS_THE_FINAL_ASSAULT
  - type: STR_MARS_THE_FINAL_ASSAULT
    terrains:
      - UBASE

It appears that upon completing STR_MARS_CYDONIA_LANDING, you move on to STR_MARS_THE_FINAL_ASSAULT. Each one has its terrain set declared separately.

Offline Tekamthi

  • Sergeant
  • **
  • Posts: 45
    • View Profile
Re: [Question] alien base & geoscape
« Reply #2 on: August 11, 2018, 10:33:21 am »
Right, I've done all this. Problem is the base isn't actually in the geoscape terrain from the game's perspective.. if you don't expressly reference a terrain in the ruleset, you get Mars terrain, every time. If you do, you only get the manually set terrain. ie it's impossible to get the terrain from a base location, unlike a UFO.  I'm guessing, maybe wrongly, that I'm not the first to try this.. would be nice if the base could cross reference it's Coordinates with geoscape terrain
« Last Edit: August 11, 2018, 07:43:50 pm by Tekamthi »

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1396
    • View Profile
Re: [Question] alien base & geoscape
« Reply #3 on: August 11, 2018, 11:59:03 pm »
Perhaps it has to happen when the site is created, rather than when you land at it. I'd check the code for creating crash sites to see if that might yield anything useful. Also, it might be possible to fake a base by making a special landed site which uses the base sprite (magenta square) and stays landed for a very long time (years). Then you can possibly make the landed craft very big and looking like a base entrance, and the landing site leads to part two which uses base terrain.

Hopefully someone comes along with more helpful advice than I have. Also possible: X-Pirates or another total conversion mod might already be doing what you're asking for, and you could study their mod to figure out how it's done.

Offline Tekamthi

  • Sergeant
  • **
  • Posts: 45
    • View Profile
Re: [Question] alien base & geoscape
« Reply #4 on: August 12, 2018, 04:39:37 am »
good idea... i'll look at that route, but will take me some time to figure out

for now i've created a new 'outdoor' terrain, using just the alien habitat/garden tiles.. ie a zerg-creep-style surface for every base.. this works okay in my head, tweaking it now