Just lookup the packet value in RecvOpcode to see what it means. I think its a packet sent by the server everytime after it encounters an error.
Sent from my LG-P500 using Tapatalk 2
02-11-12
Timothy Ong
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
need some help here i cant seem to login to my server but my friends can whenever i click on my char login then enter my pic its say unable to login to game server can someone help me ? add me at facebook or msn jexx03@hotmail.com
03-11-12
Gee820
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
So I got the server running, but I have this issue where in fourth job, some classes have skills that will set themselves to 0 when you log out and won't be able to be put back up. It's not a rollback, you keep everything else. Just some skills do this, I've noticed it for most dual blade and aran skills, as well as with the marksman skill marksmanship. Anybody have a solution to this?
04-11-12
CrossAngel Dbgr
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
Quote:
25.Open NetBeans
26.Create New Project And Name it Lithium
27.Hit Next
28.Click Java/Java Project With Existing Sources
29.Hit Next
30.Go to your extracted Lithium Folder and click on src
31.Hit Finish
32.Right click Libraries and add the jars in your source dist folder. Then hit F11
33.Find the project folder and open dist
34.Take Lithium.jar and put it in the extracted lithium folder's dist
Me build file "Lithium.jar" size 508 byte can not run dump file Help !!!!
04-11-12
randy121294
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
Hey guys, my server is setup correctly. The only problem I have and some other people had are the GM privileges. I set my account GM to 5 and character to 1, like someone suggested. I tried all the combination from 1~10 but none works. I got this message when I attempt to use a command in-game: You do not have the privileges to use that command. Also on my bat, it has Receiving data: (unhandled). I don't know if that might cause the problem. Thanks
05-11-12
Riven1
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
Quote:
Originally Posted by randy121294
Hey guys, my server is setup correctly. The only problem I have and some other people had are the GM privileges. I set my account GM to 5 and character to 1, like someone suggested. I tried all the combination from 1~10 but none works. I got this message when I attempt to use a command in-game: You do not have the privileges to use that command. Also on my bat, it has Receiving data: (unhandled). I don't know if that might cause the problem. Thanks
Set all acounts to 0. To change the GM level, only change the character's gm column.
05-11-12
mickosor
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
Need help with this
Dump Item
Quote:
ERRORcom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
not create connection to database server. Attempted reconnect 3 times. Giving u
p.
Dumping Items
java.lang.NullPointerException
at tools.wztosql.DumpItems.dumpItems(DumpItems.java:76)
at tools.wztosql.DumpItems.main(DumpItems.java:419)
0 quest.
Finished with errors in 0 minutes 17 seconds
Press any key to continue . . .
Dump mobskilld
Quote:
ERRORcom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
not create connection to database server. Attempted reconnect 3 times. Giving u
p.
Dumping mobskills
java.lang.NullPointerException
at tools.wztosql.DumpMobSkills.dumpMobSkills(DumpMobSkills.java:59)
at tools.wztosql.DumpMobSkills.main(DumpMobSkills.java:173)
0 skill.
Finished with errors in 0 minutes 4 seconds
Press any key to continue . . .
Dump quest
Quote:
ERRORcom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
not create connection to database server. Attempted reconnect 3 times. Giving u
p.
Dumping quests
java.lang.NullPointerException
at tools.wztosql.DumpQuests.dumpQuests(DumpQuests.java:61)
at tools.wztosql.DumpQuests.main(DumpQuests.java:365)
0 quest.
Finished with errors in 0 minutes 4 seconds
Press any key to continue . . .
FIXED
but i cant use any command? why?
08-11-12
Karan Singh
4 Attachment(s)
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
I've been following this guide, instead of using 127.0.0.1, I've been replacing everything with my personal IP. I already set up my port forwarding (A range AND each individual port, just to make sure), and edited a localhost. For whatever reason it still tells me "Game Offline" when I click the localhost.exe
I dont receive any errors, and my Launcher.bat loads up fine. It's weird.
10-11-12
ilr08
1 Attachment(s)
Re: How To Make A Maplestory v111 (Lithium Based) Private Server
# Name of the Server
net.sf.odinms.login.serverName=Lithium
# Event Message at Channel Selection
net.sf.odinms.login.eventMessage=Lithium
# Flag at Channel Selection 0: Nothing 1: Event 2: New 3: Hot
net.sf.odinms.login.flag=2
# Initial amount of characters per account
net.sf.odinms.login.maxCharacters=3
# Server Scrolling Message
net.sf.odinms.world.serverMessage=Lithium
# total user limit of the server
net.sf.odinms.login.userlimit=1500
# defaults for channelservers
net.sf.odinms.channel.net.port1=8585
#net.sf.odinms.channel.net.interface=203.116.196.8
net.sf.odinms.channel.net.interface=5.210.115.127
#net.sf.odinms.channel.net.interface=5.180.9.16
# active event scripts
net.sf.odinms.channel.events=Olivia,PVP,CygnusBattle,ScarTarBattle,VonLeonBattle,Ghost,MV,OrbisPQ,HenesysPQ,Romeo,Juliet,Pirate,Amoria,Ellin,CWKPQ,AutomatedEvent,DollHouse,BossBalrog_EASY,BossBalrog_NORMAL,HorntailBattle,Nibergen,PinkBeanBattle,ZakumBattle,NamelessMagicMonster,Dunas,Dunas2,2095_tokyo,ZakumPQ,LudiPQ,ServerMessage,KerningPQ,ProtectTylus,WitchTower_EASY,WitchTower_Med,WitchTower_Hard,Vergamot,ChaosHorntail,ChaosZakum,CoreBlaze,BossQuestEASY,BossQuestMed,BossQuestHARD,BossQuestHELL,Ravana_EASY,Ravana_HARD,Ravana_MED,GuildQuest,Aufhaven,Dragonica
db.properties
Spoiler:
PHP Code:
url=jdbc:mysql://localhost:3306/lithium?autoReconnect=true
user = root
password =
Channel.properties
Spoiler:
PHP Code:
# hostname or IP address of your world server
#net.sf.odinms.world.host=203.188.239.82
#net.sf.odinms.world.host=203.116.196.8
#net.sf.odinms.world.host=5.180.9.16
net.sf.odinms.world.host=5.210.115.127
# number of channels to host in this process
net.sf.odinms.channel.count=2
# channel keys (these are defined in the channels table)
net.sf.odinms.channel.0.key=release1
net.sf.odinms.channel.1.key=release2
net.sf.odinms.channel.2.key=release3
net.sf.odinms.channel.3.key=release4
net.sf.odinms.channel.4.key=release5
net.sf.odinms.channel.5.key=release6
net.sf.odinms.channel.6.key=release7
net.sf.odinms.channel.7.key=release8
net.sf.odinms.channel.8.key=release9
net.sf.odinms.channel.9.key=release10
net.sf.odinms.channel.10.key=release11
net.sf.odinms.channel.11.key=release12
net.sf.odinms.channel.12.key=release13
net.sf.odinms.channel.13.key=release14
net.sf.odinms.channel.14.key=release15
net.sf.odinms.channel.15.key=release16
net.sf.odinms.channel.16.key=release17
net.sf.odinms.channel.17.key=release18
net.sf.odinms.channel.18.key=release19
net.sf.odinms.channel.19.key=release20
ServerConstants.java
Spoiler:
PHP Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 ~ 2010 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 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 constants;
public static boolean TESPIA = false; // true = uses GMS test server, for MSEA it does nothing though
public static final byte[] Gateway_IP = new byte[]{(byte) 5, (byte) 210, (byte) 115, (byte) 127};
//public static final byte[] Gateway_IP = new byte[]{(byte) 5, (byte) 180, (byte) 9, (byte) 16};
//Inject a DLL that hooks SetupDiGetClassDevsExA and returns 0.
/*
* Specifics which job gives an additional EXP to party
* returns the percentage of EXP to increase
*/
public static final byte Class_Bonus_EXP(final int job) {
switch (job) {
case 501:
case 530:
case 531:
case 532:
case 2300:
case 2310:
case 2311:
case 2312:
case 3100:
case 3110:
case 3111:
case 3112:
case 800:
case 900:
case 910:
return 10;
}
return 0;
}
public static boolean getEventTime() {
int time = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
switch (Calendar.DAY_OF_WEEK) {
case 1:
return time >= 1 && time <= 5;
case 2:
return time >= 4 && time <= 9;
case 3:
return time >= 7 && time <= 12;
case 4:
return time >= 10 && time <= 15;
case 5:
return time >= 13 && time <= 18;
case 6:
return time >= 16 && time <= 21;
}
return time >= 19 && time <= 24;
}
// Start of Poll
public static final boolean PollEnabled = false;
public static final String Poll_Question = "Are you mudkiz?";
public static final String[] Poll_Answers = {"test1", "test2", "test3"};
// End of Poll
public static final short MAPLE_VERSION = (short) 111;
public static final String MAPLE_PATCH = "1";
public static boolean Use_Fixed_IV = true; // true = disable sniffing, false = server can connect to itself
public static boolean Use_Localhost = false; // true = packets are logged, false = others can connect to server
public static final int MIN_MTS = 100; //lowest amount an item can be, GMS = 110
public static final int MTS_BASE = 0; //+amount to everything, GMS = 500, MSEA = 1000
public static final int MTS_TAX = 5; //+% to everything, GMS = 10
public static final int MTS_MESO = 10000; //mesos needed, GMS = 5000
public static final boolean TRIPLE_TRIO = true;
public static final int CURRENCY = 4001055; //maybe chg to something else
public static final String FM_BGM = "Bgm03/Elfwood";
public static final String SQL_USER = "root", SQL_PASSWORD = "root";
//master login is only used in GMS: fake account for localhost only
//master and master2 is to bypass all accounts passwords only if you are under the IPs below
public char getCommandPrefix() {
return commandPrefix;
}
public int getLevel() {
return level;
}
}
public static enum CommandType {
NORMAL(0),
TRADE(1),
POKEMON(2);
private int level;
CommandType(int level) {
this.level = level;
}
public int getType() {
return level;
}
}
}
DatabaseConnection.java
Spoiler:
PHP Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 ~ 2010 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 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 database;
/**
* All OdinMS servers maintain a Database Connection. This class therefore "singletonices" the connection per process.
*
*
* @author Frz
*/
public class DatabaseConnection {
private static final ThreadLocal<Connection> con = new ThreadLocalConnection();
public static final int CLOSE_CURRENT_RESULT = 1;
/**
* The constant indicating that the current <code>ResultSet</code> object
* should not be closed when calling <code>getMoreResults</code>.
*
* @since 1.4
*/
public static final int KEEP_CURRENT_RESULT = 2;
/**
* The constant indicating that all <code>ResultSet</code> objects that
* have previously been kept open should be closed when calling
* <code>getMoreResults</code>.
*
* @since 1.4
*/
public static final int CLOSE_ALL_RESULTS = 3;
/**
* The constant indicating that a batch statement executed successfully
* but that no count of the number of rows it affected is available.
*
* @since 1.4
*/
public static final int SUCCESS_NO_INFO = -2;
/**
* The constant indicating that an error occured while executing a
* batch statement.
*
* @since 1.4
*/
public static final int EXECUTE_FAILED = -3;
/**
* The constant indicating that generated keys should be made
* available for retrieval.
*
* @since 1.4
*/
public static final int RETURN_GENERATED_KEYS = 1;
/**
* The constant indicating that generated keys should not be made
* available for retrieval.
*
* @since 1.4
*/
public static final int NO_GENERATED_KEYS = 2;
public static final Connection getConnection() {
return con.get();
}
public static final void closeAll() throws SQLException {
for (final Connection con : ThreadLocalConnection.allConnections) {
if (con != null) {
con.close();
}
}
}
private static final class ThreadLocalConnection extends ThreadLocal<Connection> {
public static final Collection<Connection> allConnections = new LinkedList<Connection>();