Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Mod tools disappear (Plus emulator)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="c4353b8e" data-source="post: 435094" data-attributes="member: 81116"><p><strong>EDIT:</strong> I didn't see you posted your exception file, I guess you can ignore all the stuff below. System.NullReferenceException: Object reference not set to an instance of an object means something hasn't been defined a value, usually meaning its null, most objects are usually null in C# datatypes. Could you post the contents of line 25 in the file ModeratorInitComposer? I'm guessing you're trying to access a property to write data to the packet and its somehow not been assigned a value, so it's throwing out null. I'm not going to attempt to fix it using the default Plus because I don't know if you've changed anything.</p><p></p><p></p><p>A little more information would go a long way. Using the default emulator and CMS? Are you sending the composer straight away on authentication? I think it's called something like <strong>ModeratorInitComposer</strong></p><p><strong></strong></p><p>Check your logs, if you aren't already using the default emulator if it's still acting up use the default Habbo.swf, even if you think you are already, download them anyway. I don't think you would be able to distinguish either, especially a Habbo.swf. I'm guessing you're using Plus Emulator so the code should be something like this:</p><p>[CODE]</p><p>if (userData.user.GetPermissions().HasRight("mod_tickets"))</p><p>{</p><p> if (!PlusEnvironment.GetGame().GetPlusManager().TryGetStaffProfile</p><p> </p><p> (this._habbo.Id, out var Profile))</p><p> {</p><p> PlusEnvironment.GetGame().GetPlusManager().TryAddStaffProfile(this._habbo.Id);</p><p> }</p><p></p><p> SendPacket(new ModeratorInitComposer(</p><p> PlusEnvironment.GetGame().GetModerationManager().UserMessagePresets,</p><p> PlusEnvironment.GetGame().GetModerationManager().RoomMessagePresets,</p><p> PlusEnvironment.GetGame().GetModerationManager().UserActionPresets,</p><p> PlusEnvironment.GetGame().GetModerationTool().GetTickets));</p><p>}</p><p>[/CODE]</p><p></p><p>It should be inside file GameClient in a method called TryAuthenticate, but I'm not sure if you've changed anything. Check for all the references to this method also, and make sure its being sent on authentication.</p></blockquote><p></p>
[QUOTE="c4353b8e, post: 435094, member: 81116"] [B]EDIT:[/B] I didn't see you posted your exception file, I guess you can ignore all the stuff below. System.NullReferenceException: Object reference not set to an instance of an object means something hasn't been defined a value, usually meaning its null, most objects are usually null in C# datatypes. Could you post the contents of line 25 in the file ModeratorInitComposer? I'm guessing you're trying to access a property to write data to the packet and its somehow not been assigned a value, so it's throwing out null. I'm not going to attempt to fix it using the default Plus because I don't know if you've changed anything. A little more information would go a long way. Using the default emulator and CMS? Are you sending the composer straight away on authentication? I think it's called something like [B]ModeratorInitComposer [/B] Check your logs, if you aren't already using the default emulator if it's still acting up use the default Habbo.swf, even if you think you are already, download them anyway. I don't think you would be able to distinguish either, especially a Habbo.swf. I'm guessing you're using Plus Emulator so the code should be something like this: [CODE] if (userData.user.GetPermissions().HasRight("mod_tickets")) { if (!PlusEnvironment.GetGame().GetPlusManager().TryGetStaffProfile (this._habbo.Id, out var Profile)) { PlusEnvironment.GetGame().GetPlusManager().TryAddStaffProfile(this._habbo.Id); } SendPacket(new ModeratorInitComposer( PlusEnvironment.GetGame().GetModerationManager().UserMessagePresets, PlusEnvironment.GetGame().GetModerationManager().RoomMessagePresets, PlusEnvironment.GetGame().GetModerationManager().UserActionPresets, PlusEnvironment.GetGame().GetModerationTool().GetTickets)); } [/CODE] It should be inside file GameClient in a method called TryAuthenticate, but I'm not sure if you've changed anything. Check for all the references to this method also, and make sure its being sent on authentication. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Mod tools disappear (Plus emulator)
Top