• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Modern Quest System + UI

Resource Modern Quest System + UI 1.1.0

ThatWelshOne_

Champion
Member
heya! i wanted to ask a question
everytime i try to open the pause menu, this error message shows up:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
[v20.1 Hotfixes 1.0.7]

Exception: NoMethodError
Message: undefined method `hasAnyQuests?' for nil:NilClass

Backtrace:
279:UI_PauseMenu:325:in `block in <main>'
036:Event_HandlerCollections:108:in `block in each_available'
036:Event_HandlerCollections:106:in `each'
036:Event_HandlerCollections:106:in `each_available'
279:UI_PauseMenu:111:in `pbStartPokemonMenu'
032:Scene_Map:103:in `call_menu'
032:Scene_Map:203:in `update'
[v20.1 Hotfixes] Overworld bug fixes.rb:28:in `block in main'
[v20.1 Hotfixes] Overworld bug fixes.rb:25:in `loop'
[v20.1 Hotfixes] Overworld bug fixes.rb:25:in `main'

could you help me find the reason for this?
Hi! Yes, you need to compile your plugins. Either hold Shift as you click the green playtest button in RPG Maker XP (make sure the game window, not the console window, is active) or you can delete PluginScripts.rxdata from the Data folder to force a compile next time you run a playtest. Either of these could also fix the unrelated issue you have with the v20.1 hotfixes being installed twice.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
156
Why do I have so many more errors?
[Modern Quest System + UI] 004_Quest_Data.rb:338: syntax error, unexpected string literal, expecting local variable or method
:Name => "Troblesome Ghosts",
^
[Modern Quest System + UI] 004_Quest_Data.rb:338: syntax error, unexpected ',', expecting `end'
:Name => "Troblesome Ghosts",
^
[Modern Quest System + UI] 004_Quest_Data.rb:340: syntax error, unexpected string literal, expecting local variable or method
:Stage1 => "Find out if these ghosts are ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:340: syntax error, unexpected ',', expecting `end'
...sts are known by anyone else.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:342: syntax error, unexpected string literal, expecting local variable or method
:Stage3 => "Tell the little girl about wh...
^
[Modern Quest System + UI] 004_Quest_Data.rb:342: syntax error, unexpected ',', expecting `end'
...ttle girl about what you did.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:344: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Wavellite Harbor",
^
[Modern Quest System + UI] 004_Quest_Data.rb:344: syntax error, unexpected ',', expecting `end'
...ocation2 => "Wavellite Harbor",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:346: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "Rumors say that ghosts haunt ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:346: syntax error, unexpected ',', expecting `end'
...t who cares, ghosts are cute!",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:348: syntax error, unexpected '}', expecting `end'
[Modern Quest System + UI] 004_Quest_Data.rb:351: syntax error, unexpected symbol literal, expecting label or ** or **arg or string literal
:ID => "27",
^
[Modern Quest System + UI] 004_Quest_Data.rb:352: syntax error, unexpected string literal, expecting local variable or method
:Name => "Gizem's Request",
^
[Modern Quest System + UI] 004_Quest_Data.rb:352: syntax error, unexpected ',', expecting `end'
:Name => "Gizem's Request",
^
[Modern Quest System + UI] 004_Quest_Data.rb:354: syntax error, unexpected string literal, expecting local variable or method
:Stage1 => "Go to Fluorite City from the ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:354: syntax error, unexpected ',', expecting `end'
...City from the boat on Route 8",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:356: syntax error, unexpected string literal, expecting local variable or method
:Stage3 => "Enter the School of Legends.",
^
[Modern Quest System + UI] 004_Quest_Data.rb:356: syntax error, unexpected ',', expecting `end'
..."Enter the School of Legends.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:358: syntax error, unexpected string literal, expecting local variable or method
:Stage5 => "Enter the unknown person's ho...
^
[Modern Quest System + UI] 004_Quest_Data.rb:358: syntax error, unexpected ',', expecting `end'
...r the unknown person's house.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:360: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Route 24",
^
[Modern Quest System + UI] 004_Quest_Data.rb:360: syntax error, unexpected ',', expecting `end'
:Location2 => "Route 24",
^
[Modern Quest System + UI] 004_Quest_Data.rb:362: syntax error, unexpected string literal, expecting local variable or method
:Location4 => "Calcite City",
^
[Modern Quest System + UI] 004_Quest_Data.rb:362: syntax error, unexpected ',', expecting `end'
:Location4 => "Calcite City",
^
[Modern Quest System + UI] 004_Quest_Data.rb:364: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "You're finally the Champion o...
^
[Modern Quest System + UI] 004_Quest_Data.rb:364: syntax error, unexpected ',', expecting `end'
...dventure is already begining.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:366: syntax error, unexpected '}', expecting `end'
 

