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
Problem with the coding
UniversalGamerTV Offline
Junior Member

Posts: 2
Threads: 1
Joined: Nov 2014
Reputation: 0
#1
Problem with the coding

So I don´t know how but somehow I screwed up the code, none of the descriptions work that includes: items, doors and the story selection screen

/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
This is the coding for the extra_english.lang file:
<LANGUAGE>

<RESOURCES>
</RESOURCES>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Just a brief description!</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key_study_1">Storage Room Key</Entry>
<Entry Name="ItemDesc_key_study_1">This seems to be the Storage Room key</Entry>
</CATEGORY>

<CATEGORY Name="LockedDoors">
<Entry Name ="Level_Door_1">This door is locked, It requires a key to open it!</Entry>
<Emtry Name="Level_Door_1_Back">I probably should move on</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="Level_Door_1">Storage Room</Entry>
<Entry Name="Level_Door_1_Back">Office</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_note1_Name">School Project Horror Map</Entry>
<Entry Name="Note_note1_Text">Dit project is gemaakt voor onze leerkracht Mr.Kuipers</Entry>
</CATEGORY>

</LANGUAGE>

/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
And here is the coding for Level 1:
void OnStart()
{
AddUseItemCallback("", "key_study_1", "Level_Door_1", "OpenDoor", true);
}

void OnEnter()
{

}

void OnLeave()
{

}

void OpenDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Level_Door_1", false);
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem("key_study_1");
}

/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
And here is the cfg file coding :
<Main
Name="School Project Horror Map"
Author="Sander, Niels, Rick"
ImgFile="Preview.png"

StartMap="01_school.map"
StartPos="PlayerStartArea_1"
/>

/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
so can someone tell me whats wrong?
And why nothing works anymore? Exept starting the story up
I have some pictures of my files layout


Attached Files
.png   Maps File.png (Size: 194.8 KB / Downloads: 191)
.png   Custom Story File.png (Size: 154.41 KB / Downloads: 180)
11-16-2014, 09:16 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Problem with the coding

(11-16-2014, 09:16 PM)UniversalGamerTV Wrote: <Emtry Name="Level_Door_1_Back">I probably should move on</Entry>

Typos. Be careful with these things.

11-16-2014, 09:33 PM
Find
UniversalGamerTV Offline
Junior Member

Posts: 2
Threads: 1
Joined: Nov 2014
Reputation: 0
#3
RE: Problem with the coding

thanks Mudbill ive seen your vids btw your doing good Big Grin learned a lot keep it up man ! GJ
11-18-2014, 04:21 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Problem with the coding

Thanks man ^^

11-18-2014, 04:41 PM
Find




Users browsing this thread: 1 Guest(s)