A note on `room_pack_eval_script` in 2.3
GMRoomPack » Devlog
If you are setting up TXR for eval script for the first time, consider using the version from GitHub (click “download repository”) - it has support for 2.3 struct literals and a fix for txr_exec being called on wrong data type;
If the creation code/variable setting code evidently runs but the variables remain unchanged, open Extensions/GMRoomPack
script and replace the room_pack_raw_run_cc
function (around line 108) with the following:
function room_pack_raw_run_cc(l_ccRaw,l_ccPath){
// room_pack_raw_run_cc(ccRaw:string, ccPath:string)
var _script = room_pack_eval_script;
if (is_method(_script)) _script = method_get_index(_script);
script_execute(_script, l_ccRaw, l_ccPath);
}
The reasoning is unclear, but under specific circumstances it was spotted that self
inside the “eval” script can become the global
“object” - despite the function not being tied to that.
Get GMRoomPack
Buy Now$4.95 USD or more
GMRoomPack
Package GameMaker rooms and load them as you please
Status | Released |
Category | Assets |
Author | YellowAfterlife |
Tags | GameMaker, Moddable |
More posts
- A note on room casing14 days ago
- 2022.8+ compressed tile map supportOct 29, 2022
- FX layer support and minor fixesMar 21, 2022
- Small updatesMar 18, 2021
- 2.3 minifixNov 28, 2020
- A GMS2.3 versionJul 27, 2020
- A few more fixesFeb 22, 2019
- More small fixesNov 26, 2018
- Small fixesNov 14, 2018
Leave a comment
Log in with itch.io to leave a comment.