Making my first level! - 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: Making my first level! (/thread-9013.html) |
RE: Making my first level! - Zypherzemus - 07-09-2011 (07-09-2011, 12:32 AM)christopher231 Wrote: thats the thing i have that and it still doesnt work Wow, hmm.. so the .map file and the .hps file have the same exact name? you have a simple .lang file in custom_stories>"the name of your story" folder? not in the maps folder. do you have a .cfg file? (that might be the problem right there) RE: Making my first level! - Angerpull - 07-09-2011 (07-08-2011, 07:57 AM)christopher231 Wrote: ok so my .hps looks like that ^^^ The reason you cannot run your map is because you haven't saved it's Starting location. Copy and paste this with your map folder. Not inside it! Spoiler below!
If you do it correctly it should work. And it MUST be a CFG file. RE: Making my first level! - Kyle - 07-09-2011 @Angerpull; It has to be called "custom_story_settings.cfg", to add on that. :3 RE: Making my first level! - christopher231 - 07-09-2011 nevermind IT WORKS NOW i think i need to use that code that you showed me kyle!! thanks alot RE: Making my first level! - christopher231 - 07-09-2011 another thing, i watched this vid telling you how to make the extra_english.lang. but for some odd reason its not working for me can some one help aging ??? thanks RE: Making my first level! - Kyle - 07-09-2011 (07-09-2011, 07:57 AM)christopher231 Wrote: another thing, i watched this vid telling you how to make the extra_english.lang. Can you show me your extra_english.lang please? RE: Making my first level! - christopher231 - 07-10-2011 <LANGUAGE> <RESOURCES /> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">"Testing level" </Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name= ItemName_ToCellerDoorkey_1> CellerDoor key </Entry> <Entry Name= ItemDesc_ToCellerDoorkey_1> test key </Entry> </CATEGORY> </LANGUAGE> there's my extra_english.lang the description works now but i cant seem to make the key have a different name in game!!! RE: Making my first level! - Zypherzemus - 07-10-2011 (07-10-2011, 03:48 AM)christopher231 Wrote: <LANGUAGE> simple, change the name of the key to match Exactly what it is in the .hps file as well as the .lang file EX: If your key's name is "key_1" in the .hps file, it should be "key_1" in the lang file however, it should be whatever the text name is going to be. you can change the text Entry name in the level Editor by clicking the key, then clicking the Entity tab, scroll down until you see TextEntry (I think) and whatever you put in that dialog box has to match up in the .lang file for it to work, understand? EDIT: Oops, my mistake, it's CustomSubItenTypeName, not TextEntry. RE: Making my first level! - christopher231 - 07-12-2011 ok i got the extra_english.lang to work, here it is <LANGUAGE> <RESOURCES /> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">"The Castle" </Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemName_TowerKey">Tower Key</Entry> <Entry Name="ItemDesc_TowerKey">Looks like the key for the near by Tower</Entry> </CATEGORY> </LANGUAGE> but now i cant seem to get the key to unlock the door void OnStart() { AddUseItemCallback("", "TowerKey_1", "castle_arched01_3", "UsedKeyOnDoor", ture); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("castle_arched01_3", false, true); PlaySoundAtEntity("", "unlock_door.snt", "castle_arched01_3", 0, false); RemoveItem("TowerKey_1"); } void OnEnter() { } void OnLeave() { } can some one please show me whats wrong? http://www.youtube.com/user/clrsub11#p/u/2/3vn9MhoRFl0 this is the vid ive been watching that shows you how to make it work. P.S. this is for a differnt level so thats why different names for e.g. the key name RE: Making my first level! - Zypherzemus - 07-12-2011 Woah... Way to many syntax errors. Code: <LANGUAGE> Code: void OnStart() And is "castle_arched01_3" really the name of the door? (That's what you actually named it) Or is it by default? (If it's by default, that is most likely an archway instead of a door) |