The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading custom assets (graphics) into mod
ghoststeam217 Offline
Junior Member

Posts: 7
Threads: 2
Joined: Apr 2016
Reputation: 0
#1
Question  Loading custom assets (graphics) into mod

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.
04-15-2016, 10:15 AM
Find


Messages In This Thread
Loading custom assets (graphics) into mod - by ghoststeam217 - 04-15-2016, 10:15 AM



Users browsing this thread: 1 Guest(s)