Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

TSL: Custom Portrait Error?

Page: 1 of 1
 JuniorModder
11-15-2009, 11:02 PM
#1
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
 Rtas Vadum
11-16-2009, 12:23 AM
#2
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.
 JuniorModder
11-16-2009, 12:55 PM
#3
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
Page: 1 of 1