Monmusu Quest! Paradox RPG 3.06
-
A quick follow up
Managed to fix the crashing completely, but have no idea why it happens in the first place
So the current fix is that you have to rename the method being called inside the code snippet I showed
This is the method that causes the issue -> draw_text_job_desc(r, text, lht)
And renaming it into anything else fixes the problem
#-------------------------------------------------------------------------- # ● ジョブ説明の描画 #Drawing Job Description edited in translation to adjust description font size and text space #-------------------------------------------------------------------------- def draw_job_desc(y, num) lht = 24 desc_text = NWConst::JobChange::JOB_DESC_TEXT[@class_id] desc = desc_text[num] if desc_text return y + lht unless desc lht -= (desc.size - 4) * 2 if desc.size > 4 lht = 16 if lht < 16 rect = Rect.new(4, y, contents.width - 4, lht * desc.size) r = Rect.new(rect.x, rect.y, rect.width, lht) desc.each_with_index do |text, _i| draw_text_job_desc2(r, text, lht) r.y += lht end rect.y + rect.height end #-------------------------------------------------------------------------- # ● ジョブ説明用テキスト描画 #-------------------------------------------------------------------------- def draw_text_job_desc2(rect, text, lht) reset_font_settings text = convert_escape_characters(text) pos = { :x => rect.x, :y => rect.y, :new_x => rect.x, :height => lht } contents.font.size -= 6 #Sets font size to force word-wrapping and prevent a crash process_character(text.slice!(0, 1), text, pos) until text.empty? endAs far as I understand Ruby does not allow overloads of methods like in C# or VB (or some other languages as well) and if someone declares a method with the same name, that method then gets overwritten - so perhaps that's why the original name of draw_text_job_desc causes the issues with the new versions of MTool
Attaching the modified script file just in case - though it's really simple to modify it yourself -> 153 - 転職編集.rb
The path to this files inside the translation folder from ArzorX is ...\Translated Files\Scripts\画面\
-
A quick follow up
Managed to fix the crashing completely, but have no idea why it happens in the first place
So the current fix is that you have to rename the method being called inside the code snippet I showed
This is the method that causes the issue -> draw_text_job_desc(r, text, lht)
And renaming it into anything else fixes the problem
#-------------------------------------------------------------------------- # ● ジョブ説明の描画 #Drawing Job Description edited in translation to adjust description font size and text space #-------------------------------------------------------------------------- def draw_job_desc(y, num) lht = 24 desc_text = NWConst::JobChange::JOB_DESC_TEXT[@class_id] desc = desc_text[num] if desc_text return y + lht unless desc lht -= (desc.size - 4) * 2 if desc.size > 4 lht = 16 if lht < 16 rect = Rect.new(4, y, contents.width - 4, lht * desc.size) r = Rect.new(rect.x, rect.y, rect.width, lht) desc.each_with_index do |text, _i| draw_text_job_desc2(r, text, lht) r.y += lht end rect.y + rect.height end #-------------------------------------------------------------------------- # ● ジョブ説明用テキスト描画 #-------------------------------------------------------------------------- def draw_text_job_desc2(rect, text, lht) reset_font_settings text = convert_escape_characters(text) pos = { :x => rect.x, :y => rect.y, :new_x => rect.x, :height => lht } contents.font.size -= 6 #Sets font size to force word-wrapping and prevent a crash process_character(text.slice!(0, 1), text, pos) until text.empty? endAs far as I understand Ruby does not allow overloads of methods like in C# or VB (or some other languages as well) and if someone declares a method with the same name, that method then gets overwritten - so perhaps that's why the original name of draw_text_job_desc causes the issues with the new versions of MTool
Attaching the modified script file just in case - though it's really simple to modify it yourself -> 153 - 転職編集.rb
The path to this files inside the translation folder from ArzorX is ...\Translated Files\Scripts\画面\

