Not just that, comparing sources, saying this is bad, not that is better...
seriously this isn't the topic for those kind of discussions. I guess it was mainly ToyFork.
And i'm an idiot because i proved that your source fails? :o
For some reason when I attempt to create a guild, I get the message "The name is already in use... Please try other ones..." Then I look into the MySQL database and under guilds to find that the created guilds I wanted are in there. But It doesn't create it properly in the game... Please tell me it's not only me and if it is, any ideas how I can fix this?
jap0knees, make sure you put a password when making the account.
ToyFork, neither will mine by next update.
ngabriel I will check that for you when I do the next update.
If this helps on the guild fix for me, here it is.Code:SEVERE: CREATE GUILD THROW java.lang.NullPointerException at com.mysql.jdbc.ResultSetImpl.buildIndexMapping(ResultSetImpl.java:709 ) at com.mysql.jdbc.ResultSetImpl.findColumn(ResultSetImpl.java:1069) at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2734) at net.sf.odinms.net.world.guild.MapleGuild.createGuild(MapleGuild.java: 450) at net.sf.odinms.net.world.WorldRegistryImpl.createGuild(WorldRegistryIm pl.java:302) at net.sf.odinms.net.world.WorldChannelInterfaceImpl.createGuild(WorldCh annelInterfaceImpl.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou rce) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour ce) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
I'm no coder but can that rs instance be used after it's closed? If so, nevermind. If not, good luck getting that Int from it.Code:rs.close(); ps.close(); return rs.getInt("guildid");
---------- Post added at 05:09 AM ---------- Previous post was at 04:24 AM ----------
Like I said before, I'm no coder but this works:
MapleGuild.java
Replace
WithCode:rs.first(); rs.close(); ps.close(); return rs.getInt("guildid");
Code:if (rs.first()) { int temp = rs.getInt("guildid"); rs.close(); ps.close(); return temp; } else { return 0; }
Yea that was it that's exactly what I did to fix it.