So I'm stuck on this and after hours of trying I am getting desperate. I am making a mod that involves unlocking and locking doors from a computer terminal (similar to the theta map where you had to get down the elevator). However I am having difficulties loading my own map on the computer monitor.
I had looked over the code used in the theta map and I copied it. One part of this code involved loading the 'background map' which was an image of the theta rooms and hallways.
settings.mMapBackground = cImGuiGfx("theta_securitymap", eImGuiGfx_Texture);
This file was simply called 'theta_securitymap' which was located in the 'graphics/imgui/station/theta_securitymap' directory. Whenever I edited the actual file (.dds) in Paint.Net it changed, however when I tried to change the image and put it in a different location in cImGuiGfx() to something like;
settings.mMapBackground = cImGuiGfx("mods/test/graphics/theta_securitymap.dds", eImGuiGfx_Texture);
It simply showed the original map again. It seems like it doesn't point to any file not in the predefined '/graphics' folder in the original game folder.
When I renamed the file to something like;
settings.mMapBackground = cImGuiGfx("mods/test/graphics/upsilon_securitymap.dds", eImGuiGfx_Texture);
no background on the terminal was displayed (obviously the file wasn't found). I looked around and I found that I needed to change my resources.cfg file to point to a '/graphics' folder in my mod folder . So I did;
<Resources>
<Directory Path="/config" AddSubDirs="true"/>
<Directory Path="/graphics" AddSubDirs="true"/>
<Directory Path="/maps" AddSubDirs="true"/>
</Resources>
and in my mod folder I added the directory 'graphics/imgui/station/theta_securitymap/' and added the 'theta_securitymap.dds' file in it but I still got the original image and not my modified one.
WTF? - to put it simply. Why isn't this working? Can someone give me a good explanation on how I would add my own textures (in this case for the cImGuiGfx() function) into my mod?
Cheers.