Skip to content

Commit

Permalink
Updated offsets to v12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MiscellaneousStuff committed Mar 3, 2022
1 parent 4c47805 commit 0ecbf13
Show file tree
Hide file tree
Showing 29 changed files with 136 additions and 79 deletions.
Binary file added GameplayScripts/__pycache__/actor.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions GameplayScripts/actor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from lview import *

lview_script_info = {
"script": "Actor",
"author": "MiscellaneousStuff",
"description": "Executes a machine learning model which plays League of Legends."
}

def lview_load_cfg(cfg):
pass

def lview_save_cfg(cfg):
pass

def lview_draw_settings(game, ui):
pass

def lview_update(game, ui):
pass
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added LView/ConsoleApplication.exe
Binary file not shown.
Binary file added LView/ConsoleApplication.exp
Binary file not shown.
Binary file added LView/ConsoleApplication.lib
Binary file not shown.
Binary file added LView/ConsoleApplication.pdb
Binary file not shown.
18 changes: 18 additions & 0 deletions LView/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ void GameObject::LoadFromMem(DWORD base, HANDLE hProcess, bool deepLoad) {
memcpy(&movementSpeed, &buff[Offsets::ObjMoveSpeed], sizeof(float));
memcpy(&networkId, &buff[Offsets::ObjNetworkID], sizeof(DWORD));

// Additional
memcpy(&abilityHaste, &buff[Offsets::ObjAbilityHaste], sizeof(float));
memcpy(&lethality, &buff[Offsets::ObjLethality], sizeof(float));
memcpy(&direction, &buff[Offsets::ObjDirection], sizeof(float));
memcpy(&experience, &buff[Offsets::ObjExperience], sizeof(float));
memcpy(&manaRegen, &buff[Offsets::ObjManaRegen], sizeof(float));
memcpy(&healthRegen, &buff[Offsets::ObjHealthRegen], sizeof(float));
memcpy(&maxMana, &buff[Offsets::ObjMaxMana], sizeof(float));
memcpy(&mana, &buff[Offsets::ObjMana], sizeof(float));
memcpy(&transformation, &buff[Offsets::ObjTransformation], sizeof(float));
memcpy(&isMoving, &buff[Offsets::ObjIsMoving], sizeof(bool));
memcpy(&targetable, &buff[Offsets::ObjTargetable], sizeof(bool));
memcpy(&invulnerable, &buff[Offsets::ObjInvulnerable], sizeof(bool));
memcpy(&recallState, &buff[Offsets::ObjRecallState], sizeof(int));
memcpy(&currentGold, &buff[Offsets::ObjCurrentGold], sizeof(float));
memcpy(&totalGold, &buff[Offsets::ObjGoldTotal], sizeof(float));
memcpy(&attackRange, &buff[Offsets::ObjAtkRange], sizeof(float));

// Check if alive
DWORD spawnCount;
memcpy(&spawnCount, &buff[Offsets::ObjSpawnCount], sizeof(int));
Expand Down
21 changes: 20 additions & 1 deletion LView/GameObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,26 @@ class GameObject: MemoryLoadable, SpellInterface {
DWORD address;

UnitInfo* unitInfo = GameData::UnknownUnit;


// Additional
float abilityHaste;
float lethality;
float direction;
float experience;
float manaRegen;
float healthRegen;
float maxMana;
float mana;
float transformation;
bool isMoving;
// bool isDashing;
bool targetable;
bool invulnerable;
int recallState;
float currentGold;
float totalGold;
float attackRange;

protected:
static const SIZE_T sizeBuff = 0x4000;
static const SIZE_T sizeBuffDeep = 0x1000;
Expand Down
124 changes: 62 additions & 62 deletions LView/Offsets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,60 @@
Offsets::Offsets() {};

// CORRECT!
int Offsets::GameTime = 0x30F07C4; // 12.4
int Offsets::ObjectManager = 0x185C0C8; // 12.4
int Offsets::LocalPlayer = 0x30F9734; // 12.4
int Offsets::UnderMouseObject = 0x30EB740; // 12.4
int Offsets::ViewProjMatrices = 0x3122BD0; // 12.4
int Offsets::Renderer = 0x3125A70; // 12.4
int Offsets::GameTime = 0x310DF84; // 12.5
int Offsets::ObjectManager = 0x1879830; // 12.5
int Offsets::LocalPlayer = 0x31168D4; // 12.5
int Offsets::UnderMouseObject = 0x310A9D8; // 12.5
int Offsets::ViewProjMatrices = 0x3140F40; // 12.5
int Offsets::Renderer = 0x3143DE0; // 12.5

// MOSTLY CORRECT!
int Offsets::ObjIndex = 0x20; // 12.4
int Offsets::ObjTeam = 0x4C; // 12.4
int Offsets::ObjMissileName = 0x6C; // 12.4
int Offsets::ObjNetworkID = 0xCC; // 12.4
int Offsets::ObjPos = 0x1F4; // 12.4
int Offsets::ObjMissileSpellCast = 0x250; // 12.3
int Offsets::ObjVisibility = 0x00; // 12.4? // 0x28C; // 12.3
int Offsets::ObjSpawnCount = 0x2A0; // 12.4
int Offsets::ObjSrcIndex = 0x02AC; // 12.4
int Offsets::ObjMana = 0x2B4; // 12.4
int Offsets::ObjMaxMana = 0x2B4 + 0x10; // 12.4
int Offsets::ObjRecallState = 0xD78; // 12.4
int Offsets::ObjHealth = 0xDB4; // 12.4
int Offsets::ObjMaxHealth = 0xDB4 + 0x10; // 12.4
int Offsets::ObjAbilityHaste = 0x110C; // 12.4
int Offsets::ObjLethality = 0x10F4; // 12.4
int Offsets::ObjArmor = 0x12E4; // 12.4
int Offsets::ObjBonusArmor = 0x12E4 + 0x04; // 12.4
int Offsets::ObjMagicRes = 0x12EC; // 12.4
int Offsets::ObjBonusMagicRes = 0x12EC + 0x04; // 12.4
int Offsets::ObjBaseAtk = 0x12BC; // 12.4
int Offsets::ObjBonusAtk = 0x1234; // 12.4
int Offsets::ObjMoveSpeed = 0x12FC; // 12.4
int Offsets::ObjSpellBook = 0x27F8; // 12.4
int Offsets::ObjIndex = 0x20; // 12.5
int Offsets::ObjTeam = 0x4C; // 12.5
int Offsets::ObjMissileName = 0x6C; // 12.5
int Offsets::ObjNetworkID = 0xCC; // 12.5
int Offsets::ObjPos = 0x1F4; // 12.5
int Offsets::ObjMissileSpellCast = 0x250; // 12.5
int Offsets::ObjVisibility = 0x28C; // 12.5
int Offsets::ObjSpawnCount = 0x2A0; // 12.5
int Offsets::ObjSrcIndex = 0x02AC; // 12.5
int Offsets::ObjMana = 0x2B4; // 12.5
int Offsets::ObjMaxMana = 0x2B4 + 0x10; // 12.5
int Offsets::ObjRecallState = 0xD78; // 12.5
int Offsets::ObjHealth = 0xDB4; // 12.5
int Offsets::ObjMaxHealth = 0xDB4 + 0x10; // 12.5
int Offsets::ObjAbilityHaste = 0x110C; // 12.5
int Offsets::ObjLethality = 0x10F4; // 12.5
int Offsets::ObjArmor = 0x12E4; // 12.5
int Offsets::ObjBonusArmor = 0x12E4 + 0x04; // 12.5
int Offsets::ObjMagicRes = 0x12EC; // 12.5
int Offsets::ObjBonusMagicRes = 0x12EC + 0x04; // 12.5
int Offsets::ObjBaseAtk = 0x12BC; // 12.5
int Offsets::ObjBonusAtk = 0x1234; // 12.5
int Offsets::ObjMoveSpeed = 0x12FC; // 12.5
int Offsets::ObjSpellBook = 0x27F8; // 12.5
int Offsets::ObjTransformation = 0x3040; // Wrong
int Offsets::ObjName = 0x2BE4; // 12.4
int Offsets::ObjLvl = 0x33A4; // 12.4
int Offsets::ObjName = 0x2BE4; // 12.5
int Offsets::ObjLvl = 0x3394; // 12.5
int Offsets::ObjExpiry = 0x298; // Unknown
int Offsets::ObjCrit = 0x12E0; // 12.4
int Offsets::ObjCritMulti = 0x12D0; // Unknown
int Offsets::ObjAbilityPower = 0x1244; // 12.4
int Offsets::ObjAtkSpeedMulti = 0x12B8; // Unknown
int Offsets::ObjAtkRange = 0x1304; // 12.3
int Offsets::ObjTargetable = 0xD1C; // 12.3
int Offsets::ObjInvulnerable = 0x3EC; // 12.3
int Offsets::ObjIsMoving = 0x3638; // Unknown
int Offsets::ObjDirection = 0x1BD8; // 12.4
int Offsets::ObjItemList = 0x3478; // 0x3478; // 12.2? // 0x33D0; // 12.2?
int Offsets::ObjExperience = 0x3394; // 12.4
int Offsets::ObjCrit = 0x12E0; // 12.5?
int Offsets::ObjCritMulti = 0x12D0; // 12.5?
int Offsets::ObjAbilityPower = 0x1244; // 12.5?
int Offsets::ObjAtkSpeedMulti = 0x12B8; // 12.5?
int Offsets::ObjAtkRange = 0x1304; // 12.5
int Offsets::ObjTargetable = 0xD1C; // 12.5?
int Offsets::ObjInvulnerable = 0x3EC; // 12.5?
int Offsets::ObjIsMoving = 0x3638; // 12.5?
int Offsets::ObjDirection = 0x1BD8; // 12.5?
int Offsets::ObjItemList = 0x3478; // 12.5?
int Offsets::ObjExperience = 0x3394; // 12.5
int Offsets::ObjMagicPen = 0x11DC; // Unknown
int Offsets::ObjMagicPenMulti = 0x11E4; // Unknown
int Offsets::ObjAdditionalApMulti = 0x1248; // 11.20
int Offsets::ObjManaRegen = 0x1150; // 12.2?
int Offsets::ObjHealthRegen = 0x12F8; // 12.4
int Offsets::ObjCurrentGold = 0x1B98; // 12.4
int Offsets::ObjGoldTotal = 0x1BA8; // 12.4
int Offsets::ObjCurrentGold = 0x1B98; // 12.5
int Offsets::ObjGoldTotal = 0x1BA8; // 12.5

// UNKNOWN!
int Offsets::ItemListItem = 0xC;
Expand All @@ -67,29 +67,29 @@ int Offsets::RendererWidth = 0xC;
int Offsets::RendererHeight = 0x10;

// MOSTLY CORRECT!
int Offsets::SpellSlotLevel = 0x20; // 12.2
int Offsets::SpellSlotTime = 0x28; // 12.2
int Offsets::SpellSlotDamage = 0xA0; // 12.2
int Offsets::SpellSlotSpellInfo = 0x13C; // // 12.2
int Offsets::SpellInfoSpellData = 0x44; // 12.2
int Offsets::SpellDataSpellName = 0x6C; // 12.2
int Offsets::SpellDataMissileName = 0x6C; // 12.2
int Offsets::SpellSlotLevel = 0x20; // 12.5
int Offsets::SpellSlotTime = 0x28; // 12.5
int Offsets::SpellSlotDamage = 0xA0; // 12.5
int Offsets::SpellSlotSpellInfo = 0x13C; // // 12.5
int Offsets::SpellInfoSpellData = 0x44; // 12.5
int Offsets::SpellDataSpellName = 0x6C; // 12.5
int Offsets::SpellDataMissileName = 0x6C; // 12.5

// CORRECT
int Offsets::ObjectMapCount = 0x2C; // 12.4
int Offsets::ObjectMapRoot = 0x28; // 12.4
int Offsets::ObjectMapNodeNetId = 0x10; // 12.4
int Offsets::ObjectMapNodeObject = 0x14; // 12.4
int Offsets::ObjectMapCount = 0x2C; // 12.5
int Offsets::ObjectMapRoot = 0x28; // 12.5
int Offsets::ObjectMapNodeNetId = 0x10; // 12.5
int Offsets::ObjectMapNodeObject = 0x14; // 12.5

// CORRECT!
int Offsets::MissileSpellInfo = 0x278; // 12.4
int Offsets::MissileSrcIdx = 0x2DC; // 12.4
int Offsets::MissileDestIdx = 0x334; // 12.4
int Offsets::MissileStartPos = 0x2F4; // 12.4
int Offsets::MissileEndPos = 0x300; // 12.4
int Offsets::MissileSpellInfo = 0x278; // 12.5
int Offsets::MissileSrcIdx = 0x2DC; // 12.5
int Offsets::MissileDestIdx = 0x334; // 12.5
int Offsets::MissileStartPos = 0x2F4; // 12.5
int Offsets::MissileEndPos = 0x300; // 12.5

// Minimap
int Offsets::MinimapObject = 0x30F1D94; // WRONG
int Offsets::MinimapObject = 0x310F288; // 12.5
int Offsets::MinimapObjectHud = 0x110;
int Offsets::MinimapHudPos = 0x44;
int Offsets::MinimapHudSize = 0x4C;
23 changes: 12 additions & 11 deletions LView/config.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
::scriptsFolder=F:\Github\LViewLoL\GameplayScripts
::scriptsFolder=C:\Users\win8t\OneDrive\Desktop\projects\tlol-scraper\GameplayScripts
Auto Smite::enable_key=41
Auto Smite::enabled=1
Auto Smite::enabled=0
Auto Smite::show_smitable=1
Auto Spell::cast_keys={"Q": 2, "W": 3, "E": 4, "R": 5}
Auto Spell::enabled=1
Auto Spell::enabled=0
Auto Spell::target_jungle=1
Auto Spell::target_minions=1
Auto Spell::targeting_target=1
Champion Tracker::enabled=1
Champion Tracker::enabled=0
Champion Tracker::seconds_to_track=15.000000
Drawings::attack_range=1
Drawings::enabled=1
Drawings::enabled=0
Drawings::minion_last_hit=1
Drawings::skillshots=1
Drawings::skillshots_max_speed=5000.000000
Expand All @@ -19,25 +19,26 @@ Drawings::skillshots_predict=0
Drawings::skillshots_show_ally=1
Drawings::skillshots_show_enemy=1
Drawings::turret_ranges=1
Extractor::enabled=1
Map Awareness::bound_max=4000.000000
Map Awareness::enabled=1
Object Explorer::enabled=1
Map Awareness::enabled=0
Object Explorer::enabled=0
Orbwalker::auto_last_hit=1
Orbwalker::enabled=1
Orbwalker::enabled=0
Orbwalker::key_attack_move=30
Orbwalker::key_orbwalk=57
Orbwalker::max_atk_speed=2.322000
Orbwalker::targeting_target=1
Orbwalker::toggle_mode=0
Spell Tracker::enabled=1
Spell Tracker::enabled=0
Spell Tracker::show_allies=0
Spell Tracker::show_enemies=1
Spell Tracker::show_local_champ=0
Twisted Fate Card Picker::enabled=1
Twisted Fate Card Picker::enabled=0
Twisted Fate Card Picker::key_blue=0
Twisted Fate Card Picker::key_red=46
Twisted Fate Card Picker::key_yellow=18
Vision Tracker::enabled=1
Vision Tracker::enabled=0
Vision Tracker::show_clones=1
Vision Tracker::show_traps=1
Vision Tracker::show_wards=1
Expand Down
10 changes: 5 additions & 5 deletions LView/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ Size=502,659
Collapsed=0

[Window][Object Viewer]
Pos=129,25
Size=664,844
Collapsed=0
Pos=1272,730
Size=664,784
Collapsed=1

[Window][Champion to track]
Pos=60,60
Expand Down Expand Up @@ -109,9 +109,9 @@ Size=569,442
Collapsed=0

[Window][LVIEW by leryss]
Pos=1138,21
Pos=1184,126
Size=690,889
Collapsed=0
Collapsed=1

[Table][0xBF3CBA1D,3]
Column 0 Weight=1.0000
Expand Down

0 comments on commit 0ecbf13

Please sign in to comment.