Jump to content
TrinityCore

blackmetalz

Members
  • Posts

    30
  • Joined

  • Last visited

Posts posted by blackmetalz

  1. Hi, i just tried to replace GCC with Clang. Normally before i switch i use this script to get the crash log

     

    ```

    #! /bin/bash
    
    DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    
    echo $DIR
    cd $DIR
    
    echo "run\n" > gdbcommands
    echo "shell echo -e \"SERVERCRASHEVENT\"        " >> gdbcommands
    echo "shell echo -e \"\nCRASH ON\" `date`       " >> gdbcommands
    echo "info program                              " >> gdbcommands
    echo "shell echo -e \"\nBACKTRACE\n\"           " >> gdbcommands
    echo "bt                                        " >> gdbcommands
    echo "shell echo -e \"\nBACKTRACE FULL\n\"      " >> gdbcommands
    echo "bt full                                   " >> gdbcommands
    echo "shell echo -e \"\nTHREADS\n\"             " >> gdbcommands
    echo "info threads                              " >> gdbcommands
    echo "shell echo -e \"\nTHREADS BACKTRACE\n\"   " >> gdbcommands
    echo "thread apply all bt full                  " >> gdbcommands
    
    chmod +x gdbcommands
    
    while :
    do
        echo "starting worldserver";
        sleep 5
        mkdir -p crashes
        gdb worldserver --batch -x gdbcommands | tee crashes/current
        FILE=$(date +%s)
        sed -i '1,/SERVERCRASHEVENT/d' crashes/current
        mv crashes/current crashes/$FILE".crash"
        find crashes/ -name '*.crash' -and -size -10k -delete # Remove small files (not crashes)
    
        echo "worldserver stopped";
            sleep 1
    done
    ```
    

     

    After replacing with Clang compiler, seem like it doesn't generate crash log in to crash folder anymore. I'm not sure what I'm missing, i have tried to search some before i create a new topic but i haven't found any answer then i decided to create this topic to ask for help

    Thanks for reading :D

  2. Thanks for reply,here is my code

    -- Random Respawn
    
    DELETE FROM `pool_template` WHERE entry=888002;
    
    INSERT INTO `pool_template`(`entry`,`max_limit`,`description`) VALUES
    
    (888002,1, 'NPC Event Spawn (888002)');
    
    
    
    DELETE FROM `pool_creature` WHERE pool_entry=888002;
    
    INSERT INTO `pool_creature`(`guid`,`pool_entry`,`chance`,`description`) VALUES
    
    (400000,888002,0, 'NPC Event Spawn 1'),
    
    (400001,888002,0, 'NPC Event Spawn 2'),
    
    (400002,888002,0, 'NPC Event Spawn 3');
    
    
    -- Game Event ID: 100
    
    DELETE FROM game_event WHERE eventEntry IN (100);
    
    INSERT INTO game_event VALUES
    
    (100,'2015-03-16 21:46:00','2015-03-16 22:40:00',120,119,0,'Event Killing Mob',0);
    
    
    
    -- Game Event Creature
    
    DELETE FROM game_event_creature WHERE guid IN (400000,400001,400002);
    
    INSERT INTO game_event_creature VALUES
    
    (100,400000),
    
    (100,400001),
    
    (100,400002);
    
    
    
    -- Game Event Pool
    
    DELETE FROM game_event_pool WHERE eventEntry IN (100);
    
    INSERT INTO game_event_pool VALUES
    
    (100,888002);
     
    
  3. Hi,i'm trying to understand this table.



    As description of this table: This table determines if a given pool is active for a given game event.



    it means it linked with table pool_template?



    I have a pool creature that have 1 NPC with 3 respawn, only 1 will available to see,if you kill that repsawn, NPC will respawn in another location. But when i bring it with game_event, when event start it displays all NPC spawned ....



    I already insert a record with event ID and pool entry in table pool_template



    Hope you understand what i'm saying. Sorry for my bad english!

     

×
×
  • Create New...