• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Modern Quest System + UI

Resource Modern Quest System + UI 1.1.0

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
I get this error when starting the game
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:194: syntax error, unexpected symbol literal, expecting '}'
:Location1 => "Route 40",
^
[Modern Quest System + UI] 004_Quest_Data.rb:195: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Dolerite Town",
^
[Modern Quest System + UI] 004_Quest_Data.rb:195: syntax error, unexpected ',', expecting `end'
... :Location2 => "Dolerite Town",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:197: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "As Erika fell asleep a Pokém...
^
[Modern Quest System + UI] 004_Quest_Data.rb:197: syntax error, unexpected ',', expecting `end'
...kémon told you to follow it.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:199: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
 

ThatWelshOne_

Champion
Member
I get this error when starting the game
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:194: syntax error, unexpected symbol literal, expecting '}'
:Location1 => "Route 40",
^
[Modern Quest System + UI] 004_Quest_Data.rb:195: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Dolerite Town",
^
[Modern Quest System + UI] 004_Quest_Data.rb:195: syntax error, unexpected ',', expecting `end'
... :Location2 => "Dolerite Town",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:197: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "As Erika fell asleep a Pokém...
^
[Modern Quest System + UI] 004_Quest_Data.rb:197: syntax error, unexpected ',', expecting `end'
...kémon told you to follow it.",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:199: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
Another issue with your quest data.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
SyntaxEditor Code SnippetQuest16 = {
:ID => "16",
:Name => "Life against Death",
:QuestGiver => "Xerneas and Erika",
:Stage1 => "Enter the house that leads to the Dolerite Shaft.",
:Stage2 => "Proceed through the Dolerite Shaft to enter Death's Tomb.",
:Stage3 => "Make space in your party for Xerneas, then return to Death's Tomb",
:Stage4 => "Tell Erika that Yveltal is not longer threatening life.",
:Stage5 => "Check on Viridescent.",
:Location1 => "Dolerite Town",
:Location2 => "Dolerite Shaft",
:Location3 => "Death's Tomb I guess",
:Location4 => "Dolerite Shaft",
:Location5 => "Dolerite Town",
:QuestDescription => "After beating Erika, Yveltal began to escape it's tomb.",
:RewardString => "The safety of all living things."
}
 

ThatWelshOne_

Champion
Member
SyntaxEditor Code SnippetQuest16 = {
:ID => "16",
:Name => "Life against Death",
:QuestGiver => "Xerneas and Erika",
:Stage1 => "Enter the house that leads to the Dolerite Shaft.",
:Stage2 => "Proceed through the Dolerite Shaft to enter Death's Tomb.",
:Stage3 => "Make space in your party for Xerneas, then return to Death's Tomb",
:Stage4 => "Tell Erika that Yveltal is not longer threatening life.",
:Stage5 => "Check on Viridescent.",
:Location1 => "Dolerite Town",
:Location2 => "Dolerite Shaft",
:Location3 => "Death's Tomb I guess",
:Location4 => "Dolerite Shaft",
:Location5 => "Dolerite Town",
:QuestDescription => "After beating Erika, Yveltal began to escape it's tomb.",
:RewardString => "The safety of all living things."
}
I don't think that's the right data. The error you sent says the QuestDescription starts "As Erika fell asleep...".
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
Oops.
This should be the right one.
Quest15 = {
:ID => "15",
:Name => "Encounter with a Legendary Pokémon",
:QuestGiver => "nil",
:Stage1 => "Follow the Pokémon.",
:Stage2 => "Ask Erika to join you and Xerneas in the plan to stop Yveltal.",
:Stage3 => "Battle Erika."
:Location1 => "Route 40",
:Location2 => "Dolerite Town",
:Location3 => "Dolerite Town",
:QuestDescription => "As Erika fell asleep a Pokémon told you to follow it.",
:RewardString => "nil"
}
 

ThatWelshOne_

Champion
Member
Oops.
This should be the right one.
Quest15 = {
:ID => "15",
:Name => "Encounter with a Legendary Pokémon",
:QuestGiver => "nil",
:Stage1 => "Follow the Pokémon.",
:Stage2 => "Ask Erika to join you and Xerneas in the plan to stop Yveltal.",
:Stage3 => "Battle Erika."
:Location1 => "Route 40",
:Location2 => "Dolerite Town",
:Location3 => "Dolerite Town",
:QuestDescription => "As Erika fell asleep a Pokémon told you to follow it.",
:RewardString => "nil"
}
Looks like you're missing a comma at the end of the Stage3 line.
 

Semolous

Novice
Member
Joined
Jun 5, 2022
Posts
31
'5. You MUST start a new save. Otherwise, your game will crash when you try to open the UI.'

You actually don't. I tested it myself
 

ZeDivingDutchman

Novice
Member
Joined
Feb 9, 2021
Posts
14
Hey, me again after a long break! Anyway to update the quest's description as the stages progress? I might be dumb but I cant figure it out :P Feel like I can somehow add it to the script but I am clueless.
 

ThatWelshOne_

