|
Post by borealis on Apr 5, 2023 17:13:22 GMT -5
So I've been struggling for awhile now to get warps to work in-game. I've ran them through json validators, checked for spelling errors, renamed files to playerden and other very fun names. But it never sends me to my testing region(a file that I've created that is not originally from cattails) and just keeps me in the same region (mountain summit).
So I just don't know what to do anymore.
Has anyone else modded in a testing region or a region separate from base game? If so could you tell me what's wrong with my string of code?
Here's that code:
{
"map_uid": "grandpathway",
"x": 1070,
"y": 1257,
"warp_to_x": 960,
"warp_to_y": 1024
}
|
|
|
Post by Falcon Development on Apr 5, 2023 17:41:31 GMT -5
Two thoughts: 1. Make sure you have a "grandpathway.region" file in the appropriate map regions folder 2. "warps" stores a list, so ensure you keep the list brackets around your warp: for example, [ { your warp here } ] Without the list brackets the game will fail to read the warp in.
If these don't work, can we see the full contents of your grandpathway.region file?
|
|
|
Post by borealis on Apr 5, 2023 22:17:50 GMT -5
Hello! And thanks for replying. Now the warp works but now this pops up:
___________________________________________ ############################################################################################ ERROR in action number 1 of Draw Event for object map_fade_out_obj:
room_exists argument 1 incorrect type (undefined) expecting a Number (YYGI32)############################################################################################ gml_Object_map_fade_out_obj_Draw_64 (line 1047)
Here is the grandpathway file
{ "region_data": { "template": "wilderness", "region_music": "themysteriouswildwood", "region_battle_music": "thedarkwildwood", "water_can_freeze": true, "region_coordinate": [14,9], "world_map_portrait_coordinate": [530, 70], "pass_time": false, "interior": false, "allow_daily_battles": false, "show_influence": false, "show_mews": true, "show_mole_cash": false, "show_festival_tokens": false, "show_task_tokens": false, "max_prey": 0, "max_bugs": 0, "max_herbs": 0, "max_mushrooms": 0, "max_voidlings": 0, "max_npc_fighters": 0, "spawn_ladybugs": true, "spawn_moths": true, "spawn_butterflies": true, "spawn_fireflies": true, "spawn_dragonflies": true, "spawn_beetles": true, "background_type": "grass", "audio_ambience": "woodland", "spawners": [
], "warps": [ { "map_uid": "mountainsummit", "x": 1070, "y": 1257, "warp_to_x": 960, "warp_to_y": 1024 }
], "world_objects": [
], "custom_sprites": [
], "water_tiles": [
], "path_tiles": [
], "decorative_tiles": [
], "cliff_tiles": [
], "stair_tiles": [
], "herbs_list": [
], "prey_list": [
] } }
|
|
|
Post by borealis on Apr 5, 2023 22:18:02 GMT -5
thanks again Falcon!
|
|
|
Post by Falcon Development on Apr 6, 2023 3:20:42 GMT -5
Have you tried changing "template" to "Empty"? "wilderness" should not be used as it is the tutorial template and that region has some tutorial specific logic that may not work properly outside of the intro. Also make sure your grandpathway.region file has the .region file extension, this is very important or else the game will not see it as a map region and fail to load it in properly.
|
|
|
Post by borealis on Apr 6, 2023 5:56:55 GMT -5
thank you! It worked, turns out I didn't have it capitalized. I'll also keep that in mind for future regions. Thanks again!
|
|