Member Controls

Wizards of SimPE & SimPE Bugs > Object Workshop: Index was outside the bounds of the array.
syberspunkLink to postposted: Tue Sep 06, 2005 8:57 pm
Avator for syberspunk

Member since:
 2005-09-06
From:
 New York City
Posts:
 6
I was trying to clone an object that someone else created. I'm not sure if I am doing this correctly, but I launched the Object Workshop and chose the Load Object tab. I then browsed for the .package and left all options as defaults. I pressed start and it brought up the scenegraph renaming wizard. I edited the string and clicked update and I got this error:

Message:
Index was outside the bounds of the array.

SimPE Version:
Default (0.46.2068.40854).

Exception Stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SimPe.Plugin.FixObject.FixResource(Hashtable map, Rcol rcol)
at SimPe.Plugin.FixObject.FixNames(Hashtable map)
at SimPe.Plugin.FixObject.Fix(Hashtable map, Boolean uniquefamily)
at SimPe.Plugin.Workshop.Start(Object sender, EventArgs e)

Source:
simpe.scenegraph

Execution Stack:
at SimPe.Plugin.FixObject.FixResource(Hashtable map, Rcol rcol)
at SimPe.Plugin.FixObject.FixNames(Hashtable map)
at SimPe.Plugin.FixObject.Fix(Hashtable map, Boolean uniquefamily)
at SimPe.Plugin.Workshop.Start(Object sender, EventArgs e)



I don't know if this is something I can ignore or if what I'm doing is just totally wrong. If anyone can help me, I would greatly appreciate it. :)

[b]Edit: After this, I click through and then it brings up the renaming wizard again. This time, when I change the string, I get:

Warning: Item has already been added. Key in the dictionary: "" Key being added: ""

This is just a Warning. It is supposed to keep you informed about a Problem. Most of the Time this is not a Bug!

Two or more Resources in the package have the same name, which is not allowed! See http://ambertation.de/simpeforum/viewtopic.php?t=1078 for Details.



I went to that thread, and it says to remove the Downloads folder from the FileTable searchPath. I went to check that and the Downloads folder is not directly part of the Scanned Folders. However, it looks like the _EnableColorOptionsGMND.package is part of the searchPath. I can't really tell since I can't resize the screen, but that's what it looks like.

Ste
quaxiLink to postposted: Wed Sep 07, 2005 2:31 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Something in the custom Object loader needs to be fixed. Can't tell at this time when I will have time to check this matter. But it is on my todo List.
jase439Link to postposted: Wed Sep 07, 2005 6:51 am

Member since:
 2005-03-16
Posts:
 93
I received a similar Index Out of Bounds error this evening enabling compression on some TXTR files. Probably something else entirely - seemed to be benign however, as I was able to skip past the condition and save.
syberspunkLink to postposted: Wed Sep 07, 2005 7:43 am
Avator for syberspunk

Member since:
 2005-09-06
From:
 New York City
Posts:
 6
Ahhh thanks. So does this basically mean that we can't clone custom objects as of now?

I was trying to see if there was a way that I could open a custom object, save it as a different file, and then use a wizard to rename stuff, but I did not see a way to launch the scenegraph wizard without using the Object Workshop wizard, unless I am missing something.

I suppose the only other solution would be to rename individual files manually? Assuming I knew which files and what part had to be changed.

I basically want to just clone an existing object and see if I could play with it and make changes to it for my own personal use. Sort of as a mini-project for me to learn. I wanted to try it on my own before I tried PMing the creator for help. I've looked through a few tutorials here and at MTS2, but they all are either too elementary or too advanced for me. Hehe. Oh well. Thanks anyway. :)

Ste
SnowStormLink to postposted: Wed Sep 07, 2005 12:32 pm

Member since:
 2005-03-21
From:
 USA
Posts:
 415
You can open a custom package, then save as a different file name. Then use the fix integrity option (Tools, Object Tools, Fix Integrity). this will launch the Scenegraph rename dialog. Make sure you change the base name, and update. Also make sure you get a new guid etc.
syberspunkLink to postposted: Thu Sep 08, 2005 7:52 am
Avator for syberspunk

Member since:
 2005-09-06
From:
 New York City
Posts:
 6
Thank you, that worked. Yes, I definately have a lot to learn. :oops: Ok... now that that's done... hehe, still gotta make heads or tails of the rest of it. But yay! It's definately a start of something. Hehe. :D


viewthread, 0, 0, Object-Workshop-Index-was-outside-the-bounds-of-the-array