Need Help Adding Locations to TES Arena

Off topic discussion. Talk about gaming and life in general. Be awesome to each other.
Post Reply
User avatar
QSHV
Posts: 1
Joined: Fri Jul 24, 2020 10:31 pm

Need Help Adding Locations to TES Arena

Post by QSHV »

Hello everyone, this is my first time posting to the Daggerfall Workshop Forums so I hope I'm doing this right. I'm posting here because I need help reverse engineering a small bit of TES Arena, for the purpose of editing the exe file in order to allow for the creation of custom locations in the world map.

Recently a lot of progress has been made with the ability to mod the DOS version of TES Arena, including the ability to straight up create new custom levels. However, we are still unable to add new locations to the world map, but we're very close.

From an already known formula (which is explained here https://github.com/afritz1/OpenTESArena ... Generation), Main Quest dungeons in Arena use their XY positioning and the province they are in to determine the name of the mif file (Arena's level files are mif files) it will try to load. Recently I discovered that random provincial dungeons will also generate the name of a mif file too, they just don't attempt to load it. This discovery was made by making the name of a dungeon one byte longer than its maximum length, as shown here: Image

If the small piece of code in the Arena exe that stops provincial dungeons from looking for this mif file could be changed so that they do look for the mif file, it would unleash the floodgates of adding new locations to the world map and adding proper custom dungeons without replacing old dungeons. Any help with this would be greatly appreciated.

Post Reply