Jump to content
  • 0

[Help]GS Error


'Baggos'

Question

12 answers to this question

Recommended Posts

  • 0

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();

 

Link to comment
Share on other sites

  • 0

maybe a return; in here :

// Clears requesting status

    player.setActiveRequester(null);

    player.getActiveRequester().onTransactionResponse();

    return;

 

would do the job

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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>

Link to comment
Share on other sites

  • 0

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();

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

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
Answer this question...

×   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.



  • Posts

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...