Stuck In Place After Transfer Player

Discussion in 'RPG Maker MV' started by p0_boy, Apr 8, 2019.

  1. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello, everybody-

    I am running into a problem and wonder if any of you can please help me out?

    I am trying to streamline the way my character moves from one map to the other using a Common Event and a Map Event but upon executing it, my character is transferred to the other map but is stuck, walking in place (see GIF).

    [​IMG]

    I have a Common Event called xferAUTO which looks like this:

    [​IMG]

    xferAUTO is called when the player touches a Map Event:

    [​IMG]


    What am I doing wrong?

    Thanks in advance!
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,611
    Likes Received:
    6,568
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    there are two possibilities here.
    can your actor turn, yes or no?

    if no then somewhere on the new map or in the common events there is an autorun that is not switched off.
    find it and turn it off to be able to move again.

    if yes, then you have a passability problem. either that specific tile is impassable (especially as it looks as if you're using something like parallax mapping where the passability is handled differently than normal) or the tileset in itself has a broken passability (in that case, which version is your editor as there was a problem in the older MV versions that can't happen in any decent update)
     
    #2
  3. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey, Andar- thanks for the speedy reply.

    My character cannot turn- they are simply stuck.

    The only Autorun that I have in the entire game so far is for an NPC event (but I am pretty sure it turns itself off):

    [​IMG]

    [​IMG]

    I am using a plug-in called Pv_Scriptlets that runs the Javascript for my HUD as a parallel process:

    [​IMG]

    [​IMG]

    But even disabling that doesn't fix the problem.

    I am NOT using parallax mapping, and changing the X, Y coordinates of the Transfer Player command to a tile that I know is passable doesn't work either.

    I am using v1.6.2, which I think is the latest.

    So I am really stumped. But I appreciate your help anyway!
     
    #3
  4. Andar

    Andar Veteran Veteran

    Messages:
    28,611
    Likes Received:
    6,568
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    If you cannot turn, then you have an active autorun on that map or in the common events.
    It doesn't matter if you remember it or not, it is there - and you now have to search for it.

    A script/plugin is NOT an autorun - a script can break a game in many ways, but it is unlikely to do so with such an error as you describe.

    Please check ALL common events and all map events on that specific map - there is an autorun that you've forgotten about.
     
    #4
  5. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey, Andar - thanks again for your help.

    I went through all my Common Events:

    [​IMG]

    [​IMG]

    All the events on my Destination Map:

    [​IMG]

    [​IMG]

    All the events on my Source Map:

    [​IMG]

    [​IMG]

    And there is 1 Autorun (Event 4, on the Source Map- which I mentioned in the previous post) and 1 Parallel Event (Event 24, on the Destination Map):

    [​IMG]

    Both of these instances are triggered by switches and turn themselves off after being called.

    I am very conscious about the Autoruns and Parallel processes that I use because I know they can potentially cause lag in gameplay.

    So, I really don't think it has to do with an Autorun. Again, I am stumped.

    I appreciate your suggestions though.
     
    Last edited: Apr 9, 2019
    #5
  6. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,966
    Location:
    Philippines
    First Language:
    Tagalog
    The only time your character cannot turn is when inputs are disabled, and normally that only happens during the course of an autorun event.. Unless you have a plugin that disables input in other instances or you actually have set your character to Direction Fix ON somehow and didn't set it to OFF (this one won't explain why you cant move though)
     
    #6
  7. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks for the info, Engr. Adiktuzmiko.

    However, I really don't have any Autorun events aside from the NPC one I listed above.

    I don't know if this provides any more insight but Transfer Player seems to work if I don't use any variables or Common Events:

    [​IMG]

    [​IMG]

    Could it be a plug-in?

    [​IMG]
     
    #7
  8. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,966
    Location:
    Philippines
    First Language:
    Tagalog
    Transfer Player works with either variables or direct values, so it will ofc work even if you dont use variables...

    If you want to know if its a plugin problem, you should try disabling your plugins first and see if the problem is gone.. If its gone, turn on your plugins one by one and test, repeat this until the problem happens again, the last plugin you turned on is probably the culprit then

    Also based on your clip, it seems like you can actually turn as the cat turned right
     
    #8
  9. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Engr. Adiktuzmiko,

    I think I didn't convey my last message too well-

    The character DOES gets stuck when I use Transfer Player with variables:

    [​IMG]

    [​IMG]

    [​IMG]

    The character DOESN'T get stuck if I don't use variables with Transfer Player:

    [​IMG]

    [​IMG]

    So, in short-

    • Transfer Player is successful if I don't use variables and a Common Event (Character is not stuck).
    • Transfer Player isn't successful if I do use variables and a Common Event (Character is stuck).

    I will go through the plug-ins later on. Salamat- I appreciate the help.
     
    #9
  10. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,966
    Location:
    Philippines
    First Language:
    Tagalog
    BTW this has probably nothing to do with your problem but I realized you are double processing your X,Y coordinate..

    On your touch event:

    Variable 35 = "X,Y"

    Then on your common event:

    var = variable 35 split
    Variable 33 = var[0]
    Variable 32 = var[1]

    Now that is unnecessary as your can simply set variables 33,32 to the values directly in your Touch event and it will still be usable in your common event..

    On your touch event:

    Variable 33 = X
    Variable 32 = Y

    Its not probably causing the problem as you still get transferred but it will at least optimize your transfer eventing..
     
    #10
  11. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks :)

    It's actually on purpose- I like to be able to see the coordinates on one line rather than two separate ones.

    I had used to separate lines as you suggested with my JumpXY common event, but that was the first common event I wrote for this game (I've only been using RPG Maker for a month).

    I find that the extra processing doesn't affect the performance that much. I just wish I could figure out why my character is getting stuck, haha.

    Thanks anyway though.
     
    #11
  12. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,966
    Location:
    Philippines
    First Language:
    Tagalog
    Yeah its kinda weird that you get stuck when using variables but all is fine if you used direct values.. Btw have you tried setting the variables directly as I suggested and see if it still gets you stucked?
     
    #12
  13. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,626
    Likes Received:
    1,045
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    1.) Can you check the console for any errors? (press F8 during playtest to open it)

    2.) If I'm understanding correctly, you have a string with a value, say "10,15" and you're splitting it into an array of strings. Can you confirm you actually have the expected value for variable 35? You can use a Show Text event command to show the value, or a console log.
    Code:
    console.log('Var 35 is: ', $gameVariables.value(35))
    3.) The issue could be that the individual x and y variables are a string, but the teleport probably expects an integer (a number).
    Try:
    Code:
    $gameVariables.setValue(33, parseInt(xferXY[0]))
    $gameVariables.setValue(32, parseInt(xferXY[1]))
     
    #13
  14. p0_boy

    p0_boy anti-kumbaya Veteran

    Messages:
    64
    Likes Received:
    26
    Location:
    quezon city
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you, Aloe Guvner and Engr. Adiktuzmiko, for the responses!

    I finally got it working using Engr. Adiktuzmiko's suggestion of setting the variables directly. This is what my final event and Common event looks like:

    [​IMG]


    [​IMG]


    [​IMG]

    Aloe Guvner- both you and Pujii (over at the Steam forums) suggested converting the values to integer and I feel that you are right but I haven't been able to test your suggestions yet (I am trying to trudge forward and complete my game) but I might at a later stage (when I come back to refining and optimizing code) if I try to consolidate all the arguments that I am passing to the xferAUTO common events through multiple variables into one long variable that I turn into an array and parse.

    I appreciate your input and help though. Many thanks!
     
    #14

Share This Page