Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

PhysFS 2.0.2 specific troubles. #3700

Closed
@wzdev-ci

Description

@wzdev-ci
Contributor

keyword_broken_upstream_upstream_patch_exists_i_am_using_random_keywords resolution_external type_bug | by NoQ


Downgrading my PhysFS package from v2.0.2 to v2.0.1 has just fixed some mod-loading troubles for me. Some files from inside the mod archive failed to load: even though PHYSFS_enumerateFiles lists them, PHYSFS_getRealDir returns null on them. This happens to some completely random rare files, I've been encountering it on my AI mods mostly and some js files were randomly missing; even things like adding or removing an empty challenges directory to the archive made them visible again and made other files missing.

The troubles were previously described there: http://forums.wz2100.net/viewtopic.php?f=5&t=9886

Archlinux x86 stable.


Issue migrated from trac:3700 at 2022-04-16 10:36:37 -0700

Activity

wzdev-ci

wzdev-ci commented on Aug 29, 2012

@wzdev-ci
ContributorAuthor

NoQ edited the issue description

wzdev-ci

wzdev-ci commented on Aug 29, 2012

@wzdev-ci
ContributorAuthor

NoQ commented


By the way, here's a piece of code i use to list all physfs contents together with the files' real dirs.

void printRecursive(char *path) {
	char **rc = PHYSFS_enumerateFiles(path);
	char **j;
	char str[512];
	for (j = rc; *j != NULL; j++) {
		sprintf(str,"%s%s",path,*j);
		if (PHYSFS_isDirectory(str)) {
			sprintf(str,"%s/",str);
			printRecursive(str);
		} else {
			debug(LOG_WZ, "        %s from %s.\n", str, PHYSFS_getRealDir(str));
		}
	}
	PHYSFS_freeList(rc);
}
wzdev-ci

wzdev-ci commented on Aug 29, 2012

@wzdev-ci
ContributorAuthor

dak180 edited the issue description

wzdev-ci

wzdev-ci commented on Aug 29, 2012

@wzdev-ci
ContributorAuthor

vexed commented


Another library that needs to be whacked via some autohell love.

This is fixed (I guess?) in:
http://hg.icculus.org/icculus/physfs/rev/882cdbd7d0a3

Care to try it ? I know you are itching to try hg (Mercurial) :)

wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Forgot to post this earlier:

Reproducible on Gentoo, the MC AI works with 2.0.1 but not 2.0.2-[1].

So it's either a bug in PhysFS, or some weird incomprensible misuse of PhysFS, since the PhysFS version oughtn't really be affecting whether a file exists.

(Based on above comment, I'm guessing it could be the former.)

wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp changed keywords from `` to broken_upstream upstream_patch_exists i_am_using_random_keywords

wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Don't know what http://hg.icculus.org/icculus/physfs/rev/882cdbd7d0a3 does, but the MC AI seemed to work with 2.0.2-[1], once I manually applies that patch (in a text editor).

I wasn't itching to try Hg, so I used nano instead.

wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7
wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7
wzdev-ci

wzdev-ci commented on Aug 30, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7
wzdev-ci

wzdev-ci commented on Aug 31, 2012

@wzdev-ci
ContributorAuthor

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

wzdev-ci

wzdev-ci commented on Sep 2, 2012

@wzdev-ci
ContributorAuthor

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

wzdev-ci

wzdev-ci commented on Sep 2, 2012

@wzdev-ci
ContributorAuthor

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

wzdev-ci

wzdev-ci commented on Sep 5, 2012

@wzdev-ci
ContributorAuthor

Cyp commented


Think #3555, #3585, #3587, #3595, #3673, #3680, #3687 are duplicates of this bug.

wzdev-ci

wzdev-ci commented on Oct 17, 2012

@wzdev-ci
ContributorAuthor

8 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wzdev-ci

        Issue actions

          PhysFS 2.0.2 specific troubles. · Issue #3700 · Warzone2100/old-trac-import