Skip to content

Commit bbce3e4

Browse files
committed
fix(Python): update Lua paths
1 parent b32b131 commit bbce3e4

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

scripts/data_generators/game_data_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
PARENT_PATH = Path(__file__).resolve().parent
3030
SCRIPT_ROOT = PARENT_PATH.parent.parent
31-
LUA_DATA_PATH = SCRIPT_ROOT / "includes/data"
31+
LUA_DATA_PATH = SCRIPT_ROOT / "SSV2/includes/data"
3232

3333

3434
ePedType = {

scripts/offsets/update_offsets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def generate(offsets_table: list, version: int, local: bool, path: str):
201201

202202

203203
def main(auto: bool = True):
204-
table_path = SCRIPT_ROOT / "includes/data/globals_locals.lua"
204+
table_path = SCRIPT_ROOT / "SSV2/includes/data/globals_locals.lua"
205205
if not os.path.exists(table_path):
206206
print("Lookup file not found: globals_locals.lua")
207207
sys.exit(1)

scripts/translations/generate_translations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def write_hashmap():
180180

181181

182182
def generate_translations(dry_run: bool = False, diff_only: bool = False):
183-
base_path = PARENT_PATH.parent.parent / "includes/lib/translations"
183+
base_path = PARENT_PATH.parent.parent / "SSV2/includes/lib/translations"
184184
en_keys_path = base_path / "en-US.lua"
185185
locales_path = base_path / "__locales.lua"
186186

@@ -283,7 +283,7 @@ def generate_translations(dry_run: bool = False, diff_only: bool = False):
283283

284284

285285
def main():
286-
parser = ArgParser(description="Generate translations from includes/lib/translations/en-US.lua")
286+
parser = ArgParser(description="Generate translations from SSV2/includes/lib/translations/en-US.lua")
287287
parser.add_argument("--dry-run", action="store_true", help="Don't write files; print diff summary")
288288
parser.add_argument("--diff", action="store_true", help="Print diff summary only (no writes)")
289289
args = parser.parse_args()

scripts/translations/hashmap.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,5 +511,9 @@
511511
"VEH_STANCE_UPDATE_MODEL": 1354375812,
512512
"VEH_STANCE_AUTOAPPLY": 4138073950,
513513
"VEH_STANCE_AUTOAPPLY_TT": 1530442943,
514-
"VEH_STANCE_VIEW_SAVED": 2449362310
514+
"VEH_STANCE_VIEW_SAVED": 2449362310,
515+
"GUI_NOTIFICATIONS": 3527871691,
516+
"GUI_NOTIFICATIONS_UNREAD": 263407498,
517+
"GUI_NOTIFICATIONS_NONE": 1403659800,
518+
"GENERIC_DISMISS": 2452529452
515519
}

0 commit comments

Comments
 (0)