Transfer Player problems

Joined
Apr 27, 2020
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMMV
Alright, so, I'm probably doing something fundamentally wrong (probably several things), but I'm having an issue where transfer player is sending the player to a room that I hadn't made which has all of the ships, airships, and whatnot in it. I dunno if it's something conflicting with plugins, if it's just me performing amazing feats of ID:10T errors, or if it's something else entirely.

-The Common Event that transfers the player is called by a skill the player can obtain
-On call, checks the Map ID, Player X, Player Y, and Player Direction, and saves them into variables
-Goes through an if-else chain to check what direction the player is facing
-Adds/Subtracts to the Player X/Y variables by 3
-Checks if the location it will transfer to is invalid by saving the terrain tag as a variable, then checking it, as well as seeing if the changed variable is greater than or equal to a value set by an event on the map to determine the map's boundaries (Bad, I realize, if there's some other way to check these values, please let me know :I ) or less than 0, and doesn't transfer if so
-Transfers the player to MapID,PlayerX,PlayerY,

After a couple attempts at debugging with no real success, I added a transfer player that sends the player to the variables before they are modified (which works perfectly fine, so I suspect it is the addition/subtraction, although I can't for the life of me figure out why) and text boxes which display the values of the variables after each transfer.

I can send screenshots if needed.
Oh, and sorry for posting this here if that's not where stuff like this goes, I couldn't quite see anywhere more appropriate.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,695
Reaction score
1,113
First Language
Portuguese - Br
Primarily Uses
RMMZ
Yes, I think the screenshots will help ^^
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
378
Reaction score
351
First Language
german
Primarily Uses
RMMZ
I know that the RMMV code has some kind of rescue-function that transfers the player to an empty map when you type an invalid map id, but I'm not sure if this map should contain boat and airship. I think there are small errors in the variable calculations and if-conditions, or conflicts with plugins.

Can you provide screenshots of your event code and/or plugins?

I hope this is not a needle in a haystack-problem ^^
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
So the player is meant to transfer to a different spot on the same map? That's the only way you could tell if a location was valid using terrain tags.

Does it happen every time? Or just some of the time? If only some of the time, see if you can see any pattern to when it works and when it doesn't - it might just be one or two places where you've used the wrong variable.

I suggest, before each Transfer command, you add a Show Text to display the map id, x and y location (variables) that you're going to transfer to.

What are the variable numbers you're using? If low values (esp variable 1), and you have plugins, it could be that you haven't set the plugins up correctly (which includes identifying available variables, allocating them to the plugin, then giving them names in the editor so you don't accidentally use them for something else) which is a fairly common mistake.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
does the transfer work even if you force it to work incorrectly?

when in doubt, validate the error on purpose.
if it works, then move on to the error catch.
 
Joined
Apr 27, 2020
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMMV
Ah, found my problem, I was saving the terrain tag to the MapID variable, I'm a moron

Provided Screenshots of me losing my mind as I forget how variables work:

Screenshot (19).pngScreenshot (20).png
^^Repeated for every direction 2, 4, 6, and 8, limited for testing purposesScreenshot (21).pngScreenshot (22).png
Screenshot (23).pngScreenshot (24).pngScreenshot (25).png
Aside from my failure to debug properly, why did this happen? How come it didn't show the mapID var in the textbox as changed after the transfer? Does it go by the last valid definition of the MapID when forced to display? Anyways, thank you all for your help!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top