Page 1 of 1

Reachability of code

PostPosted: Fri Oct 14, 2011 19:56
by dodomorandi
I was trying to use some event-related pieces of code, but I have a problem.
I'm not able to trigger anything that brings the code inside Client::clickObject. The problem is that inside function the_game, around line 1510 in the master branch, client.getSelectedObject always returns NULL for me.

If someone can help me I really would appreciate that!
Thanks

-- dodomorandi

PostPosted: Sat Oct 15, 2011 12:24
by kahrl
MapBlockObjects are not used at all anymore, unless you are playing on a very old map. They have been deprecated for a long time.
- SignObject has been replaced by sign nodes (MapNodes with content CONTENT_SIGN_WALL and SignNodeMetadata)
- RatObject has been superseded by RatCAO/RatSAO
- ItemObject has been superseded by ItemCAO/ItemSAO
- PlayerObject was never used AFAIK; other players are drawn by the RemotePlayer class.

PostPosted: Tue Oct 25, 2011 23:17
by dodomorandi
Perfect! Thanks kahrl!