Skip to content

Repository files navigation

Open

Scripts used to load OpenID in your Supercell games private servers
By Candybrawl

How to port scripts to other versions/games

Requirements:

  1. IDA Pro or Ghidra, or anything that lets you get offsets really
  2. The game's libg.so file of the architecture you want (armeabi-v7a for arm32 or arm64-v8a for arm64)
  3. The game's supercell_id_config.json file (found in /assets/supercell_id_config.json)
  4. The game MUST have support for WVSCID, if it doesn't, then OpenID will not work

Disabling UseNative

  1. Open supercell_id_config.json
  2. Search for "UseNative"
  3. Set it to false
  4. Search for "UseNativeCountries"
  5. Set it to []

Finding offsets

This procedure may vary depending on which software you're using, I'll be using IDA Pro for this, but feel free to use whatever you want

  1. Decompile the libg.so file and wait for it to be fully decompiled
  2. Only then, press f12 to open the strings menu

Finding SCIDConfig::getBool and String::String

  1. Search for "DisableIngameFriends"
  2. Double click it and then press CTRL + X on the string
  3. Click on sub_XXXXX and then press F5 to decompile
  4. You should see something like this
    image
  5. We are constructing the string DisableIngameFriends as a variable called v11, click on it to highlight where it's used
  6. Save that function as String::String as the script will need it
  7. The line right under the one constructing the string should have its first use, that function is SCIDConfig::getBool

Finding SCIDConfig::getString

  1. Back in the strings menu, search for "String not found:"
  2. Again, double click the result and press CTRL + X to see its cross references
  3. There should only be 1 or 2 pointing to the same sub
  4. That sub is SCIDConfig::getString

Updating the script

  1. Depending on the release date of the version you're porting OpenID to, you may need more offsets and more modifications to fully enable WVSCID, and, consequentially, OpenID
  2. Download the OpenID template script
  3. Replace offsets within it
  4. Edit its configuration as you wish

And that's it! You've successfully ported OpenID to another game or version

image

Need help?

Sources where you can get help from (from fastest to slowest response)

  1. Candybrawl Discord (dsc.gg/candybrawl)
  2. @hallo178 on Discord(aka me)
  3. BSM Reddit (r/brawlstarsmodding)
  4. My Telegram chat (t.me/hawlo2)