If I understand well your problem, I can see two different solutions for it.
- The first approach (simplest and safest):
Looks like this script relies on the existence of at least 1 party member in the party.
Instead of removing all party members you may create something like a "dummy" actor with no graphics and add it to party and them remove it right after the first "real" party member is added.
- The second approach (complex and dangerous):
If you really, really, but really want or need to remove all party members from the initial party you can edit/patch the script where its returning the error.
By analyzing the error message, it seems at line 1683 the script is trying to call the method "character_name" from a nil actor (Probably because your starting party is empty).
To get around that you can check if the actor is nil before trying to retrieve the name from a non-existent actor, then return a default value if that is the case.
Something like this:
Spoiler: Game_Player
Ruby:
#============================================================================
# ** Game_Player
#----------------------------------------------------------------------------
# This class handles the player. It includes event starting determinants and
# map scrolling functions. The instance of this class is referenced by
# $game_player.
#============================================================================
class Game_Player < Game_Character
#------------------------------------------------------------------------
# * New: Refresh
#------------------------------------------------------------------------
def refresh
@character_name = actor ? actor.real_character_name : ""
@character_index = actor ? actor.real_character_index : 0
@followers.refresh
end
#------------------------------------------------------------------------
# New: character_name
#------------------------------------------------------------------------
def character_name
if CXJ::CLASS_EXTENSIONS::ENABLE_CLASS_SPECIFIC_GRAPHICS
return "" unless actor
cname = actor.character_name
cind = actor.character_index(@direction)
return cname if cname != actor.real_character_name || cind != actor.real_character_index
end
@character_name
end
#------------------------------------------------------------------------
# New: character_index
#------------------------------------------------------------------------
def character_index
if CXJ::CLASS_EXTENSIONS::ENABLE_CLASS_SPECIFIC_GRAPHICS
return 0 unless actor
cname = actor.character_name
cind = actor.character_index(@direction)
return cind if cname != actor.real_character_name || cind != actor.real_character_index
end
if $imported["CXJ-AnimEx"]
super
else
@character_index
end
end
#------------------------------------------------------------------------
# New: face_name
#------------------------------------------------------------------------
def face_name
if CXJ::CLASS_EXTENSIONS::ENABLE_CLASS_SPECIFIC_GRAPHICS
return "" unless actor
fname = actor.face_name
return fname if fname != actor.real_face_name || actor.face_index != actor.real_face_index
end
@face_name
end
#------------------------------------------------------------------------
# New: face_index
#------------------------------------------------------------------------
def face_index
if CXJ::CLASS_EXTENSIONS::ENABLE_CLASS_SPECIFIC_GRAPHICS
return 0 unless actor
fname = actor.face_name
return actor.face_index if fname != actor.real_face_name || actor.face_index != actor.real_face_index
end
@face_index
end
end
I altered just 4 lines of code: 23, 35, 51 and 62, but I posted the whole class anyway, just for completeness.
It's a null check for returning a default value if the actor is absent.
However, I can't guarantee this will work, and if it really works at game startup I can't guarantee it will work for rest of the game.
If the first approach works for you, I suggest you stick with it.