You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using the steamworks SDK extension, but also build for other targets.
I use build configs for that and macros that are guaranteed to be disabled when not using the steam config.
So every part that touches the steam extension has an if(IS_STEAM) in front of it and IS_STEAM is false in the config that also has the steam extension disabled.
I wouldve expected the compiler to therefore discard the given code segments entirely. But this does not seem to be the case, because I get warnings like:
"reference to extension macro steam_net_packet_type_reliable which is not available for this target - macro is in extension Steamworks and file Steamworks.ext"
for every place that is using one of the extension macros.
Is this a bug? Should these warnings not appear? If so please fix. If they are rightfully there then please tell me how I get rid of these warnings without removing the code? Is there a way to reliably exclude sections of code from the compiler?
Steps To Reproduce
Use extension macros but dont include the extension in your config.
Have an if(false) or if(extension_exists()) or if(os_get_config() == "steam") in front of it and observe the warning showing up anyway.
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.227
Which operating system(s) are you seeing the problem on?
Thanks for reporting this, but in order to confirm the problem and then investigate a fix we need you to send us small project which already shows this issue - to ensure we see exactly what you see and then learn why this problem is caused.
Open the project inside GameMaker (and ideally recreate the problem), then use the Help menu's "Upload a Bug/Ticket Sample" tool and say yes to GameMaker privately sending us your project. Copy the download link GameMaker gives you and then paste that link here as a new comment, please.
Description
Hello,
I am using the steamworks SDK extension, but also build for other targets.
I use build configs for that and macros that are guaranteed to be disabled when not using the steam config.
So every part that touches the steam extension has an if(IS_STEAM) in front of it and IS_STEAM is false in the config that also has the steam extension disabled.
I wouldve expected the compiler to therefore discard the given code segments entirely. But this does not seem to be the case, because I get warnings like:
"reference to extension macro steam_net_packet_type_reliable which is not available for this target - macro is in extension Steamworks and file Steamworks.ext"
for every place that is using one of the extension macros.
Is this a bug? Should these warnings not appear? If so please fix. If they are rightfully there then please tell me how I get rid of these warnings without removing the code? Is there a way to reliably exclude sections of code from the compiler?
Steps To Reproduce
Use extension macros but dont include the extension in your config.
Have an if(false) or if(extension_exists()) or if(os_get_config() == "steam") in front of it and observe the warning showing up anyway.
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.227
Which operating system(s) are you seeing the problem on?
Windows 10.0.22631.0
ca8ade6a-7123-46c0-9a74-85e076ff05d2
The text was updated successfully, but these errors were encountered: