Author Topic: Arch board bug  (Read 1766 times)

Offline z993126

  • BFF
  • ***
  • Posts: 128
    • View Profile
Arch board bug
« on: August 30, 2012, 04:42:54 PM »
The board in /secure/room/arch.c does not function.

Its existing code,
Code: [Select]
    SetInventory( ([
                "/secure/obj/arch_board" : 1,
                ]) );

should be more like
Code: [Select]
object o_board;
o_board = new( "/secure/obj/arch_board" );
o_board->SetKeyName( "messageboard" );
o_board->SetId( ({ "board", "messageboard", "message board", "arch board" }) );
o_board->set_board_id("arch_board");
o_board->set_max_posts( 50 );
o_board->SetShort( "the arch message board" );
o_board->eventMove( this_object() );

(without the extra configuration items, no file for it was showing up in /secure/save/boards...)
set_board_id() is probably the key item, there, really...

Offline z993126

  • BFF
  • ***
  • Posts: 128
    • View Profile
Re: Arch board bug
« Reply #1 on: August 30, 2012, 05:33:14 PM »
Possible source of the problem is that /secure/save/boards/admin_board.o has __Owner set to "CMDS", which is a nonexistant group; it should be "SECURE".

Offline z993126

  • BFF
  • ***
  • Posts: 128
    • View Profile
Re: Arch board bug
« Reply #2 on: August 30, 2012, 05:36:44 PM »
Yep, that was the problem.  Changed CMDS to SECURE in the admin_board.o file and it properly worked (even after reverting the code for /secure/room/arch.c to its original form)