PhysFS patch

Here you can discuss the development of patches.

Re: Regarding the zip patch that moe made

Postby ykhwong » 2006-6-25 @ 04:03

Since "unmounting imgae drive patch" created by krounz went into the current cvs, the patch didn't work.
I updated it against current cvs again. Look at the attachment.

patch -up1 < dosbox-physfs-20051205.diff
You do not have the required permissions to view the files attached to this post.
Last edited by ykhwong on 2006-8-09 @ 13:27, edited 1 time in total.
ykhwong
Oldbie
 
Posts: 627
Joined: 2004-3-17 @ 15:35

Re: Regarding the zip patch that moe made

Postby rcblanke » 2006-6-25 @ 13:46

Thanks a lot, I got it to work after manually fixing up some makefiles and dependencies here and there, and resolving a couple of 'multiple definition of xxx' errors during linking (a conflict with libz and libphysfs).
User avatar
rcblanke
Oldbie
 
Posts: 1318
Joined: 2005-4-01 @ 09:44
Location: Round 42

Re: Regarding the zip patch that moe made

Postby ykhwong » 2006-7-09 @ 16:18

updated again.
You do not have the required permissions to view the files attached to this post.
ykhwong
Oldbie
 
Posts: 627
Joined: 2004-3-17 @ 15:35

Re: Regarding the zip patch that moe made

Postby DosFreak » 2006-8-12 @ 12:49

Is there any way to use a .ZIP as a writeable destination instead of writing the files to a directory?

The writeable .ZIP would just use "Store" instead of any compression method so there shouldn't be an issue with speed.

I don't know how everyone else has their DOS game archive setup but on my Backup drive I have a DOS directory and then all of my games are compressed with .ZIP. So my directory structure looks like this:

\DOS
"Duke Nukem 3D.ZIP"
"Quake.ZIP"

It would be nice if you could save your writes to a "Duke Nukem 3D - PHYSFS.ZIP". That way you don't have to worry about creating directories and whatnot.

If this has already been covered before then I appologize but I haven't seen any mention of it.
User avatar
DosFreak
l33t++
 
Posts: 9820
Joined: 2002-6-30 @ 16:35
Location: Your Head

Re: PhysFS patch

Postby darkskull » 2007-12-22 @ 12:02

Hey guys, I'm having a problem... I'm using DOSBox 0.72 with DBGL as my frontend. My intent is making a profile database of games that will be stored as zip files on DVD, load'n'play style. I created a master folder SAVES, then a sub-folder for each game for the save of its contents. Some games save and load nice, but most of doesnt do that, neither save the settings of a setup executable. what i'm doing wrong here? do i have to specify mount as dir, or put a label or anything like that? I appreciate all help, thanks for reading.
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50


Re: PhysFS patch

Postby darkskull » 2007-12-23 @ 01:34

no, i don't believe its the wrong topic, because i'm mounting the ZIP FILES with PhysFS patch DOSBox CVS version.
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50

Re: PhysFS patch

Postby MiniMax » 2007-12-23 @ 01:47

DOSBox 0.73 ReadMe | DOSBox Wiki | DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Win 10 Pro
User avatar
MiniMax
Moderator
 
Posts: 5128
Joined: 2004-1-18 @ 04:15
Location: Stockholm, Sweden, Europe, Earth Interests: Old games & young women

Re: PhysFS patch

Postby darkskull » 2007-12-23 @ 19:35

yes, i was aware of that forum thanks, but the problem is that i was unable to register myself there (tried w/ Fox, IE and Opera), and as this is a DOSBox forum and a PhysFS topic, well... there is anybody who can try to help me? the problem only occur with zipped files, not all of them but most of it... i tried to set mount as dir (using DBGL and choosing the zip file and save location, then after you have the option "As") but no luck, and about the label i dont have a clue too... also tried without DBGL, but no chance... Please help me!
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50

Re: PhysFS patch

Postby rcblanke » 2007-12-23 @ 20:55

Well, as long as you set the 'zipfile' and 'write' location (directory) in the mounting dialog box, you should be fine. Also make sure that you have a dosbox version associated with your profile that actually supports physfs (your own build, YKHWong's or Gulikoza's). Plain v0.72 will not work, obviously.

