diff --git a/reframework/autorun/MHR_Overlay/Buffs/buffs.lua b/reframework/autorun/MHR_Overlay/Buffs/buffs.lua index a5d87d0..a21eeda 100644 --- a/reframework/autorun/MHR_Overlay/Buffs/buffs.lua +++ b/reframework/autorun/MHR_Overlay/Buffs/buffs.lua @@ -114,7 +114,7 @@ end function this.update() if singletons.player_manager == nil then - error_handler.report("buffs.update", "Failed to Access Data: player_manager"); + error_handler.report("buffs.update", "Failed to access Data: player_manager"); return; end @@ -126,7 +126,7 @@ function this.update() local master_player = find_master_player_method:call(singletons.player_manager); if master_player == nil then - error_handler.report("buffs.update", "Failed to Access Data: master_player"); + error_handler.report("buffs.update", "Failed to access Data: master_player"); return; end @@ -134,7 +134,7 @@ function this.update() if master_player_data ~= nil then consumables.update(master_player_data); else - error_handler.report("buffs.update", "Failed to Access Data: master_player_data"); + error_handler.report("buffs.update", "Failed to access Data: master_player_data"); end local music_data_array = music_data_field:get_data(master_player); @@ -145,7 +145,7 @@ function this.update() for i = 0, length do local music_data = get_value_method:call(music_data_array, i); if music_data == nil then - error_handler.report("buffs.update", "Failed to Access Data: music_data No." .. tostring(i)); + error_handler.report("buffs.update", "Failed to access Data: music_data No." .. tostring(i)); music_data = ""; end @@ -154,7 +154,7 @@ function this.update() melody_effects.update(music_data_table); else - error_handler.report("buffs.update", "Failed to Access Data: music_data_array"); + error_handler.report("buffs.update", "Failed to access Data: music_data_array"); end end diff --git a/reframework/autorun/MHR_Overlay/Buffs/consumables.lua b/reframework/autorun/MHR_Overlay/Buffs/consumables.lua index 5f10018..3692c6a 100644 --- a/reframework/autorun/MHR_Overlay/Buffs/consumables.lua +++ b/reframework/autorun/MHR_Overlay/Buffs/consumables.lua @@ -100,7 +100,7 @@ local get_value_method = system_array_type_def:get_method("GetValue(System.Int32 function this.update(player_data) local item_parameter = get_ref_item_parameter_method:call(singletons.player_manager); if item_parameter == nil then - error_handler.report("consumables.update", "Failed to Access Data: item_parameter"); + error_handler.report("consumables.update", "Failed to access Data: item_parameter"); return; end @@ -117,7 +117,7 @@ end function this.update_demondrug(player_data, item_parameter) local demondrug_value = atk_up_alive_field:get_data(player_data); if demondrug_value == nil then - error_handler.report("consumables.update_demondrug", "Failed to Access Data: demondrug_value"); + error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_value"); return; end @@ -129,13 +129,13 @@ function this.update_demondrug(player_data, item_parameter) local demondrug_const_value = demondrug_atk_up_field:get_data(item_parameter); if demondrug_const_value == nil then - error_handler.report("consumables.update_demondrug", "Failed to Access Data: demondrug_const_value"); + error_handler.report("consumables.update_demondrug", "Failed to access Data: demondrug_const_value"); return; end local mega_demondrug_const_value = great_demondrug_atk_up_field:get_data(item_parameter); if mega_demondrug_const_value == nil then - error_handler.report("consumables.update_demondrug", "Failed to Access Data: mega_demondrug_const_value"); + error_handler.report("consumables.update_demondrug", "Failed to access Data: mega_demondrug_const_value"); return; end if demondrug_value == demondrug_const_value then @@ -165,7 +165,7 @@ end function this.update_armorskin(player_data, item_parameter) local armorskin_value = def_up_alive_field:get_data(player_data); if armorskin_value == nil then - error_handler.report("consumables.update_armorskin", "Failed to Access Data: armorskin_value"); + error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_value"); return; end @@ -177,13 +177,13 @@ function this.update_armorskin(player_data, item_parameter) local armorskin_const_value = armorskin_def_up_field:get_data(item_parameter); if armorskin_const_value == nil then - error_handler.report("consumables.update_armorskin", "Failed to Access Data: armorskin_const_value"); + error_handler.report("consumables.update_armorskin", "Failed to access Data: armorskin_const_value"); return; end local mega_armorskin_const_value = great_armorskin_def_up_field:get_data(item_parameter); if mega_armorskin_const_value == nil then - error_handler.report("consumables.update_armorskin", "Failed to Access Data: mega_armorskin_const_value"); + error_handler.report("consumables.update_armorskin", "Failed to access Data: mega_armorskin_const_value"); return; end @@ -214,7 +214,7 @@ end function this.update_might_seed(player_data, item_parameter) local might_seed_value = atk_up_buff_second_field:get_data(player_data); if might_seed_value == nil then - error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_value"); + error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_value"); return; end @@ -225,7 +225,7 @@ function this.update_might_seed(player_data, item_parameter) local might_seed_timer = atk_up_buff_second_timer_field:get_data(player_data); if might_seed_timer == nil then - error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_timer"); + error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_timer"); return; end @@ -233,7 +233,7 @@ function this.update_might_seed(player_data, item_parameter) if buff == nil then local might_seed_timer_const_value = might_seed_timer_field:get_data(item_parameter); if might_seed_timer_const_value == nil then - error_handler.report("consumables.update_might_seed", "Failed to Access Data: might_seed_timer_const_value"); + error_handler.report("consumables.update_might_seed", "Failed to access Data: might_seed_timer_const_value"); return; end @@ -250,7 +250,7 @@ end function this.update_adamant_seed(player_data, item_parameter) local adamant_seed_value = def_up_buff_second_field:get_data(player_data); if adamant_seed_value == nil then - error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_value"); + error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_value"); return; end @@ -261,7 +261,7 @@ function this.update_adamant_seed(player_data, item_parameter) local adamant_seed_timer = def_up_buff_second_timer_field:get_data(player_data); if adamant_seed_timer == nil then - error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_timer"); + error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_timer"); return; end @@ -269,7 +269,7 @@ function this.update_adamant_seed(player_data, item_parameter) if buff == nil then local adamant_seed_timer_const_value = adamant_seed_timer_field:get_data(item_parameter); if adamant_seed_timer_const_value == nil then - error_handler.report("consumables.update_adamant_seed", "Failed to Access Data: adamant_seed_timer_const_value"); + error_handler.report("consumables.update_adamant_seed", "Failed to access Data: adamant_seed_timer_const_value"); return; end @@ -286,7 +286,7 @@ end function this.update_demon_powder(player_data, item_parameter) local demon_powder_value = atk_up_item_second_field:get_data(player_data); if demon_powder_value == nil then - error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_value"); + error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_value"); return; end @@ -297,7 +297,7 @@ function this.update_demon_powder(player_data, item_parameter) local demon_powder_timer = atk_up_item_second_timer_field:get_data(player_data); if demon_powder_timer == nil then - error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_timer"); + error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_timer"); return; end @@ -305,7 +305,7 @@ function this.update_demon_powder(player_data, item_parameter) if buff == nil then local demon_powder_timer_const_value = demondrug_powder_timer_field:get_data(item_parameter); if demon_powder_timer_const_value == nil then - error_handler.report("consumables.update_demon_powder", "Failed to Access Data: demon_powder_timer_const_value"); + error_handler.report("consumables.update_demon_powder", "Failed to access Data: demon_powder_timer_const_value"); return; end @@ -322,7 +322,7 @@ end function this.update_hardshell_powder(player_data, item_parameter) local hardshell_powder_value = def_up_item_second_field:get_data(player_data); if hardshell_powder_value == nil then - error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: hardshell_powder_value"); + error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: hardshell_powder_value"); return; end @@ -333,7 +333,7 @@ function this.update_hardshell_powder(player_data, item_parameter) local hardshell_powder_timer = def_up_item_second_timer_field:get_data(player_data); if hardshell_powder_timer == nil then - error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: hardshell_powder_timer"); + error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: hardshell_powder_timer"); return; end @@ -341,7 +341,7 @@ function this.update_hardshell_powder(player_data, item_parameter) if buff == nil then local demon_powder_timer_const_value = armorskin_powder_timer_field:get_data(item_parameter); if demon_powder_timer_const_value == nil then - error_handler.report("consumables.update_hardshell_powder", "Failed to Access Data: demon_powder_timer_const_value"); + error_handler.report("consumables.update_hardshell_powder", "Failed to access Data: demon_powder_timer_const_value"); return; end @@ -358,7 +358,7 @@ end function this.update_immunizer(player_data, item_parameter) local immunizer_timer = vitalizer_timer_field:get_data(player_data); if immunizer_timer == nil then - error_handler.report("consumables.update_immunizer", "Failed to Access Data: immunizer_timer"); + error_handler.report("consumables.update_immunizer", "Failed to access Data: immunizer_timer"); return; end @@ -371,7 +371,7 @@ function this.update_immunizer(player_data, item_parameter) if buff == nil then local immunizer_timer_const_value = vitalizer_timer_const_field:get_data(item_parameter); if immunizer_timer_const_value == nil then - error_handler.report("consumables.update_immunizer", "Failed to Access Data: immunizer_timer_const_value"); + error_handler.report("consumables.update_immunizer", "Failed to access Data: immunizer_timer_const_value"); return; end @@ -387,7 +387,7 @@ end function this.update_dash_juice(player_data, item_parameter) local dash_juice_timer = stamina_up_buff_second_timer_field:get_data(player_data); if dash_juice_timer == nil then - error_handler.report("consumables.update_dash_juice", "Failed to Access Data: dash_juice_timer"); + error_handler.report("consumables.update_dash_juice", "Failed to access Data: dash_juice_timer"); return; end @@ -401,7 +401,7 @@ function this.update_dash_juice(player_data, item_parameter) if buff == nil then local dash_juice_timer_const_value = stamina_up_buff_second_field:get_data(item_parameter); if dash_juice_timer_const_value == nil then - error_handler.report("consumables.update_dash_juice", "Failed to Access Data: dash_juice_timer"); + error_handler.report("consumables.update_dash_juice", "Failed to access Data: dash_juice_timer"); return; end diff --git a/reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua b/reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua index b33c51c..5e4af84 100644 --- a/reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua +++ b/reframework/autorun/MHR_Overlay/Buffs/melody_effects.lua @@ -116,7 +116,7 @@ function this.update(melody_data_table) local melody_timer = time_field:get_data(melody_data); if melody_timer == nil then - error_handler.report("melody_effects.update", "Failed to Access Data: melody_timer No. " .. tostring(lua_index - 1)); + error_handler.report("melody_effects.update", "Failed to access Data: melody_timer No. " .. tostring(lua_index - 1)); goto continue; end diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/damage_hook.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/damage_hook.lua index 4f18211..d61051a 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/damage_hook.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/damage_hook.lua @@ -107,13 +107,13 @@ function this.update_damage(enemy, enemy_calc_damage_info) local is_large_monster = is_boss_enemy_method:call(enemy); if is_large_monster == nil then - error_handler.report("damage_hook.update_damage", "Failed to Access Data: is_large_monster"); + error_handler.report("damage_hook.update_damage", "Failed to access Data: is_large_monster"); return; end local dead_or_captured = check_die_method:call(enemy); if dead_or_captured == nil then - error_handler.report("damage_hook.update_damage", "Failed to Access Data: dead_or_captured"); + error_handler.report("damage_hook.update_damage", "Failed to access Data: dead_or_captured"); return; end @@ -300,7 +300,7 @@ function this.on_stock_direct_marionette_finish_shoot_hit_parts_damage(enemy, da end if player == nil then - error_handler.report("damage_hook.on_stock_direct_marionette_finish_shoot_hit_parts_damage", "Failed to Create Player Entry"); + error_handler.report("damage_hook.on_stock_direct_marionette_finish_shoot_hit_parts_damage", "Failed to create Player Entry"); return; end @@ -366,7 +366,7 @@ function this.on_anomaly_core_break(anomaly_core_part) local anomaly_core_break_damage_rate = get_mystery_core_break_damage_rate_method:call(anomaly_monster.enemy); if anomaly_core_break_damage_rate == nil then - error_handler.report("damage_hook.on_anomaly_core_break", "Failed to Access Data: anomaly_core_break_damage_rate"); + error_handler.report("damage_hook.on_anomaly_core_break", "Failed to access Data: anomaly_core_break_damage_rate"); return; end diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua index ba465d0..5611319 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua @@ -133,19 +133,19 @@ function this.update_servant_list() local cached_config = config.current_config.damage_meter_UI; if singletons.servant_manager == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_manager"); + error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_manager"); return; end local quest_servant_id_list = get_quest_servant_id_list_method:call(singletons.servant_manager); if quest_servant_id_list == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: quest_servant_id_list"); + error_handler.report("non_players.update_servant_list", "Failed to access Data: quest_servant_id_list"); return; end local servant_count = servant_get_count_method:call(quest_servant_id_list); if servant_count == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_count"); + error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_count"); return; end @@ -153,20 +153,20 @@ function this.update_servant_list() for i = 0, servant_count - 1 do local servant_id = servant_get_item_method:call(quest_servant_id_list, i); if servant_id == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_id No." .. tostring(i)); + error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_id No." .. tostring(i)); goto continue; end local ai_control = get_ai_control_by_servant_id_method:call(singletons.servant_manager, servant_id); if ai_control == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: ai_control No." .. tostring(i)); + error_handler.report("non_players.update_servant_list", "Failed to access Data: ai_control No." .. tostring(i)); goto continue; end local servant_info = get_servant_info_method:call(ai_control); if servant_info == nil then - error_handler.report("non_players.update_servant_list", "Failed to Access Data: servant_info No." .. tostring(i)); + error_handler.report("non_players.update_servant_list", "Failed to access Data: servant_info No." .. tostring(i)); goto continue; end @@ -218,11 +218,11 @@ function this.update_my_otomos() local first_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 0); if first_otomo == nil then - error_handler.report("non_players.update_my_otomos", "Failed to Access Data: first_otomo"); + error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo"); else local name = otomo_create_data_name_field:get_data(first_otomo); if name == nil then - error_handler.report("non_players.update_my_otomos", "Failed to Access Data: first_otomo -> name"); + error_handler.report("non_players.update_my_otomos", "Failed to access Data: first_otomo -> name"); end if name ~= nil and name ~= "" then @@ -241,11 +241,11 @@ function this.update_my_otomos() local second_otomo = get_master_otomo_info_method:call(singletons.otomo_manager, 1); if second_otomo == nil then - error_handler.report("non_players.update_my_otomos", "Failed to Access Data: second_otomo"); + error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo"); else local name = otomo_create_data_name_field:get_data(second_otomo); if name == nil then - error_handler.report("non_players.update_my_otomos", "Failed to Access Data: second_otomo -> name"); + error_handler.report("non_players.update_my_otomos", "Failed to access Data: second_otomo -> name"); end if name ~= nil and name ~= "" then @@ -268,20 +268,20 @@ function this.update_servant_otomos() local servant_otomo_list = get_servant_otomo_list_method:call(singletons.otomo_manager); if servant_otomo_list == nil then - error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo_list"); + error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list"); return; end local count = otomo_get_count_method:call(servant_otomo_list); if count == nil then - error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo_list -> count"); + error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo_list -> count"); return; end for i = 0, count - 1 do local servant_otomo = otomo_get_item_method:call(servant_otomo_list, i); if servant_otomo == nil then - error_handler.report("non_players.update_servant_otomos", "Failed to Access Data: servant_otomo No. " .. tostring(i)); + error_handler.report("non_players.update_servant_otomos", "Failed to access Data: servant_otomo No. " .. tostring(i)); goto continue end @@ -292,7 +292,7 @@ function this.update_servant_otomos() local member_id = otomo_create_data:get_field("MemberID"); if name == nil then - error_handler.report("non_players.update_servant_otomos", string.format("Failed to Access Data: servant_otomo No. %d -> name", i)); + error_handler.report("non_players.update_servant_otomos", string.format("Failed to access Data: servant_otomo No. %d -> name", i)); goto continue; end @@ -314,33 +314,33 @@ function this.update_otomos(otomo_info_field_) local cached_config = config.current_config.damage_meter_UI; if singletons.lobby_manager == nil then - error_handler.report("non_players.update_otomos", "Failed to Access Data: lobby_manager"); + error_handler.report("non_players.update_otomos", "Failed to access Data: lobby_manager"); return; end -- other players local otomo_info_list = otomo_info_field_:get_data(singletons.lobby_manager); if otomo_info_list == nil then - error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info_list"); + error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list"); return; end local count = otomo_info_get_count_method:call(otomo_info_list); if count == nil then - error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info_list -> count"); + error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info_list -> count"); return; end for id = 0, count - 1 do local otomo_info = otomo_info_get_item_method:call(otomo_info_list, id); if otomo_info == nil then - error_handler.report("non_players.update_otomos", "Failed to Access Data: otomo_info No. " .. tostring(id)); + error_handler.report("non_players.update_otomos", "Failed to access Data: otomo_info No. " .. tostring(id)); goto continue; end local name = otomo_info_name_field:get_data(otomo_info); if name == nil then - error_handler.report("non_players.update_otomos", string.format("Failed to Access Data: otomo_info No. %d -> name", id)); + error_handler.report("non_players.update_otomos", string.format("Failed to access Data: otomo_info No. %d -> name", id)); goto continue; end diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua index 9bf4da9..a27e9a5 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua @@ -452,7 +452,7 @@ local get_pos_field = player_base_type_def:get_method("get_Pos"); function this.update_myself_position() if singletons.player_manager == nil then - error_handler.report("players.update_myself_position", "Failed to Access Data: player_manager"); + error_handler.report("players.update_myself_position", "Failed to access Data: player_manager"); return; end @@ -463,13 +463,13 @@ function this.update_myself_position() local master_player = find_master_player_method:call(singletons.player_manager); if master_player == nil then - error_handler.report("players.update_myself_position", "Failed to Access Data: master_player"); + error_handler.report("players.update_myself_position", "Failed to access Data: master_player"); return; end local position = get_pos_field:call(master_player); if position == nil then - error_handler.report("players.update_myself_position", "Failed to Access Data: position"); + error_handler.report("players.update_myself_position", "Failed to access Data: position"); end this.myself_position = position; @@ -521,25 +521,25 @@ function this.update_player_list_(hunter_info_field_) local cached_config = config.current_config.damage_meter_UI; if singletons.lobby_manager == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: lobby_manager"); + error_handler.report("players.update_player_list_", "Failed to access Data: lobby_manager"); return; end if singletons.progress_manager == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: progress_manager"); + error_handler.report("players.update_player_list_", "Failed to access Data: progress_manager"); return; end -- myself player local myself_player_info = my_hunter_info_field:get_data(singletons.lobby_manager); if myself_player_info == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: myself_player_info"); + error_handler.report("players.update_player_list_", "Failed to access Data: myself_player_info"); return; end local myself_player_name = name_field:get_data(myself_player_info); if myself_player_name == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: myself_player_name"); + error_handler.report("players.update_player_list_", "Failed to access Data: myself_player_name"); return; end @@ -549,7 +549,7 @@ function this.update_player_list_(hunter_info_field_) local myself_id = get_master_player_id_method:call(singletons.player_manager); if myself_id == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: myself_id"); + error_handler.report("players.update_player_list_", "Failed to access Data: myself_id"); return; end @@ -562,26 +562,26 @@ function this.update_player_list_(hunter_info_field_) -- other players local player_info_array = hunter_info_field_:get_data(singletons.lobby_manager); if player_info_array == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: player_info_array"); + error_handler.report("players.update_player_list_", "Failed to access Data: player_info_array"); return; end local count = get_count_method:call(player_info_array); if count == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: player_info_array -> count"); + error_handler.report("players.update_player_list_", "Failed to access Data: player_info_array -> count"); return; end for i = 0, count - 1 do local player_info = get_item_method:call(player_info_array, i); if player_info == nil then - error_handler.report("players.update_player_list_", "Failed to Access Data: player_info No. " .. tostring(i)); + error_handler.report("players.update_player_list_", "Failed to access Data: player_info No. " .. tostring(i)); goto continue; end local id = member_index_field:get_data(player_info); if id == nil then - error_handler.report("players.update_player_list_", string.format("Failed to Access Data: player_info No. %d -> id", i)); + error_handler.report("players.update_player_list_", string.format("Failed to access Data: player_info No. %d -> id", i)); goto continue; end @@ -590,7 +590,7 @@ function this.update_player_list_(hunter_info_field_) local name = name_field:get_data(player_info); if name == nil then - error_handler.report("players.update_player_list_", string.format("Failed to Access Data: player_info No. %d -> name", i)); + error_handler.report("players.update_player_list_", string.format("Failed to access Data: player_info No. %d -> name", i)); goto continue; end diff --git a/reframework/autorun/MHR_Overlay/Endemic_Life/env_creature.lua b/reframework/autorun/MHR_Overlay/Endemic_Life/env_creature.lua index e693133..01efd8b 100644 --- a/reframework/autorun/MHR_Overlay/Endemic_Life/env_creature.lua +++ b/reframework/autorun/MHR_Overlay/Endemic_Life/env_creature.lua @@ -81,13 +81,13 @@ local get_pos_method = environment_creature_base_type_def:get_method("get_Pos"); function this.init(creature, REcreature) local creature_type = creature_type_field:get_data(REcreature); if creature_type == nil then - error_handler.report("env_creature.init", "Failed to Access Data: creature_type"); + error_handler.report("env_creature.init", "Failed to access Data: creature_type"); return; end local creature_name = get_env_creature_name_message_method:call(singletons.message_manager, creature_type); if creature_name == nil then - error_handler.report("env_creature.init", "Failed to Access Data: creature_name"); + error_handler.report("env_creature.init", "Failed to access Data: creature_name"); return; end @@ -114,7 +114,7 @@ function this.update_position(REcreature, creature) local position = get_pos_method:call(REcreature); if position == nil then - error_handler.report("env_creature.update_position", "Failed to Access Data: position"); + error_handler.report("env_creature.update_position", "Failed to access Data: position"); end creature.position = position; @@ -131,7 +131,7 @@ function this.update(REcreature, creature) local is_inactive = creature_is_inactive_field:get_data(REcreature); if is_inactive == nil then - error_handler.report("env_creature.update", "Failed to Access Data: is_inactive"); + error_handler.report("env_creature.update", "Failed to access Data: is_inactive"); end creature.is_inactive = is_inactive; diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/keyboard.lua b/reframework/autorun/MHR_Overlay/Game_Handler/keyboard.lua index 43be77d..c02992d 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/keyboard.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/keyboard.lua @@ -336,13 +336,13 @@ this.keys = { function this.update() if singletons.game_keyboard == nil then - error_handler.report("keyboard.update", "Failed to Access Data: game_keyboard"); + error_handler.report("keyboard.update", "Failed to access Data: game_keyboard"); return; end local hard_keyboard = hard_keyboard_field:get_data(singletons.game_keyboard); if hard_keyboard == nil then - error_handler.report("keyboard.update", "Failed to Access Data: hard_keyboard"); + error_handler.report("keyboard.update", "Failed to access Data: hard_keyboard"); return; end @@ -495,7 +495,7 @@ function this.check_hotkeys(hard_keyboard) local all_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.all_UI.key)); if all_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: all_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: all_UI_key_release"); elseif all_UI_key_release then local is_any_enabled = config.current_config.time_UI.enabled @@ -521,7 +521,7 @@ function this.check_hotkeys(hard_keyboard) local small_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.small_monster_UI.key)); if small_monster_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: small_monster_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: small_monster_UI_key_release"); elseif small_monster_UI_key_release then config.current_config.small_monster_UI.enabled = not config.current_config.small_monster_UI.enabled; @@ -535,7 +535,7 @@ function this.check_hotkeys(hard_keyboard) local large_monster_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_UI.key)); if large_monster_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_UI_key_release"); elseif large_monster_UI_key_release then local is_any_enabled = config.current_config.large_monster_UI.dynamic.enabled @@ -555,7 +555,7 @@ function this.check_hotkeys(hard_keyboard) local large_monster_dynamic_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_dynamic_UI.key)); if large_monster_dynamic_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_dynamic_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_dynamic_UI_key_release"); elseif large_monster_dynamic_UI_key_release then config.current_config.large_monster_UI.dynamic.enabled = not config.current_config.large_monster_UI.dynamic.enabled; @@ -569,7 +569,7 @@ function this.check_hotkeys(hard_keyboard) local large_monster_static_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_static_UI.key)); if large_monster_static_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_static_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_static_UI_key_release"); elseif large_monster_static_UI_key_release then config.current_config.large_monster_UI.static.enabled = not config.current_config.large_monster_UI.static.enabled; @@ -583,7 +583,7 @@ function this.check_hotkeys(hard_keyboard) local large_monster_highlighted_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.large_monster_highlighted_UI.key)); if large_monster_highlighted_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: large_monster_highlighted_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: large_monster_highlighted_UI_key_release"); elseif large_monster_highlighted_UI_key_release then config.current_config.large_monster_UI.highlighted.enabled = not config.current_config.large_monster_UI.highlighted.enabled; @@ -597,7 +597,7 @@ function this.check_hotkeys(hard_keyboard) local time_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.time_UI.key)); if time_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: time_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: time_UI_key_release"); elseif time_UI_key_release then config.current_config.time_UI.enabled = not config.current_config.time_UI.enabled; @@ -611,7 +611,7 @@ function this.check_hotkeys(hard_keyboard) local damage_meter_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.damage_meter_UI.key)); if damage_meter_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: damage_meter_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: damage_meter_UI_key_release"); elseif damage_meter_UI_key_release then config.current_config.damage_meter_UI.enabled = not config.current_config.damage_meter_UI.enabled; @@ -625,7 +625,7 @@ function this.check_hotkeys(hard_keyboard) local endemic_life_UI_key_release = get_release_method:call(hard_keyboard, math.tointeger(cached_config.endemic_life_UI.key)); if endemic_life_UI_key_release == nil then - error_handler.report("keyboard.check_hotkeys", "Failed to Access Data: endemic_life_UI_key_release"); + error_handler.report("keyboard.check_hotkeys", "Failed to access Data: endemic_life_UI_key_release"); elseif endemic_life_UI_key_release then config.current_config.endemic_life_UI.enabled = not config.current_config.endemic_life_UI.enabled; diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/quest_status.lua b/reframework/autorun/MHR_Overlay/Game_Handler/quest_status.lua index 89856f2..33e7f0f 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/quest_status.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/quest_status.lua @@ -155,7 +155,7 @@ end function this.get_cart_count() local death_num = get_death_num_method:call(singletons.quest_manager); if death_num == nil then - error_handler.report("quest_status.get_cart_count", "Failed to Access Data: death_num"); + error_handler.report("quest_status.get_cart_count", "Failed to access Data: death_num"); end this.cart_count = death_num; @@ -164,7 +164,7 @@ end function this.get_max_cart_count() local quest_life = get_quest_life_method:call(singletons.quest_manager); if quest_life == nil then - error_handler.report("quest_status.get_max_cart_count", "Failed to Access Data: quest_life"); + error_handler.report("quest_status.get_max_cart_count", "Failed to access Data: quest_life"); end this.max_cart_count = quest_life; @@ -185,7 +185,7 @@ function this.on_demo_request_activation(request_data_base) local request_data_type = request_data_base:call("get_Type"); if request_data_type == nil then - error_handler.report("quest_status.on_demo_request_activation", "Failed to Access Data: request_data_type"); + error_handler.report("quest_status.on_demo_request_activation", "Failed to access Data: request_data_type"); return; end @@ -317,13 +317,13 @@ end function this.init() if singletons.quest_manager == nil then - error_handler.report("quest_status.init", "Failed to Access Data: quest_manager"); + error_handler.report("quest_status.init", "Failed to access Data: quest_manager"); return; end local new_quest_status = get_status_method:call(singletons.game_manager); if new_quest_status == nil then - error_handler.report("quest_status.init", "Failed to Access Data: new_quest_status"); + error_handler.report("quest_status.init", "Failed to access Data: new_quest_status"); return; end @@ -344,13 +344,13 @@ end function this.update_is_online() if singletons.lobby_manager == nil then - error_handler.report("quest_status.update_is_online", "Failed to Access Data: lobby_manager"); + error_handler.report("quest_status.update_is_online", "Failed to access Data: lobby_manager"); return; end local is_quest_online = is_quest_online_method:call(singletons.lobby_manager); if is_quest_online == nil then - error_handler.report("quest_status.update_is_online", "Failed to Access Data: is_quest_online"); + error_handler.report("quest_status.update_is_online", "Failed to access Data: is_quest_online"); return; end @@ -359,13 +359,13 @@ end --[[function quest_status.update_is_quest_host() if singletons.lobby_manager == nil then - error_handler.report("quest_status.update_is_quest_host", "Failed to Access Data: lobby_manager"); + error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: lobby_manager"); return; end local is_quest_host = is_quest_host_method:call(singletons.lobby_manager, true); if is_quest_host == nil then - error_handler.report("quest_status.update_is_quest_host", "Failed to Access Data: is_quest_host"); + error_handler.report("quest_status.update_is_quest_host", "Failed to access Data: is_quest_host"); return; end @@ -374,13 +374,13 @@ end--]] function this.update_is_training_area() if singletons.village_area_manager == nil then - error_handler.report("quest_status.update_is_training_area", "Failed to Access Data: village_area_manager"); + error_handler.report("quest_status.update_is_training_area", "Failed to access Data: village_area_manager"); return; end local is_training_area = check_current_area_training_area_method:call(singletons.village_area_manager); if is_training_area == nil then - error_handler.report("quest_status.update_is_training_area", "Failed to Access Data: is_training_area"); + error_handler.report("quest_status.update_is_training_area", "Failed to access Data: is_training_area"); return; end diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua b/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua index d72bc0b..b6fd20e 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/screen.lua @@ -73,26 +73,26 @@ function this.get_game_window_size() scene_view = sdk.call_native_func(singletons.scene_manager, sdk.find_type_definition("via.SceneManager") , "get_MainView"); if scene_view == nil then - error_handler.report("screen.get_game_window_size", "Failed to Access Data: scene_view"); + error_handler.report("screen.get_game_window_size", "Failed to access Data: scene_view"); return; end end local size = get_size_method:call(scene_view); if size == nil then - error_handler.report("screen.get_game_window_size", "Failed to Access Data: size"); + error_handler.report("screen.get_game_window_size", "Failed to access Data: size"); return; end local screen_width = width_field:get_data(size); if screen_width == nil then - error_handler.report("screen.get_game_window_size", "Failed to Access Data: screen_width"); + error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_width"); return; end local screen_height = height_field:get_data(size); if screen_height == nil then - error_handler.report("screen.get_game_window_size", "Failed to Access Data: screen_height"); + error_handler.report("screen.get_game_window_size", "Failed to access Data: screen_height"); return; end diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/singletons.lua b/reframework/autorun/MHR_Overlay/Game_Handler/singletons.lua index cffc646..1acfbf7 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/singletons.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/singletons.lua @@ -67,7 +67,7 @@ end function this.init_message_manager() this.message_manager = sdk.get_managed_singleton("snow.gui.MessageManager"); if this.message_manager == nil then - error_handler.report("singletons.init_message_manager", "Failed to Access Data: message_manager"); + error_handler.report("singletons.init_message_manager", "Failed to access Data: message_manager"); end return this.message_manager; @@ -76,7 +76,7 @@ end function this.init_enemy_manager() this.enemy_manager = sdk.get_managed_singleton("snow.enemy.EnemyManager"); if this.enemy_manager == nil then - error_handler.report("singletons.init_enemy_manager", "Failed to Access Data: enemy_manager"); + error_handler.report("singletons.init_enemy_manager", "Failed to access Data: enemy_manager"); end return this.enemy_manager; @@ -85,7 +85,7 @@ end function this.init_lobby_manager() this.lobby_manager = sdk.get_managed_singleton("snow.LobbyManager"); if this.lobby_manager == nil then - error_handler.report("singletons.init_lobby_manager", "Failed to Access Data: lobby_manager"); + error_handler.report("singletons.init_lobby_manager", "Failed to access Data: lobby_manager"); return false; end @@ -95,7 +95,7 @@ end function this.init_progress_manager() this.progress_manager = sdk.get_managed_singleton("snow.progress.ProgressManager"); if this.progress_manager == nil then - error_handler.report("singletons.init_lobby_manager", "Failed to Access Data: progress_manager"); + error_handler.report("singletons.init_lobby_manager", "Failed to access Data: progress_manager"); return false; end @@ -105,7 +105,7 @@ end function this.init_quest_manager() this.quest_manager = sdk.get_managed_singleton("snow.QuestManager"); if this.quest_manager == nil then - error_handler.report("singletons.init_quest_manager", "Failed to Access Data: quest_manager"); + error_handler.report("singletons.init_quest_manager", "Failed to access Data: quest_manager"); end return this.quest_manager; @@ -114,7 +114,7 @@ end function this.init_player_manager() this.player_manager = sdk.get_managed_singleton("snow.player.PlayerManager"); if this.player_manager == nil then - error_handler.report("singletons.init_player_manager", "Failed to Access Data: player_manager"); + error_handler.report("singletons.init_player_manager", "Failed to access Data: player_manager"); end return this.player_manager; @@ -123,7 +123,7 @@ end function this.init_village_area_manager() this.village_area_manager = sdk.get_managed_singleton("snow.VillageAreaManager"); if this.village_area_manager == nil then - error_handler.report("singletons.init_village_area_manager", "Failed to Access Data: village_area_manager"); + error_handler.report("singletons.init_village_area_manager", "Failed to access Data: village_area_manager"); end return this.village_area_manager; @@ -132,7 +132,7 @@ end function this.init_gui_manager() this.gui_manager = sdk.get_managed_singleton("snow.gui.GuiManager"); if this.gui_manager == nil then - error_handler.report("singletons.init_gui_manager", "Failed to Access Data: gui_manager"); + error_handler.report("singletons.init_gui_manager", "Failed to access Data: gui_manager"); end return this.gui_manager; @@ -141,7 +141,7 @@ end function this.init_game_keyboard() this.game_keyboard = sdk.get_managed_singleton("snow.GameKeyboard"); if this.game_keyboard == nil then - error_handler.report("singletons.init_game_keyboard", "Failed to Access Data: game_keyboard"); + error_handler.report("singletons.init_game_keyboard", "Failed to access Data: game_keyboard"); end return this.game_keyboard; @@ -150,7 +150,7 @@ end function this.init_scene_manager() this.scene_manager = sdk.get_native_singleton("via.SceneManager"); if this.scene_manager == nil then - error_handler.report("singletons.init_scene_manager", "Failed to Access Data: scene_manager"); + error_handler.report("singletons.init_scene_manager", "Failed to access Data: scene_manager"); end return this.scene_manager; @@ -159,7 +159,7 @@ end function this.init_game_manager() this.game_manager = sdk.get_managed_singleton("snow.SnowGameManager"); if this.game_manager == nil then - error_handler.report("singletons.init_game_manager", "Failed to Access Data: game_manager"); + error_handler.report("singletons.init_game_manager", "Failed to access Data: game_manager"); end return this.game_manager; @@ -168,7 +168,7 @@ end function this.init_servant_manager() this.servant_manager = sdk.get_managed_singleton("snow.ai.ServantManager"); if this.servant_manager == nil then - error_handler.report("singletons.init_servant_manager", "Failed to Access Data: servant_manager"); + error_handler.report("singletons.init_servant_manager", "Failed to access Data: servant_manager"); end return this.servant_manager; @@ -177,7 +177,7 @@ end function this.init_otomo_manager() this.otomo_manager = sdk.get_managed_singleton("snow.otomo.OtomoManager"); if this.otomo_manager == nil then - error_handler.report("singletons.init_otomo_manager", "Failed to Access Data: otomo_manager"); + error_handler.report("singletons.init_otomo_manager", "Failed to access Data: otomo_manager"); end return this.otomo_manager; diff --git a/reframework/autorun/MHR_Overlay/Game_Handler/time.lua b/reframework/autorun/MHR_Overlay/Game_Handler/time.lua index 11f4820..f92a9ac 100644 --- a/reframework/autorun/MHR_Overlay/Game_Handler/time.lua +++ b/reframework/autorun/MHR_Overlay/Game_Handler/time.lua @@ -97,14 +97,14 @@ function this.update_quest_time() local quest_time_elapsed_minutes = get_quest_elapsed_time_min_method:call(singletons.quest_manager); if quest_time_elapsed_minutes == nil then - error_handler.report("time.update_quest_time", "Failed to Access Data: quest_time_elapsed_minutes"); + error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_elapsed_minutes"); else this.elapsed_minutes = quest_time_elapsed_minutes; end local quest_time_total_elapsed_seconds = get_quest_elapsed_time_sec_method:call(singletons.quest_manager); if quest_time_total_elapsed_seconds == nil then - error_handler.report("time.update_quest_time", "Failed to Access Data: quest_time_total_elapsed_seconds"); + error_handler.report("time.update_quest_time", "Failed to access Data: quest_time_total_elapsed_seconds"); else this.total_elapsed_seconds = quest_time_total_elapsed_seconds; end diff --git a/reframework/autorun/MHR_Overlay/Monsters/ailment_hook.lua b/reframework/autorun/MHR_Overlay/Monsters/ailment_hook.lua index d6f6d23..821fe5a 100644 --- a/reframework/autorun/MHR_Overlay/Monsters/ailment_hook.lua +++ b/reframework/autorun/MHR_Overlay/Monsters/ailment_hook.lua @@ -69,13 +69,13 @@ function this.poison_proc(poison_param) local enemy = get_enemy_method:call(poison_param); if enemy == nil then - error_handler.report("ailment_hook.poison_proc", "Failed to Access Data: enemy"); + error_handler.report("ailment_hook.poison_proc", "Failed to access Data: enemy"); return; end local is_large = is_boss_enemy_method:call(enemy); if is_large == nil then - error_handler.report("ailment_hook.poison_proc", "Failed to Access Data: is_large"); + error_handler.report("ailment_hook.poison_proc", "Failed to access Data: is_large"); return; end @@ -100,13 +100,13 @@ function this.blast_proc(blast_param) local enemy = get_enemy_method:call(blast_param); if enemy == nil then - error_handler.report("ailment_hook.blast_proc", "Failed to Access Data: enemy"); + error_handler.report("ailment_hook.blast_proc", "Failed to access Data: enemy"); return; end local is_large = is_boss_enemy_method:call(enemy); if is_large == nil then - error_handler.report("ailment_hook.blast_proc", "Failed to Access Data: is_large"); + error_handler.report("ailment_hook.blast_proc", "Failed to access Data: is_large"); return; end @@ -129,13 +129,13 @@ function this.stock_damage() for enemy, monster in pairs(large_monster.list) do local damage_param = get_damage_param_method:call(enemy); if damage_param == nil then - error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: large_monster -> damage_param"); + error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> damage_param"); goto continue; end local poison_param = poison_param_field:get_data(damage_param); if poison_param == nil then - error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: large_monster -> poison_param"); + error_handler.report("ailment_hook.stock_damage", "Failed to access Data: large_monster -> poison_param"); goto continue; end @@ -146,13 +146,13 @@ function this.stock_damage() for enemy, monster in pairs(small_monster.list) do local damage_param = get_damage_param_method:call(enemy); if damage_param == nil then - error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: small_monster -> damage_param"); + error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> damage_param"); goto continue end local poison_param = poison_param_field:get_data(damage_param); if poison_param == nil then - error_handler.report("ailment_hook.stock_damage", "Failed to Access Data: small_monster -> poison_param"); + error_handler.report("ailment_hook.stock_damage", "Failed to access Data: small_monster -> poison_param"); goto continue; end diff --git a/reframework/autorun/MHR_Overlay/Monsters/ailments.lua b/reframework/autorun/MHR_Overlay/Monsters/ailments.lua index 396dd89..d3a2679 100644 --- a/reframework/autorun/MHR_Overlay/Monsters/ailments.lua +++ b/reframework/autorun/MHR_Overlay/Monsters/ailments.lua @@ -282,7 +282,7 @@ function this.update_ailments(enemy, monster) local damage_param = get_damage_param_method:call(enemy); if damage_param == nil then - error_handler.report("ailments.update_ailments", "Failed to Access Data: damage_param"); + error_handler.report("ailments.update_ailments", "Failed to access Data: damage_param"); return; end @@ -300,13 +300,13 @@ function this.update_ailments(enemy, monster) local condition_param_array = get_condition_param_method:call(damage_param); if condition_param_array == nil then - error_handler.report("ailments.update_ailments", "Failed to Access Data: condition_param_array"); + error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array"); return; end local condition_param_array_length = length_method:call(condition_param_array); if condition_param_array_length == nil then - error_handler.report("ailments.update_ailments", "Failed to Access Data: condition_param_array_length"); + error_handler.report("ailments.update_ailments", "Failed to access Data: condition_param_array_length"); return; end @@ -317,7 +317,7 @@ function this.update_ailments(enemy, monster) local ailment_param = get_value_method:call(condition_param_array, id); if ailment_param == nil then - error_handler.report("ailments.update_ailments", "Failed to Access Data: ailment_param No. " .. tostring(id)); + error_handler.report("ailments.update_ailments", "Failed to access Data: ailment_param No. " .. tostring(id)); goto continue end @@ -331,21 +331,21 @@ function this.update_stun_poison_blast_ailments(monster, damage_param) if stun_param ~= nil then this.update_ailment(monster, stun_param, this.stun_id); else - error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: stun_param"); + error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: stun_param"); end local poison_param = poison_param_field:get_data(damage_param); if poison_param ~= nil then this.update_ailment(monster, poison_param, this.poison_id); else - error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: poison_param"); + error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: poison_param"); end local blast_param = blast_param_field:get_data(damage_param); if blast_param ~= nil then this.update_ailment(monster, blast_param, this.blast_id); else - error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to Access Data: blast_param"); + error_handler.report("ailments.update_stun_poison_blast_ailments", "Failed to access Data: blast_param"); end end @@ -373,14 +373,14 @@ function this.update_ailment(monster, ailment_param, id) if activate_count_valuetype ~= nil then activate_count = activate_count_valuetype:get_field("mValue"); else - error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_valuetype"); + error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_valuetype"); end end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_array_length"); + error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array_length"); end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count_array"); + error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count_array"); end if buildup_array ~= nil then @@ -394,14 +394,14 @@ function this.update_ailment(monster, ailment_param, id) if buildup_valuetype ~= nil then buildup = buildup_valuetype:get_field("mValue"); else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_valuetype"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_valuetype"); end end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_array_length"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array_length"); end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_array"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_array"); end if buildup_limit_array ~= nil then @@ -415,14 +415,14 @@ function this.update_ailment(monster, ailment_param, id) if buildup_limit_valuetype ~= nil then buildup_limit = buildup_limit_valuetype:get_field("mValue"); else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_valuetype"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_valuetype"); end end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_array_length"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array_length"); end else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit_array"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit_array"); end if is_enable == nil then @@ -446,7 +446,7 @@ function this.update_ailment(monster, ailment_param, id) monster.ailments[id].activate_count = activate_count; else - error_handler.report("ailments.update_ailment", "Failed to Access Data: activate_count"); + error_handler.report("ailments.update_ailment", "Failed to access Data: activate_count"); end if buildup ~= nil then @@ -456,7 +456,7 @@ function this.update_ailment(monster, ailment_param, id) monster.ailments[id].total_buildup = buildup; else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup"); end if buildup_limit ~= nil then @@ -466,7 +466,7 @@ function this.update_ailment(monster, ailment_param, id) monster.ailments[id].buildup_limit = buildup_limit; else - error_handler.report("ailments.update_ailment", "Failed to Access Data: buildup_limit"); + error_handler.report("ailments.update_ailment", "Failed to access Data: buildup_limit"); end if buildup ~= nil and buildup_limit ~= nil and buildup_limit ~= 0 then @@ -537,13 +537,13 @@ function this.update_poison(monster, poison_param) --if poison tick, apply damage local is_damage = poison_get_is_damage_method:call(poison_param); if is_damage == nil then - error_handler.report("ailments.update_poison", "Failed to Access Data: is_damage"); + error_handler.report("ailments.update_poison", "Failed to access Data: is_damage"); return; end local poison_damage = poison_damage_field:get_data(poison_param); if poison_damage == nil then - error_handler.report("ailments.update_poison", "Failed to Access Data: poison_damage"); + error_handler.report("ailments.update_poison", "Failed to access Data: poison_damage"); return; end diff --git a/reframework/autorun/MHR_Overlay/Monsters/large_monster.lua b/reframework/autorun/MHR_Overlay/Monsters/large_monster.lua index 827f3a1..b769922 100644 --- a/reframework/autorun/MHR_Overlay/Monsters/large_monster.lua +++ b/reframework/autorun/MHR_Overlay/Monsters/large_monster.lua @@ -272,7 +272,7 @@ local get_targeting_enemy_index_field = tg_camera_type_def:get_field("OldTargeti function this.init(monster, enemy) local monster_id = enemy_type_field:get_data(enemy); if monster_id == nil then - error_handler.report("large_monster.init", "Failed to Access Data: enemy_type"); + error_handler.report("large_monster.init", "Failed to access Data: enemy_type"); return; end @@ -286,7 +286,7 @@ function this.init(monster, enemy) if enemy_name ~= nil then monster.name = enemy_name; else - error_handler.report("large_monster.init", "Failed to Access Data: enemy_name"); + error_handler.report("large_monster.init", "Failed to access Data: enemy_name"); end if monster_id ~= this.monster_ids.toadversary then @@ -296,10 +296,10 @@ function this.init(monster, enemy) if unique_id ~= nil then monster.unique_id = unique_id; else - error_handler.report("large_monster.init", "Failed to Access Data: unique_id"); + error_handler.report("large_monster.init", "Failed to access Data: unique_id"); end else - error_handler.report("large_monster.init", "Failed to Access Data: set_info"); + error_handler.report("large_monster.init", "Failed to access Data: set_info"); end local size_info = find_enemy_size_info_method:call(singletons.enemy_manager, monster_id); @@ -313,25 +313,25 @@ function this.init(monster, enemy) if small_border ~= nil then monster.small_border = small_border; else - error_handler.report("large_monster.init", "Failed to Access Data: small_border"); + error_handler.report("large_monster.init", "Failed to access Data: small_border"); end if big_border ~= nil then monster.big_border = big_border; else - error_handler.report("large_monster.init", "Failed to Access Data: big_border"); + error_handler.report("large_monster.init", "Failed to access Data: big_border"); end if king_border ~= nil then monster.king_border = king_border; else - error_handler.report("large_monster.init", "Failed to Access Data: king_border"); + error_handler.report("large_monster.init", "Failed to access Data: king_border"); end if size ~= nil then monster.size = size; else - error_handler.report("large_monster.init", "Failed to Access Data: size"); + error_handler.report("large_monster.init", "Failed to access Data: size"); end if monster.size <= monster.small_border then @@ -342,7 +342,7 @@ function this.init(monster, enemy) monster.crown = language.current_language.UI.silver; end else - error_handler.report("large_monster.init", "Failed to Access Data: size_info"); + error_handler.report("large_monster.init", "Failed to access Data: size_info"); end end @@ -357,13 +357,13 @@ function this.init(monster, enemy) if is_capture_enable_ ~= nil then is_capture_enable = is_capture_enable_; else - error_handler.report("large_monster.init", "Failed to Access Data: is_capture_enable_"); + error_handler.report("large_monster.init", "Failed to access Data: is_capture_enable_"); end else - error_handler.report("large_monster.init", "Failed to Access Data: capture_param"); + error_handler.report("large_monster.init", "Failed to access Data: capture_param"); end else - error_handler.report("large_monster.init", "Failed to Access Data: damage_param"); + error_handler.report("large_monster.init", "Failed to access Data: damage_param"); end local mystery_param = get_mystery_param_method:call(enemy); @@ -469,7 +469,7 @@ function this.update_position(enemy, monster) local position = get_pos_field:call(enemy); if position == nil then - error_handler.report("large_monster.update_position", "Failed to Access Data: position"); + error_handler.report("large_monster.update_position", "Failed to access Data: position"); end monster.position = position; @@ -481,20 +481,20 @@ function this.update_all_riders() -- get marionette rider local mario_param = get_mario_param_method:call(enemy); if mario_param == nil then - error_handler.report("large_monster.update_all_riders", "Failed to Access Data: mario_param"); + error_handler.report("large_monster.update_all_riders", "Failed to access Data: mario_param"); goto continue; end local is_marionette = get_is_marionette_method:call(mario_param); if is_marionette == nil then - error_handler.report("large_monster.update_all_riders", "Failed to Access Data: is_marionette"); + error_handler.report("large_monster.update_all_riders", "Failed to access Data: is_marionette"); goto continue; end if is_marionette then local player_id = get_mario_player_index_method:call(mario_param); if player_id == nil then - error_handler.report("large_monster.update_all_riders", "Failed to Access Data: player_id"); + error_handler.report("large_monster.update_all_riders", "Failed to access Data: player_id"); goto continue; end @@ -520,14 +520,14 @@ function this.update(enemy, monster) if dead_or_captured ~= nil then monster.dead_or_captured = dead_or_captured; else - error_handler.report("large_monster.update", "Failed to Access Data: dead_or_captured"); + error_handler.report("large_monster.update", "Failed to access Data: dead_or_captured"); end local is_disp_icon_mini_map = is_disp_icon_mini_map_method:call(enemy); if is_disp_icon_mini_map ~= nil then monster.is_disp_icon_mini_map = is_disp_icon_mini_map; else - error_handler.report("large_monster.update", "Failed to Access Data: is_disp_icon_mini_map"); + error_handler.report("large_monster.update", "Failed to access Data: is_disp_icon_mini_map"); end if monster.id == this.monster_ids.lucent_nargacuga or monster.id == this.monster_ids.chameleos or monster.id == this.monster_ids.risen_chameleos then @@ -541,7 +541,7 @@ function this.update(enemy, monster) if is_stealth == nil then monster.is_stealth = is_stealth; else - error_handler.report("large_monster.update", "Failed to Access Data: is_stealth"); + error_handler.report("large_monster.update", "Failed to access Data: is_stealth"); end -- Chameleos and Risen Chameleos @@ -551,14 +551,14 @@ function this.update(enemy, monster) local status = get_current_status_method:call(stealth_controller); if status == nil then - error_handler.report("large_monster.update", "Failed to Access Data: status"); + error_handler.report("large_monster.update", "Failed to access Data: status"); elseif status >= 2 then monster.is_stealth = true; else monster.is_stealth = false; end else - error_handler.report("large_monster.update", "Failed to Access Data: stealth_controller"); + error_handler.report("large_monster.update", "Failed to access Data: stealth_controller"); end end end @@ -583,13 +583,13 @@ function this.update_health(enemy, monster) local physical_param = get_physical_param_method:call(enemy); if physical_param == nil then - error_handler.report("large_monster.update_health", "Failed to Access Data: physical_param"); + error_handler.report("large_monster.update_health", "Failed to access Data: physical_param"); return nil; end local vital_param = get_vital_method:call(physical_param, 0, 0); if vital_param == nil then - error_handler.report("large_monster.update_health", "Failed to Access Data: vital_param"); + error_handler.report("large_monster.update_health", "Failed to access Data: vital_param"); return nil; end @@ -597,21 +597,21 @@ function this.update_health(enemy, monster) if health ~= nil then monster.health = health; else - error_handler.report("large_monster.update_health", "Failed to Access Data: health"); + error_handler.report("large_monster.update_health", "Failed to access Data: health"); end local max_health = get_max_method:call(vital_param); if max_health ~= nil then monster.max_health = max_health; else - error_handler.report("large_monster.update_health", "Failed to Access Data: max_health"); + error_handler.report("large_monster.update_health", "Failed to access Data: max_health"); end local capture_health = get_capture_hp_vital_method:call(physical_param); if capture_health ~= nil then monster.capture_health = capture_health; else - error_handler.report("large_monster.update_health", "Failed to Access Data: capture_health"); + error_handler.report("large_monster.update_health", "Failed to access Data: capture_health"); end monster.missing_health = max_health - health; @@ -641,7 +641,7 @@ function this.update_stamina(enemy, monster, stamina_param) if stamina_param == nil then stamina_param = get_stamina_param_method:call(enemy); if stamina_param == nil then - error_handler.report("large_monster.update_stamina", "Failed to Access Data: stamina_param"); + error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina_param"); return; end end @@ -650,7 +650,7 @@ function this.update_stamina(enemy, monster, stamina_param) if is_tired ~= nil then monster.is_tired = is_tired; else - error_handler.report("large_monster.update_stamina", "Failed to Access Data: is_tired"); + error_handler.report("large_monster.update_stamina", "Failed to access Data: is_tired"); return; end @@ -662,7 +662,7 @@ function this.update_stamina(enemy, monster, stamina_param) if stamina ~= nil then monster.stamina = stamina; else - error_handler.report("large_monster.update_stamina", "Failed to Access Data: stamina"); + error_handler.report("large_monster.update_stamina", "Failed to access Data: stamina"); return; end @@ -670,7 +670,7 @@ function this.update_stamina(enemy, monster, stamina_param) if max_stamina ~= nil then monster.max_stamina = max_stamina; else - error_handler.report("large_monster.update_stamina", "Failed to Access Data: max_stamina"); + error_handler.report("large_monster.update_stamina", "Failed to access Data: max_stamina"); return; end @@ -698,7 +698,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param) if stamina_param == nil then stamina_param = get_stamina_param_method:call(enemy); if stamina_param == nil then - error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: stamina_param"); + error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: stamina_param"); return; end end @@ -707,7 +707,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param) if is_tired ~= nil then monster.is_tired = is_tired; else - error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: is_tired"); + error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: is_tired"); return; end @@ -719,7 +719,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param) if tired_timer ~= nil then monster.tired_timer = tired_timer; else - error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: tired_timer"); + error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_timer"); return; end @@ -727,7 +727,7 @@ function this.update_stamina_timer(enemy, monster, stamina_param) if tired_duration ~= nil then monster.tired_duration = tired_duration; else - error_handler.report("large_monster.update_stamina_timer", "Failed to Access Data: tired_duration"); + error_handler.report("large_monster.update_stamina_timer", "Failed to access Data: tired_duration"); return; end @@ -762,7 +762,7 @@ function this.update_rage(enemy, monster, anger_param) if anger_param == nil then anger_param = get_anger_param_method:call(enemy); if anger_param == nil then - error_handler.report("large_monster.update_rage", "Failed to Access Data: anger_param"); + error_handler.report("large_monster.update_rage", "Failed to access Data: anger_param"); return; end end @@ -771,7 +771,7 @@ function this.update_rage(enemy, monster, anger_param) if is_in_rage ~= nil then monster.is_in_rage = is_in_rage; else - error_handler.report("large_monster.update_rage", "Failed to Access Data: is_in_rage"); + error_handler.report("large_monster.update_rage", "Failed to access Data: is_in_rage"); return; end @@ -783,7 +783,7 @@ function this.update_rage(enemy, monster, anger_param) if rage_point ~= nil then monster.rage_point = rage_point; else - error_handler.report("large_monster.update_rage", "Failed to Access Data: rage_point"); + error_handler.report("large_monster.update_rage", "Failed to access Data: rage_point"); return; end @@ -791,7 +791,7 @@ function this.update_rage(enemy, monster, anger_param) if rage_limit ~= nil then monster.rage_limit = rage_limit; else - error_handler.report("large_monster.update_rage", "Failed to Access Data: rage_limit"); + error_handler.report("large_monster.update_rage", "Failed to access Data: rage_limit"); return; end @@ -818,7 +818,7 @@ function this.update_rage_timer(enemy, monster, anger_param) if anger_param == nil then anger_param = get_anger_param_method:call(enemy); if anger_param == nil then - error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: anger_param"); + error_handler.report("large_monster.update_rage_timer", "Failed to access Data: anger_param"); return; end end @@ -827,7 +827,7 @@ function this.update_rage_timer(enemy, monster, anger_param) if is_in_rage ~= nil then monster.is_in_rage = is_in_rage; else - error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: is_in_rage"); + error_handler.report("large_monster.update_rage_timer", "Failed to access Data: is_in_rage"); return; end @@ -839,7 +839,7 @@ function this.update_rage_timer(enemy, monster, anger_param) if rage_timer ~= nil then monster.rage_timer = rage_timer; else - error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: rage_timer"); + error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_timer"); return; end @@ -847,7 +847,7 @@ function this.update_rage_timer(enemy, monster, anger_param) if rage_duration ~= nil then monster.rage_duration = rage_duration; else - error_handler.report("large_monster.update_rage_timer", "Failed to Access Data: rage_duration"); + error_handler.report("large_monster.update_rage_timer", "Failed to access Data: rage_duration"); return; end @@ -894,32 +894,32 @@ function this.update_parts(enemy, monster, physical_param) if physical_param == nil then physical_param = get_physical_param_method:call(enemy); if physical_param == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: physical_param"); + error_handler.report("large_monster.update_parts", "Failed to access Data: physical_param"); return; end end local damage_param = get_damage_param_method:call(enemy); if damage_param == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: damage_param"); + error_handler.report("large_monster.update_parts", "Failed to access Data: damage_param"); return; end local enemy_parts_damage_info = enemy_parts_damage_info_field:get_data(damage_param); if enemy_parts_damage_info == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: enemy_parts_damage_info"); + error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_damage_info"); return; end local core_parts_array = get_part_info_array_method:call(enemy_parts_damage_info); if core_parts_array == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: core_parts_array"); + error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array"); return; end local core_parts_array_length = length_method:call(core_parts_array); if core_parts_array_length == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: core_parts_array_length"); + error_handler.report("large_monster.update_parts", "Failed to access Data: core_parts_array_length"); return; end @@ -928,7 +928,7 @@ function this.update_parts(enemy, monster, physical_param) local enemy_parts_info = get_value_method:call(core_parts_array, i); if enemy_parts_info == nil then - error_handler.report("large_monster.update_parts", "Failed to Access Data: enemy_parts_info No. " .. tostring(i)); + error_handler.report("large_monster.update_parts", "Failed to access Data: enemy_parts_info No. " .. tostring(i)); goto continue; end @@ -952,19 +952,19 @@ function this.update_parts(enemy, monster, physical_param) local part_current = get_current_method:call(part_vital); if part_current == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_current", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_current", i)); end local part_max = get_max_method:call(part_vital); if part_max == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_max", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_max", i)); end if part_current ~= nil and part_max ~= nil then body_part.update_flinch(part, part_current, part_max); end else - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_vital", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_vital", i)); end end @@ -977,29 +977,29 @@ function this.update_parts(enemy, monster, physical_param) local part_break_current = get_current_method:call(part_break_vital); if part_break_current == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_current", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_current", i)); end local part_break_max = get_max_method:call(part_break_vital); if part_break_max == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_max", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max", i)); end local part_break_count = get_parts_break_damage_level_method:call(enemy_parts_info); if part_break_count == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_count", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_count", i)); end local part_break_max_count = get_parts_break_damage_max_level_method:call(enemy_parts_info); if part_break_max_count == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_max_count", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_max_count", i)); end if part_break_current ~= nil and part_break_max ~= nil and part_break_count ~= nil and part_break_max_count ~= nil then body_part.update_break(part, part_break_current, part_break_max, part_break_count, part_break_max_count); end else - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_break_vital", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_break_vital", i)); end end @@ -1012,24 +1012,24 @@ function this.update_parts(enemy, monster, physical_param) local part_loss_current = get_current_method:call(part_loss_vital); if part_loss_current == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_current", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_current", i)); end local part_loss_max = get_max_method:call(part_loss_vital); if part_loss_max == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_max", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_max", i)); end local is_severed = get_parts_loss_state_method:call(enemy_parts_info); if is_severed == nil then - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> is_severed", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> is_severed", i)); end if part_loss_current ~= nil and part_loss_max ~= nil and is_severed ~= nil then body_part.update_loss(part, part_loss_current, part_loss_max, is_severed); end else - error_handler.report("large_monster.update_parts", string.format("Failed to Access Data: enemy_parts_info No. %d -> part_loss_vital", i)); + error_handler.report("large_monster.update_parts", string.format("Failed to access Data: enemy_parts_info No. %d -> part_loss_vital", i)); end end @@ -1067,13 +1067,13 @@ function this.update_anomaly_parts(enemy, monster, mystery_param) local core_parts_array = core_parts_array_field:get_data(mystery_param); if core_parts_array == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_parts_array"); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array"); return; end local core_parts_array_length = length_method:call(core_parts_array); if core_parts_array_length == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_parts_array_length"); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_parts_array_length"); return; end @@ -1082,7 +1082,7 @@ function this.update_anomaly_parts(enemy, monster, mystery_param) local core_part = get_value_method:call(core_parts_array, i); if core_part == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: core_part No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: core_part No. " .. tostring(i)); goto continue; end @@ -1099,13 +1099,13 @@ function this.update_anomaly_parts(enemy, monster, mystery_param) local part_vital = core_parts_get_vital_method:call(core_part); if part_vital == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_vital No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_vital No. " .. tostring(i)); return; end local part_is_active = core_parts_get_is_active_method:call(core_part); if part_is_active == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_is_active No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_active No. " .. tostring(i)); return; end @@ -1113,19 +1113,19 @@ function this.update_anomaly_parts(enemy, monster, mystery_param) local part_current = get_current_method:call(part_vital); if part_current == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_current No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_current No. " .. tostring(i)); goto continue; end local part_max = get_max_method:call(part_vital); if part_max == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_max No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_max No. " .. tostring(i)); goto continue; end local part_is_enabled = is_enable_method:call(part_vital); if part_is_enabled == nil then - error_handler.report("large_monster.update_anomaly_parts", "Failed to Access Data: part_is_enabled No. " .. tostring(i)); + error_handler.report("large_monster.update_anomaly_parts", "Failed to access Data: part_is_enabled No. " .. tostring(i)); goto continue; end @@ -1147,19 +1147,19 @@ function this.update_highlighted_id() end if singletons.gui_manager == nil then - error_handler.report("large_monster.update_highlighted_id", "Failed to Access Data: gui_manager"); + error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_manager"); return; end local gui_hud_target_camera = get_tg_camera_method:call(singletons.gui_manager); if gui_hud_target_camera == nil then - error_handler.report("large_monster.update_highlighted_id", "Failed to Access Data: gui_hud_target_camera"); + error_handler.report("large_monster.update_highlighted_id", "Failed to access Data: gui_hud_target_camera"); return; end local highlighted_id = get_targeting_enemy_index_field:get_data(gui_hud_target_camera); if highlighted_id == nil then - error_handler.report("large_monster_UI.update_highlighted_id", "Failed to Access Data: highlighted_id"); + error_handler.report("large_monster_UI.update_highlighted_id", "Failed to access Data: highlighted_id"); return; end diff --git a/reframework/autorun/MHR_Overlay/Monsters/monster_hook.lua b/reframework/autorun/MHR_Overlay/Monsters/monster_hook.lua index 4979748..2655138 100644 --- a/reframework/autorun/MHR_Overlay/Monsters/monster_hook.lua +++ b/reframework/autorun/MHR_Overlay/Monsters/monster_hook.lua @@ -205,13 +205,13 @@ end function this.update_health(enemy_damage_check) local enemy = get_ref_enemy:call(enemy_damage_check); if enemy == nil then - error_handler.report("monster_hook.update_health", "Failed to Access Data: enemy"); + error_handler.report("monster_hook.update_health", "Failed to access Data: enemy"); return; end local is_large = is_boss_enemy_method:call(enemy); if is_large == nil then - error_handler.report("monster_hook.update_health", "Failed to Access Data: is_large"); + error_handler.report("monster_hook.update_health", "Failed to access Data: is_large"); return; end @@ -234,7 +234,7 @@ function this.update_stamina(stamina_param, stamina_sub) local enemy = get_enemy_method:call(stamina_param); if enemy == nil then - error_handler.report("monster_hook.update_stamina", "Failed to Access Data: enemy"); + error_handler.report("monster_hook.update_stamina", "Failed to access Data: enemy"); return; end diff --git a/reframework/autorun/MHR_Overlay/Monsters/small_monster.lua b/reframework/autorun/MHR_Overlay/Monsters/small_monster.lua index 3c21f57..09afaad 100644 --- a/reframework/autorun/MHR_Overlay/Monsters/small_monster.lua +++ b/reframework/autorun/MHR_Overlay/Monsters/small_monster.lua @@ -98,7 +98,7 @@ local get_enemy_name_message_method = message_manager_type_def:get_method("getEn function this.init(monster, enemy) local enemy_type = enemy_type_field:get_data(enemy); if enemy_type == nil then - error_handler.report("small_monster.init", "Failed to Access Data: enemy_type"); + error_handler.report("small_monster.init", "Failed to access Data: enemy_type"); return; end @@ -106,7 +106,7 @@ function this.init(monster, enemy) local enemy_name = get_enemy_name_message_method:call(singletons.message_manager, enemy_type); if enemy_name == nil then - error_handler.report("small_monster.init", "Failed to Access Data: enemy_name"); + error_handler.report("small_monster.init", "Failed to access Data: enemy_name"); end monster.name = enemy_name; @@ -179,7 +179,7 @@ function this.update_position(enemy, monster) local position = get_pos_method:call(enemy); if position == nil then - error_handler.report("small_monster.update_position", "Failed to Access Data: position"); + error_handler.report("small_monster.update_position", "Failed to access Data: position"); end monster.position = position; @@ -194,7 +194,7 @@ function this.update(enemy, monster) if dead_or_captured ~= nil then monster.dead_or_captured = dead_or_captured; else - error_handler.report("small_monster.update", "Failed to Access Data: dead_or_captured"); + error_handler.report("small_monster.update", "Failed to access Data: dead_or_captured"); end pcall(ailments.update_ailments, enemy, monster); @@ -207,13 +207,13 @@ function this.update_health(enemy, monster) local physical_param = get_physical_param_method:call(enemy); if physical_param == nil then - error_handler.report("small_monster.update_health", "Failed to Access Data: physical_param"); + error_handler.report("small_monster.update_health", "Failed to access Data: physical_param"); return; end local vital_param = get_vital_method:call(physical_param, 0, 0); if vital_param == nil then - error_handler.report("small_monster.update_health", "Failed to Access Data: vital_param"); + error_handler.report("small_monster.update_health", "Failed to access Data: vital_param"); return; end @@ -221,7 +221,7 @@ function this.update_health(enemy, monster) if health ~= nil then monster.health = health; else - error_handler.report("small_monster.update_health", "Failed to Access Data: health"); + error_handler.report("small_monster.update_health", "Failed to access Data: health"); return; end @@ -229,7 +229,7 @@ function this.update_health(enemy, monster) if max_health ~= nil then monster.max_health = max_health; else - error_handler.report("small_monster.update_health", "Failed to Access Data: max_health"); + error_handler.report("small_monster.update_health", "Failed to access Data: max_health"); return; end diff --git a/reframework/autorun/MHR_Overlay/UI/Modules/large_monster_UI.lua b/reframework/autorun/MHR_Overlay/UI/Modules/large_monster_UI.lua index 017e758..fb70dc4 100644 --- a/reframework/autorun/MHR_Overlay/UI/Modules/large_monster_UI.lua +++ b/reframework/autorun/MHR_Overlay/UI/Modules/large_monster_UI.lua @@ -74,20 +74,20 @@ function this.draw(dynamic_enabled, static_enabled, highlighted_enabled) local enemy_count = get_boss_enemy_count_method:call(singletons.enemy_manager); if enemy_count == nil then - error_handler.report("large_monster_UI.draw", "Failed to Access Data: enemy_count"); + error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy_count"); return; end for i = 0, enemy_count - 1 do local enemy = get_boss_enemy_method:call(singletons.enemy_manager, i); if enemy == nil then - error_handler.report("large_monster_UI.draw", "Failed to Access Data: enemy No. " .. tostring(i)); + error_handler.report("large_monster_UI.draw", "Failed to access Data: enemy No. " .. tostring(i)); goto continue; end local monster = large_monster.get_monster(enemy); if monster == nil then - error_handler.report("large_monster_UI.draw", "Failed to Create Large Monster Entry No. " .. tostring(i)); + error_handler.report("large_monster_UI.draw", "Failed to create Large Monster Entry No. " .. tostring(i)); goto continue; end diff --git a/reframework/autorun/MHR_Overlay/UI/Modules/small_monster_UI.lua b/reframework/autorun/MHR_Overlay/UI/Modules/small_monster_UI.lua index 1563875..cfcc7fa 100644 --- a/reframework/autorun/MHR_Overlay/UI/Modules/small_monster_UI.lua +++ b/reframework/autorun/MHR_Overlay/UI/Modules/small_monster_UI.lua @@ -58,25 +58,23 @@ function this.draw() local enemy_count = get_zako_enemy_count_method:call(singletons.enemy_manager); if enemy_count == nil then - error_handler.report("small_monster_UI.draw", "Failed to Access Data: enemy_count"); + error_handler.report("small_monster_UI.draw", "Failed to access Data: enemy_count"); return; end for i = 0, enemy_count - 1 do local enemy = get_zako_enemy_method:call(singletons.enemy_manager, i); if enemy == nil then - error_handler.report("small_monster_UI.draw", "Failed to Access Data: enemy No. " .. tostring(i)); + error_handler.report("small_monster_UI.draw", "Failed to access Data: enemy No. " .. tostring(i)); goto continue; end local monster = small_monster.get_monster(enemy); if monster == nil then - error_handler.report("small_monster_UI.draw", "Failed to Create Small Monster Entry No. " .. tostring(i)); + error_handler.report("small_monster_UI.draw", "Failed to create Small Monster Entry No. " .. tostring(i)); goto continue; end - -- causes VMContext corruption and call failures - --for enemy, monster in pairs(small_monster.list) do if monster.dead_or_captured and cached_config.settings.hide_dead_or_captured then goto continue; end;