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
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,16 @@ https://djmonkeyuk.github.io/nms-base-builder-presets/

## Technical Dependencies

Casual users may ignore this section. These Python dependencies are installed automatically on exeuction of the Asset Browser UI.
Casual users may ignore this section. These Python dependencies are installed automatically on execution of the Asset Browser UI.
(Fallback dependencies, in parentheses, won't be.)

* PySide6
* pyaml
* PySide6 (or PySide2)
* PyYAML

For Linux users, the corresponding packages (for Debian-like systems) are:

* python3-pyside6 (or python3-pyside2)
* python3-yaml

## Mod Compatibility

Expand Down
5 changes: 4 additions & 1 deletion automation_tools/icon_generator/icon_export/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# Created by: The Resource Compiler for Qt version 6.4.1
# WARNING! All changes made in this file will be lost!

from PySide6 import QtCore
try:
from PySide6 import QtCore
except ImportError:
from PySide2 import QtCore

qt_resource_data = b"\
\x00\x00\x0bD\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# Created by: The Resource Compiler for Qt version 6.4.1
# WARNING! All changes made in this file will be lost!

from PySide6 import QtCore
try:
from PySide6 import QtCore
except ImportError:
from PySide2 import QtCore

qt_resource_data = b"\
\x00\x00\x0bD\
Expand Down
4 changes: 2 additions & 2 deletions src/addons/no_mans_sky_base_builder/asset_browser/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def install_package(package_name):

try:
import yaml
print ("Yaml found.")
print ("PyYAML found.")
except:
install_package("pyaml")
install_package("PyYAML")

try:
import PySide6
Expand Down
11 changes: 4 additions & 7 deletions src/addons/no_mans_sky_base_builder/asset_browser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@
import time
from functools import partial

import yaml

try:
from PySide6 import QtCore, QtGui, QtWidgets
except ImportError:
from PySide2 import QtCore, QtGui, QtWidgets

import asset_browser.icons.icons
import yaml
from asset_browser.collapsable_frame import CollapsableFrame
from asset_browser.flow_layout import FlowLayout
from asset_browser.item import Item, Preset
from PySide6 import QtCore, QtGui, QtWidgets
try:
from PySide6 import QtCore, QtGui, QtWidgets
except ImportError:
from PySide2 import QtCore, QtGui, QtWidgets

FILE_DIR = os.path.dirname(os.path.realpath(__file__))
SEND_SNIPPET = os.path.join(FILE_DIR, "build_part_snippet.txt")
Expand Down