Jump to content
XCOMUFO & Xenocide

Lua Coding Help


Blood Angel

Recommended Posts

Ahem.

 

AddXcomTerrain {
Name = "Xcom Sub",
Tiles =  {
 "$(xcom)/terrain/blanks.*",
 "$(tftd)/terrain/xbases01.*",
 "$(tftd)/terrain/xbases05.*",
 "$(xcom)/terrain/avenger.*",
 "$(xcom)/terrain/lightnin.*",
 "$(tftd)/terrain/sea.*",
},
Maps = {
 "$(ufo2000)/newmaps/sub/sub01.map",
 }
}

 

I have been attempting to code a LUA to make my xcom base sub work, but it isn't having any of it, for some reason. Does this code look plausible for a 1 map, 60x20 terrain?

Link to comment
Share on other sites

Well, I got it to run, but parts of it are still garbled.

 

- There is no tileset called "Seabed", at least not in my in TFTD. Maybe you meant "Sand"?

 

- The mapfiles must be listed with the ending .map, wildcards don't work.

 

It's still garbled in the game, though.

In the editor, it is alright, but all the ground outside the ship is still filled with base parts (tile #3, probably due to missing tiles of the last set).

 

 

Edit:

 

I tried some things about this strange error and I found that is somehow has to do with the "blanks" tileset.

While the TFTD tilesets appear right in the game, all XCOM tiles show the tile that comes three indexes lower - as if there was a 3 tile blanks file too much, loaded before them.

 

Loding no blanks results in garbled TFTD tilesets, and the XCOM tiles showing the entry still 1 index lower (as if there was one tile too much listed before).

 

I don't know why this happens, but I don't see a way to solve it.

Might be a bug in the editor. Which one did you use? Or did you incluse "blanks" in the editor's tileset list? (don't!)

Edited by Violazr
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...