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
URGENT Map not starting
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#11
RE: URGENT Map not starting

(07-31-2011, 05:31 PM)MrCookieh Wrote:
void LevelDoorUnlocked(string &in asItem, string &in asEntity)
{
SetlevelDoorLocked("LevelDoor_1", false);

you have to close this one with a }
couldn't find more... but that shouldn't fix the crash, too...

Nope. Still don't work. :/

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-31-2011, 05:34 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#12
RE: URGENT Map not starting

The quests need to have a string &in asName, or it works for me. Then you refer to "quest2" for the name and "Quest2" for the name of it in the "extra_english.lang". It is the same for the rest of them. Example:

AddQuest("quest2", "Quest2");

Script:

void OnStart()
{
    SetMessage("BeginningOfHorror", "Arrival", 0);
    AddQuest("quest2", "Quest2");
    SetEntityPlayerInteractCallback("SuicideRoom_1", "SuicideRoomQuest", true);
    AddEntityCollideCallback("Player", "QuestArea_1", "CollideQuests", true, 1);
    AddEntityCollideCallback("Player", "CompleteRoomQuest_1", "CollideCompleteQuest", true, 1);
    SetEntityPlayerInteractCallback("Note04", "NoteQuest", true);
    SetEntityPlayerInteractCallback("SuicideRoomKey_1", "KeyMessage", true);
    AddUseItemCallback("" ,"SuicideRoomKey_1", "SuicideRoom_1", "UsedKeyOnDoor", true);
    AddUseItemCallback("", "LevelDoorKey_1", "LevelDoor_1", "LevelDoorUnlocked", true);
}
void OnEnter()
{
}
void OnLeave()
{
    SetupLoadScreen("LoadingText", "Underpass", 1, "");
    CompleteQuest("", "Quest2");
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("SuicideRoom_1", false, true);
    CompleteQuest("quest4", "Quest4");
    PlaySoundAtEntity("", "unlock_door.snt", "LevelDoor_1", 0, false);
}
void LevelDoorUnlocked(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("LevelDoor_1", false);
}
void SuicideRoomQuest(string &in asEntity)
{
    AddQuest("quest4", "Quest4");
}
void NoteQuest(string &in asEntity)
{
    AddQuest("quest3", "Quest3");
}
void KeyMessage(string &in asEntity)
{
    SetMessage("BeginningOfHorror", "KeyPickup", 0);
}
void CollideQuests(string &in asParent, string &in asChild, int alState)
{
    AddQuest("quest2", "Quest2");
}
void CollideCompleteQuest(string &in asParent, string &in asChild, int alState)
{
    CompleteQuest("quest3", "Quest3");
}

I also fixed a few problems in there.

(This post was last modified: 07-31-2011, 05:39 PM by Kyle.)
07-31-2011, 05:37 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#13
RE: URGENT Map not starting

(07-31-2011, 05:37 PM)Kyle Wrote: The quests need to have a string &in asName, or it works for me. Then you refer to "quest2" for the name and "Quest2" for the name of it in the "extra_english.lang". It is the same for the rest of them. Example:

AddQuest("quest2", "Quest2");

Script:

void OnStart()
{
    SetMessage("BeginningOfHorror", "Arrival", 0);
    AddQuest("quest2", "Quest2");
    SetEntityPlayerInteractCallback("SuicideRoom_1", "SuicideRoomQuest", true);
    AddEntityCollideCallback("Player", "QuestArea_1", "CollideQuests", true, 1);
    AddEntityCollideCallback("Player", "CompleteRoomQuest_1", "CollideCompleteQuest", true, 1);
    SetEntityPlayerInteractCallback("Note04", "NoteQuest", true);
    SetEntityPlayerInteractCallback("SuicideRoomKey_1", "KeyMessage", true);
    AddUseItemCallback("" ,"SuicideRoomKey_1", "SuicideRoom_1", "UsedKeyOnDoor", true);
    AddUseItemCallback("", "LevelDoorKey_1", "LevelDoor_1", "LevelDoorUnlocked", true);
}
void OnEnter()
{
}
void OnLeave()
{
    SetupLoadScreen("LoadingText", "Underpass", 1, "");
    CompleteQuest("", "Quest2");
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("SuicideRoom_1", false, true);
    CompleteQuest("quest4", "Quest4");
    PlaySoundAtEntity("", "unlock_door.snt", "LevelDoor_1", 0, false);
}
void LevelDoorUnlocked(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("LevelDoor_1", false);
}
void SuicideRoomQuest(string &in asEntity)
{
    AddQuest("quest4", "Quest4");
}
void NoteQuest(string &in asEntity)
{
    AddQuest("quest3", "Quest3");
}
void KeyMessage(string &in asEntity)
{
    SetMessage("BeginningOfHorror", "KeyPickup", 0);
}
void CollideQuests(string &in asParent, string &in asChild, int alState)
{
    AddQuest("quest2", "Quest2");
}
void CollideCompleteQuest(string &in asParent, string &in asChild, int alState)
{
    CompleteQuest("quest3", "Quest3");
}

I also fixed a few problems in there.

Kyle, you are amazing. I seriously worship you (:

If you need story writing help. Ask me. I love writing (: I have a very good qualification in it as well (:

EDIT: Can you tell me what the errors were?

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
(This post was last modified: 07-31-2011, 05:50 PM by ObsidianLegion.)
07-31-2011, 05:50 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#14
RE: URGENT Map not starting

I think MrCookie missed this:

SetlevelDoorLocked("LevelDoor_1", false);

SetLevelDoorLocked("LevelDoor_1", false);

07-31-2011, 05:54 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#15
RE: URGENT Map not starting

(07-31-2011, 05:54 PM)Kyle Wrote: I think MrCookie missed this:

SetlevelDoorLocked("LevelDoor_1", false);

SetLevelDoorLocked("LevelDoor_1", false);

Okay (: Want my games maps so far as a token of my thanks?



"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-31-2011, 05:57 PM
Find
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#16
RE: URGENT Map not starting

Does this really crash the game without any error message? :O

The Well: Descent - Take a look at it!
07-31-2011, 05:57 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#17
RE: URGENT Map not starting

(07-31-2011, 05:57 PM)MrCookieh Wrote: Does this really crash the game without any error message? :O

It obviously does. :/

Crappy ain't it?

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-31-2011, 05:58 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#18
RE: URGENT Map not starting

(07-31-2011, 05:57 PM)Lolnesia09 Wrote:
(07-31-2011, 05:54 PM)Kyle Wrote: I think MrCookie missed this:

SetlevelDoorLocked("LevelDoor_1", false);

SetLevelDoorLocked("LevelDoor_1", false);

Okay (: Want my games maps so far as a token of my thanks?

No thanks. Smile

I help, that's it. Tongue

07-31-2011, 06:03 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#19
RE: URGENT Map not starting

(07-31-2011, 06:03 PM)Kyle Wrote:
(07-31-2011, 05:57 PM)Lolnesia09 Wrote:
(07-31-2011, 05:54 PM)Kyle Wrote: I think MrCookie missed this:

SetlevelDoorLocked("LevelDoor_1", false);

SetLevelDoorLocked("LevelDoor_1", false);

Okay (: Want my games maps so far as a token of my thanks?

No thanks. Smile

I help, that's it. Tongue

Dude..........+1 Kudos to you my friend

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
07-31-2011, 06:04 PM
Find




Users browsing this thread: 1 Guest(s)