Author Topic: Errors on Update  (Read 2249 times)

Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Errors on Update
« on: November 18, 2008, 11:56:48 am »
Hi guys,

Originally I thought I had a problem with the QCS - every time I'd try create an object I'd get a wadge of errors and end up with another copy of the object I was trying to create.

Following some discussion on the DS line I performed an update on a room before trying it again and I get a whole load informational messages before the update completes.  This happens in any room, not just ones that I've create/am trying to create.

Anyway, here's a dump of what happens after an update:

Code: [Select]
> update
Updating environment
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 89
'CacheAndCarry' at /secure/cmds/creators/update at line 30
'eventMove' at /secure/save/creators/a/agrippa (/lib/player.c) at line 248
'eventMove' at /secure/save/creators/a/agrippa (/lib/interactive.c) at line 231
'eventMove' at /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39
'CATCH' at /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39
Trace written to /log/catch
*call_other() couldn't find object

---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /secure/save/creators/a/agrippa (/lib/player.c) at line 248
'eventMove' at /secure/save/creators/a/agrippa (/lib/interactive.c) at line 231
'eventMove' at /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39
'CATCH' at /secure/save/creators/a/agrippa (/lib/props/move.c) at line 39
Trace written to /log/catch
*call_other() couldn't find object

---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /realms/agrippa/area/npc/guy#96 (/lib/props/move.c) at line 39

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /realms/agrippa/area/npc/guy#96 (/lib/npc.c) at line 283
'eventCompleteMove' at /realms/agrippa/area/npc/guy#96 (/lib/npc.c) at line 201
'eventMove' at /realms/agrippa/area/npc/guy#96 (/lib/props/move.c) at line 39
'CATCH' at /realms/agrippa/area/npc/guy#96 (/lib/props/move.c) at line 39
Trace written to /log/catch
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /realms/agrippa/area/obj/chest#95 (/lib/props/move.c) at line 39

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /realms/agrippa/area/obj/chest#95 (/lib/std/item.c) at line 161
'eventMove' at /realms/agrippa/area/obj/chest#95 (/lib/props/move.c) at line 39
'CATCH' at /realms/agrippa/area/obj/chest#95 (/lib/props/move.c) at line 39
Trace written to /log/catch
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /domains/default/obj/bbucket#94 (/lib/props/move.c) at line 39

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /domains/default/obj/bbucket#94 (/lib/std/item.c) at line 161
'eventMove' at /domains/default/obj/bbucket#94 (/lib/props/move.c) at line 39
'CATCH' at /domains/default/obj/bbucket#94 (/lib/props/move.c) at line 39
Trace written to /log/catch
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:32

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /lib/std/dummy#93 (/lib/std/base_dummy.c) at line 73
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
Trace written to /log/catch
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:32

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /lib/std/dummy#92 (/lib/std/base_dummy.c) at line 73
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
Trace written to /log/catch
---
2008.11.18-17.52,08
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:32

