Menu

#4562 CHASE: can't create new levels

SCUMM unsorted
open
kirben
5
2014-08-14
2009-08-23
No

When trying to create cyustom levels you have to type a name. After this you get an error saying There has benn an error Invalid path specified. The game will create an entry in the menu list. My game is in another directory that scummvm (you have to go up 1 step and then to another branch (hope I'm clear on this) and looks like this
Cheese chase
-custom
-levels
gane files

There is no menu item in group for this game

Discussion

  • Eugene Sandulenko

    This bug is nice to get fixed before the release. Raising priority for keeping the track.

     
  • Eugene Sandulenko

    • priority: 5 --> 7
    • assigned_to: nobody --> kirben
    • summary: SPy Fox Cheese Chase can't create new levels --> CHASE: can't create new levels
     
  • kirben

    kirben - 2009-08-30

    The original version would create a separate directory for the custom levels of each users, but it isn't possible to create directories under ScummVM.

     
  • Max Horn

    Max Horn - 2009-09-25

    You could "fake" directories by cleverly naming your savestates. But I am not sure whether it would be worth the effort.

     
  • Eugene Sandulenko

    • priority: 7 --> 5
     
  • Eugene Sandulenko

    Lowering priority

     
  • Filippos Karapetis

    Here's an update for this, from pull request 366:
    https://github.com/scummvm/scummvm/pull/366

    "Also, I did hack in a solution for Cheese Chase, by adding this block inside convertFilePath(), after all the other path processing code:

    if (dst[0] == '*' && Common::isDigit(dst[2]) && Common::isDigit(dst[3]) && Common::isDigit(dst[4])) { // Custom levels (Cheese Chase)
    char customFile[40];
    memcpy(customFile, dst + 6, len - 6);
    customFile[len - 6] = 0;
    snprintf((char *)dst, dstSize, "%s-%s.%c%c%c", _targetName.c_str(), customFile, dst[2], dst[3], dst[4]);
    }

    Effectively, this changes files like "*\010\chase001.obj" to "ase-us-chase001.obj.010". Not optimal, but at least the player can create custom levels this way."

     
  • Strangerke

    Strangerke - 2013-11-17
    • Group: Unknown --> SCUMM unsorted