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.

[XP] Party Changer

I get an error in line 56 at the Party Changer script!

bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)

it sais 'undefined method 'caracter_name' for nil:NilClass'
 
Cyrtii;295431":1gsx4hmx said:
I get an error in line 56 at the Party Changer script!

bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)

it sais 'undefined method 'caracter_name' for nil:NilClass'

I don't see any 'caracter_name' in this line.
 
this part:
Code:
#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This class is for all in-game windows.
#==============================================================================
class Window_Base
  #--------------------------------------------------------------------------
  # * Draw Graphic
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------
  def draw_actor_graphic(actor, x, y, selected = false)
    bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
    cw = bitmap.width / 4
    ch = bitmap.height / 4
    src_rect = Rect.new(0, 0, cw, ch)
    opacity = selected ? 160 : 255
    self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect,opacity)
  end
end
 
There is no 'caracter_name' in this script.
But if you still get this kinda weird error, change caracter_name for character_name. it should solve the problem.
 
I use change partyV2
I pasted 3 script and test game ,it says:
name error occurred
undefined method ' set_command_acess ' for class "screen menu"
please fix it ,help me

this error in line of change party script
 
I put class command Manager 1.2 but :
name error occurred
undefined method ' enable_item ' for class "window command"

still :
name error occurred
undefined method ' set_command_acess ' for class "screen menu"

I got error again....
 
That's weird, I searched through all of the 3 scripts I posted in the first post plus the Commands Manager script and found no "set_command_acess".
However, there's a "set_command_access" (with 2 C), method in the Commands Manager script under Scene_Menu. This method is also aliased in the Party Changer script for the main menu.

About the missing "enable_item" method, maybe you have another script which interfere with the Commands Manager script. If not, I updated the script to version 1.2.1. It should not be a problem anymore.

Please, give me the name of the script in which the error occurs and the exact line.

Take care!
-Dargor
 
Please, give me the name of the script in which the error occurs and the exact line.
it's party changer V2
# * Alias Listing
#--------------------------------------------------------------------------
alias party_changer_initialize initialize
alias party_changer_refresh refresh
alias party_changer_add_actor add_actor
alias party_changer_remove_actor remove_actor
alias party_changer_setup_starting_members setup_starting_members


I always wait your script ^^
Can you postt another demo ? That link died
 
Ok, I tried a bunch of things with the following scripts.
  • Commands Manager v.1.2
  • Party Changer v.2.2.6
  • Party Changer (Main Menu) v.1.4
  • Party Arrange v.1.2

Result: Everything's working fine. :-/

Maybe you have a script which interferes with one of these.
Please, list them all so that I can find what's causing the error.
 
I love this script! Very simple to use. I had one question/request though. I noticed when calling the Party Switching event, you're able to leave the menu with only 1 character in the group. Is there a way to set it so you MUST have 4(or however many) members in a party? I don't want people to be able to walk off with just my party leader unless I allow it.
 
Canadyan;307411":1vxdav8q said:
I love this script! Very simple to use. I had one question/request though. I noticed when calling the Party Switching event, you're able to leave the menu with only 1 character in the group. Is there a way to set it so you MUST have 4(or however many) members in a party? I don't want people to be able to walk off with just my party leader unless I allow it.

Good idea! *Adding this to my todo list*

By the way, I'm sorry for not keeping this topic updated as much as I did before. I'm still working on the multiple party script!

Take care
-Dargor
 
Dargor, i was using the HP/MP/ATB (Seph Slant) and when I go to the next page (by pressing 2 down button) it creates an error. Can
you include it in your next update? if you want.
 

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