Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonDhose committed Jul 13, 2019
1 parent 72c7b1b commit 18ef354
Show file tree
Hide file tree
Showing 89 changed files with 4,096 additions and 703 deletions.
Binary file removed PRODUCTION-201906021448-092960358.swf
Binary file not shown.
Binary file added PRODUCTION-201907122337-140096664.swf
Binary file not shown.
433 changes: 0 additions & 433 deletions analyse.txt

Large diffs are not rendered by default.

2,722 changes: 2,722 additions & 0 deletions data.txt

Large diffs are not rendered by default.

506 changes: 506 additions & 0 deletions incoming.txt

Large diffs are not rendered by default.

499 changes: 499 additions & 0 deletions ougoing.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions renameFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function dirToArray($dir)

$nameClass = explode('.', $file)[0];

//if($nameClass != "RoomEngine")
//continue;
if($nameClass != "ISessionDataManager")
continue;

$functionListOld = getFunctionList($data);
if(count($functionListOld) == 0)
Expand All @@ -56,7 +56,7 @@ function dirToArray($dir)

if ($diffCount >= 8) {
//$tmp .= $nameClass.": " .count($functionListNew)." - ". count($functionListOld)."\n";
continue;
//continue;
}

for($i = 0; $i < count($functionListOld); $i++) {
Expand Down
11 changes: 8 additions & 3 deletions renameVar.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function dirToArray($dir)
continue;

$nameClass = explode('.', $file)[0];

if($nameClass != "AvatarDirectionAngle")
continue;

$varsListOld = getVarsList($data);
if(count($varsListOld) == 0)
Expand All @@ -49,19 +52,21 @@ function dirToArray($dir)
if(count($varsListNew) == 0)
continue;

//print_r($varsListNew);

$diffCount = abs(count($varsListNew) - count($varsListOld));

if ($diffCount >= 3) {
//$tmp .= $nameClass.": " .count($functionListNew)." - ". count($functionListOld)."\n";
$tmp .= $nameClass.": " .count($functionListNew)." - ". count($functionListOld)."\n";
continue;
}

for($i = 0; $i < count($varsListOld); $i++) {
$old = $varsListOld[$i];
$newName = getNewName($varsListNew, $varsListOld, $old['param']);

if(strpos($old['name'], "_Str_") === FALSE || $newName == "")
continue;
//if(strpos($old['name'], "_Str_") === FALSE || $newName == "")
//continue;

$keyOld = $old['name'];
$keyNew = $newName;
Expand Down
96 changes: 96 additions & 0 deletions searthAs3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?php
header('Content-Type: text/html; charset=utf-8');
set_time_limit(0);

$paths = array();
function dirToArray($dir)
{
global $paths;

$cdir = scandir($dir);
foreach ($cdir as $value) {
if (!in_array($value, array(".", ".."))) {
if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) {
dirToArray($dir . DIRECTORY_SEPARATOR . $value);
} else {
$ext = explode('.', $value)[1];
if ($ext !== "as")
continue;

$paths[$value] = str_replace("\r", "", file_get_contents($dir . DIRECTORY_SEPARATOR . $value));
}
}
}
}
dirToArray("src");

file_put_contents("data.txt", print_r($paths["HabboMessages.as"], true));

$HabboMessagesData = $paths["HabboMessages.as"];

$INCOMING_PACKETS = array();
foreach (array_slice(explode('INCOMING_PACKETS[', $HabboMessagesData), 1) as $lign) {
$lign = explode("\n", $lign)[0];
if (strpos($lign, "]") === false) {
continue;
}

$id = explode("]", $lign)[0];
$name = explode(";", explode("= ", $lign)[1])[0];

$INCOMING_PACKETS[$id] = $name;
}
//file_put_contents("incoming.txt", print_r($INCOMING_PACKETS, true));

$tmp = "";
foreach($INCOMING_PACKETS as $id => $name) {
$data = $paths[$name.".as"];

if($data == "")
continue;

if(strpos($data, "public function ".$name."(") === FALSE)
continue;

$super = explode("{", explode("}", explode("public function ".$name."(", $data)[1])[0])[1];
$super = str_replace("\n", "", $super);

$superCall = explode(")", explode(", ", $super)[1])[0];

if($superCall == "_arg_2")
continue;

$dataTwo = $paths[$superCall.".as"];

if($dataTwo == "")
continue;

if(strpos($dataTwo, "public function parse(") === FALSE)
continue;

$parse = explode("{", explode("}", explode("public function parse(", $dataTwo)[1])[0])[1];
//$parse = str_replace("\n", "", $parse);

$tmp .= $name." > ".$parse."\n";
//break;
}

file_put_contents("data.txt", $tmp);





/*$OUTGOING_PACKETS = array();
foreach (array_slice(explode('OUTGOING_PACKETS[', $HabboMessagesData), 1) as $lign) {
$lign = explode("\n", $lign)[0];
if (strpos($lign, "]") === false) {
continue;
}
$id = explode("]", $lign)[0];
$name = explode(";", explode("= ", $lign)[1])[0];
$OUTGOING_PACKETS[$id] = $name;
}
file_put_contents("ougoing.txt", print_r($OUTGOING_PACKETS, true));*/
6 changes: 3 additions & 3 deletions src/com/sulake/habbo/campaign/HabboCampaigns.as
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
}
else
{
_local_4 = this._sessionDataManager._Str_14102(_arg_2);
_local_4 = this._sessionDataManager.getWallItemDataByName(_arg_2);
if (_local_4)
{
_local_3 = this._roomEngine.getWallItemIcon(_local_4.id, k);
Expand Down Expand Up @@ -197,9 +197,9 @@
return this._calendarData;
}

public function get _Str_2799():Boolean
public function get isGodMode():Boolean
{
return this._sessionDataManager._Str_2799;
return this._sessionDataManager.isGodMode;
}

public function get localizationManager():IHabboLocalizationManager
Expand Down
2 changes: 1 addition & 1 deletion src/com/sulake/habbo/campaign/calendar/CalendarView.as
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
_local_2++;
}
CalendarSpinnerUtil._Str_25753(this, this._selectedIndex);
if (this._controller._Str_2799)
if (this._controller.isGodMode)
{
_local_3 = (this.window.findChildByName("btn_force_open") as IButtonWindow);
_local_3.visible = true;
Expand Down
10 changes: 5 additions & 5 deletions src/com/sulake/habbo/catalog/HabboCatalog.as
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@
this._Str_19190 = this._Str_10258();
this._videoOfferManager = new VideoOfferManager(this);
this._Str_13406 = new OfferController(this);
this._Str_2509 = this._sessionDataManager._Str_4536(this);
this._Str_2509 = this._sessionDataManager.getFurniData(this);
this._Str_19956 = null;
}

