This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
settings.py.orig
92 lines (73 loc) · 3.76 KB
/
settings.py.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright 2020 June Hanabi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from pathlib import Path
# ####################################################
# Settings you can change
# ####################################################
# Your Name
creator_name = 'My Creator Name'
# Sims 4 mod folder location
mods_folder = os.path.expanduser(
os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods')
)
# Location of folder to contain your projects
projects_folder = os.path.expanduser(
os.path.join('~', 'Documents', 'Sims 4 Projects')
)
# Location of the game folder
game_folder = os.path.join('C:', os.sep, 'Program Files (x86)', 'Origin Games', 'The Sims 4')
# ONLY FOR USERS OF PYCHARM PRO: Location of PyCharm Professional for debug setup
# You do not need to use PyCharm at all or the professional version, ignore this setting if you are not
pycharm_pro_folder = os.path.join('C:', os.sep, 'Program Files', 'JetBrains', 'PyCharm 2020.2.2')
# ####################################################
# Settings that you can but generally won't change
# ####################################################
# Folder within this project that contains your python/script files
src_subpath = "src"
# Folder within this project that your mods will be built to
build_subpath = "build"
# To hold asset files like xml tuning files and packages
assets_subpath = "assets"
# Subpath inside the projects folder to place decompiled python files
projects_python_subpath = "__util" + os.sep + "Python"
projects_tuning_subpath = "__util" + os.sep + "Tuning"
# The name of this project, by default it's setup to use the folder name containing the project
project_name = Path(__file__).parent.stem
# Dev Mode
devmode_cmd_mod_src = "Utility/devmode_cmd.py"
devmode_cmd_mod_name = "devmode-cmd"
# The name of the mod which will start the Pycharm debugging when entered into the game
# ONLY FOR PYCHARM PRO USERS: If you're not using PyCharm Pro don't worry about this setting
debug_cmd_mod_name = "pycharm-debug-cmd"
debug_cmd_mod_src = "Utility/debug_cmd.py"
debug_capability_name = "pycharm-debug-capability"
debug_mod_subfolder = "PyCharmPro_Debug"
# ####################################################
# Settings that don't make any sense for you to change
# ####################################################
# The project folder path itself
root_path = str(Path(__file__).parent)
# These paths are calculated from the above information
src_path = os.path.join(root_path, src_subpath)
build_path = os.path.join(root_path, build_subpath)
assets_path = os.path.join(root_path, assets_subpath)
devmode_cmd_mod_src_path = os.path.join(Path(__file__).parent, devmode_cmd_mod_src)
projects_python_path = os.path.join(projects_folder, projects_python_subpath)
projects_tuning_path = os.path.join(projects_folder, projects_tuning_subpath)
debug_cmd_mod_src_path = os.path.join(Path(__file__).parent, debug_cmd_mod_src)
# Sims 4 Data and Game Folders
gameplay_folder_data = os.path.join(game_folder, 'Data', 'Simulation', 'Gameplay')
gameplay_folder_game = os.path.join(game_folder, 'Game', 'Bin', 'Python')
debug_eggs_path = os.path.join(pycharm_pro_folder, "debug-eggs", "pydevd-pycharm.egg")