05 September, 2022

How to abuse DOTA 2 Battle Pass 2022

 Let me just clear this up for you without wasting anytime.

You CANNOT ABUSE in Battle Pass 2022 because there are no wager tokens, yet.

Let's just hope there will be wager token when Battle Pass 2 is released. Until then there is no use of abuse lobby other than clearing Cavern Crawl map.

If you're still interested on how an Abusing Lobby works check out the abusing guide below

25 July, 2022

Setting up Rabbit MQ Server

 Docker command:

docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.10-management

To add a vhost

rabbitmqctl add_vhost my_vhost

and give permission to guest user

rabbitmqctl set_permissions -p my_vhost guest ".*" ".*" ".*"

Useful links:


02 June, 2022

Create Asset bundle in Unity3d

 Original Source: http://gyanendushekhar.com/2016/06/16/create-asset-bundle-unity3d/

Create Asset Bundle in unity3d – step by step guide

Step 1

Select the asset that you want to add in asset bundle. In the bottom of Inspector pane, click on asset bundle field.

Step 2

Click on the new if you want to add your asset in new asset bundle or select the already named asset bundle. You will get the entire named asset bundle over here.

You can add multiple assets to a single asset bundle name.

Create Asset bundle in unity3d -2

Step 3

Write the name of the asset bundle and hit ENTER key. Then you will see name of your asset bundle in the AssetBundle field.

Create Asset bundle in unity3d-3

Step 4

Add Editor Folder in Assets folder and add below script in this folder.  Asset bundles are platform (android, iOS etc) dependent; so generate asset bundle accordingly. You can select platform by setting BuildTarget argument.  For below code, assets bundles will be generated in “Assets/AssetBundles” folder.

Step 5

Click on BuildAssetBundles (Assets -> BuildAssetBundles) to generate asset bundles.

Once you will click on BuildAssetBundle as shown in above image, asset bundles will be generated in AssetBundles directory. Make sure that you have created AssetBundles directory in Assets folder, before generating asset bundles.

How to Load Asset Bundle in unity3d

Original Source: http://gyanendushekhar.com/2016/06/25/load-asset-bundle-in-unity3d/

You can load asset bundle either locally or from an URL. First download the asset bundle using WWW class then you can load objects from the bundle.

You can download asset bundle using WWW class.

  • Non-caching: Use object of WWW class to download data and it will be not cached in local storage of the device.

  • Caching: WWW.LoadFromCacheOrDownload method allows you to load asset bundle either from cache memory or by downloading it. If cache will be clean then it will download asset bundle otherwise it will load asset bundle from cache memory.
    The asset bundles are cached to the unity’s cache folder in local storage device. Size of caching is different for different platforms (web player, android, mac); unity web player allows to cache 50 MB of data.

You can also load asset bundle from file using AssetBundle.LoadFromFile(“Your path”) method. Usually you can store asset in applications streaming asset folder and can load from there.

Load Game object from asset bundle

First create an object of AssetBundle class from the downloaded data and then you can load objects from that asset bundle. You can use below mentioned methods of AssetBundle class to load objects from your asset bundles.

  • LoadAsset: This method will load object by their name, pass the name of the object that you want to load.
  • LoadAssetAsync: Same as above method, but loads object asynchronously; so doesn’t blocks application’s main thread.
  • LoadAllAssets: This method will load all the objects in your assets bundle.

Once you load the game object from asset bundle, instantiate it to use in the scene.

Load scene from asset bundle

First load all the assets from associated scene asset bundle then load scene using SceneManager.LoadScene method.

Unload Asset bundle

Once you load the objects from asset bundle then unload asset bundle using AssetBundle.Unload method. This helps to conserve the memory and improves performance.