Been having a problem with olc again, at least i finally got it to run about
halfway, then i put in Lope's colour code v2.0.  Now when ever anyone
connects to the mud, it crashes. the problem seems to be somewhere around
here. with the mobtrigger and the colourconv
        *point++ = '\n';
        *point++ = '\r';
    *point   = '\0';
        buf[0]   = UPPER(buf[0]);
>   if ( to->desc != NULL )
>   pbuff    = buffer;
>   colourconv( pbuff, buf, to );
>        write_to_buffer( to->desc, buffer, 0 );
>   if ( MOBtrigger )
>       mp_act_trigger( buf, to, ch, arg1, arg2, TRIG_ACT );
    }
    return;
}

I cant get anything there to work.
Backtrace thingy attached.
Any help would be appreciated.

[main] ROM 1014 (0) exception: trapped!
[main] ROM 1014 (0) exception: code 0xC0000005 at 0x4A08AE
[main] ROM 1014 (0) exception: ax 0xFFFFFFFF bx 0x0 cx 0x106 dx 0x83
[main] ROM 1014 (0) exception: si 0x299AB50 di 0x0 bp 0x266D37C sp 0x266D350
[main] ROM 1014 (0) exception: exception is: STATUS_ACCESS_VIOLATION
[main] ROM 1014 (0) stack: Stack trace:
[main] ROM 1014 (0) stack: frame 0: sp = 0x266D14C, pc = 0x6100A2C3
[main] ROM 1014 (0) stack: frame 1: sp = 0x266D188, pc = 0xBFF76849
[main] ROM 1014 (0) stack: frame 2: sp = 0x266D1AC, pc = 0xBFF87FE9
[main] ROM 1014 (0) stack: frame 3: sp = 0x266D240, pc = 0xFFECBAD7
[main] ROM 1014 (0) stack: frame 4: sp = 0x266D37C, pc = 0x4A07AD
[main] ROM 1014 (0) stack: frame 5: sp = 0x266D3A4, pc = 0x4968E8
[main] ROM 1014 (0) stack: frame 6: sp = 0x266E5FC, pc = 0x490247
[main] ROM 1014 (0) stack: frame 7: sp = 0x266E7B0, pc = 0x44515E
[main] ROM 1014 (0) stack: frame 8: sp = 0x266FB2C, pc = 0x4427A2
[main] ROM 1014 (0) stack: frame 9: sp = 0x266FC78, pc = 0x441D24
[main] ROM 1014 (0) stack: frame 10: sp = 0x266FC94, pc = 0x61004402
[main] ROM 1014 (0) stack: frame 11: sp = 0x266FE00, pc = 0x61004420
[main] ROM 1014 (0) stack: frame 12: sp = 0x266FE0C, pc = 0x4DD33E
[main] ROM 1014 (0) stack: frame 13: sp = 0x266FE1C, pc = 0x40103A
[main] ROM 1014 (0) stack: frame 14: sp = 0x266FE38, pc = 0xBFF8B560
[main] ROM 1014 (0) stack: frame 15: sp = 0x266FF78, pc = 0xBFF8B412
[main] ROM 1014 (0) stack: End of stack trace (more stack frames may be
present)


----------------------------------------------------------------------------
----
I Don't know if anyone has offered a solution to this yet and as i am only
new at this i had problems with this section of code when i was doing some
adding of snippets etc
I am using Rom24b4? and then added lope's color patch then ivan's olc code
and to get it working with out errors i ended up with this as follows-
 *point++ = '\n';
        *point++ = '\r';
 *point  = '\0';
        buf[0]   = UPPER(buf[0]);
        pbuff    = buffer;
 colourconv( pbuff, buf, to );
        write_to_buffer( to->desc, buffer, 0 );
        if (to->desc != NULL )
            write_to_buffer (to->desc, buf, point - buf);
        else

        if (MOBtrigger )
            mp_act_trigger( buf, to, ch, arg1, arg2, TRIG_ACT );

  }
        return;
}

/*end of snippet*/


Like i said i am new to this and i am not sure if you had already gotten an
answer to this so give it a go and see if it solves your problem
i have only logged myself on to test to see if the server and some of the
commands worked but it hasn't been tested extensively so i do not know if
any erorrs come out under working conditions.:->
regards Valkyire


Reply via email to