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
Combining Items Help
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#11
RE: Combining Items Help

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!

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
08-08-2011, 12:00 AM
Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#12
RE: Combining Items Help

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!


08-08-2011, 02:18 AM
Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#13
RE: Combining Items Help

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?

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
08-08-2011, 02:56 AM
Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#14
RE: Combining Items Help

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

08-08-2011, 03:03 AM
Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#15
RE: Combining Items Help

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


Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
08-08-2011, 06:59 AM
Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#16
RE: Combining Items Help

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

08-08-2011, 10:18 AM
Find




Users browsing this thread: 2 Guest(s)