Newbie Spellweaver
- Joined
- Feb 7, 2013
- Messages
- 64
- Reaction score
- 16
I haven't encountered that error yet. Plus source is there check the socket beginrecieve out or post more dets about the error
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!I haven't encountered that error yet. Plus source is there check the socket beginrecieve out or post more dets about the error
Well, imagician fixed it, but I don't know where he fixed it, so I can't tell you.
To reproduce this socket error: stop emulator, start client, when client is "loaded" so when you see the hotelview, start the emu.
When the emu is done, close the client, that should produce the error.
The error also comes randomly while playing though.. this is just something to reproduce it.
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, this);
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, (object) this);
That's not going to change anything. Even if you use null except of this/(object) this (which are the same since this is also an object itself since every class extends the Object class), it will work correctly.I have tried your method of reproduction but i fail to get the error,
Maybe you could try this once(This is just a guess)
Anyways open the source go to Phoenix>Net>SocketConnections.cs (Line 128)
Find
And replace withCode:base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, this);
Have a look and tell me if it works,Code:base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, (object) this);
LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());
LicenseTools.Boolean_14 = Phoenix.smethod_3(dataRow["enable_cmd_redeempixels"].ToString());
LicenseTools.Boolean_15 = Phoenix.smethod_3(dataRow["enable_cmd_redeemshells"].ToString());
string text8 = "";
if (LicenseTools.Boolean_0)
{
text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
}
string text11 = "";
if (LicenseTools.Boolean_14)
{
text11 = text11 + PhoenixEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r";
}
string text12 = "";
if (LicenseTools.Boolean_15)
{
text12 = text12 + PhoenixEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r";
}
case 83:
Session.GetHabbo().method_23().method_2();
Session.SendNotif(PhoenixEnvironment.smethod_1("cmd_emptypets_success"));
Phoenix.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
case 84:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht verfügbar!");
return true;
}
else
{
if (LicenseTools.Boolean_14)
Session.GetHabbo().method_23().method_20(Session);
else
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
return true;
}
case 85:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht verfügbar!");
return true;
}
else
{
if (LicenseTools.Boolean_15)
Session.GetHabbo().method_23().method_21(Session);
else
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
return true;
}
if (class6.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht möglich");
return true;
}
if (LicenseTools.Boolean_14)
{
Session.GetHabbo().method_23().method_20(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
if (LicenseTools.Boolean_15)
{
Session.GetHabbo().method_23().method_21(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_emptypets_name"), 83);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeempixel_name"), 84);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeemshell_name"), 85);
private static bool bool_14 = false;
private static bool bool_21 = false;
private static bool bool_22 = false;
public static bool Boolean_0
{
get
{
return LicenseTools.bool_14;
}
set
{
LicenseTools.bool_14 = value;
}
}
public static bool Boolean_14
{
get
{
return LicenseTools.bool_21;
}
set
{
LicenseTools.bool_21 = value;
}
}
public static bool Boolean_15
{
get
{
return LicenseTools.bool_22;
}
set
{
LicenseTools.bool_22 = value;
}
}
/*
Navicat MySQL Data Transfer
Source Server : Datenbanken
Source Server Version : 50615
Source Host : localhost:3306
Source Database : habbohoteldb
Target Server Type : MYSQL
Target Server Version : 50615
File Encoding : 65001
Date: 2014-01-11 17:33:51
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `server_settings`
-- ----------------------------
DROP TABLE IF EXISTS `server_settings`;
CREATE TABLE `server_settings` (
`motd` text NOT NULL,
`timer` int(11) NOT NULL DEFAULT '15',
`pixels` int(11) NOT NULL DEFAULT '15',
`pixels_max` int(15) NOT NULL DEFAULT '0',
`credits` int(11) NOT NULL DEFAULT '75',
`credits_max` int(15) NOT NULL DEFAULT '0',
`points` int(11) NOT NULL DEFAULT '0',
`points_max` int(15) NOT NULL DEFAULT '0',
`enable_cmd_redeemcredits` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmd_redeempixels` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmd_redeemshells` enum('0','1') NOT NULL DEFAULT '1',
`enable_chatlogs` enum('0','1') NOT NULL DEFAULT '1',
`enable_roomlogs` enum('0','1') NOT NULL DEFAULT '1',
`vipclothesforhcusers` enum('1','0') NOT NULL DEFAULT '1',
`MaxRoomsPerUser` int(4) NOT NULL DEFAULT '50',
`enable_externalchatlinks` enum('disabled','blacklist','whitelist') NOT NULL DEFAULT 'disabled',
`enable_securesessions` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmdlogs` enum('0','1') NOT NULL DEFAULT '1',
`allow_friendfurnidrops` enum('0','1') NOT NULL DEFAULT '1',
`enable_antiddos` enum('0','1') NOT NULL DEFAULT '1',
`MaxPetsPerRoom` int(2) NOT NULL DEFAULT '15',
`MarketPlaceTax` int(2) NOT NULL DEFAULT '1',
`MaxMarketPlacePrice` int(9) NOT NULL DEFAULT '10000',
`unload_crashedrooms` enum('0','1') NOT NULL DEFAULT '1',
`ShowUsersAndRoomsInAbout` enum('0','1') NOT NULL DEFAULT '1',
`idlesleep` int(6) NOT NULL DEFAULT '300',
`idlekick` int(6) NOT NULL DEFAULT '1200',
`ip_lastforbans` enum('0','1') NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of server_settings
-- ----------------------------
INSERT INTO `server_settings` VALUES ('Hotel-Alert Addet', '30', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '100', 'whitelist', '1', '1', '1', '1', '20', '1', '500000', '1', '1', '300', '1200', '0');
fix erro ? please? help me ? fix... in my source?
[****]
INSERT INTO `texts` VALUES ('cmd_redeemcreds_name', 'convertcredits');
INSERT INTO `texts` VALUES ('cmd_redeemcreds_desc', ':convertcredits -> Verwandle alle Taler in deinem Inventar in deine Geldbörse');
INSERT INTO `texts` VALUES ('cmd_redeempixel_name', 'convertpixels');
INSERT INTO `texts` VALUES ('cmd_redeempixel_desc', ':convertpixels -> Verwandle alle Pixels in deinem Inventar in deine Geldbörse');
INSERT INTO `texts` VALUES ('cmd_redeemshell_name', 'convertshells');
INSERT INTO `texts` VALUES ('cmd_redeemshell_desc', ':convertshells -> Verwandle alle Muscheln in deinem Inventar in deine Geldbörse');
INSERT INTO `texts` VALUES ('cmd_redeemcreds_name', 'convertcredits');
INSERT INTO `texts` VALUES ('cmd_redeemcreds_desc', ':convertcredits - Turns all exchange items in your hand back into Taler');
INSERT INTO `texts` VALUES ('cmd_redeempixel_name', 'convertpixels');
INSERT INTO `texts` VALUES ('cmd_redeempixel_desc', ':convertpixels - Turns all exchange items in your hand back into Pixels');
INSERT INTO `texts` VALUES ('cmd_redeemshell_name', 'convertshells');
INSERT INTO `texts` VALUES ('cmd_redeemshell_desc', ':convertshells - Turns all exchange items in your hand back into Shells');
How i can fix this Ducking error
Code:12.01.2014 16:36:10: Error: MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '1000025514' for key 'PRIMARY' bei MySql.Data.MySqlClient.MySqlStream.ReadPacket() bei MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) bei MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) bei MySql.Data.MySqlClient.MySqlDataReader.NextResult() bei MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) bei MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar() bei Phoenix.Storage.DatabaseClient.ExecuteQuery(String sQuery) bei Phoenix.HabboHotel.Users.Inventory.InventoryComponent.method_11(UInt32 uint_1, UInt32 uint_2, String string_0, Boolean bool_0) bei Phoenix.HabboHotel.Catalogs.Catalog.method_9(GameClient Session, Item Item, Int32 int_0, String string_0, Boolean bool_0, UInt32 uint_1) bei Phoenix.HabboHotel.Catalogs.Catalog.method_6(GameClient Session, Int32 int_0, UInt32 uint_1, String string_0, Boolean bool_0, String string_1, String string_2, Boolean bool_1) bei Phoenix.Communication.Messages.Catalog.PurchaseFromCatalogEvent.Handle(GameClient Session, ClientMessage Event) bei Phoenix.HabboHotel.GameClients.GameClient.method_13(Byte[]& byte_0)
The problem is in the colum items the EMU try to create a ID there is used by a item where a user buy in the webshop.
Fixed it is when a user buy a furni in the catalogue the next auto_incromed value from the table is use for the next ID:
how i can fix it?
ALTER TABLE items AUTO_INCREMENT= Last ID + 1 example:
( LAST ID = 999 ) ALTER TABLE items AUTO_INCREMENT=1000
Before making any change which, make a backup before.
Hi,
thank you but i try it before and its not work.
The EMU get the auto_incromed value when the emu starts. After this he not check the correct value again.
Now my Shop System on the Website add the auto_incromed value 1000 and a other people buy a furni in the Catalogue now the EMU crash.
The problem is the EMU don't know he mus set the id now to 1001, he don't use the auto_incromed value... I think he count the up by him self.
I use the Live EMU but i think here is the same problem and i search for a fix.
I hope you understand me now.
THanks
Use the MUS "giveitem" for giving items, so hard? lol^^
Regards, Imagician.