View Full Version : [Fix] failed to increase total npc because of npc quota
Figured I would Post the "official" version of this patch.
Again, tested only a little, but running on live server for 2 days with no issues. Still it's up to you to make sure it wont mess your server up.
NOTE: I sence installing this i have only seen mabey 1 or 2 errors come up, but i think they are in a different class, so I need to look through my logs and see what the erroring territory uses for its AI.
Hope you enjoy
research topic: https://postpacific.loc-online.com/forums/showthread.php?t=7344
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
random_spawn.zip — 867 байт
Thank You :) will see how it works
Thanks! I will try it and report back.
What I didn't understand, if I may say so, is what problem besides reading a red message is caused with this error.
I used to think it was like the familiar "Invalid SunRise time".
Please forgive my ignorance.
As far as i can tell, it wont do anything bad to the server, more or less telling the Dev team that it needs to bee looked at, becasue of (most likley on official) a misconfigured npc_maker. So all the code does is fix the bad if statment so its not trying to spawn a full set of NPCs every time. And ofcourse as a result the error wont happen again.
I only recently started to get these and since I was too lazy to fix it myself I'll give this a test
mcrabben7
20.04.2007, 00:50
Nice share. Keep up the developer spirit.
Nice share. thank you, very much
kepler001
20.04.2007, 02:02
nice share thanks
Gonna try this..although I changed max npcs :D
Well.. I reverted back to old npcpos.txt.. and used your fix..
Now as l2npc startup I get all these errors:-
04/22/2007 13:08:xx.xx3, [dion04_mb2021_03] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:08:xx.xx3, [innadril01_mb2322_02] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:08:xx.xx3, [innadril01_mb2322_03] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:08:xx.xx3, [innadril01_mb2322_04] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:08:xx.xx6, [aden08_mb2318_14] failed to increase total npc because of npc quota [22 / 21]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:09:xx.xx0, [t21_24_boss3f_023] failed to increase total npc because of npc quota [201 / 200]
04/22/2007 13:10:xx.xx0, [oren16_npc2218_016] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:10:xx.xx5, [aden13_npc2418_51] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:10:xx.xx2, [rune02_npc2116_06] failed to increase total npc because of npc quota [3 / 2]
04/22/2007 13:10:xx.xx5, [godard05_npc2414_09] failed to increase total npc because of npc quota [3 / 2]
04/22/2007 13:10:xx.xx5, [godard02_npc2416_39] failed to increase total npc because of npc quota [2 / 1]
04/22/2007 13:10:xx.xx8, [godard02_npc2416_40] failed to increase total npc because of npc quota [5 / 4]
04/22/2007 13:10:xx.xx3, [godard02_npc2416_40] failed to increase total npc because of npc quota [5 / 4]
04/22/2007 13:13:xx.xx6, [rune09_2116_23] failed to increase total npc because of npc quota [11 / 10]
04/22/2007 13:13:xx.xx6, [rune09_2116_24] failed to increase total npc because of npc quota [13 / 12]
04/22/2007 13:13:xx.xx6, [rune09_2116_24] failed to increase total npc because of npc quota [13 / 12]
yeah theres some that use the day_night_spawn that need fixing mabey a few others, Looking into thoes also. but [t21_24_boss3f_023] is (if i can remember with out looking) is Zaken, and he uses a different spawn AI as well.
I see.. good luck then ;)
btw I think there are bugs in other makers, cause not all npc quota errors disappeared, i.e:
[core_cube] failed to increase total npc because of npc quota [31 / 30]
this spawn using other maker, default_maker actually...