Frictional Games Forum (read-only)
Script Problems - 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: Script Problems (/thread-20613.html)

Pages: 1 2 3 4 5 6 7 8 9


RE: Script Problems - Coolfromdah00d - 03-10-2013

(03-10-2013, 04:20 PM)JustAnotherPlayer Wrote:
(03-10-2013, 04:04 PM)Coolfromdah00d Wrote:
(03-10-2013, 02:55 PM)No Author Wrote:
(03-10-2013, 01:48 PM)Coolfromdah00d Wrote:
(03-10-2013, 01:27 PM)JustAnotherPlayer Wrote: Try deleting .map cache's that you have.

but wont it delte my map? my custom story map? everything I've built

No it won't. Map cache's isn't the same file with your map. The game creates cache's after you play your map. It's like a save of your map. But when you change the map (like adding walls or stuff), you won't see any differents with your new saved map. Maybe just a few doors(if you add them) without a wall.

I see what you mean. it's like I play the map then add a new room and continue my map, I wont see the new room unless I start the map again.

(03-10-2013, 04:04 PM)Coolfromdah00d Wrote:
(03-10-2013, 02:55 PM)No Author Wrote:
(03-10-2013, 01:48 PM)Coolfromdah00d Wrote: but wont it delte my map? my custom story map? everything I've built

No it won't. Map cache's isn't the same file with your map. The game creates cache's after you play your map. It's like a save of your map. But when you change the map (like adding walls or stuff), you won't see any differents with your new saved map. Maybe just a few doors(if you add them) without a wall.

I see what you mean. it's like I play the map then add a new room and continue my map, I wont see the new room unless I start the map again.

alright so where do I find the map caches?
the .map cache's are always beside your .map file where ever it was. (If you are confused, where ever you're .map file is, there should be a .map cache there.)

Stop explaining for me like I dont know how to use the Anesia Custom story Creator. there is no map caches the only thing I find inside my map file is the hps file and my map file


RE: Script Problems - Coolfromdah00d - 03-10-2013

(03-10-2013, 04:25 PM)Coolfromdah00d Wrote:
(03-10-2013, 04:20 PM)JustAnotherPlayer Wrote:
(03-10-2013, 04:04 PM)Coolfromdah00d Wrote:
(03-10-2013, 02:55 PM)No Author Wrote:
(03-10-2013, 01:48 PM)Coolfromdah00d Wrote: but wont it delte my map? my custom story map? everything I've built

No it won't. Map cache's isn't the same file with your map. The game creates cache's after you play your map. It's like a save of your map. But when you change the map (like adding walls or stuff), you won't see any differents with your new saved map. Maybe just a few doors(if you add them) without a wall.

I see what you mean. it's like I play the map then add a new room and continue my map, I wont see the new room unless I start the map again.

(03-10-2013, 04:04 PM)Coolfromdah00d Wrote:
(03-10-2013, 02:55 PM)No Author Wrote: No it won't. Map cache's isn't the same file with your map. The game creates cache's after you play your map. It's like a save of your map. But when you change the map (like adding walls or stuff), you won't see any differents with your new saved map. Maybe just a few doors(if you add them) without a wall.

I see what you mean. it's like I play the map then add a new room and continue my map, I wont see the new room unless I start the map again.

alright so where do I find the map caches?
the .map cache's are always beside your .map file where ever it was. (If you are confused, where ever you're .map file is, there should be a .map cache there.)

Stop explaining for me like I dont know how to use the Anesia Custom story Creator. there is no map caches the only thing I find inside my map file is the hps file and my map file

and I still ge the cannot use this item this way error


RE: Script Problems - No Author - 03-11-2013

Then I have no idea what's wrong with your script. SorrySad


RE: Script Problems - PutraenusAlivius - 03-11-2013

This thing made my head ache.


RE: Script Problems - ExpectedIdentifier - 03-11-2013

Attach your script + map file to a post. Then we can take a look at it.


RE: Script Problems - PutraenusAlivius - 03-11-2013

(03-11-2013, 03:40 PM)sonataarctica Wrote: Attach your script + map file to a post. Then we can take a look at it.

We already got the script. We only need the .map file. Now, it's just a matter of time until he's online and gives it to us.


RE: Script Problems - Coolfromdah00d - 03-11-2013

(03-11-2013, 03:46 PM)JustAnotherPlayer Wrote:
(03-11-2013, 03:40 PM)sonataarctica Wrote: Attach your script + map file to a post. Then we can take a look at it.

We already got the script. We only need the .map file. Now, it's just a matter of time until he's online and gives it to us.

I cant attach it

I hope you can help me with it. I'm a beginner with codes so I'm trying to fix better buildings and a better story instead.


RE: Script Problems - PutraenusAlivius - 03-12-2013

(03-11-2013, 06:18 PM)Coolfromdah00d Wrote:
(03-11-2013, 03:46 PM)JustAnotherPlayer Wrote:
(03-11-2013, 03:40 PM)sonataarctica Wrote: Attach your script + map file to a post. Then we can take a look at it.

We already got the script. We only need the .map file. Now, it's just a matter of time until he's online and gives it to us.

I cant attach it

I hope you can help me with it. I'm a beginner with codes so I'm trying to fix better buildings and a better story instead.
Upload the map to MediaFire and give the link to us.


RE: Script Problems - Coolfromdah00d - 03-12-2013

(03-12-2013, 03:24 AM)JustAnotherPlayer Wrote:
(03-11-2013, 06:18 PM)Coolfromdah00d Wrote:
(03-11-2013, 03:46 PM)JustAnotherPlayer Wrote:
(03-11-2013, 03:40 PM)sonataarctica Wrote: Attach your script + map file to a post. Then we can take a look at it.

We already got the script. We only need the .map file. Now, it's just a matter of time until he's online and gives it to us.

I cant attach it

I hope you can help me with it. I'm a beginner with codes so I'm trying to fix better buildings and a better story instead.
Upload the map to MediaFire and give the link to us.

I dont think there's anything wrong with it, I think it's the void thats the problem.


RE: Script Problems - PutraenusAlivius - 03-12-2013

PHP Code:
void OnStart()

   
AddUseItemCallback("""StrangeDoorKey""StrangeDoor""UnlockStrangeDoor"false);
   
SetEntityCallbackFunc("GuestRoomKey""ActiveEntity");
   
AddUseItemCallback("""GuestRoomKey""door01""UnlockDoor"false);
}
     

void UnlockDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("door01"falsetrue);
PlaySoundAtEntity("""Unlock_door""door01"0false);
RemoveItem("GuestRoomKey");
}


void ActiveEntity(string &in asEntitystring &in type)
{
SetEntityActive("corpse01"true);
PlaySoundAtEntity("""12_girl_scream.snt""corpse01"0false);
StartScreenShake(0.5f200.25);
}


void UnlockStrangeDoor(string &in asItemstring &in asEntity)

{
SetSwingDoorLocked("StrangeDoor"falsetrue);
PlaySoundAtEntity("""unlock_door""StrangeDoor"0false);
RemoveItem("StrangeDoorKey");