Regards,
Ronald
User avatar
rcblanke
Oldbie
 
Posts: 1318
Joined: 2005-4-01 @ 09:44
Location: Round 42

Re: PhysFS patch

Postby darkskull » 2007-12-24 @ 19:04

well, i'm sure that it is a PhysFS compatible version, i got all in the same package, and it works with all zipped games, the problem is in saving, some work, but lots of others dont, setting the zip location and a write location as well. Am I missing something? For example, in one game, the save file appears in the folder, but the game doesn't see the save.
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50

Re: PhysFS patch

Postby `Moe` » 2007-12-26 @ 13:30

I have no idea if ykhwong still uses my codebase, as I abandoned it some time ago (found a better solution for my own needs). If his code is still (more or less) my original patch, then that might well be a bug. There is an issue or two left, which I never debugged because of me finding something better than physfs. ("better" as related to my own needs)
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: PhysFS patch

Postby Dominus » 2007-12-26 @ 14:08

well, i'm sure that it is a PhysFS compatible version, i got all in the same package, and it works with all zipped games

Bah, this is a reson why the road down the PhysFS patcg might lead to legal hell. I could have read you wrong but to me it sounded like you got a package with games and the patched physfs dosbox. Physfs does make it much easier for such packages and I'm not sure if that is really good.
On the other hand I see how it is beneficial for legit users...
@Moe, care to elaborate what you are using now?
User avatar
Dominus
DOSBox Moderator
 
Posts: 7644
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: PhysFS patch

Postby `Moe` » 2007-12-26 @ 16:11

Linux-native facilities. Much easier to use, because it works the same for all emulators (instead of having ot patch each one separately), and non-emulators (Wine Is Not an Emulator ;).

Cromfs (very highly compressed filesystem, 7-zip based, reasonably fast, read-only), Funionfs (takes care of write support, stores changed files in separate dir), both of them run via FUSE (filesystem in user space).
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: PhysFS patch

Postby Dominus » 2007-12-26 @ 16:13

ok, I can see how that works for you :)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7644
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: PhysFS patch

Postby darkskull » 2007-12-27 @ 23:05

i collected those games from all sources, including original floppies, backups, abandonware sites and was storing in CDs here and there, but when i heard of the patch, i was trying to mount a DVD of these games, for my convenience... it looks like the write folder option store the files needed, the problem looks in the loading process. the games that work are those that store only save game files, then loads fine. but those that save settings (like the product of a seup) simply doesn't work.
some games i solved the problem by unzipping, doing the setup thing, then zipping again, which the games correctly read and load those settings..
others no luck, not even w/ the save game files.
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50

Re: PhysFS patch

Postby `Moe` » 2007-12-28 @ 04:16

Well, keep in mind that I didn't use it for a long time. But if done right, the write folder should do exactly what you expected. It just doesn't work for a handful of games.
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: PhysFS patch

Postby darkskull » 2007-12-29 @ 20:46

thanks all for sharing your help. I decide to just burn the DVD with those zipped games in a subfolder, just unzipping those that i'll play, and the others that work in another one. thanks again
darkskull
Newbie
 
Posts: 6
Joined: 2007-12-22 @ 11:50

Re: PhysFS patch

Postby gulikoza » 2009-6-21 @ 10:18

Is there demand to maintain this patch? I have ported it to 0.73 and added configure check and some ifdef's to make it compile without physfs (no, it doesn't work then, but at least it compiles :happy:).
It applies cleanly but it hasn't been tested beyond a single zip mount so it might not work if something else has changed (I am not familiar with the code, porting was mostly done by solving patch rejections :pppt:). I will include it this time in my build but it might get dropped if there is no interest.
You do not have the required permissions to view the files attached to this post.
User avatar
gulikoza
Oldbie
 
Posts: 1705
Joined: 2004-6-25 @ 14:53

Re: PhysFS patch

Postby rcblanke » 2009-6-21 @ 11:02

Thank you very much Gulikoza, yes, there is interest alright. Quite a few DBGL users rely on this patch, so keeping it up-to-date is greatly appreciated!
User avatar
rcblanke
Oldbie
 
Posts: 1318
Joined: 2005-4-01 @ 09:44
Location: Round 42

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest