Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[LATEST] Icarus Emulator [Java, Netty, MySQL, Plugins, Camera]

Status
Not open for further replies.
Joined
Aug 24, 2012
Messages
604
Reaction score
304
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

I've done my research.

Code:
public static void releaseObject(ResultSet row) {

try {
row.close();
} catch (Exception e) {

}

try {
row.getStatement().close();
} catch (Exception e) {

}

try {
row.getStatement().getConnection().close();
} catch (Exception e) {

}
}
Bro, don't let Wes get to you! You're doing fine :love:
Any updates? :):
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

Good, now you abuse the fact you cannot re-use the prepared statement which is exactly what it was ment for.

And what if an exception occurs, your connection would still stay open ;)

Cos if I do a select:


Code:
PreparedStatement stmt = whatever().prepare("SELECT * FROM users WHERE id = ?");
stmt.setInt(1, userIdOne);
ResultSet set = stmt.executeQuery();

if(set.next())
{
do something(set);
releaseObject(set);
}

set.setInt(1, userIdTwo);
stmt.executeQuery();

That won't work as you've already closed the connection in releaseObject.

Well you see, the object is only closed at the end when it's not needed anymore. I can't grasp the fact that you'd think it would be any other way.

IKAIxBO - [LATEST] Icarus Emulator [Java, Netty, MySQL, Plugins, Camera] - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

Bro, don't let Wes get to you! You're doing fine :love:
Any updates? :):

No updates at the moment, I'm out at university for the whole day, but when I'm home I'll get cracking on some features, for example there's no ability to edit room details/delete room/create room... lol
 
Joined
Apr 27, 2008
Messages
446
Reaction score
168
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

lol @ three try-catch blocks in releaseObject
lol @ The General who pretends that he is capable of anything
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

lol @ three try-catch blocks in releaseObject
lol @ The General who pretends that he is capable of anything

It's a silent function. If it's all under one try-catch and an error throws - because there's a chance an error will throw, the rest of it won't be closed. I've done everything for a reason.

Lol @ your stupidity.
 
Newbie Spellweaver
Joined
May 12, 2013
Messages
35
Reaction score
4
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

This is amazing! goodluck!
 
Joined
Apr 27, 2008
Messages
446
Reaction score
168
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

It's a silent function. If it's all under one try-catch and an error throws - because there's a chance an error will throw, the rest of it won't be closed. I've done everything for a reason.

Lol @ your stupidity.



Java GC is bad so we should make our own! Even worse!
 
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

Did you name your Emulator after this:

If you did, good choice 'coz that is an epic game. If not, oh well, good name anyway :p
 

Jax

C# Programmer
Joined
Dec 11, 2009
Messages
881
Reaction score
431
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

Did you name your Emulator after this:

If you did, good choice 'coz that is an epic game. If not, oh well, good name anyway :p

I can probably speak for Alex here (as I've known about Icarus for sometime). The name is inspired by Greek mythology.
 
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

I can probably speak for Alex here (as I've known about Icarus for sometime). The name is inspired by Greek mythology.

Ah. Probably should have given that poop a google search but I was looking at my Steam library, and I was like woah no way, Alex's emulator is named after this game.

Disappointment level is high, but thanks for clearing it up lol
 

Jax

C# Programmer
Joined
Dec 11, 2009
Messages
881
Reaction score
431
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

What exactly do you mean? I mean, 'tabs' doesn't say much. But it looks decent; cracked the SWF yourself?

He means navigator tabs. Some emulators that implement the new navigator have hard coded tabs. Perfect example being Azure.
 
Custom Title Activated
Loyal Member
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

He means navigator tabs. Some emulators that implement the new navigator have hard coded tabs. Perfect example being Azure.

Sorry I haven't checked out Habbo in a long time so I don't exactly know anything about the newest navigator. Does it mean the 'Official Rooms' and 'Staff Picks' things or the 'Public' 'All Rooms' things (because as far as I remember that was in the SWF itself).
 

Jax

C# Programmer
Joined
Dec 11, 2009
Messages
881
Reaction score
431
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

Sorry I haven't checked out Habbo in a long time so I don't exactly know anything about the newest navigator. Does it mean the 'Official Rooms' and 'Staff Picks' things or the 'Public' 'All Rooms' things (because as far as I remember that was in the SWF itself).

Yes. They are parent tabs, every tab within the parent tab is a child tab.
 
Junior Spellweaver
Joined
May 21, 2011
Messages
154
Reaction score
47
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

I totally agree with Git. Well Quackster have fun with this emulator! [emoji14]

 
Status
Not open for further replies.
Back
Top