Page 1 of 1

Fences packet for interlude

Posted: Mon Jul 11, 2011 7:30 am
by sahar
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Interlude
L2JDP Revision Interlude

Hello everyone,

I've searched abit on this forum for fences patch and i found 2 topics,
viewtopic.php?f=69&t=16818&start=15&hilit=fence
viewtopic.php?f=74&t=13947&start=105&hilit=fence

However i'm having hard time installing these on my server and i need a hand, i can compile without errors but when trying to spawn it ingame i can't see the fences, i'm using the patch given in "Movie maker + fences builder" topic.

However i also saw that some packets needs editing for interlude, but I don't know which lines excactly i need to edit? could someone guide me on this please?

Here is the interlude packet for fences (taken from the 2nd topic of this post)

Code: Select all

FE 09 00 E8 01 10 58 02 00 00 00 CA D9 02 00 6B D8 FE FF F0 F4 FF FF 64 00 00 00 64 00 00 00

Thanks for the support,
Sahar

ps. i also made a topic about it on packets analysis but this forum seems to be better for such a question so a mod can delete the topic from there, thanks.

Re: Fences packet for interlude

Posted: Wed Jul 13, 2011 7:45 am
by sahar
can some1 give a hint maybe ? I really need this working on my interlude server :P

tried changing writeH(0x03);
to writeH(0x09); according to the interlude packet but that still didnt work, any one has any idea maybe ?

Re: Fences packet for interlude

Posted: Fri Jul 15, 2011 8:56 pm
by sahar
Come on someone try to look at the code and see if anything needs to be changed in order to work on interlude please :)

Re: Fences packet for interlude

Posted: Sat Jul 23, 2011 8:45 am
by sahar
Still looking for clues on why it doesn't work, I saw it working on other interlude servers and i know it must work here as well

Perheps it doesnt work because of the geoengine used or so? some1 give me clues please :D

Re: Fences packet for interlude

Posted: Wed Aug 17, 2011 12:37 pm
by szmjaso
Il fencesŁ

Code: Select all

/*  * This program is free software: you can redistribute it and/or modify it under  * the terms of the GNU General Public License as published by the Free Software  * Foundation, either version 3 of the License, or (at your option) any later  * version.  *   * This program is distributed in the hope that it will be useful, but WITHOUT  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more  * details.  *   * You should have received a copy of the GNU General Public License along with  * this program. If not, see <http://www.gnu.org/licenses/>.  */ package com.l2jarchid.gameserver.network.serverpackets; import com.l2jarchid.gameserver.model.actor.instance.L2FenceInstance;     /**  * Format: (ch)dddddd  * d: object id  * d: type (00 - no fence, 01 - only 4 columns, 02 - columns with fences)  * d: x coord  * d: y coord  * d: z coord  * d: width  * d: height  */ public class ExColosseumFenceInfoPacket extends L2GameServerPacket {       private static final String _S__FE_02_EXCOLOSSEUMFENCEINFOPACKET = "[S] FE:02 ExColosseumFenceInfoPacket";     private int _type;     private L2FenceInstance _activeChar;     private int _width;     private int _height;       public ExColosseumFenceInfoPacket(L2FenceInstance activeChar)     {        _activeChar = activeChar;         _type = activeChar.getType();         _width = activeChar.getWidth();         _height = activeChar.getHeight();     }       /* (non-Javadoc)      * @see net.sf.l2j.gameserver.serverpackets.ServerBasePacket#writeImpl()      */     @Override     protected void writeImpl()     {         writeC(0xFE);         writeH(0x09);         writeD(_activeChar.getObjectId()); // ?         writeD(_type);         writeD(_activeChar.getX());         writeD(_activeChar.getY());         writeD(_activeChar.getZ());         writeD(_width);         writeD(_height);     }       /* (non-Javadoc)      * @see net.sf.l2j.gameserver.BasePacket#getType() +    */     @Override     public String getType()     {         return _S__FE_02_EXCOLOSSEUMFENCEINFOPACKET;     } }

Re: Fences packet for interlude

Posted: Thu Nov 03, 2011 12:00 pm
by sahar
you tried it? because it didn't work aswell.

Re: Fences packet for interlude

Posted: Thu Nov 10, 2011 3:21 pm
by szmjaso
It works for me