Jump to content

Tutorial adicionar VDSystem e como Funciona


SageBR

Recommended Posts

  • 2 weeks later...

Boa maninho
Segui a guia de principio a fim e carregou tudo certinho, porem nao carrega os voice command
testei carregar so 3 top itpoz, l2jbrasil e o top4teambr mas nenhum funciona o voice
.top4teambr .l2jbrasil nem .itopz
Sabe me dizer qual e o problema?
To usando um datapack rusAcis 

Screenshot_7.jpg

Screenshot_8.jpg

Personal Project : https://l2addicts.online Interlude x15

Link to comment
Share on other sites

1 hora atrás, ferdsnp disse:

Boa maninho
Segui a guia de principio a fim e carregou tudo certinho, porem nao carrega os voice command
testei carregar so 3 top itpoz, l2jbrasil e o top4teambr mas nenhum funciona o voice
.top4teambr .l2jbrasil nem .itopz
Sabe me dizer qual e o problema?
To usando um datapack rusAcis 

Screenshot_7.jpg

Screenshot_8.jpg

Adicionou?

Citar

 

+       LOGGER.info("Loaded {} voice command handlers.", VoicedCommandHandler.getInstance().size());

 


 

Edited by SageBR
  • Like 1
Link to comment
Share on other sites

8 minutos atrás, ferdsnp disse:

No video no falava nada disso eu acho xD
Em qual arquivo java vai o "LOGGER.info("Loaded {} voice command handlers.", VoicedCommandHandler.getInstance().size());" ?

Citar

 

         StringUtil.printSection("Handlers");

         LOGGER.info("Loaded {} admin command handlers.", AdminCommandHandler.getInstance().size());
         LOGGER.info("Loaded {} chat handlers.", ChatHandler.getInstance().size());
@@ -277,6 +282,7 @@
         LOGGER.info("Loaded {} skill handlers.", SkillHandler.getInstance().size());
         LOGGER.info("Loaded {} target handlers.", TargetHandler.getInstance().size());
         LOGGER.info("Loaded {} user command handlers.", UserCommandHandler.getInstance().size());
+        LOGGER.info("Loaded {} voice command handlers.", VoicedCommandHandler.getInstance().size());

 

Devo ter me esquecido disso, ve se nos imports tbm tem
+import net.sf.l2j.gameserver.handler.VoicedCommandHandler;

Gameserver.java

Edited by SageBR
Link to comment
Share on other sites

hace 12 minutos, SageBR dijo:

 

To vendo que ese comando ja existe, porem e
LOGGER.info("Loaded {} voiced
em vez de voice
Agora fiquei em duvida de que fazer, se mudar voiced a voice ou adicionar LOGGER.info("Loaded {} voice command handlers.", VoicedCommandHandler.getInstance().size());

Screenshot_12.jpg

Edited by ferdsnp

Personal Project : https://l2addicts.online Interlude x15

Link to comment
Share on other sites

hace 7 horas, SageBR dijo:

@ferdsnp Qual a a rusacis que se usa? a 2.0?

Pq a source do VDS é baseada na acis 401

rusAcis 3.5
Teve outra parada tbm, testei em windows em um server test e carregou tudo menos os voiced command mas o resto carregou
Ja no linux ubuntu 20.04LT nao carrega, no linux desativei o debug e console e mesmo assim nao carrega o vds manger
Tem ideia de por que?

Screenshot_10.jpg

Edited by ferdsnp

Personal Project : https://l2addicts.online Interlude x15

Link to comment
Share on other sites

hace 18 horas, SageBR dijo:

@ferdsnp Qual a a rusacis que se usa? a 2.0?

Pq a source do VDS é baseada na acis 401

Possivelmente seja por isso que nao esta funcionando

 

package net.sf.l2j.gameserver.handler;

import java.util.HashMap;
import java.util.Map;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.EventCommand;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Menu;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.OfflinePlayer;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Online;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.PremiumStatus;

public class VoicedCommandHandler
{
	private final Map<Integer, IVoicedCommandHandler> _entries = new HashMap<>();
	
	protected VoicedCommandHandler()
	{
		registerHandler(new Online());
		registerHandler(new Menu());
		registerHandler(new OfflinePlayer());
		registerHandler(new PremiumStatus());
		registerHandler(new EventCommand());
	}
	
	public void registerHandler(IVoicedCommandHandler handler)
	{
		String[] ids = handler.getVoicedCommandList();
		
		for (int i = 0; i < ids.length; i++)
			_entries.put(ids[i].hashCode(), handler);
	}
	
	public IVoicedCommandHandler getHandler(String voicedCommand)
	{
		String command = voicedCommand;
		
		if (voicedCommand.indexOf(" ") != -1)
			command = voicedCommand.substring(0, voicedCommand.indexOf(" "));
		
		return _entries.get(command.hashCode());
	}
	
	public int size()
	{
		return _entries.size();
	}
	
	public static VoicedCommandHandler getInstance()
	{
		return SingletonHolder.INSTANCE;
	}
	
	private static class SingletonHolder
	{
		protected static final VoicedCommandHandler INSTANCE = new VoicedCommandHandler();
	}
}

Alguns comandos são diferentes dos do projeto e não faço ideia de como concluir a instalação

Personal Project : https://l2addicts.online Interlude x15

Link to comment
Share on other sites

2 horas atrás, ferdsnp disse:

Possivelmente seja por isso que nao esta funcionando

 

package net.sf.l2j.gameserver.handler;

import java.util.HashMap;
import java.util.Map;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.EventCommand;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Menu;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.OfflinePlayer;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Online;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.PremiumStatus;

public class VoicedCommandHandler
{
	private final Map<Integer, IVoicedCommandHandler> _entries = new HashMap<>();
	
	protected VoicedCommandHandler()
	{
		registerHandler(new Online());
		registerHandler(new Menu());
		registerHandler(new OfflinePlayer());
		registerHandler(new PremiumStatus());
		registerHandler(new EventCommand());
	}
	
	public void registerHandler(IVoicedCommandHandler handler)
	{
		String[] ids = handler.getVoicedCommandList();
		
		for (int i = 0; i < ids.length; i++)
			_entries.put(ids[i].hashCode(), handler);
	}
	
	public IVoicedCommandHandler getHandler(String voicedCommand)
	{
		String command = voicedCommand;
		
		if (voicedCommand.indexOf(" ") != -1)
			command = voicedCommand.substring(0, voicedCommand.indexOf(" "));
		
		return _entries.get(command.hashCode());
	}
	
	public int size()
	{
		return _entries.size();
	}
	
	public static VoicedCommandHandler getInstance()
	{
		return SingletonHolder.INSTANCE;
	}
	
	private static class SingletonHolder
	{
		protected static final VoicedCommandHandler INSTANCE = new VoicedCommandHandler();
	}
}

Alguns comandos são diferentes dos do projeto e não faço ideia de como concluir a instalação

onde ta os comandos ali coloca registerHandler(new VoteCMD()); e testa

Link to comment
Share on other sites

Hello i have an problem with the l2jmega  pack , it dosent shows the announcements  just show me this text Inside in game    {  :  <=====  }

i don't know what hapens , and about hopzone.eu   dosent work...  on server ID IT throws a erorr for " " those....   l2jbrasil not count the votes need to change from votes to how many visitors ...

L2J   L2JBRASIL MEMMBER  & MAXCHEATER MEMMBER

Link to comment
Share on other sites

  • SageBR changed the title to Tutorial adicionar VDSystem e como Funciona

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.