Help with Computer controlled actors and AIBC
#11
Aah, I see. I tried that when I first read your new suggestion, but I wasn't sure thats what you meant.

Tested it some more now with the replaced code, in several script positions, but alas I get the same results.
AIBC makes use of an external BattleCommands file in the data folder of the RMXP project, could any tinkering there be of use?

BattleCommands
Reply }
#12
Well if that didn't work, I am stumped...
Reply }
#13
I don't know if you've freed yourself from this error, but if not, then do this, please:

1. Save your Main script in a file (copy the text and paste in a separated file, save it).
2. Replace your Main script (in RMXP) for this code:
Code:
begin  
  $defaultfonttype = $fontface = $fontname = Font.default_name = "Arial"
  $defaultfontsize = $fontsize = Font.default_size = 22
  Graphics.freeze
  $scene = Scene_Title.new
  while $scene != nil
    $scene.main
  end
  Graphics.transition(20)
rescue Errno::ENOENT
  filename = $!.message.sub("Arquivo não encontrado - ", "")
  print("O Arquivo #{filename} não foi encontrado.")
  rescue StandardError => stderr
  p "Your error message here. See Instructions for more details."
  if $DEBUG
    p stderr.message
  end
  time = Time.now
  time = time.strftime("%a %d %b %Y, %X")
  File.open("ErrorLog.rxdata","a+") do |fh|
    fh.puts("Time: #{time}")
    fh.puts("Error type: #{stderr.class}")
    fh.puts("Class: #{$scene.class}")
    fh.puts("Message: #{stderr.message}")
    fh.puts("at")
    for location in stderr.backtrace
      section = location[/(?#Section)(\d)*(:)/]
      section_err = section[0, section.length - 1]
      script_name = $RGSS_SCRIPTS[section_err.to_i][1]
      line_num = location[/(:)(\d)*(\Z|(:))/]
      line_num_err = line_num[1, line_num.length - 1]
      line_num_err = line_num_err[/(\d)*/]
      method = location[/\s\W(\w)*\W/]
      method = method[1, method.length - 1] unless method == nil
      loc_err = script_name + ", line " + line_num_err +
        (method == nil ? "" : ", at " + method)
      fh.puts("     #{loc_err}")
    end
    fh.puts("--------------------")
  end
end
3. Play your game until you get the mentioned error.
4. In your game's folder, there will be a file named ErrorLog.rxdata. Open it with a text editor, copy the contents and paste them here.
5. Restore your Main script.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Actors & enemies without Morale Bennerdeben 4 2,313 07-15-2023, 06:21 PM
Last Post: Bennerdeben
   Possible to move battle actors when escaping? NewHope 8 13,980 07-27-2012, 06:14 AM
Last Post: NewHope
   Getting actors name? PK8 0 4,047 07-13-2009, 06:35 PM
Last Post: PK8



Users browsing this thread: 1 Guest(s)