This helped and first post![]()
|
|
Right when you compile you all ways get a warning
and you will not be able to see this with outCode:Note: stream.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Press any key to continue . . .Q
in your compile lineCode:-Xlint:deprecation
so here is our problemCode:Compiling Server. stream.java:234: warning: [deprecation] getBytes(int,int,byte[],int) in java.lan g.String has been deprecated s.getBytes(0, s.length(), buffer, currentOffset); ^ 1 warning Press any key to continue . . .
its not an error but just a warning, replace your writeString method withCode:public void writeString(java.lang.String s) { s.getBytes(0, s.length(), buffer, currentOffset);s.length()); currentOffset += s.length(); buffer[currentOffset++] = 10; }
credit for the System.arraycopy idea palindo76Code:public void writeString(java.lang.String s) { System.arraycopy(s.getBytes(),0,buffer,currentOffset,s.length()); currentOffset += s.length(); buffer[currentOffset++] = 10; }
This is not removing some words from your compiler its a warning its not ment to be there its of no use to you so fucking remove it..

This helped and first post![]()

i bet people thought thats what happens when you compile LOL, i found this out a while ago, i didnt delete the method though because i didnt know if it was used by anything so i just left it.



nope i know it was not ment to be there from the start just couldn't work out why and didn't think of using "-Xlinteprecation" and seeing were in stream.java the warning was. just palindo76's RS2E does not have that problem when compiling so i hade a look at his writeString method and it uses the System.arraycopy method so i tryed it out and it fixed it
where to add?
Dust, learn to read...its in stream.java.
Thanks Sigex, I didn't even know that was a warning. Thank you.
so does this change anything in the server?
anyways i use apache ant for my wL server and i never get that error anymore but i will add anyways good job

i like this nice job
Awesome job.. Those two little lines of words would always annoy me =P

| « sigex - Server side packet 23 | Fixing the attacking emoet on Dodian and Devias » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |