Frictional Games Forum (read-only)
Making custom story and error pops up - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Making custom story and error pops up (/thread-13817.html)

Pages: 1 2


RE: Making custom story and error pops up - Your Computer - 03-07-2012

It doesn't crash on me.


RE: Making custom story and error pops up - Sinthetic - 03-08-2012

Odd... It does crash for me :I Ill try reinstalling the whole game after school and see if it does something Smile

E: Nope, still crashes for me .__. well it was mainly made for friend, so Ill send it to him also and see if he can play it Smile


RE: Making custom story and error pops up - Sinthetic - 03-08-2012

(03-07-2012, 09:42 PM)Your Computer Wrote: It doesn't crash on me.
So you didnt edit any of the files? Because I sent it to my friend and it crashed for him also.. :I

Just in case, Ill post the first map's .hps file if anyone can notice something wrong with it which could cause
the crash Smile
Spoiler below!


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("","monsterdoorkey_1","monsterdoor", "UsedKeyOnDoor",true);
AddUseItemCallback("","secretkey_1","sala", "UsedKeyOnDoor2",true);
AddUseItemCallback("","avainhihi_1","alex", "UsedKeyOnDoor3",true);
AddEntityCollideCallback("Player", "jeesus_1", "HolyJesus", true, 1);
AddEntityCollideCallback("jeesusfly_1", "jeesus_1", "Sound", true, 1);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "jumalautakohta", "Sound2", true, -1);
SetEntityCallbackFunc("monsterdoorkey_1", "OnPickup");
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
AddEntityCollideCallback("Player", "kolaa", "Sound4", true, 1);



}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("monsterdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "monsterdoor", 0, false);
RemoveItem("monsterdoorkey_1");
}

void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("sala", false, true);
PlaySoundAtEntity("", "unlock_door", "sala", 0, false);
RemoveItem("secretkey_1");
}

void HolyJesus(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("jeesusfly_1", true);
AddPropForce("jeesusfly_1", 0, 0, 30000, "World");
}


void Sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "pystyy.ogg", "jeesus_1", 0, false);
}

void UsedKeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("alex", false, true);
PlaySoundAtEntity("", "unlock_door", "alex", 0, false);
RemoveItem("avainhihi_1");
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");

}

void Sound2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "jumalauta.ogg", "jumalautakohta", 0, false);
}



void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("veijo", true);
PlaySoundAtEntity("", "24_iron_maiden.snt", "monsterdoorkey_1", 0, false);

}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup1", 0);
}

void Sound4(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "troll.ogg", "kolaa", 0, false);
}










////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}





RE: Making custom story and error pops up - Your Computer - 03-08-2012

(03-08-2012, 01:02 PM)Sinthetic Wrote: So you didnt edit any of the files? Because I sent it to my friend and it crashed for him also.. :I

I didn't touch a thing, and it didn't crash on me whether for Steam or retail edition.


RE: Making custom story and error pops up - Sinthetic - 03-08-2012

(03-08-2012, 07:44 PM)Your Computer Wrote:
(03-08-2012, 01:02 PM)Sinthetic Wrote: So you didnt edit any of the files? Because I sent it to my friend and it crashed for him also.. :I

I didn't touch a thing, and it didn't crash on me whether for Steam or retail edition.
Aww Sad two of my friends tested it and it crashed for them also :I This is getting weird..


RE: Making custom story and error pops up - flamez3 - 03-09-2012

Have you torrented Amnesia?


RE: Making custom story and error pops up - Sinthetic - 03-09-2012

(03-09-2012, 01:54 AM)flamez3 Wrote: Have you torrented Amnesia?
Hate to admit but yes. Never thought that it would be the problem. I had no money to buy it at the time
but seems like I'm going to buy it since I liked making the story. Hopefully that is the issue, thank you all for helping Smile

E: Though few of my friends have also ''non-legit'' versions of amnesia and they've made succesfull custom stories :I
E2: FIXED! I had to remove the monster from the first level and now it works as a dream... odd Confused