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
Combination doesn't work.
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Combination doesn't work.

Hey guys,

So I was making a stone and a chipper combining puzzle, I have the inventory.hps:

PHP Code: (Select All)
void OnGameStart()
{
    
AddCombineCallback("hammer_chipper""hammer""chipper""hammer_chipper"false);
}

void hammer_chipper(string &in asItemAstring &in asItemB)
{
    
AddPlayerSanity(10);
    
PlayGuiSound("15_make_hammer"1.0f);
    
RemoveItem(asItemA); RemoveItem(asItemB);
    
GiveItem("stone_hammer_chipper""Puzzle""stone_hammer_chipper""stone_hammer_chipper.tga"0);    


The names in the inventory.hps and Level Editor are surely the same, I chcecked it like 10 times, and when I try to combine the hammer with chipper in-game it doesn't work.

The inventory.hps is ofc located in my maps folder.

Any thoughts on what is causing this problem? Any help will be appreciated.
03-24-2014, 04:54 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Combination doesn't work.

I sometimes fix it by placing everything in the hps file instead. Try giving it a go.

Derp.
03-24-2014, 05:07 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: Combination doesn't work.

(03-24-2014, 05:07 PM)Neelke Wrote: I sometimes fix it by placing everything in the hps file instead. Try giving it a go.

Nope, sitll doesn't work.
03-24-2014, 05:19 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Combination doesn't work.

You should try adding debug messages (if you have dev environment enabled) or just something to indicate if this event is executed. Using those you can trace back to where it stops working.

The script does look fine though. Perhaps the problem is that the file isn't loaded.

03-24-2014, 06:51 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#5
RE: Combination doesn't work.

(03-24-2014, 06:51 PM)Mudbill Wrote: You should try adding debug messages (if you have dev environment enabled) or just something to indicate if this event is executed. Using those you can trace back to where it stops working.

The script does look fine though. Perhaps the problem is that the file isn't loaded.

Fuck, adding debug message helped me again, like in my lever problem :o
This is seriously paranormal, anyway thank you guys for helping another soul!
03-24-2014, 08:22 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Combination doesn't work.

Heh, oh my. You should call the Ghost Busters.

03-24-2014, 10:34 PM
Find




Users browsing this thread: 1 Guest(s)