• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

YYC Errors when compiling

Dude902

Member
My game runs okay with the standard Windows compiler but I would like to compile my game with the YYC to take advantage of the extra performance. I don't know what is causing all of these errors. The game runs fine with Windows and HTML5 exports. Can someone help me understand the problems? I have tried cleaning the cache between compiles.

Compile/Error log:
http://pastebin.com/p3E2Kyfy
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Usually such errors are fixed by clearing compiler cache ("broom" icon on the toolbar) - the occur if files on disk have changed but the compiler didn't realize, causing it to mix up files from multiple versions.
 

Dude902

Member
Usually such errors are fixed by clearing compiler cache ("broom" icon on the toolbar) - the occur if files on disk have changed but the compiler didn't realize, causing it to mix up files from multiple versions.
I appreciate the suggestion but I have cleared the cache several times and I still get the same kinds of errors when I compile with YYC (windows).

I've went through all my scripts and code and added parenthesis around my if, while, and with statements. I also made sure all my instance variables were declared in the create events. I didn't know that the syntax is a lot more strict when compiling with YYC so I followed this guide which told me to do these things.

Here is an updated compile log (since I have made many changes to the game since the last time):
http://pastebin.com/FpAcX7VW
 
Last edited:

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
I appreciate the suggestion but I have cleared the cache several times and I still get the same kinds of errors when I compile with YYC (windows).

I've went through all my scripts and code and added parenthesis around my if, while, and with statements. I also made sure all my instance variables were declared in the create events. I didn't know that the syntax is a lot more strict when compiling with YYC so I followed this guide which told me to do these things.

Here is an updated compile log (since I have made many changes to the game since the last time):
http://pastebin.com/FpAcX7VW
Have you tried reinstalling GameMaker? Errors about unresolved functions despite clean cache would usually mean that the generated code is not matching up with the helper libraries that it targets.
 

Dude902

Member
That fixed it! I reinstalled and cleared the cache and it worked the first time.

That other stuff I did was probably good practice too. :rolleyes:

Thank you.
 
Top