Author Topic: Important Compatibility Notice  (Read 3479 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Important Compatibility Notice
Due to a bug in Windows, it seems that there's an error in precedence in some of the files released for the FSPort. :sigh:

Certain VP files, such as glowmaps, shinemaps, hi-res textures, etc. are released in separate VP packages so that they can be added as optional enhancements.  I called these files names like fsport_shine.vp to ensure that they would be loaded before the main release fsport3_0.vp and such.  I assumed that the list order would be the same as the load order.  Unfortunately, Windows uses a weird ordering scheme that misleads you about the order in which the VPs are loaded.  In ASCII, certain special symbols come lexicographically before letters and numbers, but for some reason Windows lists them after them.  In the vast majority of cases this doesn't matter, but in certain very specific circumstances the files wouldn't override each other properly.

You probably don't need to understand all that.  All you need to know is that if there is any file in your Port folder whose name begins with "fsport_" (that's an underscore), you should rename it to "fsport-" (that's a dash).  This will cause the files to be loaded in the proper order.  I've updated the files on the website accordingly.
« Last Edit: April 24, 2006, 11:22:45 am by Goober5000 »

 

Offline neoterran

  • 210
Re: Important Compatibility Notice
whoa, this makes a big difference as to how the whole fsport looks and feels !

kind of glad I didn't get a chance to play much of it yet...
Official Taylor Fan Club Member.
Chief Grognard.
"How much code could a coder code if a coder could code code?"

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Important Compatibility Notice
Goob, shouldn't you sticky that note?

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Important Compatibility Notice
I just noticed this thread and became curious. I created files fsport3_0.txt, fsport_shine.txt and fsport-shine.txt, Windows XP lists them in that order as well. I assume fs2_open would load the files in this order as well. Tested this on both english and finnish WinXP.

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Important Compatibility Notice
I just noticed this thread and became curious. I created files fsport3_0.txt, fsport_shine.txt and fsport-shine.txt, Windows XP lists them in that order as well. I assume fs2_open would load the files in this order as well. Tested this on both english and finnish WinXP.

I don't know why but I have previously asked Goober about this, but it splitted into another thread (http://www.hard-light.net/forums/index.php/topic,39522.0.html).

Windows Explorer does really funny things with file sorting. Look my second reply where "-" is sometimes before "_" and others after it. I've got Spanish WXP.

But Goober says Explorer order has nothing to do with the loading order when asked from FS2.
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Important Compatibility Notice
Yeah.  The Win98 order is even different from the WinXP order.  So it may not be a bug, just some really, really stupid sorting idea that someone had.

The order in which FreeSpace (and any other standards-compliant program) will sort file names is according to the ASCII character set.

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Important Compatibility Notice
Perhaps this sort of problem could be avoided by introducing some sort of priority system to .vp files, perhaps to the launcher? The launcher searches for .vp files, lists them in a window where user can tick or untick to enable or disable .vp files as well as choose in which order the vp files are loaded. This way it wouldn't really matter how you name your .vp files and would help to keep names more consistent with each other. To make this system nearly fool-proof, the launcher could search for file called priorities.ini and take the values from there, to make the launcher load.vp files in order a MOD project wants, they could include priorities.ini with their mods.
« Last Edit: May 10, 2006, 11:31:21 am by Mr. Fury »

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Important Compatibility Notice
Except we want to remain compatible with retail.

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Important Compatibility Notice
Well let it use the default naming based priority system if no priorities.ini is found from FS2 root or mod folders, or user does not use the launcher to create one. Just a suggestion. :)

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Important Compatibility Notice
Quote
Except we want to remain compatible with retail.
It was made in 1998.  You can't have your cake and eat it too for forever... although, could there be an option to switch between "retail-compatible" and SCP modes?  Maybe have that .ini file list certain VPs under a "retail" section, and others as "SCP".  Then, if the retail flag is checked, it only looks at the VPs listed in the retail section, as well as any user-specified ones?  I dunno.