modshot
New Member
- Feb 20, 2014
- 5
- 0
Post line 82 in ItemManager.csi was trying to make a r63b retro with this /watch?v=4Flb-CwfuL8 .
but when i start the emulator i get this error
how do i fix it? my user is not named daniel. its "pc" do i need to change this? how do i do it? thx.
You must be registered for see links
Replace line 82 with thison line 82:
height = Convert.ToDouble(dRow[6]);
line 38-103
if (ItemData != null)
{
uint id;
int spriteID;
string publicName;
string itemName;
string type;
int width;
int length;
double height;
bool allowStack;
bool allowWalk;
bool allowSit;
bool allowRecycle;
bool allowTrade;
bool allowMarketplace;
bool allowGift;
bool allowInventoryStack;
InteractionType interactionType;
int cycleCount;
string vendingIDS;
string[] ToggleHeight = null;
bool StackMultiplier;
bool sub;
int effect;
int flatId;
foreach (DataRow dRow in ItemData.Rows)
{
try
{
id = Convert.ToUInt32(dRow[0]);
spriteID = (int)dRow[10];
publicName = (string)dRow[1];
itemName = (string)dRow[2];
type = (string)dRow[3].ToString();
width = (int)dRow[4];
length = (int)dRow[5];
if (dRow[6].ToString().Contains(";"))
{
ToggleHeight = dRow[6].ToString().Split(';');
height = Convert.ToDouble(ToggleHeight[0]);
}
else
height = Convert.ToDouble(dRow[6]);
allowStack = Convert.ToInt32(dRow[7]) == 1;
allowWalk = Convert.ToInt32(dRow[9]) == 1;
allowSit = Convert.ToInt32(dRow[8]) == 1;
allowRecycle = Convert.ToInt32(dRow[11]) == 1;
allowTrade = Convert.ToInt32(dRow[12]) == 1;
allowMarketplace = Convert.ToInt32(dRow[13]) == 1;
allowGift = Convert.ToInt32(dRow[14]) == 1;
allowInventoryStack = Convert.ToInt32(dRow[15]) == 1;
interactionType = InterractionTypes.GetTypeFromString((string)dRow[16]);
cycleCount = (int)dRow[17];
vendingIDS = (string)dRow[18];
sub = SilverwaveEnvironment.EnumToBool(dRow[22].ToString());
effect = (int)dRow[23];
StackMultiplier = SilverwaveEnvironment.EnumToBool(dRow[21].ToString());
flatId = (int)dRow["flat_id"];
Item item = new Item(id, spriteID, publicName, itemName, type, width, length, height, allowStack, allowWalk, allowSit, allowRecycle, allowTrade, allowMarketplace, allowGift, allowInventoryStack, interactionType, cycleCount, vendingIDS, sub, effect,StackMultiplier, ToggleHeight,flatId);
Items.Add(id, item);
}
height = double.Parse(dRow[6].ToString());