ThatWelshOne_

Champion
Member
Why do I have so many more errors?
[Modern Quest System + UI] 004_Quest_Data.rb:338: syntax error, unexpected string literal, expecting local variable or method
:Name => "Troblesome Ghosts",
^
[Modern Quest System + UI] 004_Quest_Data.rb:338: syntax error, unexpected ',', expecting `end'
:Name => "Troblesome Ghosts",
^
[Modern Quest System + UI] 004_Quest_Data.rb:340: syntax error, unexpected string literal, expecting local variable or method
:Stage1 => "Find out if these ghosts are ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:340: syntax error, unexpected ',', expecting `end'
...sts are known by anyone else.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:342: syntax error, unexpected string literal, expecting local variable or method
:Stage3 => "Tell the little girl about wh...
^
[Modern Quest System + UI] 004_Quest_Data.rb:342: syntax error, unexpected ',', expecting `end'
...ttle girl about what you did.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:344: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Wavellite Harbor",
^
[Modern Quest System + UI] 004_Quest_Data.rb:344: syntax error, unexpected ',', expecting `end'
...ocation2 => "Wavellite Harbor",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:346: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "Rumors say that ghosts haunt ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:346: syntax error, unexpected ',', expecting `end'
...t who cares, ghosts are cute!",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:348: syntax error, unexpected '}', expecting `end'
[Modern Quest System + UI] 004_Quest_Data.rb:351: syntax error, unexpected symbol literal, expecting label or ** or **arg or string literal
:ID => "27",
^
[Modern Quest System + UI] 004_Quest_Data.rb:352: syntax error, unexpected string literal, expecting local variable or method
:Name => "Gizem's Request",
^
[Modern Quest System + UI] 004_Quest_Data.rb:352: syntax error, unexpected ',', expecting `end'
:Name => "Gizem's Request",
^
[Modern Quest System + UI] 004_Quest_Data.rb:354: syntax error, unexpected string literal, expecting local variable or method
:Stage1 => "Go to Fluorite City from the ...
^
[Modern Quest System + UI] 004_Quest_Data.rb:354: syntax error, unexpected ',', expecting `end'
...City from the boat on Route 8",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:356: syntax error, unexpected string literal, expecting local variable or method
:Stage3 => "Enter the School of Legends.",
^
[Modern Quest System + UI] 004_Quest_Data.rb:356: syntax error, unexpected ',', expecting `end'
..."Enter the School of Legends.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:358: syntax error, unexpected string literal, expecting local variable or method
:Stage5 => "Enter the unknown person's ho...
^
[Modern Quest System + UI] 004_Quest_Data.rb:358: syntax error, unexpected ',', expecting `end'
...r the unknown person's house.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:360: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Route 24",
^
[Modern Quest System + UI] 004_Quest_Data.rb:360: syntax error, unexpected ',', expecting `end'
:Location2 => "Route 24",
^
[Modern Quest System + UI] 004_Quest_Data.rb:362: syntax error, unexpected string literal, expecting local variable or method
:Location4 => "Calcite City",
^
[Modern Quest System + UI] 004_Quest_Data.rb:362: syntax error, unexpected ',', expecting `end'
:Location4 => "Calcite City",
^
[Modern Quest System + UI] 004_Quest_Data.rb:364: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "You're finally the Champion o...
^
[Modern Quest System + UI] 004_Quest_Data.rb:364: syntax error, unexpected ',', expecting `end'
...dventure is already begining.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:366: syntax error, unexpected '}', expecting `end'
Based on past errors you've reported, the issue is most definitely missing commas again.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
156
SyntaxEditor Code SnippetQuest26 => {
:ID => "26",
:Name => "Troblesome Ghosts",
:QuestGiver => "Someone terrified of ghosts",
:Stage1 => "Find out if these ghosts are known by anyone else.",
:Stage2 => "CAPTURE THE GHOSTS unless you want a permanently incomplete Pokedex.",
:Stage3 => "Tell the little girl about what you did.",
:Location1 => "Wavellite Harbor",
:Location2 => "Wavellite Harbor",
:Location3 => "Wavellite Harbor",
:QuestDescription => "Rumors say that ghosts haunt certain places of Wavellite... But who cares, ghosts are cute!",
:RewardString => "Some cute and cool Ghost-types!"
}

