Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about extension macro not being available #9631

Open
gm-bug-reporter bot opened this issue Mar 4, 2025 · 1 comment
Open

Warning about extension macro not being available #9631

gm-bug-reporter bot opened this issue Mar 4, 2025 · 1 comment
Assignees
Labels
build-bug Bugs when compiling projects inside GameMaker

Comments

@gm-bug-reporter
Copy link

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

@gm-bug-reporter gm-bug-reporter bot added the build-bug Bugs when compiling projects inside GameMaker label Mar 4, 2025
@stuckie
Copy link

stuckie commented Mar 5, 2025

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.

Thanks!

Why Have You Asked Me For A Sample?

@stuckie stuckie self-assigned this Mar 5, 2025
@stuckie stuckie moved this from Triage to Backlog in Team Workload Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-bug Bugs when compiling projects inside GameMaker
Projects
Status: Backlog
Development

No branches or pull requests

1 participant