Welcome to the Builder Academy

Question DG Script crashing game

More
08 Jan 2020 20:27 #8466 by thomas
Replied by thomas on topic DG Script crashing game
What version of tbamud are you running?

The crash seems to happen at db_scripts.c in line 4263. But the file ( github.com/tbamud/tbamud/blob/master/src/dg_scripts.c ) only has 3143 lines.

Please Log in or Create an account to join the conversation.

More
09 Jan 2020 06:39 #8468 by Nero
Replied by Nero on topic DG Script crashing game
We are using cwg sunzu

Here is the copy of our dg_script

Attachment dg_scripts.zip not found

Attachments:

Please Log in or Create an account to join the conversation.

More
09 Jan 2020 21:38 #8470 by thomas
Replied by thomas on topic DG Script crashing game
Please show us your extract_trigger() function. In tbamud it is here: github.com/tbamud/tbamud/blob/master/src/dg_handler.c#L94

and looks like this:
Code:
void extract_trigger(struct trig_data *trig) { struct trig_data *temp; if (GET_TRIG_WAIT(trig)) { event_cancel(GET_TRIG_WAIT(trig)); GET_TRIG_WAIT(trig) = NULL; } trig_index[trig->nr]->number--; /* walk the trigger list and remove this one */ REMOVE_FROM_LIST(trig, trigger_list, next_in_world); free_trigger(trig); }

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds