Jump to content
rsc204

Load order weirdness... it's all about underscores!

3 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Playing SC4 recently with NAM 39, I came across the following problem:

5feb82af3b4b6_WithUnderscores.jpg.71351e6ed5fdb333925e0d66f65f14dc.jpg

The rail texture in use under the OWR viaduct reverts to Maxis Rail. Not a big deal, but today I decided to try and track down the cause and came across an interesting discovery.

First I jumped over to my Windows machine, using an identical copy of the NAM, the problem doesn't appear. Having hunted down the exact texture ID in use for this piece, I then used Plugins Analyser to find all instances of it in my Plugins folder.

  • NetworkAddonMod_BaseContent.dat
    Inside folder 1_Core
    This contains the original Maxis texture that appears by default on the Mac.
  • RealRailway_Textures_Legacy.dat
    Inside folder 2_Additional Network Features\Rail (RealRailway)\0_Rail_Legacy\5_Legacy_Textures_RRW
    This contains the override for RRW, the texture you correctly see by default in Windows.

Now I can't explain why a folder named 1_Core is loading later than one 2_Additional Network Features, but clearly this is what happens when playing the Mac version. Here is the Root of the NAM folder:

Default_FN.jpg.9c5a5625a711fcd8dbeadb4ef79e628e.jpg

For no reason I can pinpoint better than a hunch, I decided to remove the underscores from these folder names:

Alt_FN.jpg.274da9454db5e7730276efdf46e1a168.jpg

And whaddya know:

5feb82b165d23_WithoutUnderscores.jpg.41e730262a4b2ad57f5f61bb6434340d.jpg

Now the intended load order is preserved and the RRW texture appears.

It might be too early for sweeping statements, but I have the feeling if we remove special characters like underscores, Mac users will resolve a number of load order issues that result in little annoyances like this. I tried switching them for Hyphens, but that just reversed the texture to the wrong one again.

I simply don't know anything much about Apple/Linux file systems and how they interpret the order of characters. But certainly, underscores and hyphens do odd things.

I hope this helps some others to resolve some issues with NAM and other content. If we can be confident of the exact behaviour, I'm hoping we can find a way to name the NAM folders/files, such that they just work on either Windows or Mac, without any further effort.

@Tarkus: Just wanted to alert you to this development :).

  • Like 5
  • Thanks 3

Head over to my Lot and Mod Shack to keep abreast of my latest developments.

Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

p.s. - I'm MGB over on SC4D and a member of the NAM team.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I believe this made a difference. Mac users having trouble should try it after datpacking. Those are the two solutions which allowed me to play the game. They were given to me here by generous people. I still have crashes occasionally, maybe once a week, but these two tips made a big difference.

  • Like 2

Share this post


Link to post
Share on other sites

Sign In or register to comment...

To comment in reply, you must be a community member

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account


×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections