#globalvariables
Master Python variable scope! Understanding local and global variables is key to avoiding UnboundLocalErrors. Learn how Python handles assignments & references.#PythonVariableScope #PythonProgramming #UnboundLocalError #GlobalVariables #LocalVariables #PythonCoding
tech-champion.com
November 25, 2024 at 9:10 PM
You're checking the length of globalVariables, but not the length of loadStruct.globalVariables. So if the loaded json has less fields than the existing global variables it'll try and read outside the bounds of the array.
November 24, 2024 at 11:05 PM
fixed this! needed to use an accessor to grab the actual variable name from the globalVariables array instead of trying to call a struct variable using a string.
any idea why this is giving me an error at the highlighted line? Says that Variable .globalVariables(101017, 0) not set before reading it. but it is set. i don't know what's happening.

#gamedev #gamemaker #help
November 24, 2024 at 8:50 PM
i checked it, it's set correctly. i think it has to do with the globalVariables[i] part but i don't know how to fix that.
November 24, 2024 at 7:47 PM
i have tried this by setting a separate string to whatever globalVariables[i] is but that didn't work either. the json has all the global variables in my game saved as their normal names, so this should load them from that file, put them in loadStruct, and then set each of the globals.
November 24, 2024 at 7:28 PM
any idea why this is giving me an error at the highlighted line? Says that Variable .globalVariables(101017, 0) not set before reading it. but it is set. i don't know what's happening.

#gamedev #gamemaker #help
November 24, 2024 at 7:22 PM
In #OracleXE18c $OH/inventory/globalvariables/oracle.server/globalvariables.xml the variable "oracle_install_db_InstallType" suggests the version is EE. I was expecting XE !
November 10, 2024 at 3:32 AM
If we want to talk cursed things start writing your Dictionaries with emojis as string keys.

GlobalVariables[🔑] = API Key
November 22, 2024 at 3:27 PM
FYI: Legacy Code: Fun Challenges and Surprises Unveiled! #shorts: Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode #globalvariables…
Legacy Code: Fun Challenges and Surprises Unveiled! #shorts
Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode #globalvariables #coding #debugging #softwaredevelopment
www.youtube.com
January 19, 2026 at 2:21 AM
ICYMI: Legacy Code: Fun Challenges and Surprises Unveiled! #shorts: Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode…
Legacy Code: Fun Challenges and Surprises Unveiled! #shorts
Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode #globalvariables #coding #debugging #softwaredevelopment
www.youtube.com
December 20, 2025 at 11:20 PM
Legacy Code: Fun Challenges and Surprises Unveiled! #shorts: Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode #globalvariables…
Legacy Code: Fun Challenges and Surprises Unveiled! #shorts
Working with legacy code presents unique challenges. A seemingly local variable named 'X' can turn out to be global, changing everything in the game. It's a fun challenge that requires careful attention. #legacycode #globalvariables #coding #debugging #softwaredevelopment
www.youtube.com
December 9, 2025 at 3:19 PM
thanks -- what do you do for undeclared variables? do you usually use globalvariables?
November 1, 2025 at 11:44 PM
#rstats fam: two question for your packages:
1) whats the best way to address the below: globalVariables()? or trying everything you can to not have variables

```
copy_tables_to_new_location: no visible binding for global variable
‘current_database’
```
vs. rlang::.data$current_database, etc
November 1, 2025 at 10:50 PM