LUA Mapgen Problems

Sorry about that :(.

Actually I think it might be down to there not being a rotated version of the LUA generated overmap tiles since it only occurs when I’ve got one loaded up, I’ll slap NO_ROTATE in somewhere and report back if it makes a difference.

I believe LUA mapgen should work as follows:

  1. Pseudo-draw to array using custom mapgen functions.
  2. Get overmap tile direction and rotate array according to this direction.
  3. Actually draw rotated array tiles to game using game mapgen function.

You can get current overmap tile name and direction using _G.tertype and _G.turn variablesduring lua mapgen - see Exposing id of `om_terrain`/`overmap_special` to LUA · Issue #21738 · CleverRaven/Cataclysm-DDA · GitHub.

Perhaps I could just have an NPC with a few conversation lines and use a reinforced or a custom ultra-strong vending machine and regularly delete all the items in it and add new ones from an itemgroup, do you think that’s achievable using LUA alone?

You can try running place_vending once a day using on_day_passed callback