Quote:
|
Originally Posted by flowerbudd
I'm sorry Arya, I am having a problem. I use PB to add items from the deco tab, ( for example a coffin, and when i try to do [addongen CoffinS and i target the boundaries it either tells me no items selected, or error writing file
|
The first issue occurs because you probably target an area which is only 1 tile wide (and the script thinks it's empty...). I could work around this, but if you specify an area slightly wider (at least 2 tiles) it will still work correctly. The script calculates the bounds according to the items it finds, not the area picked, so it's safe to select an area larger than the item itself.
The file writing error needs some investigating on the other hand. Please open the script and go to line 250. Change the block from:
Code:
catch
{
from.SendMessage( 0x40, "An error occurred when writing the file." );
fail = true;
}
to:
Code:
catch ( Exception err )
{
Console.WriteLine( err.ToString() );
from.SendMessage( 0x40, "An error occurred when writing the file." );
fail = true;
}
Then please let me know what kind of error is reported on the console and I'll see if it's something I can fix in the script.