Quest27 => {
:ID => "27",
:Name => "Gizem's Request",
:QuestGiver => "Gizem",
:Stage1 => "Go to Fluorite City from the boat on Route 8",
:Stage2 => "Talk to Gizem.",
:Stage3 => "Enter the School of Legends.",
:Stage4 => "Go to Calcite City.",
:Stage5 => "Enter the unknown person's house.",
:Location1 => "Route 8",
:Location2 => "Route 24",
:Location3 => "Route 24",
:Location4 => "Calcite City",
:Location5 => "Calcite City",
:QuestDescription => "You're finally the Champion of Otnak, but it seems a new adventure is already begining.",
:RewardString => "Uh......"
}
end
 

ThatWelshOne_

Champion
Member
SyntaxEditor Code SnippetQuest26 => {
:ID => "26",
:Name => "Troblesome Ghosts",
:QuestGiver => "Someone terrified of ghosts",
:Stage1 => "Find out if these ghosts are known by anyone else.",
:Stage2 => "CAPTURE THE GHOSTS unless you want a permanently incomplete Pokedex.",
:Stage3 => "Tell the little girl about what you did.",
:Location1 => "Wavellite Harbor",
:Location2 => "Wavellite Harbor",
:Location3 => "Wavellite Harbor",
:QuestDescription => "Rumors say that ghosts haunt certain places of Wavellite... But who cares, ghosts are cute!",
:RewardString => "Some cute and cool Ghost-types!"
}

Quest27 => {
:ID => "27",
:Name => "Gizem's Request",
:QuestGiver => "Gizem",
:Stage1 => "Go to Fluorite City from the boat on Route 8",
:Stage2 => "Talk to Gizem.",
:Stage3 => "Enter the School of Legends.",
:Stage4 => "Go to Calcite City.",
:Stage5 => "Enter the unknown person's house.",
:Location1 => "Route 8",
:Location2 => "Route 24",
:Location3 => "Route 24",
:Location4 => "Calcite City",
:Location5 => "Calcite City",
:QuestDescription => "You're finally the Champion of Otnak, but it seems a new adventure is already begining.",
:RewardString => "Uh......"
}
end
It looks like you've written Quest26 => { rather than Quest26 = {. Same for Quest27.
 

TeraPulse

