What's up with the "user.lib" file

Share your designing tips with other Designer's. Find answers to your problems using the APCD.
Post Reply
User avatar
sagevanni
Posts: 1658
Joined: August 27th, 2019, 6:21 am
Location: Somewhere on flat earth

What's up with the "user.lib" file

Post by sagevanni »

Hi all you APCD designers,

I recall some designers have mentioned deleting the "user.lib" file before opening or starting a course or new course.

Can someone who does this please explain in detail why you do this. :dunno:

Thanks for your time............

Sage..... :cheers1:
If there is one thing ................ummmmmmmm.......I can't remember.
Ian Wells
Posts: 746
Joined: August 27th, 2019, 3:02 am

Re: What's up with the "user.lib" file

Post by Ian Wells »

Hi Sage,
This is my interpretation of what happens. :whistle:
The user.lib file stores all the textures that are used in a course and if you use the same APCD file each time you open a course file all textures in that course file are added to the user.lib file. I believe(?) that if you have texture named "rough" in the user.lib file and the new course file also has the same name the existing rough texture in the user.lib will be seen in the new APCD file and not the texture that is downloaded.
I hasten to add that this is my theory and may be pure bulls**t.
If you use the same APCD file for each course, only the textures used on that course will be stored in the course user.lib file.
I hope that a real designer will explain the real reason.
:cheers1:
Ian
User avatar
sagevanni
Posts: 1658
Joined: August 27th, 2019, 6:21 am
Location: Somewhere on flat earth

Re: What's up with the "user.lib" file

Post by sagevanni »

Thanks Ian, I'll wait for some more answers to make sure if anyone really knows and can say definitively. :dunno:

Sage...... :cheers1:
If there is one thing ................ummmmmmmm.......I can't remember.
linkster
Posts: 146
Joined: June 13th, 2022, 1:12 am

Re: What's up with the "user.lib" file

Post by linkster »

I agree with Ian.

The textures for a course are stored in the .crz file (except the stock textures) and the user.lib file is just the APCD making a copy of all the textures it encounters. This shortens the course loading process by maybe 30 seconds. However, there seems to be bugs in the copy procedure and the texture properties (especially seam blends) end up garbled. One issue I see often is that the APCD only checks the texture name, and assumes that it is the same texture, but it may have a completely different tga.

I delete the user.lib file EVERY time I open the APCD. I even created a batch file to automate the delete and open process. The advantage of this is that the seam blend properties don't get mixed up. The disadvantage is that the load time takes 30 seconds longer. When adding textures to a new course, I clone a similar stock texture and use a tga from a collection I keep.

I highly recommend that you delete the user.lib file often. Especially with the wide number and variety of course you work on. Hope this helps. :thumbup:
dwg
Posts: 446
Joined: July 26th, 2024, 5:59 am
Location: Australia

Re: What's up with the "user.lib" file

Post by dwg »

I'm not an APCD person, but I am a systems person and it sounds like user.lib could be a real problem child, it would grow indefinitely and if it is not doing any checking other than name checking that is highly problematic, it sounds like the management process of it is unfinished. Rather than a user library perhpas the powers that be should have had it as a course library.
User avatar
sagevanni
Posts: 1658
Joined: August 27th, 2019, 6:21 am
Location: Somewhere on flat earth

Re: What's up with the "user.lib" file

Post by sagevanni »

Thanks Linkster, Thanks Des....... :smile:

Linkster, may I have a copy of your bat file?

I'll deleting the "user.lib" file before opening APCD.

Thanks again guys....!!!!!! :clapping:

Sage..... :cheers1:
If there is one thing ................ummmmmmmm.......I can't remember.
Colin Jones
Posts: 151
Joined: January 29th, 2021, 5:59 pm
Location: Gold Coast, Australia

Re: What's up with the "user.lib" file

Post by Colin Jones »

Just when you're beginning to believe you know it all................. :smile:
Completed: Golf Club of Houston (Redstone); Banff Springs 2025 (Thompson 18 and Tunnel Mountain); Mauna Kea 2024; Royal Sydney Golf Club. Working on: New South Wales Golf Course (March 2026, hoping)
User avatar
sagevanni
Posts: 1658
Joined: August 27th, 2019, 6:21 am
Location: Somewhere on flat earth

Re: What's up with the "user.lib" file

Post by sagevanni »

Here's my bat........it works....

del "C:\APCD\1 - APCD - With good Object files\user.lib"

start /d "C:\APCD\1 - APCD - With good Object files" APCD.exe

Sage....... :cheers1:
If there is one thing ................ummmmmmmm.......I can't remember.
Post Reply