I understand Openkore already support instanced map. but is seem only support instanced name with additional 3digits name (ie: 0011@cata), while this kind of instance name is not supported: 0qs1@mist , 0oa1@mist , 0o71@mist
Please correct me if I'm wrong.
I check the source code, seem this part of the code need to be update :
(Field.pm)
Code: Select all
# Map a field name to its field file's base name.
sub nameToBaseName {
my ($self, $name) = @_;
my ($instanceID);
if ($name =~ /^(\d{3})(\d@.*)/) { # instanced maps, ex: 0021@cata
$instanceID = $1;
$name = $2;
}
return ($name, $instanceID);
}
I'm planning to change
Code: Select all
if ($name =~ /^(\d{3})(\d@.*)/)
Code: Select all
if ($name =~ /^(\d..)(\d@.*)/)