Champion
Member
Hey, me again after a long break! Anyway to update the quest's description as the stages progress? I might be dumb but I cant figure it out :P Feel like I can somehow add it to the script but I am clueless.
Yes, that's possible. I think the easiest solution is to add a new field into 004_Quest_Data.rb that's QuestDescriptionX for StageX. For example:
Ruby:
Expand Collapse Copy
Quest1 = {
  :Stage1 => "A",
  :QuestDescription1 => "B",
  :Stage2 => "C",
  :QuestDescription2 => "D"
}
We then need to get the game to recognise this change. Open 002_Quest_Main.rb and find def getQuestDescription. Change the entire method to this:
Ruby:
Expand Collapse Copy
def getQuestDescription(quest,stage)
  stg = ("QuestDescription" + "#{stage}").to_sym
  return "#{QuestModule.const_get(quest)[stg]}"
end
Be careful here since now all quests will need as many QuestDescription fields as there are stages. You could add a check for that if you wanted.
Finally, I think you'll need to change line 240 of 003_Quest_UI.rb to this:
Ruby:
Expand Collapse Copy
questDesc = "<c2=#{colorQuest("blue")}>Overview:</c2> #{$quest_data.getQuestDescription(quest.id,quest.stage)}"
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
I have more errors now that I finally have tried to load the game after a few weeks so there's a lot.
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:251: syntax error, unexpected symbol literal, expecting '}'
:Location1 => "Astral Observat...
^
[Modern Quest System + UI] 004_Quest_Data.rb:252: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Astral Observations HQ",
^
[Modern Quest System + UI] 004_Quest_Data.rb:252: syntax error, unexpected ',', expecting `end'
...n2 => "Astral Observations HQ",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:254: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "Now that Cos and Mog have evo...
^
[Modern Quest System + UI] 004_Quest_Data.rb:254: syntax error, unexpected ',', expecting `end'
...ved, Nagesh wants them back. ",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:256: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
 

ThatWelshOne_

Champion
Member
I have more errors now that I finally have tried to load the game after a few weeks so there's a lot.
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:251: syntax error, unexpected symbol literal, expecting '}'
:Location1 => "Astral Observat...
^
[Modern Quest System + UI] 004_Quest_Data.rb:252: syntax error, unexpected string literal, expecting local variable or method
:Location2 => "Astral Observations HQ",
^
[Modern Quest System + UI] 004_Quest_Data.rb:252: syntax error, unexpected ',', expecting `end'
...n2 => "Astral Observations HQ",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:254: syntax error, unexpected string literal, expecting local variable or method
:QuestDescription => "Now that Cos and Mog have evo...
^
[Modern Quest System + UI] 004_Quest_Data.rb:254: syntax error, unexpected ',', expecting `end'
...ved, Nagesh wants them back. ",
... ^
[Modern Quest System + UI] 004_Quest_Data.rb:256: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
Most likely missing quotes and commas again. Share your quest data for this quest.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
SyntaxEditor Code SnippetQuest19 = {
:ID => "19",
:Name => "The Creatures of Light",
:QuestGiver => "Nagesh",
:Stage1 => "Return Cos and Moem to Nagesh.",
:Stage2 => "Don't return Cos and Moem and instead go to the basement.",
:Stage3 => "Tell Nagesh about what just happened to Cos and Moem.",
:Stage4 => "Use the teleporter in Nagesh's office to enter the Altar of Light."
:Location1 => "Astral Observations HQ",
:Location2 => "Astral Observations HQ",
:Location3 => "Astral Observations HQ",
:QuestDescription => "Now that Cos and Mog have evolved, Nagesh wants them back. ",
:RewardString => "nil"
}
 

ThatWelshOne_

Champion
Member
SyntaxEditor Code SnippetQuest19 = {
:ID => "19",
:Name => "The Creatures of Light",
:QuestGiver => "Nagesh",
:Stage1 => "Return Cos and Moem to Nagesh.",
:Stage2 => "Don't return Cos and Moem and instead go to the basement.",
:Stage3 => "Tell Nagesh about what just happened to Cos and Moem.",
:Stage4 => "Use the teleporter in Nagesh's office to enter the Altar of Light."
:Location1 => "Astral Observations HQ",
:Location2 => "Astral Observations HQ",
:Location3 => "Astral Observations HQ",
:QuestDescription => "Now that Cos and Mog have evolved, Nagesh wants them back. ",
:RewardString => "nil"
}
End of Stage4 line.
 

SirWeibrot

Novice
Member
Joined
Jan 30, 2021
Posts
21
Hi, I am currently editing the UI and I can't seem to find where to edit the quest name color

MQSUI.png
 

ThatWelshOne_

Champion
Member
Hi, I am currently editing the UI and I can't seem to find where to edit the quest name color

View attachment 15181
I believe this is controlled when you activate the quest:
activateQuest(quest,color=colorQuest(nil),story=false)
The second argument specifies the colour (it's grey by default).
For example, if you wanted the text to be white, you would do:
activateQuest(:Quest1,colorQuest("white"))

If you want to see all the currently accepted colours or if you want to change the default colour from grey to, say, white, then you should look at the colorQuest method at the bottom of 001_Quest_Config.rb.
 

koootaaaa

Rookie
Member
Joined
Feb 7, 2023
Posts
5
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?
 
Back
Top