Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » [FIXED] Refill Hook Not working
[FIXED] Refill Hook Not working [message #454986] Sun, 18 September 2011 00:36 Go to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
For some reason the
bool H2PGunGame::OnRefill(GameObject *purchaser)

does not do anything... I have tried returning false... but it doesnt work. This is the stock function with the plugin example so everything is initialized and declared.

any ideas?


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Wed, 28 September 2011 19:44]

Report message to a moderator

Re: Refill Hook Not working [message #455375 is a reply to message #454986] Tue, 20 September 2011 16:20 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
bump

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Refill Hook Not working [message #455391 is a reply to message #454986] Tue, 20 September 2011 17:09 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Did you register the hook? I've had a quick look at the code and see nothing wrong with it.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Refill Hook Not working [message #455448 is a reply to message #454986] Wed, 21 September 2011 01:20 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
same thing here the refill hook doesn't trigger.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Refill Hook Not working [message #455456 is a reply to message #454986] Wed, 21 September 2011 05:11 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3556
Registered: February 2003
Karma: 0
General (3 Stars)

Can someone with the refill hook problem post their entire code so I can check it?


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Refill Hook Not working [message #455474 is a reply to message #454986] Wed, 21 September 2011 08:59 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
AddRefillHook(RefillHook);

was never added to SSGMGameManager::Init so that's why it wasn't working.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Wed, 21 September 2011 09:08]

Report message to a moderator

Re: Refill Hook Not working [message #455575 is a reply to message #455474] Wed, 21 September 2011 19:09 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Gen_Blacky wrote on Wed, 21 September 2011 11:59

AddRefillHook(RefillHook);

was never added to SSGMGameManager::Init so that's why it wasn't working.


well theres our problem Wink
I'm guessing this will be fixed next release? Wink


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Refill Hook Not working [message #455583 is a reply to message #454986] Wed, 21 September 2011 20:16 Go to previous message
jonwil is currently offline  jonwil
Messages: 3556
Registered: February 2003
Karma: 0
General (3 Stars)

Yes it will be fixed in the next build.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Previous Topic: How do I add both M00_ and C&C_ prefixed map to my rotation?
Next Topic: Is TT blocking keyboard macro's?
Goto Forum:
  


Current Time: Sun Jul 14 08:23:12 MST 2024

Total time taken to generate the page: 0.00695 seconds