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
Custom Story Help (FIXED!)
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#1
Custom Story Help (FIXED!)

I can't get my map to show up in Custom Story in game. Can someone help me out?


I finally figured out what the problem was. It WAS an issue with them being text files. I found that to make them actual cfg files you had to put quotations ("") around the filename before saving to avoid it defaulting to .txt. For example, before I was saving it as custom_story_settings.cfg and it would actually save it as custom_story_settings.cfg.txt.

To avoid this you need to save it as "custom_story_settings.cfg"
This will ensure it's saved as a cfg file, not text.
09-18-2010, 05:17 PM
Find
Armored Cow Offline
Member

Posts: 72
Threads: 3
Joined: Sep 2010
Reputation: 0
#2
RE: Custom Story Help

Did you follow this yet?

http://hpl2.frictionalgames.com/amnesia:custom_story
09-18-2010, 05:23 PM
Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#3
RE: Custom Story Help

Yeah, I followed it, but it still wouldn't show up.
Part 4 is a little confusing to me. Is that lang thing a text document inside the root? Or is it supposed to be another sub folder in the root with a text file script inside it?
(This post was last modified: 09-18-2010, 05:33 PM by Soon.)
09-18-2010, 05:28 PM
Find
Luis Offline
Frictional Games

Posts: 280
Threads: 19
Joined: Jun 2006
Reputation: 9
#4
RE: Custom Story Help

(09-18-2010, 05:28 PM)Soon Wrote: Yeah, I followed it, but it still wouldn't show up.
Did you save the maps in a 'maps' subfolder?

(09-18-2010, 05:28 PM)Soon Wrote: Part 4 is a little confusing to me. Is that lang thing a text document inside the root? Or is it supposed to be another sub folder in the root with a text file script inside it?

It is a text file. I just updated the wiki to make it clearer.

EOF
(This post was last modified: 09-18-2010, 05:41 PM by Luis.)
09-18-2010, 05:41 PM
Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#5
RE: Custom Story Help

Well, im very new to this so let me explain what I'm trying to do. I followed the basic tutorial and I now have a very small level with the basics in it. I just want to be able to run around in my level and build on that.

I have the custom stories folder open and added a subfolder for my map called Tutorial. Inside the Tutorial (root folder) I have created another subfolder called "Maps". Inside the Maps folder I have my map which I named Tutorial.map, the Tutorial.hps script file, and the Tutorial.map_cache file.

Inside the root folder (Tutorial) I added the custom_stories_settings.cfg text file with script. I also added the extra_english.lang text file to the root and included the category script inside of it but nothing else.

I don't know if this matters, but the only thing in my script file is the tutorial script that lets you use a lantern and 10 tinderboxes.

That's everything I can think of that I have right now. I'm so lost Tongue
09-18-2010, 05:52 PM
Find
Luis Offline
Frictional Games

Posts: 280
Threads: 19
Joined: Jun 2006
Reputation: 9
#6
RE: Custom Story Help

(09-18-2010, 05:52 PM)Soon Wrote: ...I added the custom_stories_settings.cfg text file with script.

What script did you add in there? Also, it should be called 'custom_story_settings.cfg.

Can you also post your game hpl.log after having opened the custom story list window? Should be in your "My documents\Amnesia\Main" folder.

EOF
09-18-2010, 06:51 PM
Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#7
RE: Custom Story Help

Also, I'm using the steam version of the game. I don't know if that matters...
Yeah, I mistyped that. It is correctly named as custom_story_settings.cfg. But here is what it contains:

<Main
Name="Tutorial"
Author="Soon"
ImgFile="brute_final.jpg"

StartMap="Tutorial.map"
StartPos=""

/>


Here is the log after opening custom stories in game:

-------- THE HPL ENGINE LOG ------------
Engine build ID 20100818114615

Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Setting video mode: 1024 x 768 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: ATI Technologies Inc.
Renderer: ATI Radeon HD 4600 Series
Version: 3.3.10061 Compatibility Profile Context
Max texture image units: 16
Max texture coord units: 16
Max user clip planes: 8
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 8
Max color render targets: 8
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 3.30
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 1
Adding engine materials
Initializing DevIL
Vendor String: Abysmal Software
Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
Version Number: 168
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Available OpenAL devices:
0. Generic Software on Speakers (2- Realtek High Definition Audio)(OpenAL default)
1. Generic Software on Realtek Digital Output (2- Realtek High Definition Audio)
Trying to open device 'Generic Software on Speakers (2- Realtek High Definition Audio)'... Success!
Number of mono sources: 32
Streaming setup: 4 Buffers x 262144 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
--------------------------------------------------------

Game Running
--------------------------------------------------------
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 1104 ms
Entities: 204 ms
Compilation: 0 ms
Total: 1317 ms
Meshes created: 25
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'Soon' Path: 'C:\Users\Aaron\Documents/Amnesia/Main/Soon/'
ERROR: Unable to open config file 'custom_stories/Tutorial/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Tutorial" : could not find custom_story_settings.cfg file or it was invalid.
Thanks for you patience and help by the way Big Grin
(This post was last modified: 09-18-2010, 07:27 PM by Soon.)
09-18-2010, 06:51 PM
Find
Alexander Offline
Junior Member

Posts: 22
Threads: 2
Joined: Sep 2010
Reputation: 0
#8
RE: Custom Story Help

Looks like I have the same error as you... I have been holding out for about a week now trying to figure this out... But I give up.

Game Running
--------------------------------------------------------
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 2796 ms
Entities: 873 ms
Compilation: 1 ms
Total: 3777 ms
Meshes created: 25
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'Editor' Path: 'C:\Documents and Settings\Computer\My Documents/Amnesia/Main/Editor/'
ERROR: Unable to open config file 'custom_stories/TS/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/TS" : could not find custom_story_settings.cfg file or it was invalid.
09-18-2010, 08:42 PM
Find
Alexander Offline
Junior Member

Posts: 22
Threads: 2
Joined: Sep 2010
Reputation: 0
#9
RE: Custom Story Help

Ah hell, nevermind. I just downloaded someone elses Custom Story and copied all the files into my folder, then configured them. I have this feeling it doesn't work following the tutorial/wiki because we are told to make a text file - which I have to assume is the problem. You actually have to use a CFG file called "custom_story_settings" not a text called "custom_story_settings.cfg"... O___o yeah I know, I suck at explaining things.

Oh well... got it to work.
09-19-2010, 01:15 AM
Find
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#10
RE: Custom Story Help

I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?
09-19-2010, 07:36 AM
Find




Users browsing this thread: 1 Guest(s)