'<fake>' at /secure/save/creators/a/agrippa (/<driver>) at line 0
'cmdAll' at /secure/save/creators/a/agrippa (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 90
'eventUpdate' at /secure/cmds/creators/update at line 150
'CATCH' at /secure/cmds/creators/update at line 150
'eventDestruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 59
'Destruct' at /realms/agrippa/workroom (/lib/props/clean.c) at line 44
'eventMove' at /lib/std/dummy#91 (/lib/std/base_dummy.c) at line 73
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:32
Trace written to /log/catch
/realms/agrippa/workroom: Ok

Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Re: Errors on Update
« Reply #1 on: November 18, 2008, 11:58:48 am »
Meant to say:

Driver: FluffOS v2.12-ds05
Lib: 2.9a10 for unix

Output from "scan me" and "scan here":

> scan me
Scanning OBJ(agrippa /secure/save/creators/a/agrippa):
        OBJ(staff /secure/obj/staff#39)
        OBJ(wizard's hat /domains/default/armor/wizard_hat#38)
        OBJ(creator's manual /domains/default/obj/manual#37)

> scan here
Scanning OBJ(/realms/agrippa/workroom):
        OBJ(agrippa /secure/save/creators/a/agrippa)
        OBJ(generic npc /realms/agrippa/area/npc/guy#118)
        OBJ(chest /realms/agrippa/area/obj/chest#117)
        OBJ(bin /domains/default/obj/bbucket#116)
        OBJ(workroom /lib/std/dummy#115)
        OBJ(sign /lib/std/dummy#114)
        OBJ(sheet /lib/std/dummy#113)

>
« Last Edit: November 18, 2008, 12:03:51 pm by agrippa »

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1022
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: Errors on Update
« Reply #2 on: November 18, 2008, 12:14:08 pm »
Looks to me like something in your workroom
has a hosed inventory. Perhaps an item whose file was deleted
or whose code is faulty.

please type:

elog agrippa


and post the output here. Also the code to the workroom and
the code to the chest. Remember to use code tags in the post (the # button
when you edit your post).

-Crat

Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Re: Errors on Update
« Reply #3 on: November 18, 2008, 12:23:48 pm »
elog agrippa

Code: [Select]
> elog agrippa
/log/errors/agrippa:

No errors in /log/errors/agrippa.
Try /log/runtime or /log/catch

workroom.c

Code: [Select]
#include <lib.h>
#include <rooms.h>
#include "./customdefs.h"

inherit LIB_ROOM;
int ReadSign();
int ReadSheet();
int privacy = 0;
string privs = "";
string LongString(){
    string ret = "You are standing in the workroom of the mighty " + privs +
    "!  \nYou may return to the Creators' Hall by going down.\n"+
    "A sample room is east."+
    "\n%^GREEN%^There is a sign here you can read.%^RESET%^"+
    "\n%^GREEN%^There is a sheet here you can read.%^RESET%^";
    if(privacy) ret += "\n%^YELLOW%^There is a privacy force field "+
"active around this room.%^RESET%^";
    return ret;
}

static void create() {
    room::create();
    privs = query_privs();
    if( privs ) privs = capitalize(privs);
    else privs = "a creator";

    SetClimate("indoors");
    SetAmbientLight(40);
    SetShort(possessive_noun(privs) + " workroom");
    SetLong( (: LongString :) );
    SetItems( ([ "workroom" : "It looks very nice.",
({"sign","hint","hints"}) : "A sign with hints for creators.",
({"sheet","reminder","reminders"}) : "A sheet with quick reminders for creators.",
      ]) );
    SetRead( ([
({"sign","hint","hints"}) : (: ReadSign :),
({"sheet","reminder","reminders"}) : (: ReadSheet :)
      ]) );
    SetInventory( ([
MY_OBJ "/chest" : 1,
"/domains/default/obj/bbucket" :1,
      ]) );
    SetExits( ([ "down" : "/domains/default/room/wiz_hall.c",
"east" : MY_ROOM "/sample_room"
      ]) );
    SetNoModify(0);
}

int ReadSign(){
    this_player()->eventPage("/news/hints.txt");
    return 1;
}

int ReadSheet(){
    this_player()->eventPage("/news/reminders.txt");
    return 1;
}

void init(){
    ::init();
    add_action("mod_privacy","privacy");
    add_action("mod_privacy","priv");
}
int CanReceive(object ob) {
    if(privacy){
if(!interactive(ob)) {
    message("info","\n\nPRIVACY WARNING: "+ob->GetName()+" has entered the room.\n\n",this_object() );
}
else if(!archp(ob) &&
  ob->GetKeyName() != lower_case(privs)){
    message("info","You bounce off the privacy field.", ob);
    message("info",ob->GetName()+" bounced off the privacy field.",this_object());
    if(!environment(ob)) ob->eventMoveLiving(ROOM_START);
    return 0;
}
    }
    return room::CanReceive(ob);
}

static int set_privacy(int i){
    privacy=i;
    return 1;
}

static int mod_privacy(string str){
    if(!archp(this_player()) &&
      this_player()->GetKeyName() != lower_case(privs)) {
write("You lack the adequate privileges to do that.");
say(this_player()->GetName()+" is trying to muck around with the privacy field system.");
return 1;
    }
    if(!str || str == ""){
if(privacy) str = "off";
else str = "on";
    }
    if(str=="on" || str == "1"){
set_privacy(1);
write("You enable the privacy field.\n");
say(this_player()->GetName()+" enables a privacy force field around the
room.");
        return 1;
    }
    if(str=="off" || str == "0"){
        set_privacy(0);
        write("You disable the privacy field.\n");
        say(this_player()->GetName()+" disables a privacy force field around the room.");
        return 1;
    }
}

chest.c

Code: [Select]
#include <lib.h>

inherit LIB_STORAGE;

void create() {
    ::create();
    SetKeyName("chest");
    SetId(({"chest","wooden chest"}));
    SetShort("a wooden chest");
    SetLong("This is a sturdy wooden chest used to store valuable items.\n"+
      "It is an example of an opaque container.");
    SetInventory(([
        "/domains/town/armor/collar" : 1,
        "/domains/default/armor/breather" : 1,
        "/domains/default/armor/badge" : 1,
        "/domains/default/armor/wizard_hat" : 1,
        "/domains/default/obj/manual" : 1,
        "/secure/obj/machine" : 1,
        "/domains/default/armor/robe" : 1,
        "/domains/default/obj/meter" : 1,
        "/secure/obj/control" : 1,
        "/secure/obj/memo" : 1,
        "/secure/obj/staff" : 1,
        "/domains/default/obj/pinger" : 1,
        "/secure/obj/medtric" : 1,
        "/secure/obj/glasses" : 1,
        "/domains/default/armor/jade_ring" : 1,
        "/domains/default/armor/gray_amulet" : 1,
      ]));
    SetMass(2000);
    SetBaseCost(50);
    SetMaxCarry(10000);
    SetCanClose(1);
    SetClosed(1);
    SetPreventGet("The chest does not budge.");
}

void init(){
    ::init();
}



Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Re: Errors on Update
« Reply #4 on: November 18, 2008, 12:37:44 pm »
Thanks a lot for your help guys.  Crat had me run a eval return ROOM_VOID which came back with a room that didn't exist.  I create a new domain that I made as my default domain WITHOUT using domaincreate command.  Now that's been done and it works fine.

Thanks again chaps!