Jump to content
  • 0

[Help]GS Error


Question

12 answers to this question

Recommended Posts

  • 0
Posted

Show me the line 97 of answertraderequest.java

 

it's a npe.

With red is the line 97

 

    // Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

 

  • 0
Posted

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

  • 0
Posted

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

Thank you... I hope to work!

 

Edit:

Nothing.... again the same.

  • 0
Posted

Here is fine?

Hosting in Germany.

 

server.properties

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Where's the Login server this gameserver should connect to
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: 127.0.0.1
LoginHost = my ip

# TCP port the login server listen to for gameserver connection requests
# Default: 9014
LoginPort = 9014

# Bind address for gameserver. You should not need to change it in most cases.
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
GameserverHostname = my ip

# Default: 7777
GameserverPort = 7777

LoginServer.properties

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Bind ip of the LoginServer, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginserverHostname = my ip

# Default: 2106
LoginserverPort = 2106

# The address on which login will listen for GameServers, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginHostname = my ip

# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014

 

ipconfig

<?xml version="1.0" encoding="UTF-8"?>
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="MY IP" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
<!-- Localhost here -->
<define subnet="127.0.0.0/8" address="127.0.0.1" />
<!-- Internalhosts here (LANs IPs) -->
<define subnet="10.0.0.0/8" address="10.0.0.0" />
<define subnet="172.16.0.0/19" address="172.16.0.0" />
<define subnet="192.168.0.0/16" address="192.168.0.0" />
</gameserver>

  • 0
Posted

did you read where it says:

 

Please don't change default IPs here if you don't know what are you doing!

 

External/Internal IPs are now inside "ipconfig.xml" file.

  • 0
Posted

Who cares if he must change IP or not, it's a NPE in trade crap.

 

Error is obvious, you set active requester to null, and just after you ask info from it... It sounds just wrong.

 

My AnswerTradeRequest is following :

		// Clears requesting status
	player.setActiveRequester(null);
	partner.onTransactionResponse();

  • 0
Posted

I did suggested the solution and it was IGNORED.

partner.onTransactionResponse();

this should be line 94

Then i said the cause of the NPE.Guess what IGNORED again.

npe is not about WHERE you return is about WHAT is called

if i got a String str=null;

and do this

str.substring(3);

BOOOOOM npe.str is null

Seriously,bad eyes are bad.Bad reading skills are..well double bad.

Have fun skipping answers.

  • 0
Posted

Who cares if he must change IP or not, it's a NPE in trade crap.

 

Error is obvious, you set active requester to null, and just after you ask info from it... It sounds just wrong.

 

My AnswerTradeRequest is following :

		// Clears requesting status
	player.setActiveRequester(null);
	partner.onTransactionResponse();

And mine is same....

But i have error....

 

Then logged 6 - 7 players i get this error, no from all players....

Maybe try to legged from another client, is truth this?

  • 0
Posted

You said you had :

player.getActiveRequester().onTransactionResponse();

 

It's not :

partner.onTransactionResponse();

 

Think to recompile and test... It's not possible you get the same exact error with that things.

 

NPE is NPE, it's an server error, nothing to do with client.

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

    • Hey MaxCheaters! 👋 Introducing L2Soon.com — a free international platform for Lineage 2 server announcements.   Why L2Soon? No more searching through dozens of forums and Discord servers. All new L2 server openings are in one place — updated daily, with real player online counts so you always know where people actually play.   Features: 🔔 Telegram Bot (@l2Soon_bot) — alerts 24h & 1h before server launch 📅 Accurate launch times — in your local timezone ⚔️ All chronicles — Interlude, High Five, GoD, Classic, Essence, Grand Crusade and more 🎯 Filters — by chronicle, rates (x1–x1000+) and server type (PvP, RvR, GvE, Craft, Low Rate...) ⭐ VIP servers — verified projects pinned at the top 🌍 Multi-language — EN, UK, RU, PT   Listing is completely FREE. 🔗 https://l2soon.com/en Feedback welcome — drop a comment or contact us via Telegram @l2Soon_bot
    • Download Lobby u need island for lobby Download Crow Island  
    • Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs    
    • L2-LORENA x100 MID RATE   Interlude Nostalgia Meets Modern Gameplay   OFFICIAL OPENING:  April 4 (Saturday)  19:00 UTC+1 ⸻  MAIN INFORMATION  Adena: x5  Drop: x10  Spoil: x10  Raid Boss: x10  Seal Stones: x2  Quests: x10 ⸻  FEATURES  GM Shop up to B-Grade  Full Buffer  Premium System (x2 bonuses)  AutoFarm – FREE for everyone ⸻  SERVER CONCEPT  Classic Interlude nostalgia  Enhanced with modern interface & mechanics  Balanced PvP & PvE gameplay  Active development & custom features ⸻  WHY JOIN L2-LORENA?  No Pay-to-Win  Smooth gameplay & stable server  Competitive PvP environment  Friendly & active community ⸻  JOIN US NOW L2-LORENA 100X <<< LINK Discord: https://discord.gg/TYZ88Tgx4b  Facebook: https://www.facebook.com/share/18kwbkaYZY/?mibextid=wwXIfr   L2-LORENA Link << Discord: https://discord.gg/TYZ88Tgx4b  Facebook: https://www.facebook.com/share/18kwbkaYZY/?mibextid=wwXIfr
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..