Page 1 of 1

Input string limit

Posted: Tue Sep 06, 2011 6:47 am
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

Re: Input string limit

Posted: Tue Sep 06, 2011 7:52 am
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".

Re: Input string limit

Posted: Tue Sep 06, 2011 8:06 am
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.