Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: DavidW on March 01, 2019, 03:22:52 PM

Title: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: DavidW on March 01, 2019, 03:22:52 PM
I just noticed that the readme says that COMPILE_BAF_TO_BCS et al are 'deprecated'. Can you relax this to 'do not use without a real reason' or similar? There aren't many cases where you wouldn't use DECOMPILE_AND_PATCH, but there are some - e.g., you have a template BAF file and you want to hot-modify it and install multiple versions (since COMPILE doesn't allow you to have different source and target filenames).
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: CamDawg on March 01, 2019, 06:15:29 PM
Second. FWIW, COMPILE_BAF_TO_BCS remains the simplest way to compile an AI script direct to the /scripts folder.
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: The Imp on March 03, 2019, 12:18:05 PM
Yes, all that.
But being marked deprecated is a little different thing that "marked for deletion", in the word itself, it's just "not recommended" usually for a reason, of it being part of old coding style.

.. and don't you need to then copy the .bcs file to the scripts folder as a .BS file...
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: DavidW on March 04, 2019, 10:17:26 AM
No, because COMPILE_BAF_TO_BCS doesn’t impose the .bcs suffix.
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: Wisp on March 07, 2019, 09:09:13 AM
Suppose I added an OUT option for COMPILE that defaults to current behaviour but allows you to specify target directory and target name: would that satisfy you instead? I'm not keen on this don't use this unless you really think you must thing, because it's nonsense.
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: DavidW on March 07, 2019, 10:33:05 PM
I think that's fine, given that COMPILE already permits patches.

But is there anything actually technically-problematic about COMPILE_BAF_TO_BCS? Assuming there's nothing technically wrong with it, can you just drop the 'deprecated' and just put a note in the readme saying that 99% of the time DECOMPILE_AND_PATCH is better?
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: Wisp on March 17, 2019, 01:25:24 PM
There's nothing problematic about them other than their error-prone nature.

But what's the motivation for not recommending against the use of these patches?
Title: Re: COMPILE_BAF_TO_BCS and friends marked as DEPRECATED
Post by: Wisp on March 23, 2019, 06:35:55 AM
Wording has been relaxed.