icemud-commits Mailing List for IceMUD
Status: Alpha
Brought to you by:
gamerscloset
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(1) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel H. <dh...@us...> - 2007-01-01 18:34:13
|
Update of /cvsroot/icemud/IceMUD/src/mud/tools In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv20609/src/mud/tools Modified Files: Plugin.java Log Message: removed use of keyword 'enum' as an environment varible. it is a reserved word in new JREs Index: Plugin.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/tools/Plugin.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Plugin.java 12 Dec 2003 18:40:27 -0000 1.8 --- Plugin.java 1 Jan 2007 18:34:09 -0000 1.9 *************** *** 34,38 **** import java.util.*; - import java.util.Enumeration; import java.util.jar.*; import java.net.*; --- 34,37 ---- *************** *** 111,118 **** // Iterate through all the entries in the jar file, and pick out those // that are class files ! Enumeration enum = JR.entries(); ! while( enum.hasMoreElements() ) { ! JarEntry je = (JarEntry)enum.nextElement(); String entryName = je.getName(); if( entryName.endsWith( "class" )) --- 110,117 ---- // Iterate through all the entries in the jar file, and pick out those // that are class files ! java.util.Enumeration enumer = JR.entries(); ! while( enumer.hasMoreElements() ) { ! JarEntry je = (JarEntry)enumer.nextElement(); String entryName = je.getName(); if( entryName.endsWith( "class" )) |
From: <jc...@us...> - 2003-12-15 19:28:30
|
Update of /cvsroot/icemud/IceMUD/src/mud/server In directory sc8-pr-cvs1:/tmp/cvs-serv5885/server Modified Files: Connection.java Log Message: Server now deals with failed logon attempts correctly. Index: Connection.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/Connection.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Connection.java 12 Dec 2003 18:36:29 -0000 1.9 --- Connection.java 15 Dec 2003 19:28:27 -0000 1.10 *************** *** 70,74 **** System.out.println("Connection from " + mClient.getSocket().getInetAddress().getHostAddress()); ! doLogin(); if (mUser == null) return; User UTemp = null; --- 70,76 ---- System.out.println("Connection from " + mClient.getSocket().getInetAddress().getHostAddress()); ! if(!doLogin()){ ! ServerHandler.removeConnection(this); ! } if (mUser == null) return; User UTemp = null; *************** *** 103,112 **** } ! private void doLogin() throws SocketException, Exception { if (mClient == null) { java.util.logging.Logger.getLogger("warning").logp(java.util.logging.Level.WARNING, "Connection", "doLogin","[Warning] Socket was null in doLogin()"); ! return; } --- 105,114 ---- } ! private boolean doLogin() throws SocketException, IOException{ if (mClient == null) { java.util.logging.Logger.getLogger("warning").logp(java.util.logging.Level.WARNING, "Connection", "doLogin","[Warning] Socket was null in doLogin()"); ! return false; } *************** *** 114,124 **** String user = getNameInput(); ! doPlayer(user); if (mUser != null) { System.out.println("User " + mUser.getName() + " has just logged in."); mGUI.setTableValue(mUser.getName() + " playing...", getRow(), 2); } else { System.err.println("Error getting user input on Connection "+this.getName()); } } --- 116,132 ---- String user = getNameInput(); ! if(!doPlayer(user)) { ! mUser=null; ! mClient.doCleanUp(); ! return false; ! } if (mUser != null) { System.out.println("User " + mUser.getName() + " has just logged in."); mGUI.setTableValue(mUser.getName() + " playing...", getRow(), 2); + return true; } else { System.err.println("Error getting user input on Connection "+this.getName()); + return false; } } *************** *** 238,242 **** mClient.print("Password: "); } else { ! mClient.print("Please retype password:"); String sRetype = mClient.readln(); if (sRetype.equals(sPass)) --- 246,250 ---- mClient.print("Password: "); } else { ! mClient.print("Please retype password: "); String sRetype = mClient.readln(); if (sRetype.equals(sPass)) *************** *** 300,304 **** mClient.print(Race.sMenu); ! mClient.print("Race:"); String sRaceChoice = mClient.readln(); --- 308,312 ---- mClient.print(Race.sMenu); ! mClient.print("Race: "); String sRaceChoice = mClient.readln(); *************** *** 316,320 **** mClient.print(Classes.sMenu); ! mClient.print("Class:"); String sClassChoice = mClient.readln(); --- 324,328 ---- mClient.print(Classes.sMenu); ! mClient.print("Class: "); String sClassChoice = mClient.readln(); |
From: <jc...@us...> - 2003-12-15 19:27:28
|
Update of /cvsroot/icemud/IceMUD/src/mud/world In directory sc8-pr-cvs1:/tmp/cvs-serv5641/world Modified Files: Mob.java Log Message: Mob.createMob was doing the job of a constructor, so I overloaded the existing Constructor with createMob's functionality. Index: Mob.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/world/Mob.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Mob.java 24 Oct 2003 17:46:29 -0000 1.5 --- Mob.java 15 Dec 2003 19:27:25 -0000 1.6 *************** *** 56,59 **** --- 56,103 ---- this.mApplySavingThrow = new int[5]; mInter = new Interpreter(this); + mAbilities = new Ability(); + } + + public Mob(ResultSet inResult) { + mEnhancements = new Hashtable(); + mEquipment = new Hashtable(Item.NUM_WEARS); + mFollowers = new Vector(); + mCombatList = new Vector(); + mAbilities = new Ability(); + mAffectedAbilities = new Ability(); + mAffectedType = new Vector(); + this.mApplySavingThrow = new int[5]; + mInter = new Interpreter(this); + mAbilities = new Ability(); + mCondition = new int[3]; + + + try { + mVirtualNumber = inResult.getInt("nMobID"); + mAlias = inResult.getString("sAlias"); + mShortDescription = inResult.getString("sShortDescription"); + mLongDescription = inResult.getString("sLongDescription"); + if (mLongDescription.endsWith("\n")) + mLongDescription = mLongDescription.substring(0, mLongDescription.lastIndexOf("\n")); + mDetailedDescription = inResult.getString("sDetailedDescription"); + mAction = inResult.getInt("nAction"); + mAffectedBy = inResult.getInt("nAffection"); + mAlignment = inResult.getInt("nAlignment"); + mLevel = inResult.getInt("nLevel"); + mHitRoll = inResult.getInt("nThaco"); + mAC = inResult.getInt("nAC"); + setMaxHit(inResult.getString("sMaxHit")); + mBareDamage = inResult.getString("sBareDamage"); + mGold = inResult.getInt("nGold"); + mExperiencePts = inResult.getInt("nExperiencePts"); + mLoadPosition = inResult.getInt("nLoadPosition"); + mDefaultPosition = inResult.getInt("nDefaultPosition"); + mSex = inResult.getInt("nSex"); + + mHit = mMaxHit; + + } catch (SQLException sqle) { + java.util.logging.Logger.getLogger("error").severe(sqle.toString()); + } } *************** *** 574,620 **** return (Math.max(-100, iAC)); /* -100 is lowest */ - } - - public Mob createMob(ResultSet inResult) { - - try { - - mAbilities = new Ability(); - mAffectedAbilities = new Ability(); - mCondition = new int[3]; - mCombatList = new Vector(); - mFollowers = new Vector(); - mCombatList = new Vector(); - mEnhancements = new Hashtable(); - mEquipment = new Hashtable(Item.NUM_WEARS); - - mVirtualNumber = inResult.getInt("nMobID"); - mAlias = inResult.getString("sAlias"); - mShortDescription = inResult.getString("sShortDescription"); - mLongDescription = inResult.getString("sLongDescription"); - if (mLongDescription.endsWith("\n")) - mLongDescription = mLongDescription.substring(0, mLongDescription.lastIndexOf("\n")); - mDetailedDescription = inResult.getString("sDetailedDescription"); - mAction = inResult.getInt("nAction"); - mAffectedBy = inResult.getInt("nAffection"); - mAlignment = inResult.getInt("nAlignment"); - mLevel = inResult.getInt("nLevel"); - mHitRoll = inResult.getInt("nThaco"); - mAC = inResult.getInt("nAC"); - setMaxHit(inResult.getString("sMaxHit")); - mBareDamage = inResult.getString("sBareDamage"); - mGold = inResult.getInt("nGold"); - mExperiencePts = inResult.getInt("nExperiencePts"); - mLoadPosition = inResult.getInt("nLoadPosition"); - mDefaultPosition = inResult.getInt("nDefaultPosition"); - mSex = inResult.getInt("nSex"); - - mHit = mMaxHit; - - } catch (SQLException sqle) { - java.util.logging.Logger.getLogger("error").severe(sqle.toString()); - } - return this; - } --- 618,621 ---- |
From: <jc...@us...> - 2003-12-15 19:25:44
|
Update of /cvsroot/icemud/IceMUD/src/mud/server/gui In directory sc8-pr-cvs1:/tmp/cvs-serv5236/server/gui Modified Files: ServerPanel.java Log Message: Added window listeners to the GUI so that closing the JFrames shuts down the server. Index: ServerPanel.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/gui/ServerPanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ServerPanel.java 4 Dec 2003 16:32:41 -0000 1.2 --- ServerPanel.java 15 Dec 2003 19:25:41 -0000 1.3 *************** *** 40,44 **** public ServerPanel() { ! JFrame serverJF = new JFrame("Server Status"); JPanel serverPane = new JPanel(); serverJF.setContentPane(serverPane); --- 40,44 ---- public ServerPanel() { ! serverJF = new JFrame("Server Status"); JPanel serverPane = new JPanel(); serverJF.setContentPane(serverPane); *************** *** 68,72 **** /* ************************************************************/ /* Results Table */ ! JFrame resultJF = new JFrame("Results"); JPanel resultPane = new JPanel(); resultJF.setContentPane(resultPane); --- 68,72 ---- /* ************************************************************/ /* Results Table */ ! resultJF = new JFrame("Results"); JPanel resultPane = new JPanel(); resultJF.setContentPane(resultPane); *************** *** 188,192 **** } ! public void addWindowListener(WindowAdapter wa){}; /* Add a label to the serverPane */ --- 188,195 ---- } ! public void addWindowListener(WindowAdapter wa) { ! serverJF.addWindowListener(wa); ! resultJF.addWindowListener(wa); ! } /* Add a label to the serverPane */ *************** *** 233,238 **** private static DefaultTableModel myModel; ! public Button dynButton; ! public Button conButton; // dynamic button labels: --- 236,241 ---- private static DefaultTableModel myModel; ! public Button dynButton, conButton; ! public JFrame serverJF, resultJF; // dynamic button labels: |
From: <jc...@us...> - 2003-12-15 19:24:25
|
Update of /cvsroot/icemud/IceMUD/src/mud/world In directory sc8-pr-cvs1:/tmp/cvs-serv4938/world Modified Files: World.java Log Message: Mob.createMob is now not used, instead, a new constructor has been defined. This update ensures the new approach is used. Index: World.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/world/World.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** World.java 4 Dec 2003 16:32:42 -0000 1.6 --- World.java 15 Dec 2003 19:24:22 -0000 1.7 *************** *** 571,575 **** while(result.next()) { ! Mob o = new Mob().createMob(result); sGenericMobs.put(new Integer(o.getVirtualNumber()), o); Mobs++; --- 571,575 ---- while(result.next()) { ! Mob o = new Mob(result); sGenericMobs.put(new Integer(o.getVirtualNumber()), o); Mobs++; |
From: <jc...@us...> - 2003-12-12 18:42:43
|
Update of /cvsroot/icemud/IceMUD/src/mud/tools In directory sc8-pr-cvs1:/tmp/cvs-serv15952/tools Modified Files: DBTools.java Log Message: Windows doesn't respect capitalization - MySQL doesn't care: fixed the tables names. Index: DBTools.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/tools/DBTools.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** DBTools.java 4 Dec 2003 16:32:41 -0000 1.6 --- DBTools.java 12 Dec 2003 18:42:36 -0000 1.7 *************** *** 64,69 **** try { ! ! Statement statement = sConnection.createStatement(); --- 64,68 ---- try { ! Statement statement = sConnection.createStatement(); *************** *** 78,91 **** if(result != null) while(result.next()) { ! if (result.getString(1).equals("tblUsersEquipment")) bUserEquipment = true; ! else if (result.getString(1).equals("tblUsers")) bUsers = true; ! else if (result.getString(1).equals("tblSubItems")) bSubItems = true; ! else if (result.getString(1).equals("tblApplySavingThrow")) bApplySavingThrow = true; ! else if (result.getString(1).equals("tblSkills")) bSkills = true; ! else if (result.getString(1).equals("tblSettings")) bSettings = true; ! else if (result.getString(1).equals("tblNotes")) bNotes = true; ! else if (result.getString(1).equals("tblAliases")) bAliases = true; ! else if (result.getString(1).equals("tblBanned")) bBanned = true; ! else if (result.getString(1).equals("tblText")) bText = true; } --- 77,90 ---- if(result != null) while(result.next()) { ! if (result.getString(1).toLowerCase().equals("tblusersequipment")) bUserEquipment = true; ! else if (result.getString(1).toLowerCase().equals("tblusers")) bUsers = true; ! else if (result.getString(1).toLowerCase().equals("tblsubitems")) bSubItems = true; ! else if (result.getString(1).toLowerCase().equals("tblapplysavingthrow")) bApplySavingThrow = true; ! else if (result.getString(1).toLowerCase().equals("tblskills")) bSkills = true; ! else if (result.getString(1).toLowerCase().equals("tblsettings")) bSettings = true; ! else if (result.getString(1).toLowerCase().equals("tblnotes")) bNotes = true; ! else if (result.getString(1).toLowerCase().equals("tblaliases")) bAliases = true; ! else if (result.getString(1).toLowerCase().equals("tblbanned")) bBanned = true; ! else if (result.getString(1).toLowerCase().equals("tbltext")) bText = true; } *************** *** 565,569 **** ResultSet result = statement.getResultSet(); if(result != null) ! if (result.next()) { String sIP = result.getString("sIP"); if (sIP.equals(inIP)) --- 564,568 ---- ResultSet result = statement.getResultSet(); if(result != null) ! while (result.next()) { String sIP = result.getString("sIP"); if (sIP.equals(inIP)) |
From: <jc...@us...> - 2003-12-12 18:40:31
|
Update of /cvsroot/icemud/IceMUD/src/mud/tools In directory sc8-pr-cvs1:/tmp/cvs-serv15531/tools Modified Files: Plugin.java Log Message: Fixed problem with non-jar files being treated as jars and improved error handling Index: Plugin.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/tools/Plugin.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Plugin.java 4 Dec 2003 16:32:41 -0000 1.7 --- Plugin.java 12 Dec 2003 18:40:27 -0000 1.8 *************** *** 53,57 **** protected static Hashtable fetchPlugins(Class inClassType) throws Exception { File fDirectory = new File("plugins"); ! if (!fDirectory.exists()) return new Hashtable(); File[] fFiles = fDirectory.listFiles(); Hashtable hPlugins = new Hashtable(); --- 53,57 ---- protected static Hashtable fetchPlugins(Class inClassType) throws Exception { File fDirectory = new File("plugins"); ! if (!fDirectory.exists()) { return new Hashtable(); } File[] fFiles = fDirectory.listFiles(); Hashtable hPlugins = new Hashtable(); *************** *** 60,67 **** for (int i = 0; i < fFiles.length; i++) { //System.out.println("Processing:" + fFiles[i].getCanonicalPath()); - Hashtable hClasses = getClasses(fFiles[i].getCanonicalPath(), inClassType); ! hPlugins.putAll(hClasses); ! } return hPlugins; --- 60,65 ---- for (int i = 0; i < fFiles.length; i++) { //System.out.println("Processing:" + fFiles[i].getCanonicalPath()); Hashtable hClasses = getClasses(fFiles[i].getCanonicalPath(), inClassType); ! if (hClasses != null) { hPlugins.putAll(hClasses); } } return hPlugins; *************** *** 97,100 **** --- 95,103 ---- try { URLClassLoader classLoader; + if (!inFile.endsWith(".jar")) { + System.err.println("Found non jar file in plugins directory: "+ + inFile+"\nPlease ensure all jar files end in `.jar' suffix!"); + return null; + } URL urlForClassLoader = new URL("jar:file:" + inFile + "!/"); classLoader = new URLClassLoader(new URL[]{urlForClassLoader}); *************** *** 102,106 **** JarURLConnection urlConnection = (JarURLConnection)urlForClassLoader.openConnection(); - JarFile JR = urlConnection.getJarFile(); --- 105,108 ---- *************** *** 114,118 **** JarEntry je = (JarEntry)enum.nextElement(); String entryName = je.getName(); - System.out.println("JarEntry: "+entryName); if( entryName.endsWith( "class" )) { --- 116,119 ---- *************** *** 133,139 **** return hClasses; ! } catch (Exception e) { java.util.logging.Logger.getLogger("error").severe("Error "+ ! "processing plugins: "+e.toString()); } return null; --- 134,149 ---- return hClasses; ! } catch (InstantiationException e) { java.util.logging.Logger.getLogger("error").severe("Error "+ ! "instantiating plugin classes: "+e.toString()); ! } catch (IllegalAccessException e) { ! java.util.logging.Logger.getLogger("error").severe("Have you got "+ ! "permission to open the plugins?\n"+e.toString()); ! } catch (ClassNotFoundException e) { ! java.util.logging.Logger.getLogger("error").severe("Is this plugins "+ ! "file corrupt?"+e.toString()); ! } catch (java.io.IOException e) { ! java.util.logging.Logger.getLogger("error").severe("Error reading "+ ! "plugins file\n"+e.toString()); } return null; |
From: <jc...@us...> - 2003-12-12 18:39:03
|
Update of /cvsroot/icemud/IceMUD/src/mud/shell In directory sc8-pr-cvs1:/tmp/cvs-serv15195/shell Modified Files: Shell.java Log Message: Removed unused field 'iterations' Index: Shell.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/shell/Shell.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Shell.java 4 Dec 2003 16:32:41 -0000 1.2 --- Shell.java 12 Dec 2003 18:39:00 -0000 1.3 *************** *** 56,62 **** public static void main(String argv[]) { ! String sConnectionString = ""; ! ! int iterations = 1; if( argv.length <1){ printUsage(); --- 56,61 ---- public static void main(String argv[]) { ! String sConnectionString = null; ! if( argv.length <1){ printUsage(); *************** *** 64,78 **** } ! for (int i = 0; i < argv.length; i++){ if( argv[i].equals( "-url")){ i++; ! if( i >= argv.length){ printUsage(); return; ! }else{ sConnectionString = argv[i]; } ! }else{ printUsage(); --- 63,78 ---- } ! for (int i = 0; i < argv.length; i++) { ! if( argv[i].equals( "-url")){ i++; ! if (i >= argv.length) { printUsage(); return; ! } else { sConnectionString = argv[i]; } ! } else { printUsage(); |
From: <jc...@us...> - 2003-12-12 18:38:03
|
Update of /cvsroot/icemud/IceMUD/src/mud/special In directory sc8-pr-cvs1:/tmp/cvs-serv14937/special Modified Files: SpecialAssignments.java Log Message: Small bugfix - wrong scope given to mAssignmentCount Index: SpecialAssignments.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/special/SpecialAssignments.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SpecialAssignments.java 4 Dec 2003 16:32:41 -0000 1.2 --- SpecialAssignments.java 12 Dec 2003 18:37:59 -0000 1.3 *************** *** 36,40 **** public SpecialAssignments() { ! int mAssingmentCount = 0; } --- 36,40 ---- public SpecialAssignments() { ! mAssingmentCount = 0; } *************** *** 285,289 **** } ! private static int mAssingmentCount = 0; } --- 285,289 ---- } ! private static int mAssingmentCount; } |
From: <jc...@us...> - 2003-12-12 18:36:33
|
Update of /cvsroot/icemud/IceMUD/src/mud/server In directory sc8-pr-cvs1:/tmp/cvs-serv14629 Modified Files: Connection.java Log Message: Fixed the way in which the player name is chosen. Index: Connection.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/Connection.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Connection.java 31 Oct 2003 16:28:44 -0000 1.8 --- Connection.java 12 Dec 2003 18:36:29 -0000 1.9 *************** *** 53,57 **** mSocket.setTcpNoDelay(true); mSocket.setSoLinger(false, 0); ! Connection.mGUI = mGUI; mClient = new Interactor(mSocket); } --- 53,57 ---- mSocket.setTcpNoDelay(true); mSocket.setSoLinger(false, 0); ! this.mGUI = mGUI; mClient = new Interactor(mSocket); } *************** *** 105,149 **** private void doLogin() throws SocketException, Exception { ! int mUserID = 0; ! boolean okuser = false; ! ! while (mUser == null && !okuser) { ! mClient.print("By what name do you wish to be known? "); ! if (mClient == null) { ! java.util.logging.Logger.getLogger("warning").logp(java.util.logging.Level.WARNING, ! "Connection", "doLogin","[Warning] Socket was null in doLogin()"); ! return; ! } ! String user = Text.filterAlpha(mClient.readln()); ! ! if (!user.equals("")) { ! user = user.substring(0,1).toUpperCase() + user.substring(1); ! mClient.println(""); ! mUser = DBTools.getUser(user); ! if (mUser == null) { ! okuser = doNewPlayer(user); ! ! } else { ! okuser = doExistingPlayer(user); ! } ! ! } else { ! mClient.println("Huh?"); ! } ! if (okuser) { ! System.out.println("User " + mUser.getName() + " has just logged in."); ! mGUI.setTableValue(mUser.getName() + " playing...", getRow(), 2); ! } else { ! mUser = null; ! } } - } ! private boolean doNewPlayer(String user) throws IOException { - user = getName(user); mUser = DBTools.getUser(user); if (mUser != null) --- 105,129 ---- private void doLogin() throws SocketException, Exception { ! if (mClient == null) { ! java.util.logging.Logger.getLogger("warning").logp(java.util.logging.Level.WARNING, ! "Connection", "doLogin","[Warning] Socket was null in doLogin()"); ! return; ! } ! ! mClient.print("By what name do you wish to be known? "); ! String user = getNameInput(); ! doPlayer(user); ! if (mUser != null) { ! System.out.println("User " + mUser.getName() + " has just logged in."); ! mGUI.setTableValue(mUser.getName() + " playing...", getRow(), 2); ! } else { ! System.err.println("Error getting user input on Connection "+this.getName()); } } ! private boolean doPlayer(String user) throws IOException { mUser = DBTools.getUser(user); if (mUser != null) *************** *** 201,205 **** --- 181,229 ---- return true; } + + private boolean doExistingPlayer(String user) throws IOException { + mUserID = mUser.getUserID(); + mClient.print("Password: "); + String pass = mClient.readln(); + + mClient.println(""); + + if (!pass.equals("")) { + if (DBTools.checkUser(user, pass) != -1) { + mClient.println("Welcome back " + user + "!"); + return true; + } else { + mUserID = 0; + mClient.println("Wrong Password!"); + return false; + } + } else + mClient.println("Nice try!"); + return false; + } + + private String getNameInput() throws IOException{ + String txtIn; + while (true) { + txtIn = Text.filterAlpha(mClient.readln()); + while (txtIn.equals("")) { + mClient.print("Huh? "); + txtIn = Text.filterAlpha(mClient.readln()); + } + txtIn = txtIn.substring(0, 1).toUpperCase() + txtIn.substring(1); + + mClient.print("Did I get that right, " + txtIn + " (Y/N)? "); + int iAnswer = parseYesNoAnswer(); + switch (iAnswer) { + case 0 : return txtIn; + case 1 : { + mClient.print("Please re-enter your name: "); + break; + } + } + } + } + private String getPassword(String user) throws IOException { *************** *** 229,265 **** } - private String getName(String user) throws IOException { - - if (user.equals("")) { - mClient.print("Huh?"); - return getName(mClient.readln()); - } - user = user.substring(0, 1).toUpperCase() + user.substring(1); - while (true) { - - if (user.equals("")) { - mClient.print("Huh?"); - return getName(mClient.readln()); - } - - mClient.print("Did I get that right, " + user + " (Y/N)? "); - int iAnswer = parseYesNo(mClient.readln()); - switch (iAnswer) { - case 0 : - return user; - case 1 : - mClient.print("Okay, what IS it, then? "); - user = mClient.readln(); - break; - case -1 : - mClient.println(""); - mClient.println("Please type Yes or No: "); - break; - } - mClient.println(""); - } - - } - private boolean getSex() throws IOException { --- 253,256 ---- *************** *** 277,297 **** } ! public static synchronized int parseYesNo(String inAnswer) { ! try { ! char arg = inAnswer.toLowerCase().charAt(0); ! switch (arg) { ! case 'y' : ! return 0; ! case 'n' : ! return 1; ! default : ! return -1; } ! } catch (Exception e) { ! return -1; } } ! /* * The code to interpret a sex letter --- 268,284 ---- } ! public synchronized int parseYesNoAnswer() throws IOException { ! char arg = mClient.readln().toLowerCase().charAt(0); ! ! while (true) { switch (arg) { ! case 'y' : return 0; ! case 'n' : return 1; } ! mClient.print("Please enter either y or n: "); ! arg = mClient.readln().toLowerCase().charAt(0); } } ! /* * The code to interpret a sex letter *************** *** 342,368 **** } - private boolean doExistingPlayer(String user) throws IOException { - mUserID = mUser.getUserID(); - - mClient.print("Password: "); - String pass = mClient.readln(); - - mClient.println(""); - - if (!pass.equals("")) { - if (DBTools.checkUser(user, pass) != -1) { - mClient.println("Welcome back " + user + "!"); - return true; - } else { - mUserID = 0; - mClient.println("Wrong Password!"); - return false; - } - } else - mClient.println("Nice try!"); - return false; - - } - public void println(String s) throws IOException { new PrintWriter(mSocket.getOutputStream(), true).println(s); --- 329,332 ---- *************** *** 372,376 **** protected Interactor mClient; protected boolean mAlive = true; ! protected static ServerPanel mGUI; private int mUserID; --- 336,340 ---- protected Interactor mClient; protected boolean mAlive = true; ! protected ServerPanel mGUI; private int mUserID; |
From: <jc...@us...> - 2003-12-12 18:34:03
|
Update of /cvsroot/icemud/IceMUD/src/mud/server In directory sc8-pr-cvs1:/tmp/cvs-serv14140 Modified Files: ServerHandler.java Log Message: Found minor problem in shutdown: added TODO Index: ServerHandler.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/ServerHandler.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServerHandler.java 4 Dec 2003 16:32:40 -0000 1.3 --- ServerHandler.java 12 Dec 2003 18:33:59 -0000 1.4 *************** *** 57,60 **** --- 57,62 ---- // Kill all of the connections for (Enumeration e = connections.elements(); e.hasMoreElements();) { + // TODO if shutdown called during a player login, connections + // contains a half-finished element, and ClassCastException occurs. User u = (User) e.nextElement(); u.kill(); |
From: <jc...@us...> - 2003-12-04 16:39:25
|
Update of /cvsroot/icemud/IceMUD/src/mud/server In directory sc8-pr-cvs1:/tmp/cvs-serv14830/src/mud/server Added Files: Initialise.java Log Message: Contains much of the code that used to be in GameGUI. This class sets up the initial state of the databases and the world. ERRORS: complains about assignments to non-existant items, e.g. Dec 4, 2003 4:38:08 PM SpecialAssignments assignMob WARNING: Attempt to assign spec to non-existant Mob #6516 --- NEW FILE: Initialise.java --- /* * Created on Dec 4, 2003 * */ package mud.server; /** * @author jcb62 * Created by on Dec 4, 2003: * * This class is responsible for checking the necessary database entries * are present, setting up the logging facilities, spawning the GUI of the * server and basically creating the initial internal state of the game */ import mud.engine.Interpreter; import mud.world.*; import mud.world.classes.Classes; import mud.world.races.Race; import mud.server.gui.GameGUI; import java.io.*; import java.util.logging.*; public class Initialise extends Thread { public Initialise(String inSQL) { sConnectionString = inSQL; } public void run() { try { /* Setup logs and log directories */ Logger lCurrent = Logger.getLogger("error"); new File("logs").mkdir(); FileHandler fh = new FileHandler("logs/error.log"); String sUserLogPath = "logs" + File.separator + "users"; new File(sUserLogPath).mkdir(); new File("plugins").mkdir(); fh.setFormatter(new SimpleFormatter()); lCurrent.addHandler(fh); lCurrent.setLevel(Level.ALL); lCurrent = Logger.getLogger("warning"); fh = new FileHandler("logs/warning.log"); fh.setFormatter(new SimpleFormatter()); lCurrent.addHandler(fh); lCurrent.setLevel(Level.ALL); System.out.println("Creating world..."); new World(); World.setConnectionString(sConnectionString); World.loadSocials(); World.loadMessages(); World.loadSpells(); World.loadSkills(); World.loadText(); World.loadHelp(); Classes.init(); Race.init(); World.loadWorld(); World.loadZones(); World.loadMobs(); World.loadItems(); World.loadBoards(); World.loadSpecials(); System.out.println("Done creating world..."); System.out.println("Filling world..."); World.processZones(); World.loadNotes(); World.loadShops(); System.out.println("Done filling..."); new Interpreter().loadCommands(); new GameGUI().start(); } catch(IOException e) { java.util.logging.Logger.getLogger("error").severe("Error"+ " initialising the server: "+e.toString()); } } private static String sConnectionString; } |
From: <jc...@us...> - 2003-12-04 16:33:44
|
Update of /cvsroot/icemud/IceMUD/src/mud/server In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/server Modified Files: Server.java ServerHandler.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: Server.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/Server.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Server.java 24 Oct 2003 15:56:11 -0000 1.2 --- Server.java 4 Dec 2003 16:32:40 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- import mud.events.*; import mud.listeners.*; + + import java.net.BindException; import java.net.ServerSocket; import java.net.Socket; *************** *** 39,44 **** --- 41,48 ---- abstract protected void startup(); + abstract protected void startTable(); abstract protected void shutdown(); abstract protected Connection handle( Socket client ); + abstract protected void updateGUI(boolean state); public Server( String name ) { *************** *** 67,75 **** public void run() { ServerSocket sock = null; try { startup(); ! sock = new ServerSocket( port ); sock.setSoTimeout( 500 ); while( !mud.world.World.sShutdown ) { try { --- 71,90 ---- public void run() { + updateGUI(true); ServerSocket sock = null; try { startup(); ! System.out.println("Port: "+this.port); ! try { ! sock = new ServerSocket( this.port ); ! } catch(BindException be) { ! java.util.logging.Logger.getLogger("error").severe("Unable "+ "to open port "+this.port+". Have you got "+ ! "sufficient privileges?\n"+be.toString()); ! updateGUI(false); ! return; ! } sock.setSoTimeout( 500 ); + startTable(); + while( !mud.world.World.sShutdown ) { try { *************** *** 77,81 **** System.gc(); } catch( java.io.InterruptedIOException e ) { ! //Ignore timeout } finally { Thread.yield(); --- 92,96 ---- System.gc(); } catch( java.io.InterruptedIOException e ) { ! // Ignore timeout } finally { Thread.yield(); *************** *** 83,89 **** } shutdown(); ! } catch( Exception e ) { ! java.util.logging.Logger.getLogger("error").severe(e.toString()); ! } finally { Thread.yield(); try { --- 98,107 ---- } shutdown(); ! } catch( java.io.IOException e ) { ! java.util.logging.Logger.getLogger("error").severe("The server "+ ! "has made an error: "+e.toString()); ! } ! finally { ! updateGUI(false); Thread.yield(); try { *************** *** 99,102 **** private Vector connectionListeners = new Vector(); ! protected int port = 23; } --- 117,120 ---- private Vector connectionListeners = new Vector(); ! protected int port = 2223; } Index: ServerHandler.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/ServerHandler.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ServerHandler.java 16 Oct 2003 18:11:42 -0000 1.2 --- ServerHandler.java 4 Dec 2003 16:32:40 -0000 1.3 *************** *** 38,59 **** public class ServerHandler extends Server { - - - public ServerHandler(ServerPanel gui) { ! super( "exec" ); ServerHandler.gui = gui; } protected void startup() { row = gui.addRow(); ! gui.setTableValue("Waiting for connection...",0, 1); ! port = ServerPanel.getPort(); } protected void shutdown() { // Kill all of the connections - for (Enumeration e = connections.elements(); e.hasMoreElements();) { User u = (User) e.nextElement(); --- 38,59 ---- public class ServerHandler extends Server { public ServerHandler(ServerPanel gui) { ! super("exec"); ServerHandler.gui = gui; } protected void startup() { + port = ServerPanel.getPort(); + } + + protected void startTable() { row = gui.addRow(); ! gui.setTableValue("Waiting for connection...", 0, 1); } protected void shutdown() { + updateGUI(false); // Kill all of the connections for (Enumeration e = connections.elements(); e.hasMoreElements();) { User u = (User) e.nextElement(); *************** *** 81,86 **** protected Connection handle( Socket s ) { ! ! Connection conn = null; String sIP = s.getInetAddress().getHostAddress(); --- 81,85 ---- protected Connection handle( Socket s ) { ! Connection conn = null; String sIP = s.getInetAddress().getHostAddress(); *************** *** 91,97 **** try { ! ! row = gui.addRow(); ! gui.setTableValue("Waiting for connection...",0, 1); --- 90,94 ---- try { ! row = gui.addRow(); gui.setTableValue("Waiting for connection...",0, 1); *************** *** 104,111 **** } ! return conn; ! } public static Vector connections = new Vector(); private static ServerPanel gui; --- 101,120 ---- } ! return conn; ! } ! ! public void updateGUI(boolean state) { ! running = state; ! if(running) { ! gui.dynButton.setLabel(gui.stopLabel); ! } else { ! gui.dynButton.setLabel(gui.startLabel); ! } ! } ! public boolean isRunning() { ! return running; } + private boolean running=false; public static Vector connections = new Vector(); private static ServerPanel gui; |
From: <jc...@us...> - 2003-12-04 16:32:46
|
Update of /cvsroot/icemud/IceMUD/src/mud/world/classes In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/world/classes Modified Files: Classes.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: Classes.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/world/classes/Classes.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Classes.java 27 Oct 2003 17:38:58 -0000 1.8 --- Classes.java 4 Dec 2003 16:32:42 -0000 1.9 *************** *** 52,68 **** try { ! sPlugins = fetchPlugins(Classes.class); // Tell the world what classes are available ! ! NUM_CLASSES = sPlugins.size(); System.out.println("Adding " + NUM_CLASSES + " classes from Plug-ins."); ! sAbbrevs = new Hashtable(NUM_CLASSES); sPCClassTypes = new Hashtable(NUM_CLASSES); sGuildInfo = new Hashtable(NUM_CLASSES); ! for (Enumeration key = sPlugins.keys(); key.hasMoreElements();) { String sName = (String)key.nextElement(); ! Classes cNext = (Classes)sPlugins.get(sName); for (Enumeration e = World.getSpells().elements(); e.hasMoreElements();) { --- 52,67 ---- try { ! hPlugins = fetchPlugins(Classes.class); // Tell the world what classes are available ! NUM_CLASSES = hPlugins.size(); System.out.println("Adding " + NUM_CLASSES + " classes from Plug-ins."); ! hAbbrevs = new Hashtable(NUM_CLASSES); sPCClassTypes = new Hashtable(NUM_CLASSES); sGuildInfo = new Hashtable(NUM_CLASSES); ! for (Enumeration key = hPlugins.keys(); key.hasMoreElements();) { String sName = (String)key.nextElement(); ! Classes cNext = (Classes)hPlugins.get(sName); for (Enumeration e = World.getSpells().elements(); e.hasMoreElements();) { *************** *** 72,76 **** cNext.initSpellLevels(); ! sAbbrevs.put(cNext.getName(), cNext.getAbbreviation()); sPCClassTypes.put(cNext.getName(), cNext.getName()); --- 71,75 ---- cNext.initSpellLevels(); ! hAbbrevs.put(cNext.getName(), cNext.getAbbreviation()); sPCClassTypes.put(cNext.getName(), cNext.getName()); *************** *** 163,167 **** String sAbbreviation = inAbbreviation.toLowerCase().substring(0, 1); ! for (Enumeration e = sPlugins.keys(); e.hasMoreElements();) { String sName = (String)e.nextElement(); if (sName.toLowerCase().startsWith(sAbbreviation)) --- 162,166 ---- String sAbbreviation = inAbbreviation.toLowerCase().substring(0, 1); ! for (Enumeration e = hPlugins.keys(); e.hasMoreElements();) { String sName = (String)e.nextElement(); if (sName.toLowerCase().startsWith(sAbbreviation)) *************** *** 171,176 **** } ! public static Hashtable getClasses() { return sPlugins; } ! public static Hashtable getAbbreviations() { return sAbbrevs; } --- 170,175 ---- } ! public static Hashtable getClasses() { return hPlugins; } ! public static Hashtable getAbbreviations() { return hAbbrevs; } *************** *** 242,247 **** protected static int sGuildDirection = -1; ! private static Hashtable sPlugins; ! private static Hashtable sAbbrevs; --- 241,246 ---- protected static int sGuildDirection = -1; ! private static Hashtable hPlugins; ! private static Hashtable hAbbrevs; |
From: <jc...@us...> - 2003-12-04 16:32:45
|
Update of /cvsroot/icemud/IceMUD/src/mud/tools In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/tools Modified Files: DBTools.java Plugin.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: DBTools.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/tools/DBTools.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DBTools.java 24 Oct 2003 17:46:29 -0000 1.5 --- DBTools.java 4 Dec 2003 16:32:41 -0000 1.6 *************** *** 78,94 **** if(result != null) while(result.next()) { ! if (result.getString(1).equals("tblusersequipment")) bUserEquipment = true; ! else if (result.getString(1).equals("tblusers")) bUsers = true; ! else if (result.getString(1).equals("tblsubitems")) bSubItems = true; ! else if (result.getString(1).equals("tblapplysavingthrow")) bApplySavingThrow = true; ! else if (result.getString(1).equals("tblskills")) bSkills = true; ! else if (result.getString(1).equals("tblsettings")) bSettings = true; ! else if (result.getString(1).equals("tblnotes")) bNotes = true; ! else if (result.getString(1).equals("tblaliases")) bAliases = true; ! else if (result.getString(1).equals("tblbanned")) bBanned = true; ! else if (result.getString(1).equals("tbltext")) bText = true; ! ! ! } if (!bUserEquipment) createUsersEquipmentTable(sConnection); --- 78,92 ---- if(result != null) while(result.next()) { ! if (result.getString(1).equals("tblUsersEquipment")) bUserEquipment = true; ! else if (result.getString(1).equals("tblUsers")) bUsers = true; ! else if (result.getString(1).equals("tblSubItems")) bSubItems = true; ! else if (result.getString(1).equals("tblApplySavingThrow")) bApplySavingThrow = true; ! else if (result.getString(1).equals("tblSkills")) bSkills = true; ! else if (result.getString(1).equals("tblSettings")) bSettings = true; ! else if (result.getString(1).equals("tblNotes")) bNotes = true; ! else if (result.getString(1).equals("tblAliases")) bAliases = true; ! else if (result.getString(1).equals("tblBanned")) bBanned = true; ! else if (result.getString(1).equals("tblText")) bText = true; ! } if (!bUserEquipment) createUsersEquipmentTable(sConnection); *************** *** 135,139 **** try { ! getStatement().execute("create table tbltext (sCredits text, " + "sInfo text, " + "sGreetings text, " + --- 133,137 ---- try { ! getStatement().execute("create table tblText (sCredits text, " + "sInfo text, " + "sGreetings text, " + *************** *** 378,382 **** try { ! getStatement().execute("create table tblbanned (sIP char(20));"); } catch (Exception e) { java.util.logging.Logger.getLogger("error").severe(Text.getException(e)); --- 376,380 ---- try { ! getStatement().execute("create table tblBanned (sIP char(20));"); } catch (Exception e) { java.util.logging.Logger.getLogger("error").severe(Text.getException(e)); *************** *** 390,394 **** try { ! getStatement().execute("create table tblaliases (nUserID integer, " + "sAliasName char(20), " + "sAlias text);"); --- 388,392 ---- try { ! getStatement().execute("create table tblAliases (nUserID integer, " + "sAliasName char(20), " + "sAlias text);"); *************** *** 404,408 **** try { ! getStatement().execute("create table tblskills (nUserID integer, " + "nSkillNumber integer, " + "nValue integer);"); --- 402,406 ---- try { ! getStatement().execute("create table tblSkills (nUserID integer, " + "nSkillNumber integer, " + "nValue integer);"); *************** *** 418,422 **** try { ! getStatement().execute("create table tblapplysavingthrow (nUserID integer, " + "nWhich integer, " + "nValue integer);"); --- 416,420 ---- try { ! getStatement().execute("create table tblApplySavingThrow (nUserID integer, " + "nWhich integer, " + "nValue integer);"); *************** *** 562,566 **** String sql; ! sql = "SELECT sIP FROM tblbanned WHERE sIP='" + inIP + "';"; boolean hasResult = statement.execute(sql); if (hasResult) { --- 560,564 ---- String sql; ! sql = "SELECT sIP FROM tblBanned WHERE sIP='" + inIP + "';"; boolean hasResult = statement.execute(sql); if (hasResult) { *************** *** 588,592 **** ArrayList alBans = new ArrayList(); ! sql = "SELECT sIP FROM tblbanned;"; boolean hasResult = statement.execute(sql); ResultSet rs = statement.getResultSet(); --- 586,590 ---- ArrayList alBans = new ArrayList(); ! sql = "SELECT sIP FROM tblBanned;"; boolean hasResult = statement.execute(sql); ResultSet rs = statement.getResultSet(); *************** *** 629,633 **** int i = 1; ! sql = "INSERT INTO tblbanned (sIP) " + "VALUES (" + sqlize(inIP) + ");"; getStatement().execute(sql); --- 627,631 ---- int i = 1; ! sql = "INSERT INTO tblBanned (sIP) " + "VALUES (" + sqlize(inIP) + ");"; getStatement().execute(sql); *************** *** 644,648 **** int i = 1; ! sql = "DELETE FROM tblbanned where sIP=" + sqlize(inIP) + ";"; getStatement().execute(sql); } catch (Exception e) { --- 642,646 ---- int i = 1; ! sql = "DELETE FROM tblBanned where sIP=" + sqlize(inIP) + ";"; getStatement().execute(sql); } catch (Exception e) { *************** *** 657,666 **** Statement statement = sConnection.createStatement(); String sql; - int i = 1; sql = "SELECT * FROM tblSettings;"; ! boolean hasResult = statement.execute(sql); ! if (hasResult) { return statement.getResultSet(); --- 655,663 ---- Statement statement = sConnection.createStatement(); String sql; sql = "SELECT * FROM tblSettings;"; ! boolean hasResult = statement.execute(sql); ! if (hasResult) { return statement.getResultSet(); *************** *** 827,831 **** int i = 1; ! sql = "UPDATE tblusers SET nSectorID=" + SectorID + " WHERE nUserID=" + UserID + ";"; statement.execute(sql); } catch (Exception e) { --- 824,828 ---- int i = 1; ! sql = "UPDATE tblUsers SET nSectorID=" + SectorID + " WHERE nUserID=" + UserID + ";"; statement.execute(sql); } catch (Exception e) { *************** *** 1069,1073 **** for (Enumeration e = players.elements(); e.hasMoreElements();) { User u = (User)e.nextElement(); ! sql = "UPDATE tblusers SET nSectorID=" + u.getSectorID() + " WHERE nUserID=" + u.getUserID() + ";"; statement.execute(sql); } --- 1066,1070 ---- for (Enumeration e = players.elements(); e.hasMoreElements();) { User u = (User)e.nextElement(); ! sql = "UPDATE tblUsers SET nSectorID=" + u.getSectorID() + " WHERE nUserID=" + u.getUserID() + ";"; statement.execute(sql); } *************** *** 1083,1087 **** String sql; ! sql = "DELETE FROM tblnotes WHERE nBoardID=" + inBoard.getBoardID(); statement.execute(sql); --- 1080,1084 ---- String sql; ! sql = "DELETE FROM tblNotes WHERE nBoardID=" + inBoard.getBoardID(); statement.execute(sql); *************** *** 1112,1116 **** ! sql = "UPDATE tblusers " + "SET nSectorID=" + inUser.getSectorID() + ", " + "sShortDescription=" + sqlize(inUser.getShortDescription()) + ", " + --- 1109,1113 ---- ! sql = "UPDATE tblUsers " + "SET nSectorID=" + inUser.getSectorID() + ", " + "sShortDescription=" + sqlize(inUser.getShortDescription()) + ", " + *************** *** 1162,1171 **** int iUserID = inUser.getUserID(); ! sql = "DELETE FROM tblaliases WHERE nUserID=" + iUserID; statement.execute(sql); for (Enumeration key = inUser.getAliases().keys(); key.hasMoreElements();) { String sAliasName = ((String)key.nextElement()); ! sql = "INSERT INTO tblaliases (nUserID, sAliasName, sAlias) VALUES (" + iUserID + ", " + sqlize(sAliasName) + ", " + --- 1159,1168 ---- int iUserID = inUser.getUserID(); ! sql = "DELETE FROM tblAliases WHERE nUserID=" + iUserID; statement.execute(sql); for (Enumeration key = inUser.getAliases().keys(); key.hasMoreElements();) { String sAliasName = ((String)key.nextElement()); ! sql = "INSERT INTO tblAliases (nUserID, sAliasName, sAlias) VALUES (" + iUserID + ", " + sqlize(sAliasName) + ", " + *************** *** 1174,1192 **** } ! sql = "DELETE FROM tblapplysavingthrow WHERE nUserID=" + iUserID; statement.execute(sql); for (int i = 0; i < 5; i++) { ! sql = "INSERT INTO tblapplysavingthrow (nUserID, nWhich, nValue) VALUES (" + iUserID + ", " + i + ", " + inUser.getSave(i) + ");"; statement.execute(sql); } ! sql = "DELETE FROM tblskills WHERE nUserID=" + iUserID; statement.execute(sql); for (Enumeration key = inUser.getSkills().keys(); key.hasMoreElements();) { int iSkillNumber = ((Integer)key.nextElement()).intValue(); ! sql = "INSERT INTO tblskills (nUserID, nSkillNumber, nValue) VALUES (" + iUserID + ", " + iSkillNumber + ", " + --- 1171,1189 ---- } ! sql = "DELETE FROM tblApplySavingThrow WHERE nUserID=" + iUserID; statement.execute(sql); for (int i = 0; i < 5; i++) { ! sql = "INSERT INTO tblApplySavingThrow (nUserID, nWhich, nValue) VALUES (" + iUserID + ", " + i + ", " + inUser.getSave(i) + ");"; statement.execute(sql); } ! sql = "DELETE FROM tblSkills WHERE nUserID=" + iUserID; statement.execute(sql); for (Enumeration key = inUser.getSkills().keys(); key.hasMoreElements();) { int iSkillNumber = ((Integer)key.nextElement()).intValue(); ! sql = "INSERT INTO tblSkills (nUserID, nSkillNumber, nValue) VALUES (" + iUserID + ", " + iSkillNumber + ", " + *************** *** 1195,1199 **** } ! sql = "DELETE FROM tblusersequipment WHERE nUserID=" + iUserID; statement.execute(sql); sql = "DELETE FROM tblSubItems WHERE nUserID=" + iUserID; --- 1192,1196 ---- } ! sql = "DELETE FROM tblUsersEquipment WHERE nUserID=" + iUserID; statement.execute(sql); sql = "DELETE FROM tblSubItems WHERE nUserID=" + iUserID; *************** *** 1205,1209 **** if (ITemp.getItemID() != -1) { ! sql = "INSERT INTO tblusersequipment (nUserID, " + "nItemID, " + "nCondition, " + --- 1202,1206 ---- if (ITemp.getItemID() != -1) { ! sql = "INSERT INTO tblUsersEquipment (nUserID, " + "nItemID, " + "nCondition, " + *************** *** 1238,1242 **** if (ITemp.getItemID() != -1) { ! sql = "INSERT INTO tblusersequipment (nUserID, " + "nItemID, " + "nCondition, " + --- 1235,1239 ---- if (ITemp.getItemID() != -1) { ! sql = "INSERT INTO tblUsersEquipment (nUserID, " + "nItemID, " + "nCondition, " + *************** *** 1315,1319 **** int i = 1; ! sql = "UPDATE tblusers SET sUserPass=PASSWORD('" + pass + "') WHERE nUserID=" + UserID + ";"; getStatement().execute(sql); } catch (Exception e) { --- 1312,1316 ---- int i = 1; ! sql = "UPDATE tblUsers SET sUserPass=PASSWORD('" + pass + "') WHERE nUserID=" + UserID + ";"; getStatement().execute(sql); } catch (Exception e) { Index: Plugin.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/tools/Plugin.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Plugin.java 30 Oct 2003 22:04:33 -0000 1.6 --- Plugin.java 4 Dec 2003 16:32:41 -0000 1.7 *************** *** 34,38 **** import java.util.*; - import java.util.TreeSet; import java.util.Enumeration; import java.util.jar.*; --- 34,37 ---- *************** *** 69,131 **** } - public static void processPlugin(String inJarFile) { - - try { - URLClassLoader classLoader; - Class classForLoad = null; - - URL urlForClassLoader = new URL("jar:file:" + inJarFile + "!/"); - JarURLConnection urlConnection = (JarURLConnection)urlForClassLoader.openConnection(); - - JarFile JR = urlConnection.getJarFile(); - - - // Put the names in a tree set, to get them sorted. - TreeSet names = new TreeSet(); - - // Iterate through all the entries in the jar file, and pick out those - // that are class files - Enumeration enum = JR.entries(); - while( enum.hasMoreElements() ) - { - JarEntry je = (JarEntry)enum.nextElement(); - String entryName = je.getName(); - if( entryName.endsWith( "class" )) - { - // Replace path separators with periods, to make proper class - // names - String className = entryName.replace( '/', '.' ); - className = className.substring( 0, className.lastIndexOf(".") ); - names.add( className ); - } - } - - String[] sCollection = (String[])names.toArray( new String[]{} ); - - classLoader = new URLClassLoader(new URL[]{urlForClassLoader}); - - for (int i = 0; i < sCollection.length; i++) { - classForLoad = classLoader.loadClass(sCollection[i]); - System.out.println("Class:" + classForLoad.getName()); - - - //Method[] classMethods = classForLoad.getMethods(); - //for (int j = 0; j < classMethods.length; j++) - //System.out.println("Method:" + classMethods[j].getName()); - - - Method doSomething = classForLoad.getMethod("doSomething", new Class[]{}); - Object obj = classForLoad.newInstance(); - doSomething.invoke(obj, new Object[]{}); - - } - - - } catch (Exception e) { - java.util.logging.Logger.getLogger("error").severe(e.toString()); - } - - } - public static Class getClass(String inFile, String inClassName) { --- 68,71 ---- *************** *** 156,169 **** try { - URLClassLoader classLoader; URL urlForClassLoader = new URL("jar:file:" + inFile + "!/"); classLoader = new URLClassLoader(new URL[]{urlForClassLoader}); ! JarURLConnection urlConnection = (JarURLConnection)urlForClassLoader.openConnection(); JarFile JR = urlConnection.getJarFile(); - // Put the names in a tree set, to get them sorted. Hashtable hClasses = new Hashtable(); --- 96,108 ---- try { URLClassLoader classLoader; URL urlForClassLoader = new URL("jar:file:" + inFile + "!/"); classLoader = new URLClassLoader(new URL[]{urlForClassLoader}); ! JarURLConnection urlConnection = (JarURLConnection)urlForClassLoader.openConnection(); ! JarFile JR = urlConnection.getJarFile(); Hashtable hClasses = new Hashtable(); *************** *** 175,178 **** --- 114,118 ---- JarEntry je = (JarEntry)enum.nextElement(); String entryName = je.getName(); + System.out.println("JarEntry: "+entryName); if( entryName.endsWith( "class" )) { *************** *** 194,198 **** } catch (Exception e) { ! java.util.logging.Logger.getLogger("error").severe(e.toString()); } return null; --- 134,139 ---- } catch (Exception e) { ! java.util.logging.Logger.getLogger("error").severe("Error "+ ! "processing plugins: "+e.toString()); } return null; |
From: <jc...@us...> - 2003-12-04 16:32:45
|
Update of /cvsroot/icemud/IceMUD/src/mud/world In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/world Modified Files: World.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: World.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/world/World.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** World.java 30 Oct 2003 19:44:50 -0000 1.5 --- World.java 4 Dec 2003 16:32:42 -0000 1.6 *************** *** 108,114 **** ResultSet rs = DBTools.getSettings(); try { sStartTime = rs.getLong("nStartTime"); ! } catch (SQLException sqle) {} System.out.println("Original Start Time:" + new java.util.Date(sStartTime)); } --- 108,118 ---- ResultSet rs = DBTools.getSettings(); + rs.next(); try { sStartTime = rs.getLong("nStartTime"); ! } catch (SQLException sqle) { ! java.util.logging.Logger.getLogger("error").severe("Error"+ ! " fetching start time: "+sqle.toString()); ! } System.out.println("Original Start Time:" + new java.util.Date(sStartTime)); } *************** *** 914,918 **** } catch (Exception e) { ! java.util.logging.Logger.getLogger("error").severe(e.toString()); } --- 918,923 ---- } catch (Exception e) { ! java.util.logging.Logger.getLogger("error").severe("Error loading"+ ! " socials from database: "+e.toString()); } |
From: <jc...@us...> - 2003-12-04 16:32:44
|
Update of /cvsroot/icemud/IceMUD/src/mud/special In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/special Modified Files: SpecialAssignments.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: SpecialAssignments.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/special/SpecialAssignments.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SpecialAssignments.java 14 Oct 2003 14:23:12 -0000 1.1 --- SpecialAssignments.java 4 Dec 2003 16:32:41 -0000 1.2 *************** *** 263,266 **** --- 263,267 ---- return; } else { + System.out.println("================================> In working area!"); MTemp.setSpecial(new Special(inName, new Class[] {Cell.class, Cell.class, String.class, String[].class})); } |
From: <jc...@us...> - 2003-12-04 16:32:44
|
Update of /cvsroot/icemud/IceMUD/src/mud/shell In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/shell Modified Files: Shell.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: Shell.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/shell/Shell.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Shell.java 14 Oct 2003 14:23:13 -0000 1.1 --- Shell.java 4 Dec 2003 16:32:41 -0000 1.2 *************** *** 36,40 **** package mud.shell; ! import mud.server.gui.GameGUI; --- 36,40 ---- package mud.shell; ! import mud.server.Initialise; *************** *** 84,89 **** System.exit(0); } ! ! new GameGUI(sConnectionString).start(); } --- 84,88 ---- System.exit(0); } ! new Initialise(sConnectionString).start(); } |
From: <jc...@us...> - 2003-12-04 16:32:44
|
Update of /cvsroot/icemud/IceMUD/src/mud/server/gui In directory sc8-pr-cvs1:/tmp/cvs-serv13445/IceMUD/src/mud/server/gui Modified Files: GameGUI.java ServerPanel.java Log Message: Mainly bugfixes. Changed the structure of the GameGUI class, moving all the initialization code into mud.server.Initialise, which seems a bit more intuitive. Index: GameGUI.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/gui/GameGUI.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** GameGUI.java 30 Oct 2003 22:04:33 -0000 1.7 --- GameGUI.java 4 Dec 2003 16:32:41 -0000 1.8 *************** *** 29,142 **** *********************************************************************************/ package mud.server.gui; - import mud.server.*; import mud.engine.HeartBeat; - import mud.engine.Interpreter; import mud.world.*; - import mud.world.classes.Classes; - import mud.world.races.Race; - import java.util.*; - import java.io.*; import java.awt.event.*; - import javax.swing.*; import java.awt.*; - import java.util.logging.*; ! public class GameGUI extends Thread { ! public GameGUI(String inSql) { ! ! sConnectionString = inSql; ! } - - public void run() { ! //createDisplay(); ! ! try { ! ! /* Setup logs and log directories */ ! Logger lCurrent = Logger.getLogger("error"); ! new File("logs").mkdir(); ! FileHandler fh = new FileHandler("logs/error.log"); ! String sUserLogPath = "logs" + File.separator + "users"; ! new File(sUserLogPath).mkdir(); ! new File("plugins").mkdir(); ! ! fh.setFormatter(new SimpleFormatter()); ! lCurrent.addHandler(fh); ! lCurrent.setLevel(Level.ALL); ! ! lCurrent = Logger.getLogger("warning"); ! fh = new FileHandler("logs/warning.log"); ! fh.setFormatter(new SimpleFormatter()); ! lCurrent.addHandler(fh); ! lCurrent.setLevel(Level.ALL); ! ! System.out.println("Creating world..."); ! new World(); ! World.setConnectionString(sConnectionString); ! ! World.loadSocials(); ! World.loadMessages(); ! World.loadSpells(); ! World.loadSkills(); ! World.loadText(); ! World.loadHelp(); ! ! Classes.init(); ! Race.init(); ! ! World.loadWorld(); ! World.loadZones(); ! World.loadMobs(); ! World.loadItems(); ! World.loadBoards(); ! World.loadSpecials(); ! ! System.out.println("Done creating world..."); ! System.out.println("Filling world..."); ! ! World.processZones(); ! World.loadNotes(); ! World.loadShops(); ! ! System.out.println("Done filling..."); ! ! new Interpreter().loadCommands(); ! ! /* This is temporary to make debugging faster */ ! //display.setDisplayButtonEnabled(true); ! //display.setClickButtonEnabled(true); ! display = new ServerPanel(); ! World.sShutdown = false; ! new HeartBeat().start(); ! (sh = new ServerHandler(display)).start(); ! ! /* End Temporary */ ! ! } catch (IOException ioe) { ! java.util.logging.Logger.getLogger("error").severe(ioe.toString()); ! } ! ! ! } - - private static void createDisplay() { ! JFrame frame; ! display = new ServerPanel(); ! display.clearTable(); ! /* Here we start building the UI */ ! frame = new JFrame("Server"); ! frame.setContentPane(display); ! frame.pack(); ! frame.setVisible(true); ! frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { --- 29,67 ---- *********************************************************************************/ package mud.server.gui; import mud.server.*; import mud.engine.HeartBeat; import mud.world.*; import java.util.*; import java.awt.event.*; import java.awt.*; ! /** ! * ! * @author jcb62 ! * Created by on Dec 4, 2003: ! * ! * A class to deal with creating, displaying and interfacing with ! * the server's GUI ! */ + public class GameGUI extends Thread { ! public GameGUI() { ! super(); } ! public void run() { ! ServerPanel display = createDisplay(); ! World.sShutdown = false; ! new HeartBeat().start(); ! (sh = new ServerHandler(display)).start(); } ! /* Displays two JFrames, one with results, one with server status */ ! private static ServerPanel createDisplay() { ! System.out.println("In create display"); ! final ServerPanel sp = new ServerPanel(); ! sp.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { *************** *** 146,150 **** sh.kill(); Window window = (Window) we.getSource(); ! window.hide(); System.exit(0); } --- 71,75 ---- sh.kill(); Window window = (Window) we.getSource(); ! window.dispose(); System.exit(0); } *************** *** 152,176 **** /* Now we listen for events on the UI */ ! display.addRunListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ! if (display.reverseRun().equals("D")) { sh.kill(); } else { World.sShutdown = false; new HeartBeat().start(); ! (sh = new ServerHandler(display)).start(); } ! display.clearTable(); } }); /* Open a window to the server */ ! display.addConnectListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); ! ! } --- 77,101 ---- /* Now we listen for events on the UI */ ! sp.addRunListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ! if (sh.isRunning()) { sh.kill(); } else { World.sShutdown = false; new HeartBeat().start(); ! (sh = new ServerHandler(sp)).start(); } ! sp.clearTable(); } }); /* Open a window to the server */ ! sp.addConnectListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); ! return sp; ! } *************** *** 187,196 **** private static ServerHandler sh = null; ! protected static ServerPanel display; ! protected static Hashtable handoff = new Hashtable(); protected static Vector threads = new Vector(); - protected static Vector sockets = new Vector(); - - private static String sConnectionString; } --- 112,117 ---- private static ServerHandler sh = null; ! private static ServerPanel sp; protected static Vector threads = new Vector(); } Index: ServerPanel.java =================================================================== RCS file: /cvsroot/icemud/IceMUD/src/mud/server/gui/ServerPanel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ServerPanel.java 14 Oct 2003 14:23:12 -0000 1.1 --- ServerPanel.java 4 Dec 2003 16:32:41 -0000 1.2 *************** *** 40,102 **** public ServerPanel() { ! serverPane = new JPanel(); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); ! c.fill = GridBagConstraints.HORIZONTAL; ! c.weightx = 1.0; ! serverPane.setLayout(gridbag); ! ! /* Port to listen to */ ! includeLabel("Port:"); port = new TextField("23", 4); serverPane.add(port); /* Start/Stop button */ ! includeButton(); ! ! conButton = new Button("Connect"); ! conButton.setEnabled(false); ! conButton.setBackground(Color.lightGray); ! conButton.setForeground(Color.black); ! conButton.setFont(new Font("ARIAL", Font.BOLD, 14)); ! serverPane.add(conButton); ! /* Results Table */ ! resultPane = new JPanel(); ! addTable(); ! ! /* Put it all together */ ! gridbag = new GridBagLayout(); ! c = new GridBagConstraints(); - c.fill = GridBagConstraints.HORIZONTAL; - - setLayout(gridbag); - c.weighty = 0.0; c.gridy = 0; ! ! gridbag.setConstraints(serverPane, c); ! add(serverPane); ! c.fill = GridBagConstraints.BOTH; c.weighty = 1.0; c.weightx = 1.0; c.gridy = 1; ! gridbag.setConstraints(resultPane, c); ! add(resultPane); ! ! setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); ! } ! public void addTable(){ ! ! myModel = new DefaultTableModel(); ! String rows[][] = {{" ", " ", "", "", "", "", "", ""}}; String columns[] = {"#", "Status", --- 40,95 ---- public ServerPanel() { ! JFrame serverJF = new JFrame("Server Status"); ! JPanel serverPane = new JPanel(); ! serverJF.setContentPane(serverPane); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); ! c.fill = GridBagConstraints.HORIZONTAL; // arrange data ! c.weightx = 1.0; // left to right ! /* Port to listen to */ ! addLabel(serverPane, "Port:"); port = new TextField("23", 4); serverPane.add(port); /* Start/Stop button */ ! dynButton = addButton(serverPane, startLabel, "test_start"); ! /* Connect button */ ! conButton = addButton(serverPane, "Connect", "test_connect"); ! ! serverPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); ! serverPane.setLayout(gridbag); ! gridbag.setConstraints(serverPane, c); ! serverJF.pack(); ! serverJF.show(); ! ! /* ************************************************************/ /* Results Table */ ! JFrame resultJF = new JFrame("Results"); ! JPanel resultPane = new JPanel(); ! resultJF.setContentPane(resultPane); ! addTable(resultPane); c.gridy = 0; ! c.fill = GridBagConstraints.BOTH; c.weighty = 1.0; c.weightx = 1.0; c.gridy = 1; ! ! resultPane.setLayout(gridbag); gridbag.setConstraints(resultPane, c); ! resultJF.pack(); ! resultJF.show(); ! } ! public void addTable(Container cp){ ! myModel = new DefaultTableModel(); ! //String rows[][] = {{"", "", "", "", "", "", "", ""}}; ! String rows[][] = {}; String columns[] = {"#", "Status", *************** *** 142,152 **** c.weighty = 1.0; ! resultPane.setLayout(gridbag); gridbag.setConstraints(scrollPane, c); ! resultPane.add(scrollPane); } /* Return the # of rows we have so far */ ! public int getRowCount(){ return (myModel.getRowCount() - 1); } /* Change the value at a specified location in the table */ --- 135,147 ---- c.weighty = 1.0; ! cp.setLayout(gridbag); gridbag.setConstraints(scrollPane, c); ! cp.add(scrollPane); } /* Return the # of rows we have so far */ ! public int getRowCount(){ ! return (myModel.getRowCount() - 1); ! } /* Change the value at a specified location in the table */ *************** *** 162,203 **** myModel.removeRow(0); } - - /* (Dis/En)able the search features of the UI */ - public String reverseRun(){ - - if ( clickButton.getLabel().equals( connectLabel ) ) { - clickButton.setLabel(disconnectLabel); - return "C"; - } else { - clickButton.setLabel(connectLabel); - return "D"; - } - } /* Add a blank row to the table */ public int addRow(){ ! String strRow = Integer.toString(myModel.getRowCount(), 10); ! String newRow[] = {strRow, " ", "", "", "", "", "", ""}; myModel.addRow(newRow); return (myModel.getRowCount() - 1); } ! /* Start Button */ ! public void includeButton() ! { ! clickButton = new Button(connectLabel); ! clickButton.setEnabled(false); ! clickButton.setActionCommand("test"); ! clickButton.setBackground(Color.lightGray); ! clickButton.setForeground(Color.black); ! clickButton.setFont(new Font("ARIAL", Font.BOLD, 14)); ! serverPane.add(clickButton); } /* Listener for the button */ public void addRunListener(ActionListener al){ ! clickButton.addActionListener(al); } --- 157,185 ---- myModel.removeRow(0); } /* Add a blank row to the table */ public int addRow(){ ! String strRow = Integer.toString(myModel.getRowCount()); ! String newRow[] = {strRow, "", "", "", "", "", "", ""}; myModel.addRow(newRow); return (myModel.getRowCount() - 1); } ! /* add Button to supplied container */ ! public Button addButton(Container cp, String text, String command) { ! Button newButton = new Button(text); ! newButton.setActionCommand(command); ! newButton.setBackground(Color.lightGray); ! newButton.setForeground(Color.black); ! newButton.setFont(new Font("ARIAL", Font.BOLD, 10)); ! cp.add(newButton); ! return newButton; } /* Listener for the button */ public void addRunListener(ActionListener al){ ! dynButton.addActionListener(al); } *************** *** 205,214 **** conButton.addActionListener(al); } /* Add a label to the serverPane */ ! public void includeLabel(String strLabel){ JLabel newLabel = new JLabel(strLabel); newLabel.setForeground(Color.black); ! serverPane.add(newLabel); } --- 187,198 ---- conButton.addActionListener(al); } + + public void addWindowListener(WindowAdapter wa){}; /* Add a label to the serverPane */ ! public void addLabel(Container cp, String strLabel){ JLabel newLabel = new JLabel(strLabel); newLabel.setForeground(Color.black); ! cp.add(newLabel); } *************** *** 216,225 **** /* Return the # of levels to process */ public static int getLevels(){ ! return stringToInt(levels.getText()); } /* Return the Port to listen on */ public static int getPort(){ ! int iport = 0; try { --- 200,209 ---- /* Return the # of levels to process */ public static int getLevels(){ ! return Integer.parseInt(levels.getText()); } /* Return the Port to listen on */ public static int getPort(){ ! int iport=2223; try { *************** *** 234,242 **** } - /* Convert an String to an Integer */ - public static int stringToInt(String value) { - return Integer.parseInt(value); - } - /* Center the UI */ public void center() --- 218,221 ---- *************** *** 247,265 **** } ! public static void setDisplayButtonEnabled(boolean value) { conButton.setEnabled(value); } ! public static void setClickButtonEnabled(boolean value) { clickButton.setEnabled(value); } - public JPanel serverPane; - public JPanel resultPane; public static TextField levels; public static TextField port; private static DefaultTableModel myModel; ! public static Button clickButton; ! public static Button conButton; // dynamic button labels: ! public static String connectLabel = " Start Server "; ! public static String disconnectLabel = " Stop Server "; } --- 226,242 ---- } ! public void setDisplayButtonEnabled(boolean value) { conButton.setEnabled(value); } ! public void setClickButtonEnabled(boolean value) { dynButton.setEnabled(value); } public static TextField levels; public static TextField port; private static DefaultTableModel myModel; ! public Button dynButton; ! public Button conButton; // dynamic button labels: ! final public String startLabel = " Start Server "; ! final public String stopLabel = " Stop Server "; } |
From: <gam...@us...> - 2003-12-01 20:19:10
|
Update of /cvsroot/icemud/cconvert In directory sc8-pr-cvs1:/tmp/cvs-serv17799 Modified Files: README Log Message: Updated with a comment about the lib directory. Index: README =================================================================== RCS file: /cvsroot/icemud/cconvert/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 14 Oct 2003 16:37:33 -0000 1.1 --- README 1 Dec 2003 20:19:07 -0000 1.2 *************** *** 25,29 **** MM MySQL JDBC Driver is required to communicate with MySQL. It can be found at http://www.mysql.com/downloads/api-jdbc.html ! (If you put this in the bin/ directory, the start.bat file finds it nicely.) It is assumed that you have created the initial database before running this conversion --- 25,29 ---- MM MySQL JDBC Driver is required to communicate with MySQL. It can be found at http://www.mysql.com/downloads/api-jdbc.html ! This file should be placed inside the lib directory which is a subdirectory of the install directory. It is assumed that you have created the initial database before running this conversion |
From: <gam...@us...> - 2003-12-01 20:16:44
|
Update of /cvsroot/icemud/cconvert In directory sc8-pr-cvs1:/tmp/cvs-serv16933 Modified Files: go.bat Log Message: Updating to point to lib directory, not extras. Index: go.bat =================================================================== RCS file: /cvsroot/icemud/cconvert/go.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** go.bat 14 Oct 2003 16:37:33 -0000 1.1 --- go.bat 1 Dec 2003 20:16:40 -0000 1.2 *************** *** 1,2 **** @ECHO OFF ! java -classpath CConvert.jar;extras\mysql_comp.jar CConvert %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file --- 1,2 ---- @ECHO OFF ! java -classpath CConvert.jar;lib\mysql_comp.jar CConvert %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file |
From: <gam...@us...> - 2003-12-01 20:13:40
|
Update of /cvsroot/icemud/cconvert/lib In directory sc8-pr-cvs1:/tmp/cvs-serv16003/lib Added Files: mysql_comp.jar Log Message: Adding the MySQL Library that can be used to run CConvert. --- NEW FILE: mysql_comp.jar --- (This appears to be a binary file; contents omitted.) |
From: <gam...@us...> - 2003-12-01 20:13:36
|
Update of /cvsroot/icemud/cconvert/lib In directory sc8-pr-cvs1:/tmp/cvs-serv15961/lib Log Message: Directory /cvsroot/icemud/cconvert/lib added to the repository |
From: <gam...@us...> - 2003-11-11 20:48:13
|
Update of /cvsroot/icemud/classes/lib In directory sc8-pr-cvs1:/tmp/cvs-serv27246/lib Modified Files: IceMUD.jar Log Message: Forgot to update the library. Index: IceMUD.jar =================================================================== RCS file: /cvsroot/icemud/classes/lib/IceMUD.jar,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsObzbGA and /tmp/cvsWWBVs3 differ |
From: <gam...@us...> - 2003-10-31 17:07:39
|
Update of /cvsroot/icemud/IceMUD/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv21645/plugins Added Files: icemud_plugins.jar Log Message: Decided to add icemud_plugins.jar since it contains standard plugins. --- NEW FILE: icemud_plugins.jar --- (This appears to be a binary file; contents omitted.) |