Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #005658

  • 4 - High

  • Fixed

Issue Confirmations

  • Yes (4)No (0)
Photo

[Instance] Nydhoggs' Nest

Posted by Hercules Bot on 28 April 2012 - 11:08 AM

Originally posted by emong
Attached in this report is the error in the quest..

How to solve it? Thanks!

Originally posted by Ind
this is odd at first i was able to reproduce but then i recompiled and it didn't happen again o.o

Originally posted by sizenine
What procedures did you take? Try running the instance a third time maybe?

Originally posted by xRaisen
instances shows duplicate npc's when run it twice as for my case. i wonder when i reverted it back to the old revision r15996 it runs perfect!

Originally posted by sizenine

instances shows duplicate npc's when run it twice as for my case. i wonder when i reverted it back to the old revision r15996 it runs perfect!


actually, reverting to 15996 doesn't solve the problem for me. it seems to not occur as often but it still happens sometimes.

Originally posted by xRaisen
Ok i'll try it again later. for what i am doing before is I go one step backwards at a time starting around from r16005 until i reach a revision that works which is r15996

and i presumed that the last revision made at that time by epoque broke it, maybe. and i was able to trace it which was the last revision at that time that the instances work.

Edited by xRaisen, 17 May 2012 - 04:40 AM.


Originally posted by emong
I tried also to revert my rev to 15996 but it didn't work. It is still the same..

Originally posted by Ind
still not able to reproduce, would like more information.

Originally posted by sizenine
well its definitely there if all of us produced it and even Masao (confirmed) and you produced it before. I'll try again with the current latest checkout and see if it's still there.

Originally posted by Masao
Well i only confirmed it and moved it to core section because you annoyed the hell out of me with this bug report.

I never tried to reproduce it so i couldn't reproduce it.

Originally posted by xRaisen
im sorry if its annoying, but i always getting this kind of duplicate npc error. i suspect that the clearing of the npc variable is not clearing it correctly. maybe it does but it skips the npc on db_destroy? im sure the
instance[instance_id].vars = NULL;
is working well for it is issuing the same map when the map is available but the npc cant be duplicated. please correct me if im pointing it wrong. heres my thread http://rathena.org/b...es-not-working/

Edited by xRaisen, 25 May 2012 - 05:17 AM.


Originally posted by Ind

im sorry if its annoying, but i always getting this kind of duplicate npc error. i suspect that the clearing of the npc variable is not clearing it correctly. maybe it does but it skips the npc on db_destroy? im sure the

instance[instance_id].vars = NULL;
is working well for it is issuing the same map when the map is available but the npc cant be duplicated. please correct me if im pointing it wrong. heres my thread http://rathena.org/b...es-not-working/

not related at all, these vars stored in the instance array are for the \'\ npc variable type which is exclusive to instances and yet not used in any of the instances rathena provides.

Originally posted by xRaisen
thanks Ind for the light. im kinda desperate to find whats causing it as part of my rathena source exploration.

Edited by xRaisen, 25 May 2012 - 08:36 AM.


Originally posted by Pig321
Solution, modify the map.c

int cleanup_sub(struct block_list *bl, va_list ap)
{
nullpo_ret(bl);
switch(bl->type) {
case BL_PC:
map_quit((struct map_session_data *) bl);
break;
case BL_NPC:
//npc_unload((struct npc_data *)bl,false);
npc_unload((struct npc_data *)bl,true);
break;
case BL_MOB:
unit_free(bl,CLR_OUTSIGHT);
break;
case BL_PET:
//There is no need for this, the pet is removed together with the player. [Skotlex]
break;
case BL_ITEM:
map_clearflooritem(bl->id);
break;
case BL_SKILL:
skill_delunit((struct skill_unit *) bl);
break;
}
return 1;
}

Originally posted by sizenine

Well i only confirmed it and moved it to core section because you annoyed the hell out of me with this bug report.I never tried to reproduce it so i couldn't reproduce it.


Oh, way to go Mr. Script Dev. That's sure a smart thing to do!

Solution, modify the map.cint cleanup_sub(struct block_list *bl, va_list ap){nullpo_ret(bl);switch(bl->type) {case BL_PC:map_quit((struct map_session_data *) bl);break;case BL_NPC://npc_unload((struct npc_data *)bl,false);npc_unload((struct npc_data *)bl,true);break;case BL_MOB:unit_free(bl,CLR_OUTSIGHT);break;case BL_PET://There is no need for this, the pet is removed together with the player. [Skotlex]break;case BL_ITEM:map_clearflooritem(bl->id);break;case BL_SKILL:skill_delunit((struct skill_unit *) bl);break;}return 1;}


Thanks so much, you're the best.

Originally posted by Ind
Fixed in [rev=16153] Instance NPCs will now be cleared properly. Super-Special Thanks to Pig321

Originally posted by emong
Had error when I recompiled my SVN

View attached photo.

Thanks!

Originally posted by xRaisen
thanks Pig321. a real good find. i cant update it yet. damn this. im heart broken cant think well...........................

Originally posted by Ind

Had error when I recompiled my SVNView attached photo.Thanks!

try to recompile from scratch with a 'make clean && make sql'