Make solving project setting errors easier
Show full project setting path in error messages. Force filtering for advanced settings if filter is not empty.
This commit is contained in:
parent
9b0bee860f
commit
ed960453b7
7 changed files with 13 additions and 10 deletions
|
@ -55,7 +55,7 @@ Error MessageQueue::push_set(ObjectID p_id, const StringName &p_prop, const Vari
|
||||||
if (ObjectDB::get_instance(p_id)) {
|
if (ObjectDB::get_instance(p_id)) {
|
||||||
type = ObjectDB::get_instance(p_id)->get_class();
|
type = ObjectDB::get_instance(p_id)->get_class();
|
||||||
}
|
}
|
||||||
ERR_PRINT("Failed set: " + type + ":" + p_prop + " target ID: " + itos(p_id) + ". Message queue out of memory. Try increasing 'memory/limits/message_queue/max_size_kb' in project settings.");
|
ERR_PRINT("Failed set: " + type + ":" + p_prop + " target ID: " + itos(p_id) + ". Message queue out of memory. Try increasing \"memory/limits/message_queue/max_size_kb\" in project settings.");
|
||||||
statistics();
|
statistics();
|
||||||
return ERR_OUT_OF_MEMORY;
|
return ERR_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ Error MessageQueue::push_notification(ObjectID p_id, int p_notification) {
|
||||||
uint8_t room_needed = sizeof(Message);
|
uint8_t room_needed = sizeof(Message);
|
||||||
|
|
||||||
if ((buffer_end + room_needed) >= buffer_size) {
|
if ((buffer_end + room_needed) >= buffer_size) {
|
||||||
ERR_PRINT("Failed notification: " + itos(p_notification) + " target ID: " + itos(p_id) + ". Message queue out of memory. Try increasing 'memory/limits/message_queue/max_size_kb' in project settings.");
|
ERR_PRINT("Failed notification: " + itos(p_notification) + " target ID: " + itos(p_id) + ". Message queue out of memory. Try increasing \"memory/limits/message_queue/max_size_kb\" in project settings.");
|
||||||
statistics();
|
statistics();
|
||||||
return ERR_OUT_OF_MEMORY;
|
return ERR_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ Error MessageQueue::push_callablep(const Callable &p_callable, const Variant **p
|
||||||
int room_needed = sizeof(Message) + sizeof(Variant) * p_argcount;
|
int room_needed = sizeof(Message) + sizeof(Variant) * p_argcount;
|
||||||
|
|
||||||
if ((buffer_end + room_needed) >= buffer_size) {
|
if ((buffer_end + room_needed) >= buffer_size) {
|
||||||
ERR_PRINT("Failed method: " + p_callable + ". Message queue out of memory. Try increasing 'memory/limits/message_queue/max_size_kb' in project settings.");
|
ERR_PRINT("Failed method: " + p_callable + ". Message queue out of memory. Try increasing \"memory/limits/message_queue/max_size_kb\" in project settings.");
|
||||||
statistics();
|
statistics();
|
||||||
return ERR_OUT_OF_MEMORY;
|
return ERR_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1489,7 +1489,7 @@ MaterialStorage::MaterialStorage() {
|
||||||
global_shader_uniforms.buffer_size = MAX(4096, (int)GLOBAL_GET("rendering/limits/global_shader_variables/buffer_size"));
|
global_shader_uniforms.buffer_size = MAX(4096, (int)GLOBAL_GET("rendering/limits/global_shader_variables/buffer_size"));
|
||||||
if (global_shader_uniforms.buffer_size > uint32_t(Config::get_singleton()->max_uniform_buffer_size)) {
|
if (global_shader_uniforms.buffer_size > uint32_t(Config::get_singleton()->max_uniform_buffer_size)) {
|
||||||
global_shader_uniforms.buffer_size = uint32_t(Config::get_singleton()->max_uniform_buffer_size);
|
global_shader_uniforms.buffer_size = uint32_t(Config::get_singleton()->max_uniform_buffer_size);
|
||||||
WARN_PRINT("Project setting: rendering/limits/global_shader_variables/buffer_size exceeds maximum uniform buffer size of: " + itos(Config::get_singleton()->max_uniform_buffer_size));
|
WARN_PRINT("Project setting \"rendering/limits/global_shader_variables/buffer_size\" exceeds maximum uniform buffer size of: " + itos(Config::get_singleton()->max_uniform_buffer_size));
|
||||||
}
|
}
|
||||||
|
|
||||||
global_shader_uniforms.buffer_values = memnew_arr(GlobalShaderUniforms::Value, global_shader_uniforms.buffer_size);
|
global_shader_uniforms.buffer_values = memnew_arr(GlobalShaderUniforms::Value, global_shader_uniforms.buffer_size);
|
||||||
|
|
|
@ -2731,7 +2731,8 @@ void EditorInspector::update_tree() {
|
||||||
List<PropertyInfo>::Element *N = E_property->next();
|
List<PropertyInfo>::Element *N = E_property->next();
|
||||||
bool valid = true;
|
bool valid = true;
|
||||||
while (N) {
|
while (N) {
|
||||||
if (!N->get().name.begins_with("metadata/_") && N->get().usage & PROPERTY_USAGE_EDITOR && (!restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
if (!N->get().name.begins_with("metadata/_") && N->get().usage & PROPERTY_USAGE_EDITOR &&
|
||||||
|
(!filter.is_empty() || !restrict_to_basic || (N->get().usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (N->get().usage & PROPERTY_USAGE_CATEGORY) {
|
if (N->get().usage & PROPERTY_USAGE_CATEGORY) {
|
||||||
|
@ -2821,7 +2822,8 @@ void EditorInspector::update_tree() {
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
} else if (p.name.begins_with("metadata/_") || !(p.usage & PROPERTY_USAGE_EDITOR) || _is_property_disabled_by_feature_profile(p.name) || (restrict_to_basic && !(p.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
} else if (p.name.begins_with("metadata/_") || !(p.usage & PROPERTY_USAGE_EDITOR) || _is_property_disabled_by_feature_profile(p.name) ||
|
||||||
|
(filter.is_empty() && restrict_to_basic && !(p.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||||
// Ignore properties that are not supposed to be in the inspector.
|
// Ignore properties that are not supposed to be in the inspector.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,8 @@ void SectionedInspector::update_category_list() {
|
||||||
for (PropertyInfo &pi : pinfo) {
|
for (PropertyInfo &pi : pinfo) {
|
||||||
if (pi.usage & PROPERTY_USAGE_CATEGORY) {
|
if (pi.usage & PROPERTY_USAGE_CATEGORY) {
|
||||||
continue;
|
continue;
|
||||||
} else if (!(pi.usage & PROPERTY_USAGE_EDITOR) || (restrict_to_basic && !(pi.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
} else if (!(pi.usage & PROPERTY_USAGE_EDITOR) ||
|
||||||
|
(filter_text.is_empty() && restrict_to_basic && !(pi.usage & PROPERTY_USAGE_EDITOR_BASIC_SETTING))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1515,7 +1515,7 @@ SceneTree::SceneTree() {
|
||||||
ProjectSettings::get_singleton()->set("rendering/environment/defaults/default_environment", "");
|
ProjectSettings::get_singleton()->set("rendering/environment/defaults/default_environment", "");
|
||||||
} else {
|
} else {
|
||||||
// File was erased, notify user.
|
// File was erased, notify user.
|
||||||
ERR_PRINT(RTR("Default Environment as specified in Project Settings (Rendering -> Environment -> Default Environment) could not be loaded."));
|
ERR_PRINT(RTR("Default Environment as specified in the project setting \"rendering/environment/defaults/default_environment\" could not be loaded."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -361,7 +361,7 @@ void AudioStreamPlaybackMicrophone::start(double p_from_pos) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GLOBAL_GET("audio/driver/enable_input")) {
|
if (!GLOBAL_GET("audio/driver/enable_input")) {
|
||||||
WARN_PRINT("Need to enable Project settings > Audio > Enable Audio Input option to use capturing.");
|
WARN_PRINT("You must enable the project setting \"audio/driver/enable_input\" to use audio capture.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1619,7 +1619,7 @@ void SkyRD::update_dirty_skys() {
|
||||||
if (sky->mode == RS::SKY_MODE_REALTIME) {
|
if (sky->mode == RS::SKY_MODE_REALTIME) {
|
||||||
layers = 8;
|
layers = 8;
|
||||||
if (roughness_layers != 8) {
|
if (roughness_layers != 8) {
|
||||||
WARN_PRINT("When using REALTIME skies, roughness_layers should be set to 8 in the project settings for best quality reflections");
|
WARN_PRINT("When using the Real-Time sky update mode (or Automatic with a sky shader using \"TIME\"), \"rendering/reflections/sky_reflections/roughness_layers\" should be set to 8 in the project settings for best quality reflections.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue