Open TheStoku opened 2 years ago
Up!
Up!
Up!
Visual Studio 2022 support has been added almost one year ago. VSIXInstaller has been ditched, you either make your own plugin solution or alternatively you can create new plugins by launching the Generate MyPlugin.bat utility under the path "tools/myplugin-gen".
Ok, but its impossible to build PluginSDK solution with VS2022 support. Many include errors, even setting correct paths still fail.
Setting paths has nothing to do with visual studio version, you are probably doing something wrong. Show what errors you have, attach a screenshot.
Edit: By looking at the attached txt file seems you just failed to set env paths.
Its on build-tools.txt
that i had attached in last reply, contains all build errors. I just cloned repo, opened plugin sdk launcher, clicked to generate VS2022 solution (like in screenshot) after its generated plugin-sdk.sln in pluginsdk dir i opened in VS2022 tried to build both in debug/release mode plugin_sa
and many include errors happened.
Some lines:
Build started...
1>------ Build started: Project: plugin_sa, Configuration: Release Win32 ------
1>Hooking.Patterns.cpp
1>Audio.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extender\PedExtender.h(10,10): fatal error C1083: Cannot open include file: 'CPools.h': No such file or directory
1>Color.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\Color.h(9,10): fatal error C1083: Cannot open include file: 'CRGBA.h': No such file or directory
1>DynAddress.cpp
1>Events.cpp
1>GameVersion.cpp
1>Other.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\Other.h(15,10): fatal error C1083: Cannot open include file: 'CTimer.h': No such file or directory
1>Patch.cpp
1>PluginBase.cpp
1>StringUtils.cpp
1>TextLoader.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extender\PedExtender.h(10,10): fatal error C1083: Cannot open include file: 'CPools.h': No such file or directory
1>Timer.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extender\PedExtender.h(10,10): fatal error C1083: Cannot open include file: 'CPools.h': No such file or directory
1>common_sdk.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\common_sdk.h(10,10): fatal error C1083: Cannot open include file: 'common.h': No such file or directory
1>PluginSupport.cpp
1>PluginsCompatibility.cpp
1>LimitAdjusterSupport.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\comp\plugins\LimitAdjusterSupport.cpp(8,10): fatal error C1083: Cannot open include file: 'plugin.h': No such file or directory
1>Config.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\Config.h(14,10): fatal error C1083: Cannot open include file: 'CVector.h': No such file or directory
1>DynamicResource.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\DynamicResource.cpp(8,10): fatal error C1083: Cannot open include file: 'plugin.h': No such file or directory
1>FontPrint.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\FontPrint.h(11,10): fatal error C1083: Cannot open include file: 'CRGBA.h': No such file or directory
1>KeyCheck.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\KeyCheck.h(10,10): fatal error C1083: Cannot open include file: 'CTimer.h': No such file or directory
1>Compiling...
1>Paths.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\Paths.cpp(9,10): fatal error C1083: Cannot open include file: 'Error.h': No such file or directory
1>Screen.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\Screen.h(8,10): fatal error C1083: Cannot open include file: 'CRect.h': No such file or directory
1>ScriptCommands.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\ScriptCommands.h(10,10): fatal error C1083: Cannot open include file: 'CRunningScript.h': No such file or directory
1>Shader.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\extensions\Shader.h(17,10): fatal error C1083: Cannot open include file: 'RenderWare.h': No such file or directory
1>CRGBA.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\game\CRGBA.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CompressedVector.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\game\CompressedVector.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CompressedVector2D.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\shared\game\CompressedVector2D.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>plugin.cpp
1>C3dMarker.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\C3dMarker.h(8,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>C3dMarkers.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\C3dMarkers.h(8,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEAudioEntity.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAEAudioEntity.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEAudioHardware.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAEAudioHardware.h(8,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAECollisionAudioEntity.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAECollisionAudioEntity.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAECutsceneTrackManager.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAECutsceneTrackManager.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEDoorAudioEntity.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAEDoorAudioEntity.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEFrontendAudioEntity.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAEFrontendAudioEntity.h(9,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEMP3BankLoader.cpp
1>X:\GitHub\gta-sa-tools\plugin_sdk\plugin_sa\game_sa\CAEMP3BankLoader.h(8,10): fatal error C1083: Cannot open include file: 'PluginBase.h': No such file or directory
1>CAEPedlessSpeechAudioEntity.cpp
[...see all output in last reply...]
Edit: Which env paths i should set to make it works?
Will plugin be compatible with Visual Studio Community 2022? I have an issue with VSIXInstaller which gives an error about incompatible version of installed products.
Edit: sorry, it should be posted in pull requests.