Silver Pinap Collector
Member
Joined
Nov 13, 2022
Posts
26
I'm getting this error when I try and activate a quest:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 1 (coords 3,10), map 48 (Route 3)
Exception: NameError
Message: undefined local variable or method `orange' for #<Interpreter @event_id: 1>

***Full script:
activateQuest(1,orange,true)
activateQuest(2,blue,false)
activateQuest(3,blue,false)
activateQuest(4,blue,false)
activateQuest(6,blue,false)
activateQuest(5,orange,true)
activateQuest(7,orange,true)

Backtrace:
(eval):1:in `execute_script'
033:Interpreter:143:in `eval'
033:Interpreter:143:in `execute_script'
034:Interpreter_Commands:1112:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:133:in `block in update'
033:Interpreter:90:in `loop'
033:Interpreter:90:in `update'
032:Scene_Map:160:in `block in update'
032:Scene_Map:159:in `loop'

Do I need to define what each variable is or am I just not doing it properly?
 

ThatWelshOne_

Champion
Member
I'm getting this error when I try and activate a quest:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 1 (coords 3,10), map 48 (Route 3)
Exception: NameError
Message: undefined local variable or method `orange' for #<Interpreter @event_id: 1>

***Full script:
activateQuest(1,orange,true)
activateQuest(2,blue,false)
activateQuest(3,blue,false)
activateQuest(4,blue,false)
activateQuest(6,blue,false)
activateQuest(5,orange,true)
activateQuest(7,orange,true)

Backtrace:
(eval):1:in `execute_script'
033:Interpreter:143:in `eval'
033:Interpreter:143:in `execute_script'
034:Interpreter_Commands:1112:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:133:in `block in update'
033:Interpreter:90:in `loop'
033:Interpreter:90:in `update'
032:Scene_Map:160:in `block in update'
032:Scene_Map:159:in `loop'

Do I need to define what each variable is or am I just not doing it properly?
Hi!
The first option after the opening parenthesis should be the symbolic name of your quest. So if in 004_Quest_Data.rb, you wrote:
Ruby:
Quest0 = {
CODE BITS
}
The symbolic name of your quest is :Quest0 (notice the colon in front as well).

For the colour argument, it needs to look like colorQuest("orange"). I can't remember why I did it like this but it needs to follow this format currently.

The third argument (where you have "true") makes the quest name text on the UI bold.

Putting all this together, your code should look like, for example:
activateQuest(:Quest0, colorQuest("orange"), true)

Hope that helps!
 

TeraPulse

Silver Pinap Collector
Member
Joined
Nov 13, 2022
Posts
26
It's fixed that issue, but now I'm getting this:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 1 (coords 3,10), map 48 (Route 3)
Exception: SyntaxError
Message: (eval):2: syntax error, unexpected (, expecting ')'
("orange"), true)
^
(eval):2: syntax error, unexpected ',', expecting end-of-input
("orange"), true)
^

***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.

***Full script:
activateQuest(:Quest1, colorQuest
("orange"), true)
activateQuest(:Quest5, colorQuest
("orange"), true)
activateQuest(:Quest2, colorQuest
("blue"), true)
activateQuest(:Quest3, colorQuest
("blue"), true)
activateQuest(:Quest4, colorQuest
("blue"), true)
activateQuest(:Quest6, colorQuest
("blue"), true)
activateQuest(:Quest7, colorQuest
("orange"), true)

I'm guessing I'll need to use extendtext.exe, but I thought it would be best to ask first.

Edit: Fixed it now. Thank you!
 
Last edited:

ThatWelshOne_

Champion
Member
It's fixed that issue, but now I'm getting this:

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 1 (coords 3,10), map 48 (Route 3)
Exception: SyntaxError
Message: (eval):2: syntax error, unexpected (, expecting ')'
("orange"), true)
^
(eval):2: syntax error, unexpected ',', expecting end-of-input
("orange"), true)
^

