Skip to content

Error in gameserver [?]

Featured Replies

What's happend in my console? What's this? When i attack a mob which spawned another it is happend this. Help pls

Spoiler

RJks1xD.png

 

it is because i have problem on summon?

 

Edited by 0flee

Cast to integer what you are sending, If you get an error like numberformatexception it means that what you are sending is not an integer.

  • Author

And how i can fix it from that package?

Here it is code,  please i need help
 

Spoiler

package handlers.loader;

import gr.sr.handler.ABLoader;

import handlers.BloodAltarsLoader;
import handlers.ConquerableHallsLoader;
import handlers.CustomsLoader;
import handlers.EventsLoader;
import handlers.FeaturesLoader;
import handlers.GraciaLoader;
import handlers.GrandBossLoader;
import handlers.GroupTemplatesLoader;
import handlers.HellboundLoader;
import handlers.IndividualLoader;
import handlers.InstanceLoader;
import handlers.MasterHandler;
import handlers.ModifiersLoader;
import handlers.NpcLoader;
import handlers.QuestLoader;
import handlers.SunriseNpcsLoader;
import handlers.TeleportersLoader;
import handlers.VehiclesLoader;
import handlers.VillageMastersLoader;
import handlers.ZonesLoader;

/**
 * @author L2jSunrise Team
 * @Website www.l2jsunrise.com
 */
public final class GlobalLoader extends ABLoader
{
	private final Class<?>[] SCRIPTS =
	{
		BloodAltarsLoader.class,
		ConquerableHallsLoader.class,
		CustomsLoader.class,
		EventsLoader.class,
		FeaturesLoader.class,
		GraciaLoader.class,
		GroupTemplatesLoader.class,
		GrandBossLoader.class,
		IndividualLoader.class,
		HellboundLoader.class,
		InstanceLoader.class,
		MasterHandler.class,
		ModifiersLoader.class,
		NpcLoader.class,
		QuestLoader.class,
		SunriseNpcsLoader.class,
		TeleportersLoader.class,
		VehiclesLoader.class,
		VillageMastersLoader.class,
		ZonesLoader.class,
	};
	
	public GlobalLoader()
	{
		loadScripts();
	}
	
	@Override
	public Class<?>[] getScripts()
	{
		return SCRIPTS;
	}
	
	public static void main(String[] args)
	{
		new GlobalLoader();
	}
}

 

 

RangeGuard line 99 throws a NPE because you getInt "LongRangeGuardRate" while it's probably not set for the template.

 

It's the normal behavior of StatsSet, which is a disguised HashMap, if it can't find the keymap you requested.

 

Not sure if your StatsSet got it, but normally there is a getInt(String, int), with second parameter being default value if failing.

Missed param "LongRangeGuardRate" for NPC templates what uses in Quest/Script. Check templates for all registerend NPCs in script RangeGuard.

 

About GlobalLoader - it's very rarely and exotic method for loading all other loaders. Save this and shown for all beginners in Java how "by no means worth doing".

  • Author

This problem appear when a mob spawn another (summon), i change mob. I don;t know to fix error. 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.