I have a problem with my master.c since we upgraded to 3.3.720. I did a semi-workaround which doesn't really work, but it wasn't a big deal because it was rarely used code. But I figure I should get it fixed, because it has me scratching my head why it doesn't work (in either code I use).
The code is for the creating a castle when a player wizzes. This is in master.c (simul_efun of create_wizard() which calls this in master):
string master_create_wizard(string owner, string domain, object caller)
{
string castle, workroom, castle_dest;
object player;
//player = funcall(#'find_player, owner);
player = funcall(symbol_function('find_player, owner));
if(!player)
return 0;
......
The commented out line worked in previous versions of the driver. In this version, on a clean boot up, the master.c fails to load with Undefined function: find_player. However, if I uncomment that line while the mud is up and running, and 'update master.c', it works fine...until the next boot.
The replacement line for that commented line compiles fine at boot. But it doesn't actually work, at all. When called, it errors with "Failed to load file: 'somewannabewizname'." (player who initiated it).
Ideally, I want the commented out line to work, as that's the simplest way. But I'm curious why the second doesn't work either (I assume it's my lack of understanding in writing it).
Thoughts?
Malc@Infinity/Alatia