Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 24 additions & 20 deletions vakscript/autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,41 @@
"""

settings_json = {
'Spaceglider': {
'orbwalk' : 'space',
'laneclear' : 'v',
'lasthit' : 'c',
'attack' : 'a',
'range' : 'o',
'kiting_mode' : 'Normal',
'orbwalk_prio' : 'Less Basic Attacks',
'lasthit_mode' : 'Normal',
'press_range': False,
'ppc' : False
"Spaceglider": {
"orbwalk": "space",
"laneclear": "v",
"lasthit": "c",
"attack": "a",
"range": "o",
"kiting_mode": "Normal",
"orbwalk_prio": "Less Basic Attacks",
"lasthit_mode": "Normal",
"press_range": True,
"ppc": False
},
'Drawings' : {
"Drawings": {
"show_position": True,
"show_focused": True,
"show_healths": True,
"show_gold": False,
"show_gold": True,
"show_spells": False,
"show_player_range": True,
"show_enemy_range": True,
"show_turret_range": True,
"show_hits": True,
"vision_tracker": True,
"screen_track": False,
"fps": "60"
"fps": "60"
},
'AutoSmite' : {
'smite' : 'f',
'randb' : False
"AutoSmite": {
"smite": "f",
"Smite_toggle": "g",
"randb": True,
"randa": True
},
"Scripts" : {
"Scripts": {
"example_turret_enabled": False,
"example_turret_limited": False
}
}

Expand Down Expand Up @@ -169,8 +173,8 @@ def start_autoconfig():
league_path = process.info['cwd']

if league_path is not None and os.path.isdir(league_path):
settings_to_persist = os.path.join(league_path, Info.settings_to_persist_path)
persisted_settings = os.path.join(league_path, Info.persisted_settings_path)
settings_to_persist = os.path.join(league_path, Info.settings_to_persist)
persisted_settings = os.path.join(league_path, Info.persisted_settings)
files_list = [settings_to_persist, persisted_settings]

for file in files_list:
Expand Down
3 changes: 0 additions & 3 deletions vakscript/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ class Info:
client_name_executable = 'LeagueClient.exe'
game_name_executable = 'League of Legends.exe'
game_name_window = 'League of Legends (TM) Client'
game_files_path = '\Riot Games\League of Legends'
settings_to_persist = 'DATA\CFG\defaults\SettingsToPersist.json'
persisted_settings = 'Config\PersistedSettings.json'
settings_to_persist_path = path.join(game_files_path, settings_to_persist)
persisted_settings_path = path.join(game_files_path, persisted_settings)
url_allgamedata = 'https://127.0.0.1:2999/liveclientdata/allgamedata'
url_comunitydragon = 'https://raw.communitydragon.org/latest/game/data/characters/{name}/{name}.bin.json'
root_key = 'characters/{}/characterrecords/root'
Expand Down
3 changes: 1 addition & 2 deletions vakscript/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@
"example_turret_enabled": false,
"example_turret_limited": false
}
}

}