Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Maze of Ith

Pages: [1] 2 3
1
Design Lab / Re: Security/Permissions
« on: January 19, 2015, 04:54:23 pm »
Quix - I have forked your repo and have started updating some things. First commit was to resolve an issue with exec(user, this_object()); in the login.c get_password function. It is working now. I will be updating things as I move along and move some more code from my lil project (lilypad) to SuckingMUD to get it a little further along.

Cheers!
Zed

2
Drivers / Re: Compile errors
« on: April 25, 2014, 03:29:43 pm »
Well, the motherboard in my mac ate it. It doesn't surprise me all that much, as I knew it was coming. Ha! Oh well. I have ordered replacement parts which I should be getting soon. Once I get it back up and running I will see what progress I can make on the OS X compile issues.

Ith\Zed

3
Drivers / Re: Compile errors
« on: April 23, 2014, 11:56:04 pm »
Same error when using gcc 4.8 and clang:
Code: [Select]
backend.cc:161:22: error: no matching conversion for functional-style cast from
      '__bind<int (&)(bool), bool>' to 'tick_event::callback_type'
      (aka 'function<void ()>')
  ...tick_event::callback_type(std::bind(reclaim_objects, true)));

Code: [Select]
make[1]: *** [backend.o] Error 1
make: *** [all] Error 2

I am going to poke around a bit and see if I can get it to work. If I find anything, I will post back, but am definitely open to suggestions.

4
Drivers / Re: Compile errors
« on: April 22, 2014, 10:15:45 pm »
I am running into the same issue compiling on OS X 10.9.2 - exact errors and everything. I am installin gcc48 now and will let you all know how it goes (thank you, fink).

5
Dead Souls Support / Re: Unable to Log in to DS3.6 mud
« on: July 19, 2013, 02:31:20 pm »
So, replacing the portal.o file allowed me to log in, but several things were not functioning. After some digging I removed the guilds.o file and replaced it from backup as well, and now things seem to be fine. Thanks again, Nilrin!

Cheers.

6
Dead Souls Support / Re: Unable to Log in to DS3.6 mud
« on: July 19, 2013, 09:18:20 am »
Thanks, Nilrin. I had replaced several .o files from backups, but not the portal.o file. I will give that a shot and see how goes.

7
Dead Souls Support / Re: Unable to Log in to DS3.6 mud
« on: July 15, 2013, 12:38:01 pm »
I am surprised there were no replies to this. I think I may have the issue narrowed down, and will post what I find if I am on the right track and can get it running again.

8
Dead Souls Support / Unable to Log in to DS3.6 mud
« on: June 19, 2013, 01:25:41 pm »
To make a long story short, power went out and after getting servers back online and my mud started, I am unable to log in. I can telnet to it, the log in screen displays, but after entering a username it just hangs indefinitely. I have a fairly recent backup so can restore files if needed, but I don't know what would cause this behavior specifically. Even if I enter a name for an account that does not yet exist it hangs.

I fired up the mud and attempted a single log in, and this is what was generated in the catch log:
Code: [Select]

--- Looney II
2013.06.19-12.20,27
*restore_object(): Illegal array format while restoring Nameservers.
Object: /daemon/intermud (/<driver>) at line 0

'heart_beat' at /secure/daemon/ping at line 90
'CheckOK' at /secure/daemon/ping at line 21
'update' at /secure/sefun/sefun at /secure/sefun/load_object.c:58
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:58
'create' at /daemon/intermud at line 55
'RestoreObject' at /daemon/intermud (/lib/props/save.c) at line 72
'unguarded' at /secure/sefun/sefun at /secure/sefun/security.c:104
'apply_unguarded' at /secure/daemon/master at line 606
'CATCH' at /secure/daemon/master at line 606
'<fake>' at /daemon/intermud (/<driver>) at line 0

--- Looney II
2013.06.19-12.20,27
**restore_object(): Illegal array format while restoring Nameservers.
Object: /secure/daemon/master at line 608

'heart_beat' at /secure/daemon/ping at line 90
'CheckOK' at /secure/daemon/ping at line 21
'update' at /secure/sefun/sefun at /secure/sefun/load_object.c:58
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:58
'create' at /daemon/intermud at line 55
'RestoreObject' at /daemon/intermud (/lib/props/save.c) at line 72
'unguarded' at /secure/sefun/sefun at /secure/sefun/security.c:104
'apply_unguarded' at /secure/daemon/master at line 608

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 16
'CATCH' at /secure/daemon/portal at line 16
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 18
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 20
'CATCH' at /secure/daemon/portal at line 20
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 22
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 16
'CATCH' at /secure/daemon/portal at line 16
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 18
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 20
'CATCH' at /secure/daemon/portal at line 20
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 22
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 52
'CATCH' at /secure/daemon/portal at line 52
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_orange#3260 at line 24
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 16
'CATCH' at /secure/daemon/portal at line 16
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 52
'CATCH' at /secure/daemon/portal at line 52
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_orange#3260 at line 24
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 18
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 52
'CATCH' at /secure/daemon/portal at line 52
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_orange#3260 at line 24
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 20
'CATCH' at /secure/daemon/portal at line 20
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'heart_beat' at /secure/daemon/portal at line 117
'CheckPortals' at /secure/daemon/portal at line 49
'CATCH' at /secure/daemon/portal at line 49
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_blue#3259 at line 24
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 52
'CATCH' at /secure/daemon/portal at line 52
'clone_object' at /secure/sefun/sefun at line 120
'create' at /secure/obj/portal_orange#3260 at line 24
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 22
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_orange#3260 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_orange#3260 at line 44
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 16
'CATCH' at /secure/daemon/portal at line 16
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_orange#3260 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_orange#3260 at line 44
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 18
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_orange#3260 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_orange#3260 at line 44
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 20
'CATCH' at /secure/daemon/portal at line 20
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_orange#3260 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_orange#3260 at line 44
'GetBluePortal' at /secure/daemon/portal at line 105
'CheckPortals' at /secure/daemon/portal at line 22
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_blue#3259 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_blue#3259 at line 44
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 16
'CATCH' at /secure/daemon/portal at line 16
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_blue#3259 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_blue#3259 at line 44
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 18
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_blue#3259 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_blue#3259 at line 44
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 20
'CATCH' at /secure/daemon/portal at line 20
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

