Cuberite Forum
Lua hooks needed! - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Lua hooks needed! (/thread-464.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: Lua hooks needed! - NiLSPACE - 01-07-2013

its maybe usefull to separate the lua bugs/feature requests from the other bugs/feature requests


RE: Lua hooks needed! - Luksor - 01-07-2013

(01-07-2013, 01:51 AM)FakeTruth Wrote: I could add another category, or even another project to the bugtracker if you really think that's necessary

Speaking about bugtracker, there are some entries that should be removed:
http://mc-server.org/support/index.php?do=details&task_id=276&project=2&pagenum=3
http://mc-server.org/support/index.php?do=details&task_id=189&project=2&pagenum=2
http://mc-server.org/support/index.php?do=details&task_id=242&project=2&pagenum=2
http://mc-server.org/support/index.php?do=details&task_id=188&project=2&pagenum=2
http://mc-server.org/support/index.php?do=details&task_id=96


RE: Lua hooks needed! - xoft - 01-07-2013

(01-06-2013, 09:15 PM)bearbin Wrote: What are the hooks so I can implement the new stuff?

They are the ones listed in my post:
https://forum.cuberite.org/showthread.php?tid=464&pid=5913#pid5913

Note that they are not yet in the SVN trunk version (so they're not yet in the nightbuilds), you need to switch to a branch called "branches/hooks" and compile for yourself, if you want to try them out.


RE: Lua hooks needed! - bearbin - 01-07-2013

Yeah, I have switched branches. Thanks for the help Smile


RE: Lua hooks needed! - xoft - 01-07-2013

(01-07-2013, 02:22 AM)Luksor Wrote: Speaking about bugtracker, there are some entries that should be removed:

The "Core won't let player interact ..." issue is still valid and is a rather pesky one, otherwise I agree. And since you are a developer, just ask FakeTruth to give you devel access to FS, so that you can close issues, too Smile

I'd like to ask as many plugin authors as possible to give the new branch a thorough test and see if they would like to see something changed / added, hook-wise. If not, we'll merge this branch into the trunk soon, so you have some time left to modify your plugins for this new version.


RE: Lua hooks needed! - bearbin - 01-07-2013

What's the return code to cancel a block break event? My old code with updated names doesn't work Sad

(Preventing block places works fineTongue)


RE: Lua hooks needed! - Taugeshtu - 01-07-2013

I could test new branch if you can make a win build Smile


RE: Lua hooks needed! - NiLSPACE - 01-07-2013

here you go Smile its the hook branch


RE: Lua hooks needed! - bearbin - 01-08-2013

Can you add to the OnPlayerBreakingBlock and the placing one: what the player is holding in the hand at that time.


RE: Lua hooks needed! - xoft - 01-08-2013

I don't think that parameter is needed - you can check cPlayer:GetEquippedItem() should you need it. There's already heaps of parameters, didn't want to spam the function even more with stuff that you can get somewhere else effectively.