Frictional Games Forum (read-only)
Combining Items Help - 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: Combining Items Help (/thread-9587.html)

Pages: 1 2


RE: Combining Items Help - Selyp - 08-08-2011

Added Debug Message to my script and it doesn't seem like the function is being called. I am positive the names of the items are right so I'm not sure why this is not working. Any help would be phenomenal, I've been trying to figure this out off and on for 3 days now Sad It's probably going to turn out to be something dumb on my part, but as long as I can get it workingh Im okay with that!


RE: Combining Items Help - DRedshot - 08-08-2011

ok, here are a few things you should try out.
1st AddDebugMessage("Inventory.hps is working properly" , false);
put this in void OnGameStart() if this doesn't show up, you've put the .hps file in the wrong place.

2nd make sure you name the item correctly, since there are a few places to put the name. (such as SubItemName and Entity Name) as a test, give both fields identical names and if it works, great! you can change the other field if you want!

3rd in your map.hps, under OnEnter()
put
if(HasItem("Vinegar")){AddDebugMessage("Player has vinegar from other map!" , false);}
and in your other map do the same for the phospheric Acid.

Hopefully these debug messages will help pinpoint your problem!




RE: Combining Items Help - Selyp - 08-08-2011

Thank you! Those did help me out. It seems thats my inventory.hps file is not being called, but I'm not sure why. I have it in custom_stories/mymapname/maps, along with all my other map files. I also tried putting it outside that folder with my .lang file and that didn't work either. Is there somewhere else it should go?


RE: Combining Items Help - DRedshot - 08-08-2011

you originally had it in the right place, make sure its called "inventory.hps" not "Inventory.hps" or "inventory.hps.txt"
I had this exact same problem, but i cant remember how i fixed it, sorry Smile


RE: Combining Items Help - Selyp - 08-08-2011

Hmm its all spelled right and in the correct place. I'm not sure what wrong with it. Thank you for the help though, now I know how to use Debug messages better Smile




RE: Combining Items Help - DRedshot - 08-08-2011

oh, i remember how i fixed it with me - put the maps and script files in
custom_stories>myname>maps>main>ch01>
then in the cutomstorysettings.cfg specify the new root directory for the maps.
rather than the problem being that the original map setup was wrong, i think the problem is it just needs a little shift around to 'refresh' and sort itself out Smile