Frictional Games Forum (read-only)
Intro to mod - 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: Intro to mod (/thread-48025.html)

Pages: 1 2 3


RE: Intro to mod - Abion47 - 05-26-2016

There are certain errors that, instead of providing compilation info, will just cause the game to crash without explanation. These kinds of errors can be a real pain to find, but one kind that I know of is if you have a pointer-type variable (basically any type that requires the "@" symbol to declare) on the class or global level.

Really the only way to find this error is to comment out everything that you've changed or added since before the error started, then reintroduce the code line by line until you reach the part that causes the crash.


RE: Intro to mod - Daemian - 05-26-2016

Wait, why is it trying to load a .hps instead of a .hpm?
Did you try erasing temporarily the script file?


RE: Intro to mod - Abion47 - 05-26-2016

(05-26-2016, 06:43 AM)Daemian Wrote: Wait, why is it trying to load a .hps instead of a .hpm?
Did you try erasing temporarily the script file?

This is a good catch. If the dialog is saying that it cannot load "the_experiment.hps", then you are telling the debug to open a script file instead of the map file (an ".hpm" file), which would naturally cause it to crash.


RE: Intro to mod - Hypercube - 05-27-2016

(05-26-2016, 08:08 AM)Abion47 Wrote:
(05-26-2016, 06:43 AM)Daemian Wrote: Wait, why is it trying to load a .hps instead of a .hpm?
Did you try erasing temporarily the script file?

This is a good catch. If the dialog is saying that it cannot load "the_experiment.hps", then you are telling the debug to open a script file instead of the map file (an ".hpm" file), which would naturally cause it to crash.
If your using debug, it won't allow you to select the hps file, it will only show the hpm files. And as I stated in my las comment, I corrected myself in saying "sorry, it says could not load hps file, not could not load hpm file". And besides, even if I could select the hps file, when it says "could not load file 'the_experiment.hps", it means it just can't load the script, that's all I meant.

I have tried holding control z until everything new I put in the script was gone, saved the file, but it still would'nt load. So I added the new script back, and that's why I thought it might be a problem with the editor, but it specifically could not load the script file, so I'm just confused why that is. I'll just go over it again, and see if I missed anything...


RE: Intro to mod - Hypercube - 05-30-2016

So I took out my entire script file, generated a new one, loaded up my map in debug, put the new script file back in and saved it, but the script recompile box or whatever popped up but didn't say anything, and I have no idea how any of the things that I put in the script have some sort of error. It worked fine before, until I put new things in the editor and script. What I put in the script should've been something that if it had an error, it would say so. But it doesn't. I don't recall ever adding anything more complex than what I added before.


RE: Intro to mod - Abion47 - 05-31-2016

Does the map load with a default script file?


RE: Intro to mod - Daemian - 05-31-2016

Bring the script (and the map) if you want.


RE: Intro to mod - Hypercube - 06-06-2016

Here's the script file:
http://www.mediafire.com/download/p0710zcqb1vlvfj/the_experiment.hps


RE: Intro to mod - Daemian - 06-06-2016

I did some tests and I found there is a problem with that helper_message.hps, it keeps crashing the game. Anyways, if you remove the line setMessage and the include you're fine.

line 25 and line 319
PHP Code:
#include "helpers/helper_message.hps"
SetMessage("What the hell was that?!",3.0f); 



RE: Intro to mod - Abion47 - 06-06-2016

(06-06-2016, 10:27 PM)Daemian Wrote: I did some tests and I found there is a problem with that helper_message.hps, it keeps crashing the game. Anyways, if you remove the line setMessage and the include you're fine.

line 25 and line 319
PHP Code:
#include "helpers/helper_message.hps"
SetMessage("What the hell was that?!",3.0f); 

Do you have the MessageMod installed and configured correctly? The script runs fine for me as is.