Jump to content
  • 0

acis have problem with packets


Question

Posted (edited)

hello i have make a automatically party create for event's but i have big problem with

packets like i have open 6 box like 3vs3 in one team i see last player and have double add same player

like

1 tester

2 tester1

3 tester2

4 tester2

 

all is good on event he add 3 player pet party and in party.java use same 3 vs 3 add

i use threadpool if maybe have problem with fast add and with delay he make party good

as normal

image for hava a idea

 

so how can help or tell me whare is the problem? i have test it all.

and code is this

Spoiler

    // create party players
    public void createPartyOfTeam(int teamId)
    {
        
        final List<PcInstance> _players = new ArrayList<>();
        
        for (PcInstance p : players.keySet())
        {
            if (getTeam(p) == teamId)
            {
                if (p.isInParty())
                {
                    p.getParty().removePartyMember(p, MessageType.EXPELLED);
                }
                System.out.println(p.getName() + "   ");
                _players.add(p);
            }
        }
        
        if (_players.size() >= 2)
        {
            int i = 0;
            PcInstance leader = _players.get(0);
            Party party = new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);
            leader.setParty(party);
            
            
            for (PcInstance player : _players)
            {
                if (i < 2)
                {
                    i++;
                }
                else
                {
                    party.addPartyMember(player);
                    player.setParty(party);
                    i++;
                }
            }
            Announcement.announceToAll("i time run " + i);
            
        }
    }

 

Edited by tazerman2

10 answers to this question

Recommended Posts

  • 0
Posted
1 minute ago, Tryskell said:

Recode your crap.

You should recode most of your crap instead of just renaming, just saying.

  • 0
Posted (edited)

leader.setParty(party);

player.setParty(party);

this don't needed on code 

 

on new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);

they set leader.setParty(party);

and on  party.addPartyMember(player); has set for player.setParty(party);

 

this method can create max 1 party 

because new party is up of for 

try this

 // create party players
    public void createPartyOfTeam(int teamId)
    {
        
        final List<PcInstance> _players = new ArrayList<>();
        
        for (PcInstance p : players.keySet())
        {
            if (getTeam(p) == teamId)
            {
                if (p.isInParty())
                   p.getParty().removePartyMember(p, MessageType.EXPELLED);
              
                _players.add(p);
            }
        }
        
		int i = 0;
		PcInstance leader = null;
		Party party = null;

		for (PcInstance player : _players)
		{
			if (i == 0)
				leader = player;
			else if (i == 1 || party == null)
				party = new Party(leader, player, LootRule.ITEM_RANDOM);
			else if (i < 9)
				party.addPartyMember(player);
			else
			{
				i = 0;
				leader = player;
			}
			
			i++;
		}
    }

 

Edited by pirama
  • 0
Posted (edited)
13 hours ago, `Son said:

You should recode most of your crap instead of just renaming, just saying.

 

Do you have an exemple or are you just barking ? When I rename, I generally cleanup in the same time, which mean fix issues / improve performance / improve readability. I never rename for the pleasure to rename.

 

Did you share anything for my pack ? Any fix, any rework ? If no, then stfu and stick inside your hole.

 

There are fixes on every single aCis revision. You should maybe take a look on changesets descriptions.

Edited by Tryskell
  • 0
Posted
19 hours ago, Tryskell said:

Did you share anything for my pack ? Any fix, any rework ? If no, then stfu and stick inside your hole.

Can't see any reason contributing in such a project. You're pretty much the same arrogant craphead as xxdem.

Also please change your signature. Your name combined with the word mature in the same paragraph just insults the meaning of the word.

  • 0
Posted (edited)
5 hours ago, `Son said:

Can't see any reason contributing in such a project. You're pretty much the same arrogant craphead as xxdem.

Also please change your signature. Your name combined with the word mature in the same paragraph just insults the meaning of the word.

 

Continue to bark then. No exemples or proofs, just words. Keep your opinion for yourself when you can't argue, randomer.

Edited by Tryskell
  • 0
Posted

Isnt this a public forum? You're the one barking when you get some negative feedback about your project. Acis used to be good yes sometime in the past. The last months theres no progress and useless commits in ur git/svn or w/e u use. You should just either deal with it or just commit something when theres some real rework which someone worths spending money on ur freemium system. 

  • 0
