Frictional Games Forum (read-only)
[Solved] Strange error when using specific #include - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-80.html)
+---- Thread: [Solved] Strange error when using specific #include (/thread-53445.html)



[Solved] Strange error when using specific #include - Jesscar - 01-05-2017

Hi everyone.

I'm working on my first SOMA custom story and I'm trying to add a working terminal with GUI to the map.

However, when I add this one line of code:

Code:
#include "helper_imgui_station.hps"

I get this error:

[Image: yrbaonh.png]

The error only occurs when that line is there. When I remove it, the map loads just fine. There is no other terminal related code in my script. I've tried verifying the game cache but it didn't fix the issue.

Here is my entire script file:
http://pastebin.com/Qg7mC7Xv

Solution:

I fixed it! It was an easy fix. Just add the line:

#include "helper_imgui_station_apps_common.hps"


So the includes look like this:

#include "helper_imgui_station.hps"
#include "helper_imgui_station_apps_common.hps"


RE: [Solved] Strange error when using specific #include - Romulator - 01-05-2017

Ah yes - because of how #include "helper_imgui_station.hps" works, it needs to include functions from the other two imgui helpers.

Glad to hear you got it solved in the end Smile