X2CommunityCore / X2ModBuildCommon

An improved XCOM 2 mod build system
MIT License
5 stars 5 forks source link

Path rewriting is ignorant of IncludeSrc #45

Closed Xymanek closed 3 years ago

Xymanek commented 3 years ago

If you build DLC2HL X2CommunityCore/X2WOTCCommunityHighlander@093701f, you get the following in the script compiler output:

Warning/Error Summary
D:\Dev\Projects\XCom 2 WOTC\X2WOTCCommunityHighlander\Components\DLC2CommunityHighlander\DLC2CommunityHighlander\Src\XComGame\Classes\XComGameState_Item.uc(2423) : Warning, 'ThisObj' : unreferenced local variable
D:\Dev\Projects\XCom 2 WOTC\X2WOTCCommunityHighlander\Components\DLC2CommunityHighlander\DLC2CommunityHighlander\Src\XComGame\Classes\XComGameState_LadderProgress.uc(1122) : Warning, 'WeaponTemplate' : unused local variable

However, such paths simply do not exist. The actual paths are

D:\Dev\Projects\XCom 2 WOTC\X2WOTCCommunityHighlander\X2WOTCCommunityHighlander\Src\XComGame\Classes\XComGameState_Item.uc
D:\Dev\Projects\XCom 2 WOTC\X2WOTCCommunityHighlander\X2WOTCCommunityHighlander\Src\XComGame\Classes\XComGameState_LadderProgress.uc

Path rewriting should either bail (and point to the temporary files In SDK/Dev/Src) or properly account for IncludeSrc, but definitely not point to non-existent files