MantisBT - VCMI |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001557 | VCMI | Other | public | 2013-10-22 21:35 | 2016-09-30 10:52 |
|
Reporter | Povelitel | |
Assigned To | SXX | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | PC | OS | Windows7 | OS Version | sp1 |
Product Version | 0.94 | |
Target Version | | Fixed in Version | 0.97c | |
|
Summary | 0001557: Impossible to start game with dot "." symbol in the map name. |
Description | If in the name of the map there is a point symbol "." on it it is impossible to play.
example
Map MAPS/APEIRON - VER 1.2 is invalid. Message: Resource with name MAPS/APEIRON - VER 1 and type MAP wasn't found. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0002533 | closed | AVS | Maps with dot in file name are not recognized as valid maps in scenario list |
|
Attached Files | Apeiron - ver 1.2.h3m (97,929) 2013-10-22 21:35 https://bugs.vcmi.eu/file_download.php?file_id=1600&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2013-10-22 21:35 | Povelitel | New Issue | |
2013-10-22 21:35 | Povelitel | File Added: Apeiron - ver 1.2.h3m | |
2014-02-18 13:55 | Povelitel | Note Added: 0004492 | |
2014-02-18 13:56 | Povelitel | Note Edited: 0004492 | bug_revision_view_page.php?bugnote_id=4492#r2521 |
2014-02-18 16:52 | Ivan | Summary | Start game. "Point" symbol in the map name. => Impossible to start game with dot "." symbol in the map name. |
2014-02-18 16:52 | Ivan | Assigned To | => Ivan |
2014-02-18 16:52 | Ivan | Status | new => assigned |
2015-01-26 08:40 | SXX | Note Added: 0005399 | |
2015-01-26 08:52 | SXX | Note Edited: 0005399 | bug_revision_view_page.php?bugnote_id=5399#r2800 |
2015-01-26 13:39 | SXX | Assigned To | Ivan => SXX |
2015-01-26 14:22 | SXX | Note Added: 0005400 | |
2015-02-07 15:19 | SXX | Note Added: 0005422 | |
2015-02-07 15:19 | SXX | Status | assigned => resolved |
2015-02-07 15:19 | SXX | Fixed in Version | => 0.97c |
2015-02-07 15:19 | SXX | Resolution | open => fixed |
2015-04-11 18:08 | Povelitel | Status | resolved => closed |
2016-09-30 10:52 | Povelitel | Relationship added | related to 0002533 |
Notes |
|
(0004492)
|
Povelitel
|
2014-02-18 13:55
(edited on: 2014-02-18 13:56) |
|
Проще говоря если в названии карты есть символ "точка", то в игре ее нифига не видно.
|
|
|
(0005399)
|
SXX
|
2015-01-26 08:40
(edited on: 2015-01-26 08:52) |
|
So this one was annoying for me too so I'm decide to investigate and fix it.
End up that this happen because ResourceID::setName coded to remove file extension because all game resources only contain one dot.
Though when you open new game menu game going through list of maps and their extension already removed at this point. As result "setName" remove one more part of map name and loading of header fail for this map.
|
|
|
(0005400)
|
SXX
|
2015-01-26 14:22
|
|
Sent fix as pull request:
https://github.com/vcmi/vcmi/pull/79 [^]
Now detected "extension" (everything after last dot) of file will be only removed if it's belongs to specified file type. So basically such filenames would work now:
MapName 1.0.h3m
M.a.p.N.a.m.e.h3m
MapName.txt.h3m
MapName.json.h3m
Though filenames like that wouldn't work:
MapName 1.0.h3m.h3m
Though I think it's right behavior for that case. |
|
|
(0005422)
|
SXX
|
2015-02-07 15:19
|
|
|