--- Looney II
2013.06.19-12.20,37
*call_other() couldn't find object
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:35

'<fake>' at /secure/obj/portal_blue#3259 (/<driver>) at line 0
'RegisterPortal' at /secure/obj/portal_blue#3259 at line 44
'GetOrangePortal' at /secure/daemon/portal at line 110
'CheckPortals' at /secure/daemon/portal at line 22
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:35
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:35

Any advice would be much appreciated, and if I need to provide more info, I can and will.

Thanks!
zed\ith

9
General / Re: Moving a command to a daemon
« on: June 10, 2013, 09:57:37 am »
Ah, yes. That makes perfect sense. Thank you - I am going to add a function that creates the bones of the mapping then if it is unable to load. Cheers!

10
General / Re: Moving a command to a daemon
« on: June 08, 2013, 12:03:34 am »
That would overwrite the data of the existing file if there was an error loading the file and yet it existed though, right?

11
General / Re: Moving a command to a daemon
« on: June 05, 2013, 03:11:16 pm »
Here is the final code that is now working IN THE DAEMON.  :)

Thanks for pointing me in the right direction!

Code: [Select]
void change_title(string user, string ntitle, int i) {
    string temp = capitalize(user);
    if(file_exists(ACCT_DATA)) {
        restore_object(ACCT_DATA);
    }
    if(sizeof(accts) > 0) {
        write("Good data. accts mapping is not empty, continuing...\n");
        accts[temp]["position"] = i;
        accts[temp]["title"] = capitalize(ntitle);
        save_object(ACCT_DATA);
    }
        else {
        write("ERROR! Empty mapping!\nAww, shucks...\n");
return;
        }
}

Ith\Zed

12
General / Re: Moving a command to a daemon
« on: June 05, 2013, 10:00:49 am »
Are you declaring the GLOBAL variable you're using there, in your daemon?

Yessir. The same code in the command works fine, which is why I am a little baffled.

I bet your daemon calls restore_object(). That function often zeroes out existing variables, even if you use the optional arg to tell it not to do that. So your mapping winds up as 0. Have your function check for this and fix it before assignment.

Thanks, Nulvect - I will add a few things for checking and see what I come up with.

13
General / Moving a command to a daemon
« on: June 04, 2013, 04:58:43 pm »
I wrote a command for changing the title and position of users, and it works fine, but when I move the function from the command to a daemon I receive the following error:
Code: [Select]
*Illegal type of index
Here is the code of the working function in the command:
Code: [Select]
#include <globals.h>

mapping accts = ([]);
void change_title(string user, string title, int i) {
    string temp = capitalize(user);
    if(file_exists(ACCT_DATA) {
        restore_object(ACCT_DATA);
    }

    accts[temp]["position"] = i;
    accts[temp]["title"] = title;
    save_object(ACCT_DATA);
}

The above code works, but when I move the function to my daemon, and pass the daemon the same values, I receive the above error. I am sure I am missing something small, but I am not sure at this point. Any ideas?

Thanks!

14
Yeah, another post to an old topic... Oh well. :)

I opted to write my mud from lil 0.3. As Crat said,
Quote
possible, but unnecessarily difficult.

I completely agree, it is both of those things, but I also wanted to learn more about the driver\lib interaction, and the core of a lib itself, so away I went. I have learned more attempting this than in all the coding for MUDs I have done, and being the geek that I am, have had a blast (although there have been several occasions with a plethora of profanity pouring forth).

I would say, if you want to just build a playable MUD and you don't want to spend a lot of time making everything work (combat, messaging, security, inventories, etc), then do as Cratylus said and download a lib, and get crackin'!  :)

Cheers.

Zed\Ith

15
Design Lab / Re: Security/Permissions
« on: May 29, 2013, 12:52:29 pm »
Quix - I am working on something right now, and I will let you know how things go. I have opted for writing a daemon to handle everything. I hope that it works like I think it will, but who knows - I have never attempted anything quite like this.
Cheers!

Zed\Ith

Pages: [1] 2 3