diff options
author | Hop311 <hop3114@gmail.com> | 2023-05-16 23:49:52 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-05-17 13:47:02 +0200 |
commit | 578eb8c332810656842f72e0bb94bb0d4dcb9f5e (patch) | |
tree | 64dd37032c36da8e48d5d519ac840e11cc64dc58 /game | |
parent | af6a96ed26bca3eaa28c6dca635918061fab7c80 (diff) |
Changed from OpenVic2 to OpenVic
Diffstat (limited to 'game')
-rw-r--r-- | game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd (renamed from game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd) | 8 | ||||
-rw-r--r-- | game/addons/openvic-plugin/openvic-plugin.gd (renamed from game/addons/openvic2-plugin/openvic2-plugin.gd) | 2 | ||||
-rw-r--r-- | game/addons/openvic-plugin/plugin.cfg | 7 | ||||
-rw-r--r-- | game/addons/openvic2-plugin/plugin.cfg | 7 | ||||
-rw-r--r-- | game/bin/openvic.gdextension | 14 | ||||
-rw-r--r-- | game/bin/openvic2.gdextension | 14 | ||||
-rw-r--r-- | game/common/credits.csv | 2 | ||||
-rw-r--r-- | game/export_presets.cfg | 8 | ||||
-rw-r--r-- | game/localisation/en_GB/menus.csv | 2 | ||||
-rw-r--r-- | game/localisation/en_US/menus.csv | 2 | ||||
-rw-r--r-- | game/localisation/fr_FR/menus.csv | 2 | ||||
-rw-r--r-- | game/project.godot | 6 | ||||
-rw-r--r-- | game/src/ArgumentParser.gd | 4 | ||||
-rw-r--r-- | game/src/Autoload/Events/GameDebug.gd | 4 | ||||
-rw-r--r-- | game/src/Autoload/Events/Options.gd | 2 | ||||
-rw-r--r-- | game/src/Autoload/SaveManager.gd | 2 | ||||
-rw-r--r-- | game/src/CreditsMenu/CreditsMenu.gd | 2 | ||||
-rw-r--r-- | game/src/Utility/GIT_INFO.gd | 2 |
18 files changed, 45 insertions, 45 deletions
diff --git a/game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd index 4e03788..ac6c5bc 100644 --- a/game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd +++ b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd @@ -6,7 +6,7 @@ var _repo_tag : StringName = "<tag missing>" var _repo_release_name : StringName = "<release name missing>" func _get_name(): - return "OpenVic2-ReleaseExportEditorPlugin" + return "OpenVic-ReleaseExportEditorPlugin" func _export_file(path: String, type: String, features: PackedStringArray) -> void: if path != "res://src/Utility/GIT_INFO.gd": return @@ -29,7 +29,7 @@ var _cached_hash : StringName = &"" func _get_commit_hash() -> StringName: if not _cached_hash.is_empty(): return _cached_hash - var git_hash := OS.get_environment("OPENVIC2_COMMIT") + var git_hash := OS.get_environment("OPENVIC_COMMIT") if not git_hash.is_empty(): _cached_hash = git_hash return git_hash @@ -69,7 +69,7 @@ func _get_commit_hash() -> StringName: return git_hash func _try_get_tag() -> StringName: - var result : StringName = OS.get_environment("OPENVIC2_TAG") + var result : StringName = OS.get_environment("OPENVIC_TAG") if result.is_empty(): var git_output := [] if OS.execute("git", ["describe", "--tags", "--abbrev=0"], git_output) == -1: @@ -97,7 +97,7 @@ func _get_tag(): print("Tag: " + _repo_tag) func _get_release_name(): - var result : StringName = OS.get_environment("OPENVIC2_RELEASE") + var result : StringName = OS.get_environment("OPENVIC_RELEASE") if result.is_empty(): result = _try_get_tag() if not result.is_empty(): diff --git a/game/addons/openvic2-plugin/openvic2-plugin.gd b/game/addons/openvic-plugin/openvic-plugin.gd index 8cfa4e8..dec0312 100644 --- a/game/addons/openvic2-plugin/openvic2-plugin.gd +++ b/game/addons/openvic-plugin/openvic-plugin.gd @@ -1,7 +1,7 @@ @tool extends EditorPlugin -const ReleaseExportEditorPlugin := preload("res://addons/openvic2-plugin/ReleaseExportEditorPlugin.gd") +const ReleaseExportEditorPlugin := preload("res://addons/openvic-plugin/ReleaseExportEditorPlugin.gd") var release_export_editor_plugin := ReleaseExportEditorPlugin.new() func _enter_tree() -> void: diff --git a/game/addons/openvic-plugin/plugin.cfg b/game/addons/openvic-plugin/plugin.cfg new file mode 100644 index 0000000..ee8ef07 --- /dev/null +++ b/game/addons/openvic-plugin/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="OpenVicPlugin" +description="" +author="" +version="" +script="openvic-plugin.gd" diff --git a/game/addons/openvic2-plugin/plugin.cfg b/game/addons/openvic2-plugin/plugin.cfg deleted file mode 100644 index b3e5611..0000000 --- a/game/addons/openvic2-plugin/plugin.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[plugin] - -name="OpenVic2Plugin" -description="" -author="" -version="" -script="openvic2-plugin.gd" diff --git a/game/bin/openvic.gdextension b/game/bin/openvic.gdextension new file mode 100644 index 0000000..574394c --- /dev/null +++ b/game/bin/openvic.gdextension @@ -0,0 +1,14 @@ +[configuration] + +entry_symbol = "openvic_library_init" + +[libraries] + +linux.x86_64.debug = "res://bin/openvic/libopenvic.linux.template_debug.x86_64.so" +linux.x86_64.release = "res://bin/openvic/libopenvic.linux.template_release.x86_64.so" +linux.debug.arm64 = "res://bin/openvic/libopenvic.linux.template_debug.arm64.so" +linux.release.arm64 = "res://bin/openvic/libopenvic.linux.template_release.arm64.so" +windows.x86_64.debug = "res://bin/openvic/libopenvic.windows.template_debug.x86_64.dll" +windows.x86_64.release = "res://bin/openvic/libopenvic.windows.template_release.x86_64.dll" +macos.debug = "res://bin/openvic/libopenvic.macos.template_debug.framework" +macos.release = "res://bin/openvic/libopenvic.macos.template_release.framework" diff --git a/game/bin/openvic2.gdextension b/game/bin/openvic2.gdextension deleted file mode 100644 index 0a12191..0000000 --- a/game/bin/openvic2.gdextension +++ /dev/null @@ -1,14 +0,0 @@ -[configuration] - -entry_symbol = "openvic2_library_init" - -[libraries] - -linux.x86_64.debug = "res://bin/openvic2/libopenvic2.linux.template_debug.x86_64.so" -linux.x86_64.release = "res://bin/openvic2/libopenvic2.linux.template_release.x86_64.so" -linux.debug.arm64 = "res://bin/openvic2/libopenvic2.linux.template_debug.arm64.so" -linux.release.arm64 = "res://bin/openvic2/libopenvic2.linux.template_release.arm64.so" -windows.x86_64.debug = "res://bin/openvic2/libopenvic2.windows.template_debug.x86_64.dll" -windows.x86_64.release = "res://bin/openvic2/libopenvic2.windows.template_release.x86_64.dll" -macos.debug = "res://bin/openvic2/libopenvic2.macos.template_debug.framework" -macos.release = "res://bin/openvic2/libopenvic2.macos.template_release.framework" diff --git a/game/common/credits.csv b/game/common/credits.csv index 2500efe..c5cd021 100644 --- a/game/common/credits.csv +++ b/game/common/credits.csv @@ -1,4 +1,4 @@ -Title,OpenVic2 +Title,OpenVic Project Lead,FakeByte Project Lead,joethepro36 Project Lead,Catylist diff --git a/game/export_presets.cfg b/game/export_presets.cfg index 4a031ea..8c90602 100644 --- a/game/export_presets.cfg +++ b/game/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="common/*" exclude_filter="" -export_path="export/Linux-x86_64/OpenVic2.x86_64" +export_path="export/Linux-x86_64/OpenVic.x86_64" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false @@ -49,7 +49,7 @@ custom_features="" export_filter="all_resources" include_filter="common/*" exclude_filter="" -export_path="export/Windows/OpenVic2.exe" +export_path="export/Windows/OpenVic.exe" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false @@ -115,7 +115,7 @@ custom_features="" export_filter="all_resources" include_filter="common/*" exclude_filter="" -export_path="export/MacOS/OpenVic2.app" +export_path="export/MacOS/OpenVic.app" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false @@ -130,7 +130,7 @@ custom_template/release="" debug/export_console_script=1 application/icon="" application/icon_interpolation=4 -application/bundle_identifier="com.openvic2.openvic2" +application/bundle_identifier="com.openvic.openvic" application/signature="" application/app_category="Games" application/short_version="0.1" diff --git a/game/localisation/en_GB/menus.csv b/game/localisation/en_GB/menus.csv index fe11e0c..97946de 100644 --- a/game/localisation/en_GB/menus.csv +++ b/game/localisation/en_GB/menus.csv @@ -1,6 +1,6 @@ ,, Main Menu -MAINMENU_TITLE,OpenVic2 +MAINMENU_TITLE,OpenVic MAINMENU_NEW_GAME,New Game MAINMENU_CONTINUE,Continue MAINMENU_MULTIPLAYER,Multiplayer diff --git a/game/localisation/en_US/menus.csv b/game/localisation/en_US/menus.csv index c69d36b..01047dc 100644 --- a/game/localisation/en_US/menus.csv +++ b/game/localisation/en_US/menus.csv @@ -1,6 +1,6 @@ ,, Main Menu -MAINMENU_TITLE,OpenVic2 +MAINMENU_TITLE,OpenVic MAINMENU_NEW_GAME,New Game MAINMENU_CONTINUE,Continue MAINMENU_MULTIPLAYER,Multiplayer diff --git a/game/localisation/fr_FR/menus.csv b/game/localisation/fr_FR/menus.csv index 2e395f7..034d843 100644 --- a/game/localisation/fr_FR/menus.csv +++ b/game/localisation/fr_FR/menus.csv @@ -1,6 +1,6 @@ ,, Main Menu -MAINMENU_TITLE,OpenVic2 +MAINMENU_TITLE,OpenVic MAINMENU_NEW_GAME,Nouveau Jeu MAINMENU_CONTINUE,Continuer MAINMENU_MULTIPLAYER,Multijouer diff --git a/game/project.godot b/game/project.godot index f0b3e36..441001d 100644 --- a/game/project.godot +++ b/game/project.godot @@ -10,7 +10,7 @@ config_version=5 [application] -config/name="OpenVic2" +config/name="OpenVic" config/description="A faithful recreation of Victoria 2: Heart of Darkness with a focus on enhancing performance, multiplayer stability, and modability for modern machines." run/main_scene="res://src/GameStart.tscn" config/features=PackedStringArray("4.0", "Forward Plus") @@ -40,7 +40,7 @@ window/stretch/aspect="ignore" [editor_plugins] -enabled=PackedStringArray("res://addons/keychain/plugin.cfg", "res://addons/openvic2-plugin/plugin.cfg") +enabled=PackedStringArray("res://addons/keychain/plugin.cfg", "res://addons/openvic-plugin/plugin.cfg") [gui] @@ -110,7 +110,7 @@ locale/localisation_path="res://localisation" limits/message_queue/max_size_kb=16384 -[openvic2] +[openvic] settings/settings_file_path="user://settings.cfg" data/saves_directory="user://saves" diff --git a/game/src/ArgumentParser.gd b/game/src/ArgumentParser.gd index 3f77919..f1ee371 100644 --- a/game/src/ArgumentParser.gd +++ b/game/src/ArgumentParser.gd @@ -1,7 +1,7 @@ @tool extends Node -const argument_setting_path := &"openvic2/data/arguments" +const argument_setting_path := &"openvic/data/arguments" @export var option_array : Array[ArgumentOption] = [ ArgumentOption.new( @@ -215,7 +215,7 @@ func _print_help(): var project_name : StringName = ProjectSettings.get_setting_with_override(&"application/config/name") var project_version : String = _GIT_INFO_.tag var project_hash : String = _GIT_INFO_.short_hash - var project_website : String = "https://openvic2.com" + var project_website : String = "https://openvic.com" var project_description : String = ProjectSettings.get_setting_with_override(&"application/config/description") print_rich( """ diff --git a/game/src/Autoload/Events/GameDebug.gd b/game/src/Autoload/Events/GameDebug.gd index 4e8931f..df7a23a 100644 --- a/game/src/Autoload/Events/GameDebug.gd +++ b/game/src/Autoload/Events/GameDebug.gd @@ -14,8 +14,8 @@ func _init(): set_debug_mode(true) func set_debug_mode(value : bool) -> void: - ProjectSettings.set_setting("openvic2/debug/enabled", value) + ProjectSettings.set_setting("openvic/debug/enabled", value) print("Set debug mode to: ", value) func is_debug_mode() -> bool: - return ProjectSettings.get_setting("openvic2/debug/enabled", false) + return ProjectSettings.get_setting("openvic/debug/enabled", false) diff --git a/game/src/Autoload/Events/Options.gd b/game/src/Autoload/Events/Options.gd index 6b9e089..fbeccef 100644 --- a/game/src/Autoload/Events/Options.gd +++ b/game/src/Autoload/Events/Options.gd @@ -16,7 +16,7 @@ func save_settings_to_file() -> void: func try_reset_settings() -> void: reset_settings.emit() -const settings_file_path_setting : String = "openvic2/settings/settings_file_path" +const settings_file_path_setting : String = "openvic/settings/settings_file_path" const settings_file_path_default : String = "user://settings.cfg" var _settings_file_path : String = ProjectSettings.get_setting(settings_file_path_setting, settings_file_path_default) diff --git a/game/src/Autoload/SaveManager.gd b/game/src/Autoload/SaveManager.gd index c653b2c..fb7806b 100644 --- a/game/src/Autoload/SaveManager.gd +++ b/game/src/Autoload/SaveManager.gd @@ -2,7 +2,7 @@ extends Node # Requirements # * FS-28 -const save_directory_setting := &"openvic2/data/saves_directory" +const save_directory_setting := &"openvic/data/saves_directory" var current_save : SaveResource var current_session_tag : StringName diff --git a/game/src/CreditsMenu/CreditsMenu.gd b/game/src/CreditsMenu/CreditsMenu.gd index 0e9df6b..0db4d7d 100644 --- a/game/src/CreditsMenu/CreditsMenu.gd +++ b/game/src/CreditsMenu/CreditsMenu.gd @@ -169,7 +169,7 @@ func _add_licenses() -> void: license_list.add_child(HSeparator.new()) var license_info := { - "OpenVic2": ["GPLv3", "https://github.com/OpenVic2Project/OpenVic2/blob/main/LICENSE.md"], + "OpenVic": ["GPLv3", "https://github.com/OpenVicProject/OpenVic/blob/main/LICENSE.md"], "Godot": ["MIT", "https://github.com/godotengine/godot/blob/master/LICENSE.txt"], "FreeType": ["FreeType License", "https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/FTL.TXT"], "ENet": ["MIT", "http://enet.bespin.org/License.html"], diff --git a/game/src/Utility/GIT_INFO.gd b/game/src/Utility/GIT_INFO.gd index dc02349..eddb7a1 100644 --- a/game/src/Utility/GIT_INFO.gd +++ b/game/src/Utility/GIT_INFO.gd @@ -1,4 +1,4 @@ -### IMPORTANT: IF LOCATION IS CHANGED, PLEASE UPDATE IN addon/openvic2-plugin/ReleaseExportEditorPlugin +### IMPORTANT: IF LOCATION IS CHANGED, PLEASE UPDATE IN addon/openvic-plugin/ReleaseExportEditorPlugin class_name _GIT_INFO_ extends RefCounted |