Re: [Release] Close batches without rollback
Code:
public class MapleShutdownHook extends Thread {
public void run() {
for (ChannelServer cservs : ChannelServer.getAllInstances()) {
for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
mch.saveToDB(true);
}
}
}
}
I had to use that for it to work. 0.o
Re: [Release] Close batches without rollback
Quote:
Originally Posted by
GMLooney
Code:
public class MapleShutdownHook extends Thread {
public void run() {
for (ChannelServer cservs : ChannelServer.getAllInstances()) {
for (MapleCharacter mch : cservs.getPlayerStorage().getAllCharacters()) {
mch.saveToDB(true);
}
}
}
}
I had to use that for it to work. 0.o
eh..? You just changed the varnames.. o_o
Re: [Release] Close batches without rollback
Quote:
Originally Posted by
PurpleMadness
eh..? You just changed the varnames.. o_o
Yea I know for some reason his didn't work. Something with his was wrong I'm guessing.
Re: [Release] Close batches without rollback
Quote:
Originally Posted by
GMLooney
Yea I know for some reason his didn't work. Something with his was wrong I'm guessing.
Nah, his should work.
Re: [Release] Close batches without rollback
Just using Control+C On the .bats would save them properly aswell, I think.
Re: [Release] Close batches without rollback
can you show where to put that script?
Re: [Release] Close batches without rollback
Quote:
Originally Posted by
lmaoXitsXqtard
can you show where to put that script?
You make a new class file and then make a hook for it in worldserver/channelserver/loginserver. If i'm incorrect then correct me (:
Re: [Release] Close batches without rollback
Quote:
Originally Posted by
MrMysterious
You make a new class file and then make a hook for it in worldserver/channelserver/loginserver. If i'm incorrect then correct me (:
You don't need a new class file.
Re: [Release] Close batches without rollback
Controversal guesing games now :D
Re: [Release] Close batches without rollback
You can add the new class inside of ChannelServer.
Re: [Release] Close batches without rollback
Re: [Release] Close batches without rollback
LOL. make it noob friendly?
Re: [Release] Close batches without rollback
This would rape your SQL if you have a high traffic server, none the less keep em coming
Re: [Release] Close batches without rollback
where do i add this? MapleCharacter?
Re: [Release] Close batches without rollback
lol...maplecharacter.....