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
CoolGuyZ65 TC help thread
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#11
RE: CoolGuyZ65 TC help thread

Your entry "outside" is called "level_wood_1" and your entry "basement" is called "door_1".

I would like to point out that i have written a tool to make editing language files much easier (I actually used it to track down the above issue instead of looking through the xml manually) - it can be found here if you are interested.
(This post was last modified: 01-15-2012, 06:58 AM by Apjjm.)
01-15-2012, 06:55 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#12
RE: CoolGuyZ65 TC help thread

(01-15-2012, 06:55 AM)Apjjm Wrote: Your entry "outside" is called "level_wood_1" and your entry "basement" is called "door_1".

I would like to point out that i have written a tool to make editing language files much easier (I actually used it to track down the above issue instead of looking through the xml manually) - it can be found here if you are interested.
That was a fantastic program. I highly recommend. Easy to use and clean! =]

Also, here's what's in my RESOURCES, not sure if it's necessary, but add it, it couldn't hurt, you know?


<RESOURCES>
<Directory Path="fonts/eng" />
<Directory Path="lang/eng" />
</RESOURCES>
01-15-2012, 03:31 PM
Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#13
RE: CoolGuyZ65 TC help thread

Thanks for your help guys XxRoCkBaNdMaNxX helped me fix it Smile but when I interact with the door it dosen't show the message.

</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="A">I need my keys I think I dropped them in the Storage.</Entry>
</CATEGORY>
</LANGUAGE>

Thats my lang and this is my hps

void Locked(string &in asEntity)

{

    SetMessage("Messages", "A", 2.0f);

}
01-15-2012, 06:48 PM
Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#14
RE: CoolGuyZ65 TC help thread

Nvm it's fixed Big Grin
01-15-2012, 10:17 PM
Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#15
RE: CoolGuyZ65 TC help thread

I have a new problem with my basement map and the key not unlocking the storage door here is my hps and lang please help.

////////////////////////////
// Run first time starting map
void OnStart()
{
    AddUseItemCallback("", "Storage_Key", "storage_1", "UseKeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)

{
    SetLevelDoorLocked("storage_1", false);
    PlaySoundAtEntity("", "unlock_door", "storage_1", 0, false);
    RemoveItem("Storage_Key");
}

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

}

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

}

[<LANGUAGE>
  <RESOURCES>
  </RESOURCES>
  <CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">Escape The Curse!</Entry>
  </CATEGORY>
  <CATEGORY Name="Inventory">
    <Entry Name="ItemName_House Key">House Key</Entry>
    <Entry Name="ItemDesc_House Key">Key to my Study Door</Entry>
    <Entry Name="ItemName_Basement Key">Basement Key</Entry>
    <Entry Name="ItemDesc_Basement Key">Key to my Basement</Entry>
    <Entry Name="ItemName_Storage Key">Storage Key</Entry>
    <Entry Name="ItemDesc_Storage Key">Key to the Storage</Entry>
    <Entry Name="ItemDesc_Glowstick">Thank God I brought this with me. I have to press $ButLantern to turn it on, and $ButLantern to turn it off again. It's electric, so it's powered by batteries.</Entry>
    <Entry Name="ItemName_Glowstick">Glowstick</Entry>
    <Entry Name="ItemName_Battery">Battery</Entry>
    <Entry Name="ItemDesc_Battery">Battery for my Glowstick.</Entry>
  </CATEGORY>
  <CATEGORY Name="PreMenu">
    <Entry Name="WelcomeMessage01">Welcome to The Curse! This Total Conversion mod is about a simple man who likes to study but one day you visit your neighbour and find a terrifying secret about him.</Entry>
    <Entry Name="WelcomeMessage02">As you visit your neighbour you wonder why his door is open so you go inside to see if he is okay but you should have really just walked away.</Entry>
    <Entry Name="WelcomeMessage03">Like always, any Amnesia total conversion is best played at a low gamma. Please take this opportunity to change your screens brightness and contrast.</Entry>
    <Entry Name="WelcomeMessage04">Please change your gamma to a setting you feel comfortable with.</Entry>
    <Entry Name="WelcomeMessage05">That's all you gotta do now enjoy playing The Curse!</Entry>
  </CATEGORY>
  <CATEGORY Name="Ending">
    <Entry Name="StartCredits">The Curse[br]Made By:XxWestKillzXx[br]Thanks To:XxRoCkBaNdMaNxX and Statyk for helping with the scripting/models/sounds [br]Models: [br]Glowstick By Statyk [br]Sounds: [br]Glowstick By XxRoCkBaNdMaNxX [br]Thanks To: Frictional Games for Amnesia.Hope You Enjoyed Playing [br]</Entry>
  </CATEGORY>
  <CATEGORY Name="Levels">
    <Entry Name="Basement">Basement</Entry>
    <Entry Name="Outside">Outside</Entry>
  </CATEGORY>
  <CATEGORY Name="Messages">
    <Entry Name="A">I need my keys I think I dropped them in the Storage.</Entry>
  </CATEGORY>
  <CATEGORY Name="Journal">
    <Entry Name="Quest_LockedLvL_Text">Damn I must have lost my keys yesterday in the storage...I better go get them.</Entry>
  </CATEGORY>
</LANGUAGE>
01-16-2012, 12:06 AM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#16
RE: CoolGuyZ65 TC help thread

Your callback function is called "KeyOnDoor" but you passed in "UseKeyOnDoor" into the AddUseItemCallBack code. Try the following.

////////////////////////////
// Run first time starting map
void OnStart()
{
    AddUseItemCallback("", "Storage_Key", "storage_1", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)

{
    SetLevelDoorLocked("storage_1", false);
    PlaySoundAtEntity("", "unlock_door", "storage_1", 0, false);
    RemoveItem("Storage_Key");
}

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

}

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

}
01-16-2012, 01:16 AM
Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#17
RE: CoolGuyZ65 TC help thread

(01-16-2012, 01:16 AM)Apjjm Wrote: Your callback function is called "KeyOnDoor" but you passed in "UseKeyOnDoor" into the AddUseItemCallBack code. Try the following.

////////////////////////////
// Run first time starting map
void OnStart()
{
    AddUseItemCallback("", "Storage_Key", "storage_1", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)

{
    SetLevelDoorLocked("storage_1", false);
    PlaySoundAtEntity("", "unlock_door", "storage_1", 0, false);
    RemoveItem("Storage_Key");
}

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

}

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

}
Thanks man this really helped!

01-16-2012, 05:57 PM
Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#18
RE: CoolGuyZ65 TC help thread

I need help making a note have text when I pick it up plz help.
01-17-2012, 03:22 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#19
RE: CoolGuyZ65 TC help thread

(01-17-2012, 03:22 AM)CoolGuyZ65 Wrote: I need help making a note have text when I pick it up plz help.

http://www.youtube.com/watch?v=ZWGthcZc6...8&index=13

Tutorials: From Noob to Pro
01-17-2012, 04:42 AM
Website Find
CoolGuyZ65 Offline
Junior Member

Posts: 10
Threads: 1
Joined: Jan 2012
Reputation: 0
#20
RE: CoolGuyZ65 TC help thread

Thanks!
01-18-2012, 12:19 AM
Find




Users browsing this thread: 2 Guest(s)