Posted (edited)
4 hours ago, `Son said:

Isnt this a public forum? You're the one barking when you get some negative feedback about your project. Acis used to be good yes sometime in the past. The last months theres no progress and useless commits in ur git/svn or w/e u use. You should just either deal with it or just commit something when theres some real rework which someone worths spending money on ur freemium system. 

 

"No progress" ? I would like to see your own project, over 6y. What, you don't have ? Ah ok.

"Used to be good" ? What makes it WORST than before ?

 

Barking = people who complains but aren't able to reproduce anything near what they complain from, or even wish to help. Like a helpless chihuahua.

 

A negative feedback must be constructive and based on facts. My useless commits dropped something like 40 reports those last months. So your arguments are invalid, and what you think pointless can be important for another people. Moreover, if you find it doesn't go fast, you can help. It's a collaborative project.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack.

 

Ppl as you - who don't share, don't help, don't participate to communities, don't code but think they can have an opinion - are simply garbage.

 

Anyway I wasted enough time answering you. I leave you with your hatred, I continue to not moving on aCis.

Edited by Tryskell
  • 0
Posted
1 hour ago, Tryskell said:

 

"No progress" ? I would like to see your own project, over 6y. What, you don't have ? Ah ok.

"Used to be good" ? What makes it WORST than before ?

 

Barking = people who complains but aren't able to reproduce anything near what they complain from, or even wish to help. Like a helpless chihuahua.

 

A negative feedback must be constructive and based on facts. My useless commits dropped something like 40 reports those last months. So your arguments are invalid, and what you think pointless can be important for another people. Moreover, if you find it doesn't go fast, you can help. It's a collaborative project.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack.

 

Ppl as you - who don't share, don't help, don't participate to communities, don't code but think they can have an opinion - are simply garbage.

 

Anyway I wasted enough time answering you. I leave you with your hatred, I continue to not moving on aCis.

First of all, im just comparing pretty simple stuff. The fact that you are selling 10 revisions per each period of aCis is just some garbage logic because as pretty much said any kind of customer expects to see innovative things plus some future plan on the project. Something that aCis lack for many reasons.

The last big rework you did was like hmm maybe a year ago or even more with Knownlists which could really make some difference affecting the game in total.

After that your project remained ALMOST the same ridiculizing urself and your big ego as the grand leader of THE grand project and you delivered almost nothing. 

 

"Used to be good" ? What makes it WORST than before ? --> 

Yes it used to be better when you've been active reworking core issues. There are million of things to start reworking but still u just stay commiting bullshit micro-optimizations which have minimal meaning in the end of the day.

 

Moreover, if you find it doesn't go fast, you can help. It's a collaborative project. -->

Being an ass in every single topic doesnt really help collaboration. Skill differs from coder to coder but still. Being the same kid as xxDem doesnt really help at all.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack. -->

Im refering to aCis and not to any other garbage Greek or Russian project since they never really had any kind of potential in contradiction with aCis so get real.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Added FloodProtector utility to prevent packet flooding for actions like item use and dice rolling. Integrated flood protection checks in relevant client packet handlers and registered/removal hooks in player lifecycle. Updated movement logic in L2PcInstance for improved position synchronization and geodata handling. Minor fixes and refactoring in attack logic, private store handling, and admin NPC editing. Refactored AI classes to enhance movement, attack, and skill usage logic for characters and mobs. Improved distance checks, attack range calculations, and skill casting conditions. Removed unused intention command logic from L2CharacterAI. Updated configuration to enable CellPathFinding. Minor code cleanups and bug fixes for more reliable AI behavior. Enhanced GeoPathFinding with detailed debug and error messages for region loading, including success/failure counts and file checks. Refactored L2AttackableAI and L2CharacterAI to improve attack range tolerance, immediate attack behavior, and added safety checks for missing targets. Updated configuration to disable CellPathFinding by default and added a new ShowRedName option for aggressive mobs. Minor config and log updates included. Applied TCP socket optimizations (e.g., TCP_NODELAY, buffer sizes, keepalive) in ClientThread, Connection, and SelectorThread to reduce latency and improve throughput. Enhanced L2AttackableAI with better random walk, aggro, and attack logic, including silent move checks, quest monster handling, and improved faction/raid/minion behavior. Added silent move support to L2PlayableInstance and quest monster flag to L2NpcTemplate/L2NpcInstance. These changes aim to improve server responsiveness, AI realism, and overall stability.
    • I’ve been using this Escape from Tarkov Hack for about a week now with no issues at all. ESP works great without any lag, and the aimbot is smooth and doesn't feel obvious. Had a quick setup with the loader, and support answered my questions right away. The HWID spoofer also did its job without messing with my system. So far, the cheat's staying undetected on my side.
    • Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK We also have items, epics, etc. discord - adver745645 Our prices are reasonable, so have a nice shopping and a nice day.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock