Bug Duplicate Gracia,Freya and High Five... Help Solution

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
l2draco
Posts: 10
Joined: Sat Nov 29, 2014 6:55 am

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by l2draco »

okay, if you can update Freya for java 8 even better, surely I will use it :) java 6 or oracle ta more available ...
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by Zoey76 »

l2draco wrote:okay, if you can update Freya for java 8 even better, surely I will use it :) java 6 or oracle ta more available ...
Updated in this commits https://github.com/L2J/L2J_Server/compa ... 3256b4d5f8

After you port your work to GitHub you can share the patch and we can fix double login on Freya too :P
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
marcoviny
Posts: 45
Joined: Sun Nov 07, 2010 6:22 pm

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by marcoviny »

For me THIS SOLUTION WORK PERFECTELLY based on 5143 (with any modifications)

( Prevent from double login not prevent this bug because ppls using any program is possible a make packt to fake login. Any ppls make this "OMS" and after this code i not have more this problem)

Index: java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java
===================================================================
--- java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (revision 5420)
+++ java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (working copy)
@@ -1573,10 +1591,17 @@
while (inv.next())
{
item = L2ItemInstance.restoreFromDb(getOwnerId(), inv);
if (item == null)
continue;

+ // Check if that item already exists in OID map.
+ if (L2World.getInstance().findObject(inv.getInt("object_id")) != null)
+ {
+ _log.log(Level.WARNING, "Item: "+ item.getObjectId() +" Has Duplied on World And Cannot be Load");
+ L2World.getInstance().removeObject(item);
+ continue;
+ }
+
if (getOwner() instanceof L2PcInstance)
{
L2PcInstance player = (L2PcInstance)getOwner();
Last edited by marcoviny on Sun Apr 12, 2015 6:44 pm, edited 1 time in total.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by JMD »

This has been patched for sometime now.
User avatar
marcoviny
Posts: 45
Joined: Sun Nov 07, 2010 6:22 pm

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by marcoviny »

Every body say that fixed but work. i don't know if work on last rev,but many topics open with a same subject

I think that after listners implement maybe are fixed. But nobody share efective soluction to olders project. this soluction is fine.

To test, remove primary key from your table "Items" oon database, on duplied a item stacktable and object id (enter on world)

Zoey, i not understood, how olders commit can be identified on gidhub. I not understood nothing because not are identified by sequentials numbers...
planetnet2
Posts: 3
Joined: Tue Apr 11, 2017 3:05 pm

Re: Bug Duplicate Gracia,Freya and High Five... Help Solution

Post by planetnet2 »

hi
i have the same problem in final server
can you tell me the code to fix it in server?
thanks
Post Reply