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


.bat files not launching
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: .bat files not launching

By the way, is this a retail or Steam copy? So far we've been treating it as retail, so if it's Steam, it could be a bit different.

05-12-2016, 01:40 AM
Find
LinkX2011 Offline
Junior Member

Posts: 8
Threads: 1
Joined: May 2016
Reputation: 0
#12
RE: .bat files not launching

It's the Steam version. Sorry I forgot to mention it earlier.

Also Daemian, both of those solutions didn't fix it. It seemed promising when I tried it, but it closed out without an error message like it usually does. I think the problem might be something in System32 or with Launcher.exe because the path for the .bat file works fine and all of the files are installed correctly. Thanks for the reply, and I really enjoyed your custom stories.
(This post was last modified: 05-12-2016, 03:05 AM by LinkX2011.)
05-12-2016, 03:02 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#13
RE: .bat files not launching

Hey. I'm glad you liked them!. Positive feedback really motivates me to make more, maybe soon -if I find the time- I could make one for SOMA.

As for your problem, the solution Mud gave should have worked.
Here is a batch to launch Justine, just to exclude any mod related problem.
And I included some debug messages to help us find the problem.

You just need a batch file (copy or make one) where Amnesia.exe is and copy&paste the code below.
PHP Code: (Select All)
@echo off
echo ===========================
echo       
DEBUG
echo ===========================
echo 
User name is [ %USERNAME% ]
echo 
Home path is [ %HOMEPATH% ]
echo 
Working Directory is [ %cd% ]
echo 
Batch is located at [ %~dp0 ]
echo 
Batch full path is [ %~dpnx0 ]
pause
echo Trying to launch Amnesia...
@echo 
on
cd 
%~dp0
Amnesia
.exe config/ptest_main_init.cfg
@echo off
pause 

When you run it, it should show you some debug info. It pauses, then tries to launch the game the way Mudbill said. If it can't open Amnesia, you should be able to read an error. Post results here please.

05-12-2016, 04:30 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#14
RE: .bat files not launching

Another thing you can try, considering you have the Steam copy, is to right click it in Steam > Properties > Set Launch Options... > Paste the path you'd normally include after Launcher.exe in the .bat file. For example:

Launch options:
mymod/config/main_init.cfg

This should prevent the issue of "Could not init Steam" which seems to have been happening the past month or so if the Steam copy is started manually via .exe.

(This post was last modified: 05-12-2016, 09:45 AM by Mudbill.)
05-12-2016, 09:44 AM
Find
LinkX2011 Offline
Junior Member

Posts: 8
Threads: 1
Joined: May 2016
Reputation: 0
#15
RE: .bat files not launching

Thanks for the replies, guys. I attached a picture of the debug info. If either of you have Skype, we could do a call and see if we can figure this out that way. If you want to do it that way, you can PM me your username.


Attached Files
.png   debug info.png (Size: 11.92 KB / Downloads: 101)
05-12-2016, 11:41 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#16
RE: .bat files not launching

Great. What happened next? Did it open Amnesia Justine?

05-13-2016, 03:09 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#17
RE: .bat files not launching

I forgot to mention that after you set the launch options, you then click play in the Steam client in order to use them. Did that do anything?

05-13-2016, 08:38 AM
Find
LinkX2011 Offline
Junior Member

Posts: 8
Threads: 1
Joined: May 2016
Reputation: 0
#18
RE: .bat files not launching

I got a pop-up that said "Failed to load config file!" when launching from the Steam client. I double checked to make sure the launch options were right and went into the files of the CS to make sure that everything was spelled correctly. I got the same error. Just to make sure I set the right launch options, I put Amnesia Mysteries of the Beyond\MOTB_config\main_init.cfg in the set launch options window.
05-13-2016, 08:48 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#19
RE: .bat files not launching

Hmm.. perhaps there's an issue with your main_init file then. Could you upload it somewhere?

05-13-2016, 09:37 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#20
RE: .bat files not launching

Yes, I just downloaded that mod and there's a small error on the main_init.

./Amnesia Mysteries of the Beyond/MOTB_config/main_init.cfg

At line 25
MainSaveFolder = "Mysteries_of_the_Beyond"

Change that value to just "Main" like this:
MainSaveFolder = "Main"

It's all I did to make it work.

Oh and there's a bug or something with Steam, you can't open Amnesia or its launcher directly, you always get "could not init steam". You gotta open Steam and open Amnesia from there. Also you gotta do what Mudbill said about setting launch options to play mods. In this case Amnesia Mysteries of the Beyond/MOTB_config/main_init.cfg

I don't know if we can call it an error, it's just not working.

Update: You can put there any folder name you want as long as the mentioned directory exists in %user%/Documents/Amnesia/ and contains a main_settings.cfg file.
If the directory or file doesn't exist, it creates the directory and a log (hpl.log) that only says
ERROR: Unable to open config file ''! Invalid filepointer returned!

(This post was last modified: 05-13-2016, 11:11 PM by Daemian.)
05-13-2016, 10:56 PM
Find




Users browsing this thread: 1 Guest(s)