Jump to content
  • 0
AnnieRuru

noitem plugin

Question

64 answers to this question

Recommended Posts

  • 0

this one -> https://gist.github.com/AnnieRuru/7f7de80cc9708d26bcd3c26bab9f1508

@Kuroe reported this plugin can cause memory leak

0001 : noitem.c line 100 size 4 address 0x0x55afb29b827c

any help ? @4144

Share this post


Link to post
Share on other sites
  • 0

yes look like missing cleanup on server stop and on logout.

Because vector is not array but some kind of custom type with pointer, it should be cleaned manually

Share this post


Link to post
Share on other sites
  • 0

hahaha .... I think from now on I should close the program by "@mapexit" .... I'm so dump
 

1.7 - plugin
- fix memory leak caused by aStrdup and VECTOR_ENSURE

Share this post


Link to post
Share on other sites
  • 0
  On 3/10/2014 at 9:42 PM, AnnieRuru said:

Download: 1.8
plugin

tested with

prontera mapflag noitem 0,4,5

prontera	mapflag	noitem	0,4,5

prontera mapflag noitem IT_HEALING, IT_WEAPON, IT_ARMOR

prontera	mapflag	noitem	IT_HEALING, IT_WEAPON, IT_ARMOR

disable player from using healing items, and preventing equip weapon and armor.

.

prontera mapflag noitem Poring_Card

prontera	mapflag	noitem	Poring_Card

prontera mapflag noitem 4001

prontera	mapflag	noitem	4001

disable player from using Poring Card

 

  Reveal hidden contents

 

Mam @AnnieRuru please do one for rathena

Share this post


Link to post
Share on other sites
  • 0
  On 9/30/2020 at 8:51 AM, Kuroyama said:

Memory leak:

image.png.f7bc8a1cc6b66631725bfa03e3e13d32.png

I think I've fixed memory leak issue since version 1.7

but the line shown in screenshot is indeed version 1.8, latest version

 

did you reproduce this with `@loadnpc` gm command ?

I tested if use `@loadnpc` only once, there are no memory leak, but `@loadnpc` multiple times on the same file will indeed causes memory leak

 

otherwise you have to tell me how to reproduce this memory leak issue

Share this post


Link to post
Share on other sites
  • 0
  On 9/30/2020 at 10:29 AM, AnnieRuru said:

I think I've fixed memory leak issue since version 1.7

but the line shown in screenshot is indeed version 1.8, latest version

 

did you reproduce this with `@loadnpc` gm command ?

I tested if use `@loadnpc` only once, there are no memory leak, but `@loadnpc` multiple times on the same file will indeed causes memory leak

 

otherwise you have to tell me how to reproduce this memory leak issue

Hi mam annie, I do nothing but to install the plugin properly and put "noitem (lhz cards itemid here) in GvG mapflag on map_zone_db".

Share this post


Link to post
Share on other sites
  • 0

tested with

prontera	mapflag	noitem	4,5
payon	mapflag	noitem	4,5
izlude	mapflag	noitem	4001,4002,4003

izlude	mapflag	gvg

type `@mapexit`

[Status]: Terminating...
[Status]: Cleaned up 982 maps.
[Status]: Close Map DB Connection....
[Status]: Close Log DB Connection....
[Status]: Finished.
[Info]: Memory manager: No memory leaks found.

no memory leak

I can't reproduce your problem

 

let me fix that `@loadnpc` anyway

 

1.9 - plugin

- fix memory leak when do multiple `@loadnpc`

Share this post


Link to post
Share on other sites
  • 0

Hello, 
in v1.9
the IT_HEALING or 0 type is not working. 
its not being added to vector

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.