Skip to main content

Star Wars: The Old Republic Settings Updater

Project description

Star Wars: The Old Republic Settings Updater

A library to update the *_PlayerGUIState.ini settings for all your characters.

Usage

  • Create a backup of %LOCALAPPDATA%\SWTOR\swtor\settings.
  • Run pip install swtor-settings-updater.
  • Create a my_settings.py corresponding to the settings you want to apply to your characters (an example follows).
  • Run the script.
import logging
from swtor_settings_updater import character, Chat, default_settings_dir


def my_settings(character, s):
    s["Show_Chat_TimeStamp"] = "true"
    s["GUI_Current_Profile"] = "myprofile"
    s["GUI_WelcomeWindowIsOpen"] = "false"
    s["GUI_ShowCompletedReputations"] = "false"
    s["GUI_ShowUnstartedReputations"] = "false"
    s["GUI_ShowAlignment"] = "true"
    s["GUI_InvitesAsSocialMessage"] = "true"
    s["GUI_ShowCooldownText"] = "true"
    s["GUI_CooldownStyle"] = "3"
    s["GUI_GCDStyle"] = "1"
    s["GUI_MiniMapZoom"] = "0.842999994755"
    s["GUI_MapFadeTo"] = "50.0"
    s["GUI_GCConfirmOpenPack"] = "false"
    s["GUI_ConfirmAmplifierCharge"] = "false"
    s["GUI_InventoryAutoCloseBank"] = "false"
    s["GUI_InventoryAutoCloseVendor"] = "false"
    s["GUI_QuickslotLockState"] = "true"
    s["GUI_WhoListNumberInChat"] = "0"
    s["GroupFinder_Operation_InProgress"] = "true"
    s["GUI_CraftingMoveQuality"] = "6"

    # swtor_settings_updater.Chat sets the ChatChannels, Chat_Custom_Channels
    # and ChatColors settings.
    chat = Chat()
    chn = chat.standard_channels

    chn.group.color = chn.ops.color

    chat.panel("General")
    other = chat.panel("Other")

    # Any channels not explicitly displayed on a panel will be displayed on
    # the first panel (General).
    other.display(
        # chn.trade,
        # chn.pvp,
        # chn.general,
        chn.emote,
        chn.yell,
        chn.officer,
        chn.guild,
        chn.say,
        chn.whisper,
        chn.ops,
        chn.ops_leader,
        chn.group,
        chn.ops_announcement,
        chn.ops_officer,
        # chn.combat_information,
        # chn.conversation,
        chn.character_login,
        chn.ops_information,
        # chn.system_feedback,
        chn.guild_information,
        chn.group_information,
        chn.error,
        # chn.server_admin,
    )

    if character.name not in ["Kai Zykken", "Plagueis"]:
        chat.custom_channel("Gsf")

        if character.server_id == "he4000":
            chat.custom_channel("Redleader")
            chat.custom_channel("Narwhal")

            myguild = chat.custom_channel("Myguild")
            myguild.color = chn.guild.color
            other.display(myguild)

        elif character.server_id in ["he3000", "he3001"]:
            chat.custom_channel("Endgame")

    chat.apply(s)


if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
    character.update_all(default_settings_dir(), my_settings)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swtor-settings-updater-0.0.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swtor_settings_updater-0.0.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file swtor-settings-updater-0.0.4.tar.gz.

File metadata

  • Download URL: swtor-settings-updater-0.0.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.3 Windows/10

File hashes

Hashes for swtor-settings-updater-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1c8fcbe7395b0e472cfe8dd42dce68a815fd741cd7966ec5a100168428b870e1
MD5 5f7ac90db5959776cc7c0cebedb8066c
BLAKE2b-256 8bfdcf9ea9c43b2b62c2980f4451db1a32f0408427f42063add357c8918bc0f7

See more details on using hashes here.

File details

Details for the file swtor_settings_updater-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for swtor_settings_updater-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 acae3fb0539ea97c51a73a545e291927ee5bbed6e4242cf8116c4b9659bf1108
MD5 61d07db22f3366b6ed3d529e1e11173b
BLAKE2b-256 57c3cfecf7a276f7afcad6b360380b6a0d19f40250c3b55c220118bbcb3a7df1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page