Opened 15 years ago

Closed 33 hours ago

#4562 closed defect (outdated)

SCUMM/HE: Spy Fox: Cheese Chase - can't create new levels

Reported by: SF/truus999 Owned by: bluegr
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game:

Description

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

Ticket imported from: #2843146. Ticket imported from: bugs/4562.

Change History (11)

comment:1 by sev-, 15 years ago

Owner: set to Kirben
Priority: normalhigh
Summary: SPy Fox Cheese Chase can't create new levelsCHASE: can't create new levels

comment:2 by sev-, 15 years ago

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

comment:3 by Kirben, 15 years ago

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.

comment:4 by fingolfin, 15 years ago

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

comment:5 by sev-, 14 years ago

Lowering priority

comment:6 by sev-, 14 years ago

Priority: highnormal

comment:7 by bluegr, 11 years ago

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."

comment:8 by Strangerke, 11 years ago

Component: --Unset--Engine: SCUMM

comment:9 by raziel-, 4 years ago

Summary: CHASE: can't create new levelsSCUMM: Spy Fox: Cheese Chase - can't create new levels

comment:10 by sev-, 3 years ago

Summary: SCUMM: Spy Fox: Cheese Chase - can't create new levelsSCUMM/HE: Spy Fox: Cheese Chase - can't create new levels

comment:11 by bluegr, 33 hours ago

Owner: changed from Kirben to bluegr
Resolution: outdated
Status: newclosed

This works fine now, as ScummEngine_v60he::convertFilePath() is able to handle files in subfolders, by prefixing them.

Closing as outofdate

Note: See TracTickets for help on using tickets.