Skip to content
Merged
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
208 changes: 109 additions & 99 deletions nmspy/data/enums/__init__.py

Large diffs are not rendered by default.

3,143 changes: 1,687 additions & 1,456 deletions nmspy/data/enums/external_enums.py

Large diffs are not rendered by default.

48,472 changes: 24,371 additions & 24,101 deletions nmspy/data/exported_types.py

Large diffs are not rendered by default.

266 changes: 171 additions & 95 deletions nmspy/data/types.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
dependencies = [
"pymhf[gui]==0.2.2"
]
version = "159106.0"
version = "161436.0"

[dependency-groups]
dev = [
Expand Down
4 changes: 1 addition & 3 deletions tools/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
import keyword
import os.path as op
import subprocess
from typing import Union, TypedDict, Optional
from typing import Optional, TypedDict, Union

import libcst as cst

from ruff.__main__ import ( # type: ignore[import-untyped] # pyright: ignore[reportMissingTypeStubs]
find_ruff_bin, # noqa: PLC2701
)


DRYRUN = False


Expand Down
127 changes: 81 additions & 46 deletions tools/data.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions tools/extract.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# Extract all the class definitions from the NMS.exe

from abc import ABC
import json
import keyword
import os
import os.path as op
import re
from signal import SIGTERM
import struct
import subprocess
import time
from abc import ABC
from signal import SIGTERM
from typing import Optional
import keyword

import pymem


GUID_REGEX = re.compile(r'GUID = (0x[a-fA-F0-9]+)')


Expand Down Expand Up @@ -724,14 +723,14 @@ def find_classes(nms_path: str):

if __name__ == '__main__':
# First, handle the configuration loading.
binary_path = r"C:\Program Files (x86)\Steam\steamapps\common\No Man's Sky\Binaries\NMS.exe"
binary_path = r"D:\SteamLibrary\steamapps\common\No Man's Sky\Binaries\NMS.exe"

nms_proc = subprocess.Popen(binary_path)
print(f'Opened NMS with PID: {nms_proc.pid}')

try:
# Wait some time for the data to be written to memory.
time.sleep(2)
time.sleep(5)
# Now find the process with pymem.
# If there is for some reason multiple instances of NMS running this
# will probably have issues...
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.