Expand Down Expand Up @@ -1092,7 +1092,7 @@
var _local_3:IFurnitureData;
if (_arg_2 == ProductTypeEnum.FLOOR)
{
_local_3 = this._sessionDataManager._Str_3411(k);
_local_3 = this._sessionDataManager.getFloorItemData(k);
}
if (_arg_2 == ProductTypeEnum.WALL)
{
Expand All @@ -1114,7 +1114,7 @@
}
if (_arg_2 == ProductTypeEnum.WALL)
{
_local_4 = this._sessionDataManager._Str_14102(k);
_local_4 = this._sessionDataManager.getWallItemDataByName(k);
}
return _local_4;
}
Expand Down Expand Up @@ -1634,9 +1634,9 @@
this._Str_3361.filter(_local_4, _local_2);
}

public function _Str_15145():void
public function furniDataReady():void
{
this._Str_2509 = this._sessionDataManager._Str_4536(this);
this._Str_2509 = this._sessionDataManager.getFurniData(this);
this._Str_19956 = null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
return null;
}
var _local_4:BitmapData = _arg_3._Str_18459(k);
var _local_4:BitmapData = _arg_3.requestBadgeImage(k);
if (_local_4 == null)
{
_arg_3.events.addEventListener(BadgeImageReadyEvent.BIRE_BADGE_IMAGE_READY, _arg_2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
this._catalog.connection.addMessageEvent(new TargetedOfferEvent(this._Str_25111));
this._catalog.connection.addMessageEvent(new _Str_9208(this._Str_22594));
this._catalog.events.addEventListener(PurseUpdateEvent.CATALOG_PURSE_UPDATE, this._Str_14817);
this._catalog.sessionDataManager._Str_16650(this);
this._catalog.sessionDataManager.addProductsReadyEventListener(this);
}

public function get catalog():HabboCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
}
if (_local_7.furnitureData.category == FurniCategory._Str_12534)
{
_local_11 = this._habboCatalog.sessionDataManager._Str_3411(_local_7.furnitureData.id);
_local_11 = this._habboCatalog.sessionDataManager.getFloorItemData(_local_7.furnitureData.id);
_local_12 = new Vector.<int>(0);
_local_13 = _local_11.customParams.split(",");
for each (_local_14 in _local_13)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return this._Str_18253;
}

public function get _Str_11656():Boolean
public function get isRealNoob():Boolean
{
return this._Str_8842;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
return this._Str_7278;
}

