aliens

Author Topic: [Answered] textures attribute in terrains definition?  (Read 3011 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
[Answered] textures attribute in terrains definition?
« on: March 20, 2020, 11:33:38 pm »
Wasn't there once the possibility to hijack the globe terrains from the terrains themselves?
Like this:
Code: [Select]
terrains:
  - name: MY_TERRAIN
    textures: [1, 2, 4]
    ...
?
It doesn't seem to do anything anymore and ruleset reference doesn't mention it.


My problem is: I made a new terrain to use in place of the vanilla CULTA terrain, so I was looking for a way to say: "use my new shiny FARMN terrain whenever you should have used the CULTA terrain". That "texture" entry IIRC enabled me this temporary solution, without touching the globe (which is veeeeery scaaaaary, along with regions, they're nightmare-ish).
Thanks
« Last Edit: February 12, 2023, 09:09:12 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: terrains: textures
« Reply #1 on: March 20, 2020, 11:40:21 pm »
I don't remember anything like that.

Textures define terrains, not vice versa.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: terrains: textures
« Reply #2 on: March 20, 2020, 11:42:44 pm »
I don't remember anything like that.

Textures define terrains, not vice versa.
I was using that looong time ago (IIRC MiB mod) to have texture 3 stripped from CLUTA and assigned it to a URBAN variant terrain (URBANUFO) for crashed ufo missions in an urban environment.
I might misremember but I think it was that and it worked.

edit: the old reference still has it:

https://www.ufopaedia.org/index.php?title=Ruleset_Reference_(OpenXcom)#Terrains

it must have been scrapped for some reason i guess.
« Last Edit: March 20, 2020, 11:44:58 pm by robin »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: terrains: textures
« Reply #3 on: March 21, 2020, 12:04:55 am »

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: terrains: textures
« Reply #4 on: March 21, 2020, 12:24:16 am »
damn.
i'm doomed.
i'll just play doom.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: terrains: textures
« Reply #5 on: March 21, 2020, 02:06:41 am »
Can't you just use the globe ruleset? Check here in the standard folder ruleset: https://github.com/ohartenstein23/OpenXcom/blob/oxce-plus/bin/standard/xcom1/globe.rul#L43

Try replacing the CULTA here with your new terrain.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: terrains: textures
« Reply #6 on: March 21, 2020, 09:03:41 am »
Can't you just use the globe ruleset? Check here in the standard folder ruleset: https://github.com/ohartenstein23/OpenXcom/blob/oxce-plus/bin/standard/xcom1/globe.rul#L43

Try replacing the CULTA here with your new terrain.
yeah i'll do that.