You are here

[Fixed] MPC-HC Portable - path not updated in default.mpcpl

9 posts / 0 new
Last post
kingtermite
kingtermite's picture
Offline
Last seen: 7 years 10 months ago
Joined: 2016-11-04 19:46
[Fixed] MPC-HC Portable - path not updated in default.mpcpl

The issue is that when you open a large playlist, it runs whenever you are at computer. However, obviously from the reason we are all using PortableApps in the first place, we may use them on different computers.

When I move from one computer to another, it's quite possible for the playlist which had it's place saved is no longer valid because it was pointing to say "D:" on the last computer, but this new computer it plugged in and initialized as "E:".

I don't think the MPC site itself maintains the PortableApps version, so I thought I'd try here. Wherever the playlist location information is stored, can it be updated to use PortableApps API or some other mechanism to determine the running drive and update it? Otherwise, it totally fails as if the files the playlist points to aren't there.

Is this the correct place to ask this or can somebody point me to a better place?

Title clarified & BUG tag added - mod GC

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 day 20 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
Confirmed

You're posting in the right spot, thanks for notifying us of the bug.

For anyone that is interested, it appears that we are not updating the path in default.mpcpl

[EDIT]

We will be fixing this shortly for everyone. For now, replace X:\PortableApps\MPC-HCPortable\App\Appinfo\Launcher\MPC-HCPortable.ini with the following:

[Launch]
ProgramExecutable=MPC-HC\mpc-hc.exe
DirectoryMoveOK=yes
SupportsUNC=yes

[FilesMove]
settings\mpc-hc.ini=%PAL:AppDir%\MPC-HC
settings\toolbar.bmp=%PAL:AppDir%\MPC-HC
settings\toolbar.png=%PAL:AppDir%\MPC-HC
settings\default.mpcpl=%PAL:AppDir%\MPC-HC

[FileWrite1]
File=%PAL:DataDir%\settings\mpc-hc.ini
Type=Replace
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite2]
File=%PAL:DataDir%\settings\mpc-hc.ini
Type=Replace
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite3]
File=%PAL:DataDir%\settings\mpc-hc.ini
Type=Replace
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite4]
File=%PAL:DataDir%\settings\mpc-hc.ini
Type=Replace
Find=LASTOPENDIRDEFAULT
Replace=%PortableApps.comVideos%

[FileWrite5]
File=%PAL:DataDir%\settings\mpc-hc.ini
Type=Replace
Find=SNAPSHOTPATHDEFAULT
Replace=%PortableApps.comPictures%

[FileWrite6]
File=%PAL:DataDir%\settings\default.mpcpl
Type=Replace
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite7]
File=%PAL:DataDir%\settings\default.mpcpl
Type=Replace
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite8]
File=%PAL:DataDir%\settings\default.mpcpl
Type=Replace
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

JTH, et al: I'm working on a Rev 2 which will include this fix, as well as add language handling. - GC

kingtermite
kingtermite's picture
Offline
Last seen: 7 years 10 months ago
Joined: 2016-11-04 19:46
Awesome and fast reply.

Awesome and fast reply.

Will update my INI to fix. Thank you.

kingtermite
kingtermite's picture
Offline
Last seen: 7 years 10 months ago
Joined: 2016-11-04 19:46
Hi Gord. I went to try to

Hi Gord. I went to try to update.

First of all, my file wasn't in the location you mentioned. It's one more directory down.
x:\PortableApps\MPC-HCPortable\App\AppInfo\Launcher

Is that an problem?

Secondly, I copied your file and compared it to the existing. The only difference is that yours goes up to FileWrite8, my current file stops at FileWrite5.

I would think it would have to do with the %PAL:Drive% part, no? Mine does have those variables for all sections just as your does here.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 day 20 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
Launcher directory, default.mpcpl

Ah yes, I missed the \Launcher\ chunk in the path.

You're correct, it goes to FileWrite8, as I've added replaces for default.mpcpl, which weren't previously there. You'll see that FileWrites 1-3 and 6-8 are identical, except for the File= line.

kingtermite
kingtermite's picture
Offline
Last seen: 7 years 10 months ago
Joined: 2016-11-04 19:46
OK. Cool. Just checking

OK. Cool. Just checking because I didn't quite understand it.

I'll try it as soon as I can and let you know.

Thanks again. Smile

kingtermite
kingtermite's picture
Offline
Last seen: 7 years 10 months ago
Joined: 2016-11-04 19:46
Seems to work like a champ

Seems to work like a champ now. Thanks.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 1 day 20 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
Excellent

I'm glad to hear it's working. Once I get custom language handling added, I'll be pushing out a revision for the app.

John T. Haller
John T. Haller's picture
Online
Last seen: 21 min 43 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 1.7.10 Rev 2

This is fixed in MPC-HC Portable 1.7.10 Rev 2 released today.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments