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!

PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

Status
Not open for further replies.
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
 
Experienced Elementalist
Joined
Jul 14, 2012
Messages
244
Reaction score
147
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.
 
Initiate Mage
Joined
Jan 10, 2014
Messages
4
Reaction score
0
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.

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
Code:
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, this);
And replace with
Code:
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, (object) this);
Have a look and tell me if it works,
 
Custom Title Activated
Loyal Member
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
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
Code:
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, this);
And replace with
Code:
base.BeginReceive(this.byte_0, 0, 1024, SocketFlags.None, this.asyncCallback_0, (object) this);
Have a look and tell me if it works,
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.
 
Elite Diviner
Joined
Feb 27, 2013
Messages
485
Reaction score
83
In your final edition, can you add the commands from imagican release. Like i mentioned before. The convert shells, and convert pixels. Thanks.
 
Newbie Spellweaver
Joined
Oct 19, 2010
Messages
58
Reaction score
16
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

for Phoenix Emu 3.11.0 convert pixels/shells and cmd

Game.cs

Search: "enable_cmd_redeemcredits"

"Find"
Code:
LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());

Add under that:
Code:
LicenseTools.Boolean_14 = Phoenix.smethod_3(dataRow["enable_cmd_redeempixels"].ToString());
LicenseTools.Boolean_15 = Phoenix.smethod_3(dataRow["enable_cmd_redeemshells"].ToString());

ChatCommandHandler.cs

Search: "cmd_redeemcreds_desc"

"Find"

Code:
                                    string text8 = "";
                                    if (LicenseTools.Boolean_0)
                                    {
                                    text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
                                    }

Add under that:
Code:
                                    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";
                                    }

Search: "case 83:"

Code:
                                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;
Add under that:

Code:
                                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;
                                    }

Search: "if (class6.Boolean_3)"

Code:
                            if (class6.Boolean_3)
                            {
                                Session.GetHabbo().method_28("Befehl während des Tauschens nicht möglich");
                                return true;
                            }


Add under that:
Code:
                            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;


RoleManager.cs

Search: "cmd_emptypets_name"

"Find"
Code:
			this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_emptypets_name"), 83);

Add under that:
Code:
			this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeempixel_name"), 84);
			this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeemshell_name"), 85);

LicenseTools.cs

Search:

Code:
        private static bool bool_14 = false;

Add under that:

Code:
        private static bool bool_21 = false;
        private static bool bool_22 = false;

Search: "Boolean_0"

Code:
        public static bool Boolean_0
        {
            get
            {
                return LicenseTools.bool_14;
            }
            set
            {
                LicenseTools.bool_14 = value;
            }
        }

Add under that:

Code:
        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;
            }
        }

SQL:

Code:
/*
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');



Thanks,
Meik2010
 
Newbie Spellweaver
Joined
Feb 7, 2013
Messages
64
Reaction score
16
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

Meik2010 its good to see some one contributing,
 
Newbie Spellweaver
Joined
Jun 26, 2011
Messages
70
Reaction score
3
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

odbz0rV - PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More - RaGEZONE Forums


fix erro ? please? help me ? fix... in my source?

1/8/2014 5:58:52 PM: [TCPListener.OnRequest]: Could not handle new connection request: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndAccept(Byte[]& buffer, Int32& bytesTransferred, IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
at Phoenix.Net.SocketListener.ConnectionRequest(IAsyncResult iAr) in YOURPC\3.11.0\Phoenix\Net\SocketListener.cs:line 72



1/12/2014 2:27:11 PM: [TCPListener.OnRequest]: Could not handle new connection request: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndAccept(Byte[]& buffer, Int32& bytesTransferred, IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
at Phoenix.Net.Class114.method_4(IAsyncResult iasyncResult_0) in C:\Users\Administrator\Desktop\EMU\3.11.0\Phoenix\Net\SocketsListener.cs:line 83



Your add commands in permissions_ranks .... disable or no ?

Ranking 1,2,3,4,5,6,7

? translate commands in table texts ? please
 

Attachments

You must be registered for see attachments list
Elite Diviner
Joined
Feb 27, 2013
Messages
485
Reaction score
83
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

We need someone to make all the sqls and stuff for the commands. That way, we can enable what we want, and give our users what we want. To me, that'd be the perfect thing.




I did everything you said to the letter, and it didn't work :/
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Oct 19, 2010
Messages
58
Reaction score
16
here is translate convert credits/pixels/shells

Deutsch

Code:
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');


English

Code:
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');
 
Newbie Spellweaver
Joined
Jun 26, 2011
Messages
70
Reaction score
3
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.
 
Newbie Spellweaver
Joined
Dec 4, 2013
Messages
13
Reaction score
0
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
 
Experienced Elementalist
Joined
Sep 19, 2010
Messages
210
Reaction score
74
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.
 
Newbie Spellweaver
Joined
Dec 4, 2013
Messages
13
Reaction score
0
Use the MUS "giveitem" for giving items, so hard? lol^^
Regards, Imagician.

Thanks,
but how i can use a MUS Command in PHP?
Sorry, i dosen't do it bevore.

Thanks

EDIT: Thank You, i find it.
 
Last edited:
Newbie Spellweaver
Joined
Jun 26, 2011
Messages
70
Reaction score
3
When we send 1 item from the store to match the phoenix was not even there.

If it starts with 1000 it goes up to 2,000. if you enter 1050, for example, it doubles the 1050, giving error.
 
Newbie Spellweaver
Joined
Jul 29, 2013
Messages
23
Reaction score
3
Thanks for the release! I do plan on using this in the future. :]
 
Status
Not open for further replies.
Back
Top