***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("blue"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Line '("orange"), true)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.

***Full script:
activateQuest(:Quest1, colorQuest
("orange"), true)
activateQuest(:Quest5, colorQuest
("orange"), true)
activateQuest(:Quest2, colorQuest
("blue"), true)
activateQuest(:Quest3, colorQuest
("blue"), true)
activateQuest(:Quest4, colorQuest
("blue"), true)
activateQuest(:Quest6, colorQuest
("blue"), true)
activateQuest(:Quest7, colorQuest
("orange"), true)

I'm guessing I'll need to use extendtext.exe, but I thought it would be best to ask first.
Your guess is correct.
 

Amallah

Horror Maze Enthusiast
Member
Joined
Apr 3, 2023
Posts
42
Heya! First off, I wanted to say I love the look of this quest system! It looks like it'll help me manage the main story and side stories that I have planned out quite well. I managed to get everything working with one of the example quests, I could pick it up, view the menu entry, no problem.

There was something I wanted to change, but got an error trying to change it myself, so I guess I should ask: is it possible to rename the mentions of "quests" in the messages into something else, like "journal"? I got the menu entry updated to say "Journal" with no issues, and so I then wanted to try rewording this sentence for example: "New quest discovered! Check your quest log for more details!" into something like this: "New journal entry added! Check your journal for more details."

So I decided to change this line on line 71 in 002_Quest_Main.rb:

Ruby:
pbMessage(_INTL("\\se[{1}]<ac><c2=#{colorQuest("red")}>New quest discovered!</c2>\nCheck your quest log for more details!</ac>",QUEST_JINGLE))

into this:

Ruby:
pbMessage(_INTL("\\se[{1}]<ac><c2=#{colorQuest("red")}>New journal entry added!</c2>\nCheck your journal for more details.</ac>",QUEST_JINGLE))

I then did a full compile and restarted RPG Maker XP just in case. When I picked up a quest in my current save file again, it still showed the old "New quest discovered!" bit instead of my updated line. I then decided to try a new save file in case that mattered at all, and that's when I came across an error:

Code:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: SystemStackError
Message: stack level too deep

Backtrace:
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'
[Modern Quest System + UI] 002_Quest_Main.rb:183:in `initialize'

I probably did something dumb, so I reverted all my changes in Main.rb, and then did a full compile and RPG Maker XP restart. I went back to try starting a new save file again to see if reverting the changes worked, but the same error persisted. So I fully reinstalled the plugin, and now I have no issues starting a new save after that.

Was my line of thinking on what I should change in the script incorrect, or was there more I needed to change in other parts of the script so that line could be displayed correctly?

Edit: So I managed to get the "New journal entry added! Check your journal for more details." working after another RPG Maker XP restart using my old save file, but creating a new save file still causes the stack level error above.
 
Last edited:

Amallah

Horror Maze Enthusiast
Member
Joined
Apr 3, 2023
Posts
42
I've solved my issue! I don't understand how or why this was causing an issue, but when I was editing the script using Notepad++, it was creating a .bak (backup) file, which is apparently a setting it has on by default. I deleted the backup files it created, and now everything works perfectly, including the quest -> journal name changes. Just going to disable that feature 😅 Sorry for the bother, but I hope this helps whoever else might have this issue!
 

Shining

Novice
Member
Joined
Oct 5, 2022
Posts
33
hey there, love the QuestSystem but im trying to change the UI measures by just making more space for the Stage/Task descriptions but i can't find where its defined
 

ThatWelshOne_

Champion
Member
hey there, love the QuestSystem but im trying to change the UI measures by just making more space for the Stage/Task descriptions but i can't find where its defined
What do you want to increase exactly? The code that draws the stage description is on line 252 of 003_Quest_UI.rb for me. The actual UI is effectively an image and is not drawn by code. If you want to increase the size of the small box at the bottom of the UI, you'll need to actually edit Graphics\Pictures\QuestUI\bg_2.png
 

Shining

Novice
Member
Joined
Oct 5, 2022
Posts
33
What do you want to increase exactly? The code that draws the stage description is on line 252 of 003_Quest_UI.rb for me. The actual UI is effectively an image and is not drawn by code. If you want to increase the size of the small box at the bottom of the UI, you'll need to actually edit Graphics\Pictures\QuestUI\bg_2.png
Like i said i wanted to enlarge the lower textbox so i have more space for the Stage description.
I changed the bg_2 already but that doest change where the text starts. Does your code scan the picture? I just assumed it was measured and hardcoded where which textbox begins.
 
Back
Top