Repelled ultimately the game-breaking issue that was introduced recently on the revamp of the login phase. Optimized the getcurrenttime calls to the OS. Made most of the handler calls fetch directly from the Server object instead, the Server itself delegated with periodically updating the current time value. The result is an slightly delayed currenttime, backed with realtime value update within minutes. Protected concurrently inventory sort handlers. Expected no more NullPointers from the sorting feature. Added a server flag to limit cash items being sold on player shops/hired merchants. Stabilized the MapleTV mechanics, and activities properly split by world. Normalized Character.wz: equipments supposed to have the "cash" property now implements it. Normalized String.wz: every item that doesn't have a "name" property now implements it. Normalized the XMLs that lost indentation on the last source update. New tool: MapleInvalidItemWithNoNameFetcher. Fetches and reports itemids throughout the XMLs that doesn't contain the "name" property and equipments that lacks "cash" property. Frolic Omniknight references aside, if you have run into any more issues regarding the new login system, please open an issue and show the steps you've done to reach the problem.
115 lines
2.8 KiB
Java
115 lines
2.8 KiB
Java
/*
|
|
This file is part of the OdinMS Maple Story Server
|
|
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
|
Matthias Butz <matze@odinms.de>
|
|
Jan Christian Meyer <vimes@odinms.de>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation version 3 as published by
|
|
the Free Software Foundation. You may not use, modify or distribute
|
|
this program under any other version of the GNU Affero General Public
|
|
License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package tools.data.output;
|
|
|
|
import java.awt.Point;
|
|
|
|
/**
|
|
* Provides an interface to a writer class that writes a little-endian sequence
|
|
* of bytes.
|
|
*
|
|
* @author Frz
|
|
* @version 1.0
|
|
* @since Revision 323
|
|
*/
|
|
public interface LittleEndianWriter {
|
|
|
|
/**
|
|
* Write an array of bytes to the sequence.
|
|
*
|
|
* @param b The bytes to write.
|
|
*/
|
|
public void write(byte b[]);
|
|
|
|
/**
|
|
* Write a byte to the sequence.
|
|
*
|
|
* @param b The byte to write.
|
|
*/
|
|
public void write(byte b);
|
|
|
|
/**
|
|
* Write a byte in integer form to the sequence.
|
|
*
|
|
* @param b The byte as an <code>Integer</code> to write.
|
|
*/
|
|
public void write(int b);
|
|
|
|
public void skip(int b);
|
|
|
|
/**
|
|
* Writes an integer to the sequence.
|
|
*
|
|
* @param i The integer to write.
|
|
*/
|
|
public void writeInt(int i);
|
|
|
|
/**
|
|
* Write a short integer to the sequence.
|
|
*
|
|
* @param s The short integer to write.
|
|
*/
|
|
public void writeShort(int s);
|
|
|
|
/**
|
|
* Write a long integer to the sequence.
|
|
*
|
|
* @param l The long integer to write.
|
|
*/
|
|
public void writeLong(long l);
|
|
|
|
/**
|
|
* Writes an ASCII string the the sequence.
|
|
*
|
|
* @param s The ASCII string to write.
|
|
*/
|
|
void writeAsciiString(String s);
|
|
|
|
/**
|
|
* Writes a null-terminated ASCII string to the sequence.
|
|
*
|
|
* @param s The ASCII string to write.
|
|
*/
|
|
void writeNullTerminatedAsciiString(String s);
|
|
|
|
/**
|
|
* Writes a maple-convention ASCII string to the sequence.
|
|
*
|
|
* @param s The ASCII string to use maple-convention to write.
|
|
*/
|
|
void writeMapleAsciiString(String s);
|
|
|
|
/**
|
|
* Writes a 2D 4 byte position information
|
|
*
|
|
* @param s The Point position to write.
|
|
*/
|
|
void writePos(Point s);
|
|
|
|
/**
|
|
* Writes a boolean true ? 1 : 0
|
|
*
|
|
* @param b The boolean to write.
|
|
*/
|
|
void writeBool(final boolean b);
|
|
}
|