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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script error (Again)
Venom Fox Offline
Junior Member

Posts: 32
Threads: 9
Joined: Mar 2016
Reputation: 0
#18
RE: Script error (Again)

(07-08-2016, 10:58 PM)Daemian Wrote: wait, don't quit yet. xD
There are two resources.cfg in this scenario. the one in soma/ and the other in soma/mods/yourmod/.
The game itself and tools like level editor use the one in soma/, that's the main resources.cfg. So if you're editing your mod and you got new files, you gotta tell the game where to find them. This is the line I added to my soma/resources.cfg to let the game know where my files are:
PHP Code: (Select All)
<Directory Path="/mods" AddSubDirs="true"/> 
This means it's gonna load every file it can find inside /mods.
But if you're using stuff from soma you don't need to add the directory, it's already there. That's why they tell you to try first with existing sounds from soma.

That's for level editor and such. For testing -I don't know others- I launch the game with parameters like this:
PHP Code: (Select All)
Soma.exe -user Dev -cfg ./mods/Sinneromo/Config/main_init.cfg 

Sinneromo is my mod I'm working on. If you look inside my main_init.cfg it tells the game which resources.cfg my mod wants to use.
PHP Code: (Select All)
    Resources "mods/Sinneromo/resources.cfg" 
So the game runs with the user Dev and my mod's main_init.cfg, which uses Sinneromo/resources.cfg.
In this resources.cfg I got one extra line:
PHP Code: (Select All)
<Directory Path="/mods/Sinneromo" AddSubDirs="true"/> 
This will tell the game to load first -cause it's first on the list- all the files inside my mod directory, giving them priority when finding later more files with the same name.
For example, I got in my mod a copy of the script file InputHandler.hps which I modified. And the game always reads my file instead of the original from the game cause my resources.cfg is loading my files first.

Yeah, I have the <Directory Path="/mods" AddSubDirs="true"/> in my soma config already, can't remember if I added that myself or if that was already there, though.

I think I'll give myself a one last chance, I delete every single Soma file and redownload the game. Maybe. Haven't decided yet... :/

So absurd that the music doesn't work, though. Can't even play music directly from Soma... I might have some goddamn curse on me or something.
07-09-2016, 03:11 PM
Find


Messages In This Thread
Script error (Again) - by Venom Fox - 07-08-2016, 11:48 AM
RE: Script error (Again) - by Romulator - 07-08-2016, 01:36 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 02:40 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:28 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 04:42 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:20 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 05:29 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:43 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:36 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:59 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:27 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:33 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 06:37 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:53 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 06:58 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 07:07 PM
RE: Script error (Again) - by Daemian - 07-08-2016, 10:58 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 03:11 PM
RE: Script error (Again) - by Hypercube - 07-09-2016, 07:36 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 08:32 PM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 11:54 AM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 01:57 PM



Users browsing this thread: 1 Guest(s)