Frictional Games Forum (read-only)

Full Version: Lang file crashes custom story!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Everytime I click on my custom story! It just crashes the game after I edited the lang file! is there something wrong in it?
this is the error message it gets when i click on my custom story!
"Amnesia.exe EXCEPTION_ACCESS_VIOLATION caused in module MSVCR71.dll at 001B:7C3417B, strlen()+0038 byte(s)


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Your name is Richard Anderson and you are a Reporter! Your Boss told you to take some photos of an Abandoned Castle, but when you got closer to the castle, a creature came out and quickly hit you which caused you to faint and then it trapped you inside the castle and there's no escape! You must explore and find a way to get out of the castle before it's too late!</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_HiddenKey_Name">Hidden Key</Entry>
<Entry Text="Note_HiddenKey_Name">Hello</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="MasterBedroom">Master Bedroom</Entry>
<Entry Name="FoodStorage">Food Storage</Entry>
</CATEGORY>

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The "Master Bedroom" door is locked. You need the "Master Bedroom Key" to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The "Food Storage" door is locked. You need the "Food Storage Key" to unlock it.</Entry>
</CATEGORY>
</LANGUAGE>
Try replacing this:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>



For this:


<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the Food Storage</Entry>
</CATEGORY>


The ("") might be the problem
(01-04-2014, 01:52 AM)The chaser Wrote: [ -> ]Try replacing this:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>



For this:


<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the Food Storage</Entry>
</CATEGORY>


The ("") might be the problem
Still did not work Sad

(01-04-2014, 01:52 AM)The chaser Wrote: [ -> ]Try replacing this:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the "Food Storage"</Entry>
</CATEGORY>



For this:


<CATEGORY Name="Inventory">
<Entry Name="ItemName_TestItem">Food Storage Key</Entry>
<Entry Name="ItemDesc_TestItem">This is the key of the Food Storage</Entry>
</CATEGORY>


The ("") might be the problem
The crash only started to happen is when i added this!

<CATEGORY Name="Levels">
<Entry Name="MasterBedroom">Master Bedroom</Entry>
<Entry Name="FoodStorage">Food Storage</Entry>
</CATEGORY>

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The "Master Bedroom" door is locked. You need the "Master Bedroom Key" to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The "Food Storage" door is locked. You need the "Food Storage Key" to unlock it.</Entry>
I dont think "" is supported by amnesia lang, At least I got strange stuff in my notes when I used those and had to manage with "-word-" instead.
By what I've seen, try replacing this:

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The "Master Bedroom" door is locked. You need the "Master Bedroom Key" to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The "Food Storage" door is locked. You need the "Food Storage Key" to unlock it.</Entry>



For this:


<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The Master Bedroom door is locked. You need the Master Bedroom Key to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The Food Storage door is locked. You need the Food Storage Key to unlock it.</Entry>



This one doesn't have ("") in the text, for the reason The Mug said: The "" are not supported in entries in .lang files.
(01-04-2014, 01:00 PM)The chaser Wrote: [ -> ]By what I've seen, try replacing this:

<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The "Master Bedroom" door is locked. You need the "Master Bedroom Key" to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The "Food Storage" door is locked. You need the "Food Storage Key" to unlock it.</Entry>



For this:


<CATEGORY Name="CustomCatLevels">
<Entry Name="CustomEntryLevel">The Master Bedroom door is locked. You need the Master Bedroom Key to unlock it.</Entry>
<Entry Name="CustomEntryLevel2">The Food Storage door is locked. You need the Food Storage Key to unlock it.</Entry>



This one doesn't have ("") in the text, for the reason The Mug said: The "" are not supported in entries in .lang files.
ok, It's fixed but IO have another problem now, later I fixed the lang file I have another problem which is worse! I just posted a thread of it! it's called "hps file doesn't work after using the lang file! which is a strange error
MOAR THREADS FOR THE GOD OF THREADS !
(01-04-2014, 01:23 PM)daortir Wrote: [ -> ]MOAR THREADS FOR THE GOD OF THREADS !

I already tracked it, can't wait to play it! keep up the good work Smile
(01-04-2014, 01:29 PM)Badcat5550 Wrote: [ -> ]
(01-04-2014, 01:23 PM)daortir Wrote: [ -> ]MOAR THREADS FOR THE GOD OF THREADS !

I already tracked it, can't wait to play it! keep up the good work Smile

Damn, now my signature is longer than some of my posts : x. Thanks for the support. I wish I could help you with your issue but I'm really bad with scripting and stuff >///<...
(01-04-2014, 01:40 PM)daortir Wrote: [ -> ]
(01-04-2014, 01:29 PM)Badcat5550 Wrote: [ -> ]
(01-04-2014, 01:23 PM)daortir Wrote: [ -> ]MOAR THREADS FOR THE GOD OF THREADS !

I already tracked it, can't wait to play it! keep up the good work Smile

Damn, now my signature is longer than some of my posts : x. Thanks for the support. I wish I could help you with your issue but I'm really bad with scripting and stuff >///<...

I wish I could fix my problem, if there's no fix then I don't know what to do!
Pages: 1 2