Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

No command_108

Whenever I try to teleport, it tells me undefined method "command_108" for Interpreter. It doesn't point me to a line or anything.

I checked every RMXP project I have, Ctrl+Shft+F then "108", and none of the projects I have has command_108, for it does not exist, there is no such thing.

There's also, nowhere in my project that's asking for command_108... so it's not being requested at any time.

Wtfness? ':|

I have Netplay+ 1.6.3 which adds this transfer_player entry:

Code:
  alias pldlltransfer_player transfer_player
  def transfer_player
    pldlltransfer_player
    a = Network::Main.mapplayers
    a = {}
    Network::Main.send_start
    $scene = Scene_Reinit.new
    $game_temp.spriteset_renew = true
  end

I also have SDK 2.something which adds this entry:

Code:
  def transfer_player
    # Clear player place move call flag
    $game_temp.player_transferring = false
    # If move destination is different than current map
    if $game_map.map_id != $game_temp.player_new_map_id
      # Set up a new map
      $game_map.setup($game_temp.player_new_map_id)
    end
    # Set up player position
    $game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
    # Set player direction
    case $game_temp.player_new_direction
    when 2  # down
      $game_player.turn_down
    when 4  # left
      $game_player.turn_left
    when 6  # right
      $game_player.turn_right
    when 8  # up
      $game_player.turn_up
    end
    # Straighten player position
    $game_player.straighten
    # Update map (run parallel process event)
    $game_map.update
    # Remake sprite set
    @spriteset.dispose
    @spriteset = Spriteset_Map.new
    # If processing transition
    if $game_temp.transition_processing
      # Clear transition processing flag
      $game_temp.transition_processing = false
      # Execute transition
      Graphics.transition(20)
    end
    # Run automatic change for BGM and BGS set on the map
    $game_map.autoplay
    # Frame reset
    Graphics.frame_reset
    # Update input information
    Input.update
  end
end

Could they be conflicting for some reason?
 

poccil

Sponsor

The default implementation of Interpreter does not include the method "command_108", where 108 is the internal ID for Comment event commands. (Note this fact in the method execute_command in the script section Interpreter 2). It is a relatively simple matter to add it:

Code:
class Interpreter
 def command_108
  return true
 end
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top