Frictional Games Forum (read-only)

Full Version: Error when i change map to map2 in a custom story (SOLVED)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi mates, im new here but i want to explain a problem im having (sorry if my english is not good enough).

im making a custom story with the level editor, and till now everything was going great, i made scripts for locked doors, entity_spawns, notes, journals with voice... ok my problem comes when i needed to make another map to continue my story, so when i started scripting my second map, at the moment of testing my CS i have a Crash error when changing zones, otherwhise when i deleted the scripts of the second map, when testing the game again works and i change zone... what im making wrong?
There's something wrong with the script itself. Just post the file here, and I'll see the problem. Use "attachment".



And this goes to "Development Support".
This is what it appears when i try to change the zone.

FATAL ERROR: Could not load script file "custo_stories/LA PRUEBA/maps/CTonguerogram Files/Steam/Steamapps/common/Amnesia The Dark Descent/custom_stories/LA PRUEBA/maps/LA PRUEBA3.hps'! ExecuteString (1, 1): ERR : No matching signatures to 'OnGameStart()' main (5,17): ERR : Expected '('

and this is the only script im running in the map "LA PRUEBA3":


void OnStart()
{
AddEntityCollideCallback("Player", "brute2", "area_brute2", true, 1);
}
void nombre accion(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
PlaySoundAtEntity("", "nombre sonido", "Player", 0, false);
GiveSanityDamage(30.0f, true);
}
void OnLeave()
{
}

void OnEnter()
{
}

-----------------------------------------------------------------

the same script in the main zone works perfectly.
Ok, I see the problem/s

Your AddEntityCollideCallback does'nt call the function.

AddEntityCollideCallback("Player", "brute2", "area_brute2", true, 1);

should be

AddEntityCollideCallback("Player", "brute2", "nombre_accion", true, 1);

and you should'nt use backslash for making spaces use _ instead.

This also goes for your PlaySoundAtEntity("", "nombre sonido", "Player", 0, false);

which should be

PlaySoundAtEntity("", "nombre_sonido.snt", "Player", 0, false); instead.
THANKS A LOT! problem solved!
Hi, another problem, i recently added new custom objects. Why when i open my level editor the objects are sooooo big? did you have the same problem?
(09-29-2012, 09:50 PM)Cendrillion Wrote: [ -> ]Hi, another problem, i recently added new custom objects. Why when i open my level editor the objects are sooooo big? did you have the same problem?

3DS Max?
Sorry, What you mean?
(09-30-2012, 08:21 AM)Cendrillion Wrote: [ -> ]Sorry, What you mean?
Were you using 3DS Max when you created those objects? And then added them to the level?
no i don't use 3dmax

i just took them from modders
Pages: 1 2