Input string limit

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

Input string limit

Post by DreamStage »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 4895
L2JDP Revision Number: 8337

Hello again guys.

This time i have this tiny little problem :D
Check this image:

Image

Where do i change inside the core, to imput string limit like 99 bilions?
If i put like 200000000 it works good.
BTW its for adena id :)

--------------------------------------------------------------------------------------------------------------------------------

Ok i saw now, that i need long type http://download.oracle.com/javase/tutor ... types.html .
Need to learn how to convert into l2 properties humm
Ignorance comes when you dont want to know the truth about facts.
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Input string limit

Post by VlLight »

This string is parsed to Integer variable, it is Integer type limit - 2 147 483 647, so you should change type of variable to more "capacious".
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

Re: Input string limit

Post by DreamStage »

I forgot about long type :)

Instead of using the "default" Integer.parseInt
I used Long.parseLong

Problem fixed with E=MC^2 again. 8)

Thx for help, and you can close topic now.
Ignorance comes when you dont want to know the truth about facts.
Post Reply