Jump to content

  •  

memoryss

Member Since 28 Apr 2013
Offline Last Active Dec 19 2016 06:02 PM
-----

Issues I've Posted

    script variables can't reach INT_MIN

    Posted 11 Mar 2015

    I discover this while doing some bitwise calculation e.g. popcount.
    And this issue makes the following script doesn't work properly.
    function	script	popcount	{
    	.@i = getarg(0);
    	.@i -= (.@i >> 1) & 0x55555555;
    	.@i = (.@i & 0x33333333) + ((.@i >> 2) & 0x33333333);
    	.@i = (.@i + (.@i >> 4)) & 0x0F0F0F0F;
    	.@i += .@i >> 8;
    	.@i += .@i >> 16;
        return .@i & 0x3f;
    }
    

    char-server crash OnInterIfInit/OnInterIfInitOnce

    Posted 2 May 2014

    char-server crashes when a player login while map-server is executing OnInterIfInit/OnInterIfInitOnce events.

    To reproduce the issue, run the following script:
    - script test -1,{
    OnInterIfInit:
    freeloop(1);
    for( ; ; ) ;
    }
    login a character while map-server is executing the event.

    fix:
    char.c
    ARR_FIND( 0, ARRAYLENGTH(server), server_id, server[server_id].fd > 0 && server[server_id].map[0] );
    change to
    ARR_FIND( 0, ARRAYLENGTH(server), server_id, server[server_id].fd > 0 && server[server_id].map );

    Ally Channel Problems

    Posted 9 May 2013

    1. opposed guild members would also join the channel.
    2. guild members wouldn't join/leave ally channel when alliance change.