OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: robin on March 20, 2020, 11:33:38 pm

Title: [Answered] textures attribute in terrains definition?
Post by: robin 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
Title: Re: terrains: textures
Post by: Meridian on March 20, 2020, 11:40:21 pm
I don't remember anything like that.

Textures define terrains, not vice versa.
Title: Re: terrains: textures
Post by: robin 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.
Title: Re: terrains: textures
Post by: Meridian on March 21, 2020, 12:04:55 am
Removed 5 years ago: https://github.com/OpenXcom/OpenXcom/commit/8312364f7ea7b445a8ec3d03c30ef1d58b82d963
Title: Re: terrains: textures
Post by: robin on March 21, 2020, 12:24:16 am
damn.
i'm doomed.
i'll just play doom.
Title: Re: terrains: textures
Post by: ohartenstein23 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.
Title: Re: terrains: textures
Post by: robin 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.