I'm having this error with a custom portrait when trying to give it to a party member in SaveGame Editor:
 
 "Error msg: Can't use an undefined value as an ARRAY
 reference at /PerlApp/Bioware?TPC.pm line 190."
 
 When I click Ok, it either says this:
 
 "Tk callback for image
 <ButtonRElease-1>
 (command bound to event)
 
 or this:
 
 "Bioware::TPC::read_tpc_fh at /PerlApp/Bioware/TPC.pm
 line 190
 Bioware::TPC::read_tpc_scalar at
 /PerlApp/Bioware/TPC.pm line 106
 Bioware::TPC::read_tpc_fh at /PerlApp/Bioware/TPC.pm line
 35
 main::__ANON__ at kotor_savegame_editor3.3.3.pl line
 3302
 <ButtonRelease-1>
 (command bound to event)"
 
 Here are the details for the portrait in the portraits.2da:
 _________________________________________________
 (Row Label) l baseresref l sex l appearancenumber l race l 
 .....64..........PO_pNaad....1...........387...... ...........6.....
 _________________________________________________
 l plot l ..... l forpc l baseresrefe .... baseresrefvvve l
 ...0................0.....................PO_pNaad ............ 
 _________________________________________________
 
 HAAALP!!
 
 JuniorModder
  
 
  
  
    Wouldn't you just specify her portrait in her utc file? 
 
 And the likely reason that its giving you the error, is that since your "forpc" value is "0" it can't be selected. The same message appears if you try and select the portraits for carth, bastila, etc.
  
 
  
  
    I took away the 0 in the forpc so now it's empty, but I still get the same error.
 
 I will try changing the uct. I didn't do that before because I'm just testing out some of the graphics (IE the portriat).
 
 JuniorModder
 
 EDIT: Still doesn't work..
 
 Edit 2: AARRG! I found out that I had the wrong name in the portraits.2da line!!!!
 
 How frustrating.
 
 JM