public function get _Str_3577():int
public function get petRespectLeft():int
{
return this._Str_3437;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

public class _Str_9467 implements IMessageParser
{


public function flush():Boolean
{
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/com/sulake/habbo/friendlist/HabboFriendList.as
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
{
if (this._sessionDataManager)
{
return this._sessionDataManager._Str_17218(k);
return this._sessionDataManager.getGroupBadgeSmallImage(k);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/sulake/habbo/help/GuideHelpManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

private function onCreditBalance(k:IMessageEvent):void
{
if (((((this._habboHelp._Str_19829) && (this._habboHelp._Str_7478)) && (!(this._seenTourPopupDuringSession))) && (!(this._habboHelp.sessionDataManager._Str_6986))))
if (((((this._habboHelp._Str_19829) && (this._habboHelp._Str_7478)) && (!(this._seenTourPopupDuringSession))) && (!(this._habboHelp.sessionDataManager.isAnyRoomController))))
{
this._popupTimer = new Timer(this._Str_17155(), 1);
this._popupTimer.addEventListener(TimerEvent.TIMER, this._Str_22650);
Expand Down
4 changes: 2 additions & 2 deletions src/com/sulake/habbo/inventory/HabboInventory.as
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@
}
if (_arg_2 == ProductTypeEnum.FLOOR)
{
_local_3 = this._sessionDataManager._Str_3411(k);
_local_3 = this._sessionDataManager.getFloorItemData(k);
}
if (_arg_2 == ProductTypeEnum.WALL)
{
Expand All @@ -913,7 +913,7 @@
}
if (_arg_2 == ProductTypeEnum.WALL)
{
_local_4 = this._sessionDataManager._Str_14102(k);
_local_4 = this._sessionDataManager.getWallItemDataByName(k);
}
return _local_4;
}
Expand Down
10 changes: 5 additions & 5 deletions src/com/sulake/habbo/inventory/badges/Badge.as
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
private var _selectionHighlighter:IWindow;
private var _isUnseen:Boolean;

public function Badge(k:String, _arg_2:IWindowContainer, _arg_3:Boolean)
public function Badge(badgeId:String, window:IWindowContainer, isUnseen:Boolean)
{
this._badgeId = k;
this._window = _arg_2;
this._badgeId = badgeId;
this._window = window;
this._selectionHighlighter = this._window.findChildByTag("BG_COLOR");
this._isUnseen = _arg_3;
_Str_2402(IWidgetWindow(this._window.findChildByName("badge")).widget).badgeId = k;
this._isUnseen = isUnseen;
_Str_2402(IWidgetWindow(this._window.findChildByName("badge")).widget).badgeId = badgeId;
this._window.findChildByName("badge").visible = true;
this._Str_2365 = false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/sulake/habbo/navigator/IncomingMessages.as
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
}
else
{
if (((((_local_2.data._Str_2738 == RoomSettingsData.DOORMODE_NOOBS_ONLY) && (!(this._navigator._Str_2627._Str_4050))) && (!(this._navigator._Str_2627._Str_6986))) && (!(this._navigator._Str_2627._Str_2799))))
if (((((_local_2.data._Str_2738 == RoomSettingsData.DOORMODE_NOOBS_ONLY) && (!(this._navigator._Str_2627._Str_4050))) && (!(this._navigator._Str_2627.isAnyRoomController))) && (!(this._navigator._Str_2627.isGodMode))))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/sulake/habbo/notifications/IncomingMessages.as
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
var _local_3:_Str_5519 = _local_2._Str_2273();
var _local_4:String = this._notifications.localization.getLocalization("achievements.levelup.desc", "");
var _local_5:String = this._notifications.localization.getBadgeName(_local_3.data.badgeCode);
var _local_6:BitmapData = this._notifications.sessionDataManager._Str_18459(_local_3.data.badgeCode);
var _local_6:BitmapData = this._notifications.sessionDataManager.requestBadgeImage(_local_3.data.badgeCode);
this._notifications._Str_3069._Str_2822(((_local_4 + " ") + _local_5), NotificationType.ACHIEVEMENT, _local_6, null, _local_3.data.badgeCode, ("questengine/achievements/" + _local_3.data.category));
}

Expand Down
4 changes: 2 additions & 2 deletions src/com/sulake/habbo/nux/HabboNuxDialogs.as
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
private function onRoomSessionEvent(k:RoomSessionEvent):void
{
var _local_2:uint;
if (((!(getBoolean("nux.lobbies.enabled"))) || (!(this._Str_2318._Str_6986))))
if (((!(getBoolean("nux.lobbies.enabled"))) || (!(this._Str_2318.isAnyRoomController))))
{
return;
}
Expand Down Expand Up @@ -260,7 +260,7 @@

private function _Str_21884(k:TimerEvent=null):void
{
if (((!(getBoolean("nux.lobbies.enabled"))) || (!(this._Str_2318._Str_6986))))
if (((!(getBoolean("nux.lobbies.enabled"))) || (!(this._Str_2318.isAnyRoomController))))
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
if (this._cachedDailyOfferMessageEvent == null)
{
this._cachedDailyOfferMessageEvent = k;
this._questEngine.sessionDataManager._Str_16650(this);
this._questEngine.sessionDataManager.addProductsReadyEventListener(this);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/com/sulake/habbo/room/RoomContentLoader.as
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@
this._waitingForSessionDataManager = true;
return;
}
var k:Vector.<IFurnitureData> = this._sessionDataManager._Str_4536(this);
var k:Vector.<IFurnitureData> = this._sessionDataManager.getFurniData(this);
if (k == null)
{
return;
}
this._sessionDataManager._Str_20401(this);
this._sessionDataManager.removeFurniDataListener(this);
this.populateFurniData(k);
this._dataInitialized = true;
this._Str_23030();
Expand Down Expand Up @@ -1359,7 +1359,7 @@
return false;
}

public function _Str_15145():void
public function furniDataReady():void
{
this.initFurnitureData();
}
Expand Down
Loading

0 comments on commit 18ef354

Please sign in to comment.