Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 fix for game update 1.0.1.3 #4

Merged
merged 1 commit into from
Oct 31, 2024
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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends "res://singletons/utils.gd"


func _ready():
var ContentLoader = get_node("/root/ModLoader/Darkly77-ContentLoader/ContentLoader")
ContentLoader._install_data()

This file was deleted.

29 changes: 24 additions & 5 deletions root/mods-unpacked/Darkly77-ContentLoader/manifest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
{
"name": "ContentLoader",
"namespace": "Darkly77",
"version_number": "6.2.1",
"version_number": "6.2.2",
"description": "Helper for mods to add new items, weapons, characters and challenges",
"website_url": "https://github.com/BrotatoMods/Brotato-ContentLoader",
"dependencies": [
"Darkly77-Brotils"
],
"extra": {
"godot": {
"incompatibilities": [],
"authors": [
"Darkly77",
"dami",
"KANA"
],
"compatible_mod_loader_version": ["4.1.0"],
"compatible_game_version": ["0.8.0.3"],
"config_defaults": {}
"optional_dependencies": [

],
"compatible_game_version": [
"1.0.1.3"
],
"compatible_mod_loader_version": [
"6.2.0"
],
"incompatibilities": [

],
"load_before": [

],
"tags": [

],
"config_schema": {

},
"description_rich": "",
"image": null
}
}
}
13 changes: 9 additions & 4 deletions root/mods-unpacked/Darkly77-ContentLoader/mod_main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ var ext_dir = ""
# Main
# =============================================================================

func _init(modLoader = ModLoader):
func _init():
ModLoaderLog.info("Init", CLOADER_LOG)
dir = ModLoaderMod.get_unpacked_dir() + "Darkly77-ContentLoader/"
ext_dir = dir + "extensions/"

_add_child_class()
_install_extensions(modLoader)
install_script_extensions()


func _ready():
Expand All @@ -24,14 +24,19 @@ func _ready():
# Custom
# =============================================================================

func _install_extensions(modLoader):
func install_script_extensions():
# DEFERRED SETUP
# This runs ContentLoader._install_data(), but running that func needs to be
# deferred until after progress_data has finished setting vanilla things up.
# Note: Originally, this extended progress_data, but was changed to the
# last autoload (DebugService/debug_service) to allow other mods to also
# wait for ProgressData (or ItemService) to be ready first
ModLoaderMod.install_script_extension(ext_dir + "singletons/debug_service.gd")
# UPDATE 6.2.2: Changed it to call ContentLoader._install_data() in
# Utils, so ItemService is populated with all modded data before ProgressData
# deserializes the save data. With Brotato Patch 1.0.1.3, the function
# cache_effect_hashes was introduced to ProgressData and causes an error if
# the modded data is not available in ItemService.
ModLoaderMod.install_script_extension("res://mods-unpacked/Darkly77-ContentLoader/extensions/singletons/utils.gd")


# Add ContentLoader as a child of this node (which itself is a child of ModLoader)
Expand Down