Hello. I keep running into the following error. I've installed Multiple Protagonists into my own project and I've fiddled around with a few things to try to get it to work, but to no avail. I've also created a brand new project and installed Multiple Protagonists and I got the exact same error. I imagine I must be doing something wrong, but I cannot for the life of me figure out what it is.
My mistake, I should have clarified, this error is occurring when I attempt to playtest my project. It crashes before it reaches the Continue screen. Not to mention, the brand new project that has the exact same error doesn't even have a save file on it at all. Very puzzling.
My mistake, I should have clarified, this error is occurring when I attempt to playtest my project. It crashes before it reaches the Continue screen. Not to mention, the brand new project that has the exact same error doesn't even have a save file on it at all. Very puzzling.
I think you have to manually delete the save data- the error message is referring to the player name, which is usually displayed at the Continue screen.
If you have any save file for "Pokemon Essentials v19.1" at all, it'll be called by your new project, even if you didn't start the save on that specific game.exe.
I think you have to manually delete the save data- the error message is referring to the player name, which is usually displayed at the Continue screen.
If you have any save file for "Pokemon Essentials v19.1" at all, it'll be called by your new project, even if you didn't start the save on that specific game.exe.
Just bringing this up but after every trainer battle I get this error I went and disable elite battle to see if it is that and checked , nope its not that so is it working normal what did I do wrong I followed your comments in the rb file
Just bringing this up but after every trainer battle I get this error I went and disable elite battle to see if it is that and checked , nope its not that so is it working normal what did I do wrong I followed your comments in the rb file
Is it possible to set it so certain systems are shared rather than them having their own? I would like the PC/Box Pokemon to be shared, as well as the Pokedex data (seen/caught).
Is it possible to set it so certain systems are shared rather than them having their own? I would like the PC/Box Pokemon to be shared, as well as the Pokedex data (seen/caught).
Yes, for the PC storage, you can simply comment out any lines in the script that contain PokemonStorage or PCItemStorage and start a new save.
The Pokedex info is a bit trickier because that is stored within the general $Trainer object, so it can't just be commented out because you'd be sharing a lot more than just the Pokedex. I think you could try this: at the start of the game, save the first player's Pokedex to a Game Variable with this Script:
Ruby:
$game_variables[XXX] = $Trainer.pokedex
Then inside this script, find the above line on 502 and place this line below it:
Ruby:
newmeta[PBCharacterData::Trainer] = $Trainer # Find this
$Trainer.pokedex = $game_variables[XXX] # Add this below
In script section Player, find this line:
Ruby:
attr_reader :pokedex
and change it to:
Ruby:
attr_accessor :pokedex
I haven't tested this, so let me know if it works.
You can add it by going to script section 001_VoltseonMenu_Config and adding "MenuEntrySwitch" inside the MENU_ENTRIES list, then going to 005_VoltseonMenu_Entries and adding this code at the bottom:
Ruby:
#-------------------------------------------------------------------------------
# Entry for Multiple Protagonists Switch screen by NettoHikari
#-------------------------------------------------------------------------------
class MenuEntrySwitch < MenuEntry
def initialize
@icon = "menuDebug"
@name = "Switch"
end
def selected(menu)
characters = []
characterIDs = []
for i in 0...8
if $PokemonGlobal.allowedCharacters[i] && i != $Trainer.character_ID
characters.push(getTrainerFromCharacter(i).name)
characterIDs.push(i)
end
end
if characters.length <= 0
pbMessage(_INTL("You're the only character!"))
next
end
characters.push("Cancel")
command = pbShowCommands(nil, characters, characters.length)
if command >= 0 && command < characters.length - 1
menu.pbHideMenu
pbSwitchCharacter(characterIDs[command])
break
end
end
def selectable?
return $PokemonGlobal.commandCharacterSwitchOn && !pbInSafari? &&
!pbInBugContest? && !pbBattleChallenge.pbInProgress?
end
end
You can add it by going to script section 001_VoltseonMenu_Config and adding "MenuEntrySwitch" inside the MENU_ENTRIES list, then going to 005_VoltseonMenu_Entries and adding this code at the bottom:
Ruby:
#-------------------------------------------------------------------------------
# Entry for Multiple Protagonists Switch screen by NettoHikari
#-------------------------------------------------------------------------------
class MenuEntrySwitch < MenuEntry
def initialize
@icon = "menuDebug"
@name = "Switch"
end
def selected(menu)
characters = []
characterIDs = []
for i in 0...8
if $PokemonGlobal.allowedCharacters[i] && i != $Trainer.character_ID
characters.push(getTrainerFromCharacter(i).name)
characterIDs.push(i)
end
end
if characters.length <= 0
pbMessage(_INTL("You're the only character!"))
next
end
characters.push("Cancel")
command = pbShowCommands(nil, characters, characters.length)
if command >= 0 && command < characters.length - 1
menu.pbHideMenu
pbSwitchCharacter(characterIDs[command])
break
end
end
def selectable?
return $PokemonGlobal.commandCharacterSwitchOn && !pbInSafari? &&
!pbInBugContest? && !pbBattleChallenge.pbInProgress?
end
end
hi, im using in 18.1 (essentials gsc use that) works but when i put "pbTrainerName" make me put a name with the keyboard (our game have protagonist with they own name), and in switch show me other games (not that between ""), is more like put pbTrainerName to trainer i was used when i choose, if i got id 0 and select Porygon, character 0 got the name of Porygon. And idk how fix it. Thanks
View attachment 8699
hi, im using in 18.1 (essentials gsc use that) works but when i put "pbTrainerName" make me put a name with the keyboard (our game have protagonist with they own name), and in switch show me other games (not that between ""), is more like put pbTrainerName to trainer i was used when i choose, if i got id 0 and select Porygon, character 0 got the name of Porygon. And idk how fix it. Thanks
Please read the documentation at the top of my script again. You cannot call "pbSwitchCharacter" and "pbTrainerName" consecutively. You have to combine them, like so:
This section is for the discussion of the tutorials and resources on Eevee Expo. To find tutorials and resources, check out the Tutorial and Resource Manager for optimal navigation.