Jump to content
  • 0
Sign in to follow this  
kbd1

can someone help me with this i need help am trying to add 474 models to my client

Question

public final class Model extends Animable {

public static void nullLoader()
{
aClass21Array1661 = null;
aBooleanArray1663 = null;
aBooleanArray1664 = null;
anIntArray1665 = null;
anIntArray1666 = null;
anIntArray1667 = null;
anIntArray1668 = null;
anIntArray1669 = null;
anIntArray1670 = null;
anIntArray1671 = null;
anIntArrayArray1672 = null;
anIntArray1673 = null;
anIntArrayArray1674 = null;
anIntArray1675 = null;
anIntArray1676 = null;
anIntArray1677 = null;
modelIntArray1 = null;
modelIntArray2 = null;
modelIntArray3 = null;
modelIntArray4 = null;
}

public static void method459(int i, OnDemandFetcherParent onDemandFetcherParent)
{
aClass21Array1661 = new Class21[60000];
aOnDemandFetcherParent_1662 = onDemandFetcherParent;
}

public static void method460(byte abyte0[], int j)
{
if(abyte0 == null)
{
Class21 class21 = aClass21Array1661[j] = new Class21();
class21.anInt369 = 0;
class21.anInt370 = 0;
class21.anInt371 = 0;
return;
}
Stream stream = new Stream(abyte0);
stream.currentOffset = abyte0.length - 18;
Class21 class21_1 = aClass21Array1661[j] = new Class21();
class21_1.aByteArray368 = abyte0;
class21_1.anInt369 = stream.readUnsignedWord();
class21_1.anInt370 = stream.readUnsignedWord();
class21_1.anInt371 = stream.readUnsignedByte();
int k = stream.readUnsignedByte();
int l = stream.readUnsignedByte();
int i1 = stream.readUnsignedByte();
int j1 = stream.readUnsignedByte();
int k1 = stream.readUnsignedByte();
int l1 = stream.readUnsignedWord();
int i2 = stream.readUnsignedWord();
int j2 = stream.readUnsignedWord();
int k2 = stream.readUnsignedWord();
int l2 = 0;
class21_1.anInt372 = l2;
l2 += class21_1.anInt369;
class21_1.anInt378 = l2;
l2 += class21_1.anInt370;
class21_1.anInt381 = l2;
if(l == 255)
l2 += class21_1.anInt370;
else
class21_1.anInt381 = -l - 1;
class21_1.anInt383 = l2;
if(j1 == 1)
l2 += class21_1.anInt370;
else
class21_1.anInt383 = -1;
class21_1.anInt380 = l2;
if(k == 1)
l2 += class21_1.anInt370;
else
class21_1.anInt380 = -1;
class21_1.anInt376 = l2;
if(k1 == 1)
l2 += class21_1.anInt369;
else
class21_1.anInt376 = -1;
class21_1.anInt382 = l2;
if(i1 == 1)
l2 += class21_1.anInt370;
else
class21_1.anInt382 = -1;
class21_1.anInt377 = l2;
l2 += k2;
class21_1.anInt379 = l2;
l2 += class21_1.anInt370 * 2;
class21_1.anInt384 = l2;
l2 += class21_1.anInt371 * 6;
class21_1.anInt373 = l2;
l2 += l1;
class21_1.anInt374 = l2;
l2 += i2;
class21_1.anInt375 = l2;
l2 += j2;
}

public static void method461(int j)
{
aClass21Array1661[j] = null;
}

public static Model method462(int j)
{
if(aClass21Array1661 == null)
return null;
Class21 class21 = aClass21Array1661[j];
if(class21 == null)
{
aOnDemandFetcherParent_1662.method548(j);
return null;
} else
{
return new Model(j);
}
}

public static boolean method463(int i)
{
if(aClass21Array1661 == null)
return false;
Class21 class21 = aClass21Array1661[i];
if(class21 == null)
{
aOnDemandFetcherParent_1662.method548(i);
return false;
} else
{
return true;
}
}

private Model()
{
aBoolean1659 = false;
}

public void readNewModel(byte abyte0[], int modelID) {
Stream nc1 = new Stream(abyte0);
Stream nc2 = new Stream(abyte0);
Stream nc3 = new Stream(abyte0);
Stream nc4 = new Stream(abyte0);
Stream nc5 = new Stream(abyte0);
Stream nc6 = new Stream(abyte0);
Stream nc7 = new Stream(abyte0);
nc1.currentOffset = abyte0.length - 23;
int numVertices = nc1.readUnsignedWord();
int numTriangles = nc1.readUnsignedWord();
int numTexTriangles = nc1.readUnsignedByte();
Class21 ModelDef_1 = aClass21Array1661[modelID] = new Class21();
ModelDef_1.aByteArray368 = abyte0;
ModelDef_1.anInt369 = numVertices;
ModelDef_1.anInt370 = numTriangles;
ModelDef_1.anInt371 = numTexTriangles;
int l1 = nc1.readUnsignedByte();
boolean bool = (0x1 & l1 ^ 0xffffffff) == -2;
boolean bool_78_ = (l1 & 0x2 ^ 0xffffffff) == -3;
int i2 = nc1.readUnsignedByte();
int j2 = nc1.readUnsignedByte();
int k2 = nc1.readUnsignedByte();
int l2 = nc1.readUnsignedByte();
int i3 = nc1.readUnsignedByte();
int j3 = nc1.readUnsignedWord();
int k3 = nc1.readUnsignedWord();
int l3 = nc1.readUnsignedWord();
int i4 = nc1.readUnsignedWord();
int j4 = nc1.readUnsignedWord();
int k4 = 0;
int l4 = 0;
int i5 = 0;
int v = 0;
int hb = 0;
int P = 0;
byte G = 0;
byte[] x = null;
byte[] O = null;
byte[] J = null;
byte[] F = null;
byte[] cb = null;
byte[] gb = null;
byte[] lb = null;
int[] ab = null;
int[] kb = null;
int[] y = null;
int[] N = null;
short[] D = null;
int[] triangleColours2 = new int[numTriangles];
if(numTexTriangles > 0) {
O = new byte[numTexTriangles];
nc1.currentOffset = 0;
for(int j5 = 0; j5 < numTexTriangles; j5++)
{
byte byte0 = O[j5] = nc1.readSignedByte();
if(byte0 == 0)
k4++;
if(byte0 >= 1 && byte0 <= 3)
l4++;
if(byte0 == 2)
i5++;
}
}
int k5 = numTexTriangles;
int l5 = k5;
k5 += numVertices;
int i6 = k5;
if(l1 == 1)
k5 += numTriangles;
int j6 = k5;
k5 += numTriangles;
int k6 = k5;
if(i2 == 255)
k5 += numTriangles;
int l6 = k5;
if(k2 == 1)
k5 += numTriangles;
int i7 = k5;
if(i3 == 1)
k5 += numVertices;
int j7 = k5;
if(j2 == 1)
k5 += numTriangles;
int k7 = k5;
k5 += i4;
int l7 = k5;
if(l2 == 1)
k5 += numTriangles * 2;
int i8 = k5;
k5 += j4;
int j8 = k5;
k5 += numTriangles * 2;
int k8 = k5;
k5 += j3;
int l8 = k5;
k5 += k3;
int i9 = k5;
k5 += l3;
int j9 = k5;
k5 += k4 * 6;
int k9 = k5;
k5 += l4 * 6;
int l9 = k5;
k5 += l4 * 6;
int i10 = k5;
k5 += l4;
int j10 = k5;
k5 += l4;
int k10 = k5;
k5 += l4 + i5 * 2;
v = numVertices;
hb = numTriangles;
P = numTexTriangles;
int[] vertexX = new int[numVertices];
int[] vertexY = new int[numVertices];
int[] vertexZ = new int[numVertices];
int[] facePoint1 = new int[numTriangles];
int[] facePoint2 = new int[numTriangles];
int[] facePoint3 = new int[numTriangles];
anIntArray1655 = new int[numVertices];
anIntArray1637 = new int[numTriangles];
anIntArray1638 = new int[numTriangles];
anIntArray1639 = new int[numTriangles];
anIntArray1656 = new int[numTriangles];




if(i3 == 1)
anIntArray1655 = new int[numVertices];
if(bool)
anIntArray1637 = new int[numTriangles];
if(i2 == 255)
anIntArray1638 = new int[numTriangles];
else
G = (byte)i2;
if(j2 == 1)
anIntArray1639 = new int[numTriangles];
if(k2 == 1)
anIntArray1656 = new int[numTriangles];
if(l2 == 1)
D = new short[numTriangles];
if(l2 == 1 && numTexTriangles > 0)
x = new byte[numTriangles];
triangleColours2 = new int[numTriangles];
int i_115_ = k5;
int[] texTrianglesPoint1 = null;
int[] texTrianglesPoint2 = null;
int[] texTrianglesPoint3 = null;
if(numTexTriangles > 0) {
texTrianglesPoint1 = new int[numTexTriangles];
texTrianglesPoint2 = new int[numTexTriangles];
texTrianglesPoint3 = new int[numTexTriangles];
if(l4 > 0) {
kb = new int[l4];
N = new int[l4];
y = new int[l4];
gb = new byte[l4];
lb = new byte[l4];
F = new byte[l4];
}
if(i5 > 0) {
cb = new byte[i5];
J = new byte[i5];
}
}
nc1.currentOffset = l5;
nc2.currentOffset = k8;
nc3.currentOffset = l8;
nc4.currentOffset = i9;
nc5.currentOffset = i7;
int l10 = 0;
int i11 = 0;
int j11 = 0;
for(int k11 = 0; k11 < numVertices; k11++) {
int l11 = nc1.readUnsignedByte();
int j12 = 0;
if((l11 & 1) != 0)
j12 = nc2.method421();
int l12 = 0;
if((l11 & 2) != 0)
l12 = nc3.method421();
int j13 = 0;
if((l11 & 4) != 0)
j13 = nc4.method421();
vertexX[k11] = l10 + j12;
vertexY[k11] = i11 + l12;
vertexZ[k11] = j11 + j13;
l10 = vertexX[k11];
i11 = vertexY[k11];
j11 = vertexZ[k11];
if(anIntArray1655 != null)
anIntArray1655[k11] = nc5.readUnsignedByte();
}
nc1.currentOffset = j8;
nc2.currentOffset = i6;
nc3.currentOffset = k6;
nc4.currentOffset = j7;
nc5.currentOffset = l6;
nc6.currentOffset = l7;
nc7.currentOffset = i8;
for(int i12 = 0; i12 < numTriangles; i12++) {


triangleColours2[i12] = nc1.readUnsignedWord();
if(l1 == 1){
anIntArray1637[i12] = nc2.readSignedByte();
if(anIntArray1637[i12] == 2)triangleColours2[i12] = 65535;
anIntArray1637[i12] = 0;
}
if(i2 == 255){
anIntArray1638[i12] = nc3.readSignedByte();
}
if(j2 == 1){
anIntArray1639[i12] = nc4.readSignedByte();
if(anIntArray1639[i12] < 0)
anIntArray1639[i12] = (256+anIntArray1639[i12]);
}
if(k2 == 1)
anIntArray1656[i12] = nc5.readUnsignedByte();
if(l2 == 1)
D[i12] = (short)(nc6.readUnsignedWord() - 1);

if(x != null)
if(D[i12] != -1)
x[i12] = (byte)(nc7.readUnsignedByte() -1);
else
x[i12] = -1;
}
nc1.currentOffset = k7;
nc2.currentOffset = j6;
int k12 = 0;
int i13 = 0;
int k13 = 0;
int l13 = 0;
for(int i14 = 0; i14 < numTriangles; i14++) {
int j14 = nc2.readUnsignedByte();
if(j14 == 1) {
k12 = nc1.method421() + l13;
l13 = k12;
i13 = nc1.method421() + l13;
l13 = i13;
k13 = nc1.method421() + l13;
l13 = k13;
facePoint1[i14] = k12;
facePoint2[i14] = i13;
facePoint3[i14] = k13;
}
if(j14 == 2) {
i13 = k13;
k13 = nc1.method421() + l13;
l13 = k13;
facePoint1[i14] = k12;
facePoint2[i14] = i13;
facePoint3[i14] = k13;
}
if(j14 == 3) {
k12 = k13;
k13 = nc1.method421() + l13;
l13 = k13;
facePoint1[i14] = k12;
facePoint2[i14] = i13;
facePoint3[i14] = k13;
}
if(j14 == 4) {
int l14 = k12;
k12 = i13;
i13 = l14;
k13 = nc1.method421() + l13;
l13 = k13;
facePoint1[i14] = k12;
facePoint2[i14] = i13;
facePoint3[i14] = k13;
}
}
nc1.currentOffset = j9;
nc2.currentOffset = k9;
nc3.currentOffset = l9;
nc4.currentOffset = i10;
nc5.currentOffset = j10;
nc6.currentOffset = k10;
for(int k14 = 0; k14 < numTexTriangles; k14++) {
int i15 = O[k14] & 0xff;
if(i15 == 0) {
texTrianglesPoint1[k14] = nc1.readUnsignedWord();
texTrianglesPoint2[k14] = nc1.readUnsignedWord();
texTrianglesPoint3[k14] = nc1.readUnsignedWord();
}
if(i15 == 1) {
texTrianglesPoint1[k14] = nc2.readUnsignedWord();
texTrianglesPoint2[k14] = nc2.readUnsignedWord();
texTrianglesPoint3[k14] = nc2.readUnsignedWord();
kb[k14] = nc3.readUnsignedWord();
N[k14] = nc3.readUnsignedWord();
y[k14] = nc3.readUnsignedWord();
gb[k14] = nc4.readSignedByte();
lb[k14] = nc5.readSignedByte();
F[k14] = nc6.readSignedByte();
}
if(i15 == 2) {
texTrianglesPoint1[k14] = nc2.readUnsignedWord();
texTrianglesPoint2[k14] = nc2.readUnsignedWord();
texTrianglesPoint3[k14] = nc2.readUnsignedWord();
kb[k14] = nc3.readUnsignedWord();
N[k14] = nc3.readUnsignedWord();
y[k14] = nc3.readUnsignedWord();
gb[k14] = nc4.readSignedByte();
lb[k14] = nc5.readSignedByte();
F[k14] = nc6.readSignedByte();
cb[k14] = nc6.readSignedByte();
J[k14] = nc6.readSignedByte();
}
if(i15 == 3) {
texTrianglesPoint1[k14] = nc2.readUnsignedWord();
texTrianglesPoint2[k14] = nc2.readUnsignedWord();
texTrianglesPoint3[k14] = nc2.readUnsignedWord();
kb[k14] = nc3.readUnsignedWord();
N[k14] = nc3.readUnsignedWord();
y[k14] = nc3.readUnsignedWord();
gb[k14] = nc4.readSignedByte();
lb[k14] = nc5.readSignedByte();
F[k14] = nc6.readSignedByte();
}
}

if (i2 != 255) {
for(int i12 = 0; i12 < numTriangles; i12++)
anIntArray1638[i12] = i2;

}
anIntArray1640 = triangleColours2;
anInt1626 = numVertices;
anInt1630 = numTriangles;
anIntArray1627 = vertexX;
anIntArray1628 = vertexY;
anIntArray1629 = vertexZ;
anIntArray1631= facePoint1;
anIntArray1632= facePoint2;
anIntArray1633= facePoint3;
}
private Model(int modelId)
{
byte[] is = aClass21Array1661[modelId].aByteArray368;
if(is[is.length - 1] == -1 && is[is.length - 2] == -1)
readNewModel(is, modelId);
else
readOldModel(modelId);
}


private void readOldModel(int i)
{
aBoolean1659 = false;
Class21 class21 = aClass21Array1661[i];
anInt1626 = class21.anInt369;
anInt1630 = class21.anInt370;
anInt1642 = class21.anInt371;
anIntArray1627 = new int[anInt1626];
anIntArray1628 = new int[anInt1626];
anIntArray1629 = new int[anInt1626];
anIntArray1631 = new int[anInt1630];
anIntArray1632 = new int[anInt1630];
anIntArray1633 = new int[anInt1630];
anIntArray1643 = new int[anInt1642];
anIntArray1644 = new int[anInt1642];
anIntArray1645 = new int[anInt1642];
if(class21.anInt376 >= 0)
anIntArray1655 = new int[anInt1626];
if(class21.anInt380 >= 0)
anIntArray1637 = new int[anInt1630];
if(class21.anInt381 >= 0)
anIntArray1638 = new int[anInt1630];
else
anInt1641 = -class21.anInt381 - 1;
if(class21.anInt382 >= 0)
anIntArray1639 = new int[anInt1630];
if(class21.anInt383 >= 0)
anIntArray1656 = new int[anInt1630];
anIntArray1640 = new int[anInt1630];
Stream stream = new Stream(class21.aByteArray368);
stream.currentOffset = class21.anInt372;
Stream stream_1 = new Stream(class21.aByteArray368);
stream_1.currentOffset = class21.anInt373;
Stream stream_2 = new Stream(class21.aByteArray368);
stream_2.currentOffset = class21.anInt374;
Stream stream_3 = new Stream(class21.aByteArray368);
stream_3.currentOffset = class21.anInt375;
Stream stream_4 = new Stream(class21.aByteArray368);
stream_4.currentOffset = class21.anInt376;
int k = 0;
int l = 0;
int i1 = 0;
for(int j1 = 0; j1 < anInt1626; j1++)
{
int k1 = stream.readUnsignedByte();
int i2 = 0;
if((k1 & 1) != 0)
i2 = stream_1.method421();
int k2 = 0;
if((k1 & 2) != 0)
k2 = stream_2.method421();
int i3 = 0;
if((k1 & 4) != 0)
i3 = stream_3.method421();
anIntArray1627[j1] = k + i2;
anIntArray1628[j1] = l + k2;
anIntArray1629[j1] = i1 + i3;
k = anIntArray1627[j1];
l = anIntArray1628[j1];
i1 = anIntArray1629[j1];
if(anIntArray1655 != null)
anIntArray1655[j1] = stream_4.readUnsignedByte();
}

stream.currentOffset = class21.anInt379;
stream_1.currentOffset = class21.anInt380;
stream_2.currentOffset = class21.anInt381;
stream_3.currentOffset = class21.anInt382;
stream_4.currentOffset = class21.anInt383;
for(int l1 = 0; l1 < anInt1630; l1++)
{
anIntArray1640[l1] = stream.readUnsignedWord();
if(anIntArray1637 != null)
anIntArray1637[l1] = stream_1.readUnsignedByte();
if(anIntArray1638 != null)
anIntArray1638[l1] = stream_2.readUnsignedByte();
if(anIntArray1639 != null)
anIntArray1639[l1] = stream_3.readUnsignedByte();
if(anIntArray1656 != null)
anIntArray1656[l1] = stream_4.readUnsignedByte();
}

stream.currentOffset = class21.anInt377;
stream_1.currentOffset = class21.anInt378;
int j2 = 0;
int l2 = 0;
int j3 = 0;
int k3 = 0;
for(int l3 = 0; l3 < anInt1630; l3++)
{
int i4 = stream_1.readUnsignedByte();
if(i4 == 1)
{
j2 = stream.method421() + k3;
k3 = j2;
l2 = stream.method421() + k3;
k3 = l2;
j3 = stream.method421() + k3;
k3 = j3;
anIntArray1631[l3] = j2;
anIntArray1632[l3] = l2;
anIntArray1633[l3] = j3;
}
if(i4 == 2)
{
j2 = j2;
l2 = j3;
j3 = stream.method421() + k3;
k3 = j3;
anIntArray1631[l3] = j2;
anIntArray1632[l3] = l2;
anIntArray1633[l3] = j3;
}
if(i4 == 3)
{
j2 = j3;
l2 = l2;
j3 = stream.method421() + k3;
k3 = j3;
anIntArray1631[l3] = j2;
anIntArray1632[l3] = l2;
anIntArray1633[l3] = j3;
}
if(i4 == 4)
{
int k4 = j2;
j2 = l2;
l2 = k4;
j3 = stream.method421() + k3;
k3 = j3;
anIntArray1631[l3] = j2;
anIntArray1632[l3] = l2;
anIntArray1633[l3] = j3;
}
}

stream.currentOffset = class21.anInt384;
for(int j4 = 0; j4 < anInt1642; j4++)
{
anIntArray1643[j4] = stream.readUnsignedWord();
anIntArray1644[j4] = stream.readUnsignedWord();
anIntArray1645[j4] = stream.readUnsignedWord();
}

}

public Model(int i, Model aclass30_sub2_sub4_sub6s[])
{
aBoolean1659 = false;
boolean flag = false;
boolean flag1 = false;
boolean flag2 = false;
boolean flag3 = false;
anInt1626 = 0;
anInt1630 = 0;
anInt1642 = 0;
anInt1641 = -1;
for(int k = 0; k < i; k++)
{
Model model = aclass30_sub2_sub4_sub6s[k];
if(model != null)
{
anInt1626 += model.anInt1626;
anInt1630 += model.anInt1630;
anInt1642 += model.anInt1642;
flag |= model.anIntArray1637 != null;
if(model.anIntArray1638 != null)
{
flag1 = true;
} else
{
if(anInt1641 == -1)
anInt1641 = model.anInt1641;
if(anInt1641 != model.anInt1641)
flag1 = true;
}
flag2 |= model.anIntArray1639 != null;
flag3 |= model.anIntArray1656 != null;
}
}

anIntArray1627 = new int[anInt1626];
anIntArray1628 = new int[anInt1626];
anIntArray1629 = new int[anInt1626];
anIntArray1655 = new int[anInt1626];
anIntArray1631 = new int[anInt1630];
anIntArray1632 = new int[anInt1630];
anIntArray1633 = new int[anInt1630];
anIntArray1643 = new int[anInt1642];
anIntArray1644 = new int[anInt1642];
anIntArray1645 = new int[anInt1642];
if(flag)
anIntArray1637 = new int[anInt1630];
if(flag1)
anIntArray1638 = new int[anInt1630];
if(flag2)
anIntArray1639 = new int[anInt1630];
if(flag3)
anIntArray1656 = new int[anInt1630];
anIntArray1640 = new int[anInt1630];
anInt1626 = 0;
anInt1630 = 0;
anInt1642 = 0;
int l = 0;
for(int i1 = 0; i1 < i; i1++)
{
Model model_1 = aclass30_sub2_sub4_sub6s[i1];
if(model_1 != null)
{
for(int j1 = 0; j1 < model_1.anInt1630; j1++)
{
if(flag)
if(model_1.anIntArray1637 == null)
{
anIntArray1637[anInt1630] = 0;
} else
{
int k1 = model_1.anIntArray1637[j1];
if((k1 & 2) == 2)
k1 += l << 2;
anIntArray1637[anInt1630] = k1;
}
if(flag1)
if(model_1.anIntArray1638 == null)
anIntArray1638[anInt1630] = model_1.anInt1641;
else
anIntArray1638[anInt1630] = model_1.anIntArray1638[j1];
if(flag2)
if(model_1.anIntArray1639 == null)
anIntArray1639[anInt1630] = 0;
else
anIntArray1639[anInt1630] = model_1.anIntArray1639[j1];
if(flag3 && model_1.anIntArray1656 != null)
anIntArray1656[anInt1630] = model_1.anIntArray1656[j1];
anIntArray1640[anInt1630] = model_1.anIntArray1640[j1];
anIntArray1631[anInt1630] = method465(model_1, model_1.anIntArray1631[j1]);
anIntArray1632[anInt1630] = method465(model_1, model_1.anIntArray1632[j1]);
anIntArray1633[anInt1630] = method465(model_1, model_1.anIntArray1633[j1]);
anInt1630++;
}

for(int l1 = 0; l1 < model_1.anInt1642; l1++)
{
anIntArray1643[anInt1642] = method465(model_1, model_1.anIntArray1643[l1]);
anIntArray1644[anInt1642] = method465(model_1, model_1.anIntArray1644[l1]);
anIntArray1645[anInt1642] = method465(model_1, model_1.anIntArray1645[l1]);
anInt1642++;
}

l += model_1.anInt1642;
}
}

}

public Model(Model aclass30_sub2_sub4_sub6s[])
{
int i = 2;//was parameter
aBoolean1659 = false;
boolean flag1 = false;
boolean flag2 = false;
boolean flag3 = false;
boolean flag4 = false;
anInt1626 = 0;
anInt1630 = 0;
anInt1642 = 0;
anInt1641 = -1;
for(int k = 0; k < i; k++)
{
Model model = aclass30_sub2_sub4_sub6s[k];
if(model != null)
{
anInt1626 += model.anInt1626;
anInt1630 += model.anInt1630;
anInt1642 += model.anInt1642;
flag1 |= model.anIntArray1637 != null;
if(model.anIntArray1638 != null)
{
flag2 = true;
} else
{
if(anInt1641 == -1)
anInt1641 = model.anInt1641;
if(anInt1641 != model.anInt1641)
flag2 = true;
}
flag3 |= model.anIntArray1639 != null;
flag4 |= model.anIntArray1640 != null;
}
}

anIntArray1627 = new int[anInt1626];
anIntArray1628 = new int[anInt1626];
anIntArray1629 = new int[anInt1626];
anIntArray1631 = new int[anInt1630];
anIntArray1632 = new int[anInt1630];
anIntArray1633 = new int[anInt1630];
anIntArray1634 = new int[anInt1630];
anIntArray1635 = new int[anInt1630];
anIntArray1636 = new int[anInt1630];
anIntArray1643 = new int[anInt1642];
anIntArray1644 = new int[anInt1642];
anIntArray1645 = new int[anInt1642];
if(flag1)
anIntArray1637 = new int[anInt1630];
if(flag2)
anIntArray1638 = new int[anInt1630];
if(flag3)
anIntArray1639 = new int[anInt1630];
if(flag4)
anIntArray1640 = new int[anInt1630];
anInt1626 = 0;
anInt1630 = 0;
anInt1642 = 0;
int i1 = 0;
for(int j1 = 0; j1 < i; j1++)
{
Model model_1 = aclass30_sub2_sub4_sub6s[j1];
if(model_1 != null)
{
int k1 = anInt1626;
for(int l1 = 0; l1 < model_1.anInt1626; l1++)
{
anIntArray1627[anInt1626] = model_1.anIntArray1627[l1];
anIntArray1628[anInt1626] = model_1.anIntArray1628[l1];
anIntArray1629[anInt1626] = model_1.anIntArray1629[l1];
anInt1626++;
}

for(int i2 = 0; i2 < model_1.anInt1630; i2++)
{
anIntArray1631[anInt1630] = model_1.anIntArray1631[i2] + k1;
anIntArray1632[anInt1630] = model_1.anIntArray1632[i2] + k1;
anIntArray1633[anInt1630] = model_1.anIntArray1633[i2] + k1;
anIntArray1634[anInt1630] = model_1.anIntArray1634[i2];
anIntArray1635[anInt1630] = model_1.anIntArray1635[i2];
anIntArray1636[anInt1630] = model_1.anIntArray1636[i2];
if(flag1)
if(model_1.anIntArray1637 == null)
{
anIntArray1637[anInt1630] = 0;
} else
{
int j2 = model_1.anIntArray1637[i2];
if((j2 & 2) == 2)
j2 += i1 << 2;
anIntArray1637[anInt1630] = j2;
}
if(flag2)
if(model_1.anIntArray1638 == null)
anIntArray1638[anInt1630] = model_1.anInt1641;
else
anIntArray1638[anInt1630] = model_1.anIntArray1638[i2];
if(flag3)
if(model_1.anIntArray1639 == null)
anIntArray1639[anInt1630] = 0;
else
anIntArray1639[anInt1630] = model_1.anIntArray1639[i2];
if(flag4 && model_1.anIntArray1640 != null)
anIntArray1640[anInt1630] = model_1.anIntArray1640[i2];
anInt1630++;
}

for(int k2 = 0; k2 < model_1.anInt1642; k2++)
{
anIntArray1643[anInt1642] = model_1.anIntArray1643[k2] + k1;
anIntArray1644[anInt1642] = model_1.anIntArray1644[k2] + k1;
anIntArray1645[anInt1642] = model_1.anIntArray1645[k2] + k1;
anInt1642++;
}

i1 += model_1.anInt1642;
}
}

method466();
}

public Model(boolean flag, boolean flag1, boolean flag2, Model model)
{
aBoolean1659 = false;
anInt1626 = model.anInt1626;
anInt1630 = model.anInt1630;
anInt1642 = model.anInt1642;
if(flag2)
{
anIntArray1627 = model.anIntArray1627;
anIntArray1628 = model.anIntArray1628;
anIntArray1629 = model.anIntArray1629;
} else
{
anIntArray1627 = new int[anInt1626];
anIntArray1628 = new int[anInt1626];
anIntArray1629 = new int[anInt1626];
for(int j = 0; j < anInt1626; j++)
{
anIntArray1627[j] = model.anIntArray1627[j];
anIntArray1628[j] = model.anIntArray1628[j];
anIntArray1629[j] = model.anIntArray1629[j];
}

}
if(flag)
{
anIntArray1640 = model.anIntArray1640;
} else
{
anIntArray1640 = new int[anInt1630];
System.arraycopy(model.anIntArray1640, 0, anIntArray1640, 0, anInt1630);

}
if(flag1)
{
anIntArray1639 = model.anIntArray1639;
} else
{
anIntArray1639 = new int[anInt1630];
if(model.anIntArray1639 == null)
{
for(int l = 0; l < anInt1630; l++)
anIntArray1639[l] = 0;

} else
{
System.arraycopy(model.anIntArray1639, 0, anIntArray1639, 0, anInt1630);

}
}
anIntArray1655 = model.anIntArray1655;
anIntArray1656 = model.anIntArray1656;
anIntArray1637 = model.anIntArray1637;
anIntArray1631 = model.anIntArray1631;
anIntArray1632 = model.anIntArray1632;
anIntArray1633 = model.anIntArray1633;
anIntArray1638 = model.anIntArray1638;
anInt1641 = model.anInt1641;
anIntArray1643 = model.anIntArray1643;
anIntArray1644 = model.anIntArray1644;
anIntArray1645 = model.anIntArray1645;
}

public Model(boolean flag, boolean flag1, Model model)
{
aBoolean1659 = false;
anInt1626 = model.anInt1626;
anInt1630 = model.anInt1630;
anInt1642 = model.anInt1642;
if(flag)
{
anIntArray1628 = new int[anInt1626];
System.arraycopy(model.anIntArray1628, 0, anIntArray1628, 0, anInt1626);

} else
{
anIntArray1628 = model.anIntArray1628;
}
if(flag1)
{
anIntArray1634 = new int[anInt1630];
anIntArray1635 = new int[anInt1630];
anIntArray1636 = new int[anInt1630];
for(int k = 0; k < anInt1630; k++)
{
anIntArray1634[k] = model.anIntArray1634[k];
anIntArray1635[k] = model.anIntArray1635[k];
anIntArray1636[k] = model.anIntArray1636[k];
}

anIntArray1637 = new int[anInt1630];
if(model.anIntArray1637 == null)
{
for(int l = 0; l < anInt1630; l++)
anIntArray1637[l] = 0;

} else
{
System.arraycopy(model.anIntArray1637, 0, anIntArray1637, 0, anInt1630);

}
super.aClass33Array1425 = new Class33[anInt1626];
for(int j1 = 0; j1 < anInt1626; j1++)
{
Class33 class33 = super.aClass33Array1425[j1] = new Class33();
Class33 class33_1 = model.aClass33Array1425[j1];
class33.anInt602 = class33_1.anInt602;
class33.anInt603 = class33_1.anInt603;
class33.anInt604 = class33_1.anInt604;
class33.anInt605 = class33_1.anInt605;
}

aClass33Array1660 = model.aClass33Array1660;
} else
{
anIntArray1634 = model.anIntArray1634;
anIntArray1635 = model.anIntArray1635;
anIntArray1636 = model.anIntArray1636;
anIntArray1637 = model.anIntArray1637;
}
anIntArray1627 = model.anIntArray1627;
anIntArray1629 = model.anIntArray1629;
anIntArray1640 = model.anIntArray1640;
anIntArray1639 = model.anIntArray1639;
anIntArray1638 = model.anIntArray1638;
anInt1641 = model.anInt1641;
anIntArray1631 = model.anIntArray1631;
anIntArray1632 = model.anIntArray1632;
anIntArray1633 = model.anIntArray1633;
anIntArray1643 = model.anIntArray1643;
anIntArray1644 = model.anIntArray1644;
anIntArray1645 = model.anIntArray1645;
super.modelHeight = model.modelHeight;
anInt1651 = model.anInt1651;
anInt1650 = model.anInt1650;
anInt1653 = model.anInt1653;
anInt1652 = model.anInt1652;
anInt1646 = model.anInt1646;
anInt1648 = model.anInt1648;
anInt1649 = model.anInt1649;
anInt1647 = model.anInt1647;
}

public void method464(Model model, boolean flag)
{
anInt1626 = model.anInt1626;
anInt1630 = model.anInt1630;
anInt1642 = model.anInt1642;
if(anIntArray1622.length < anInt1626)
{
anIntArray1622 = new int[anInt1626 + 100];
anIntArray1623 = new int[anInt1626 + 100];
anIntArray1624 = new int[anInt1626 + 100];
}
anIntArray1627 = anIntArray1622;
anIntArray1628 = anIntArray1623;
anIntArray1629 = anIntArray1624;
for(int k = 0; k < anInt1626; k++)
{
anIntArray1627[k] = model.anIntArray1627[k];
anIntArray1628[k] = model.anIntArray1628[k];
anIntArray1629[k] = model.anIntArray1629[k];
}

if(flag)
{
anIntArray1639 = model.anIntArray1639;
} else
{
if(anIntArray1625.length < anInt1630)
anIntArray1625 = new int[anInt1630 + 100];
anIntArray1639 = anIntArray1625;
if(model.anIntArray1639 == null)
{
for(int l = 0; l < anInt1630; l++)
anIntArray1639[l] = 0;

} else
{
System.arraycopy(model.anIntArray1639, 0, anIntArray1639, 0, anInt1630);

}
}
anIntArray1637 = model.anIntArray1637;
anIntArray1640 = model.anIntArray1640;
anIntArray1638 = model.anIntArray1638;
anInt1641 = model.anInt1641;
anIntArrayArray1658 = model.anIntArrayArray1658;
anIntArrayArray1657 = model.anIntArrayArray1657;
anIntArray1631 = model.anIntArray1631;
anIntArray1632 = model.anIntArray1632;
anIntArray1633 = model.anIntArray1633;
anIntArray1634 = model.anIntArray1634;
anIntArray1635 = model.anIntArray1635;
anIntArray1636 = model.anIntArray1636;
anIntArray1643 = model.anIntArray1643;
anIntArray1644 = model.anIntArray1644;
anIntArray1645 = model.anIntArray1645;
}

private int method465(Model model, int i)
{
int j = -1;
int k = model.anIntArray1627[i];
int l = model.anIntArray1628[i];
int i1 = model.anIntArray1629[i];
for(int j1 = 0; j1 < anInt1626; j1++)
{
if(k != anIntArray1627[j1] || l != anIntArray1628[j1] || i1 != anIntArray1629[j1])
continue;
j = j1;
break;
}

if(j == -1)
{
anIntArray1627[anInt1626] = k;
anIntArray1628[anInt1626] = l;
anIntArray1629[anInt1626] = i1;
if(model.anIntArray1655 != null)
anIntArray1655[anInt1626] = model.anIntArray1655[i];
j = anInt1626++;
}
return j;
}

public void method466()
{
super.modelHeight = 0;
anInt1650 = 0;
anInt1651 = 0;
for(int i = 0; i < anInt1626; i++)
{
int j = anIntArray1627[i];
int k = anIntArray1628[i];
int l = anIntArray1629[i];
if(-k > super.modelHeight)
super.modelHeight = -k;
if(k > anInt1651)
anInt1651 = k;
int i1 = j * j + l * l;
if(i1 > anInt1650)
anInt1650 = i1;
}
anInt1650 = (int)(Math.sqrt(anInt1650) + 0.98999999999999999D);
anInt1653 = (int)(Math.sqrt(anInt1650 * anInt1650 + super.modelHeight * super.modelHeight) + 0.98999999999999999D);
anInt1652 = anInt1653 + (int)(Math.sqrt(anInt1650 * anInt1650 + anInt1651 * anInt1651) + 0.98999999999999999D);
}

public void method467()
{
super.modelHeight = 0;
anInt1651 = 0;
for(int i = 0; i < anInt1626; i++)
{
int j = anIntArray1628[i];
if(-j > super.modelHeight)
super.modelHeight = -j;
if(j > anInt1651)
anInt1651 = j;
}

anInt1653 = (int)(Math.sqrt(anInt1650 * anInt1650 + super.modelHeight * super.modelHeight) + 0.98999999999999999D);
anInt1652 = anInt1653 + (int)(Math.sqrt(anInt1650 * anInt1650 + anInt1651 * anInt1651) + 0.98999999999999999D);
}

private void method468()
{
super.modelHeight = 0;
anInt1650 = 0;
anInt1651 = 0;
anInt1646 = 0xf423f;
anInt1647 = 0xfff0bdc1;
anInt1648 = 0xfffe7961;
anInt1649 = 0x1869f;
for(int j = 0; j < anInt1626; j++)
{
int k = anIntArray1627[j];
int l = anIntArray1628[j];
int i1 = anIntArray1629[j];
if(k < anInt1646)
anInt1646 = k;
if(k > anInt1647)
anInt1647 = k;
if(i1 < anInt1649)
anInt1649 = i1;
if(i1 > anInt1648)
anInt1648 = i1;
if(-l > super.modelHeight)
super.modelHeight = -l;
if(l > anInt1651)
anInt1651 = l;
int j1 = k * k + i1 * i1;
if(j1 > anInt1650)
anInt1650 = j1;
}

anInt1650 = (int)Math.sqrt(anInt1650);
anInt1653 = (int)Math.sqrt(anInt1650 * anInt1650 + super.modelHeight * super.modelHeight);
anInt1652 = anInt1653 + (int)Math.sqrt(anInt1650 * anInt1650 + anInt1651 * anInt1651);
}

public void method469()
{
if(anIntArray1655 != null)
{
int ai[] = new int[256];
int j = 0;
for(int l = 0; l < anInt1626; l++)
{
int j1 = anIntArray1655[l];
ai[j1]++;
if(j1 > j)
j = j1;
}

anIntArrayArray1657 = new int[j + 1][];
for(int k1 = 0; k1 <= j; k1++)
{
anIntArrayArray1657[k1] = new int[ai[k1]];
ai[k1] = 0;
}

for(int j2 = 0; j2 < anInt1626; j2++)
{
int l2 = anIntArray1655[j2];
anIntArrayArray1657[l2][ai[l2]++] = j2;
}

anIntArray1655 = null;
}
if(anIntArray1656 != null)
{
int ai1[] = new int[256];
int k = 0;
for(int i1 = 0; i1 < anInt1630; i1++)
{
int l1 = anIntArray1656[i1];
ai1[l1]++;
if(l1 > k)
k = l1;
}

anIntArrayArray1658 = new int[k + 1][];
for(int i2 = 0; i2 <= k; i2++)
{
anIntArrayArray1658[i2] = new int[ai1[i2]];
ai1[i2] = 0;
}

for(int k2 = 0; k2 < anInt1630; k2++)
{
int i3 = anIntArray1656[k2];
anIntArrayArray1658[i3][ai1[i3]++] = k2;
}

anIntArray1656 = null;
}
}

public void method470(int i)
{
if(anIntArrayArray1657 == null)
return;
if(i == -1)
return;
Class36 class36 = Class36.method531(i);
if(class36 == null)
return;
Class18 class18 = class36.aClass18_637;
anInt1681 = 0;
anInt1682 = 0;
anInt1683 = 0;
for(int k = 0; k < class36.anInt638; k++)
{
int l = class36.anIntArray639[k];
method472(class18.anIntArray342[l], class18.anIntArrayArray343[l], class36.anIntArray640[k], class36.anIntArray641[k], class36.anIntArray642[k]);
}

}

public void method471(int ai[], int j, int k)
{
if(k == -1)
return;
if(ai == null || j == -1)
{
method470(k);
return;
}
Class36 class36 = Class36.method531(k);
if(class36 == null)
return;
Class36 class36_1 = Class36.method531(j);
if(class36_1 == null)
{
method470(k);
return;
}
Class18 class18 = class36.aClass18_637;
anInt1681 = 0;
anInt1682 = 0;
anInt1683 = 0;
int l = 0;
int i1 = ai[l++];
for(int j1 = 0; j1 < class36.anInt638; j1++)
{
int k1;
for(k1 = class36.anIntArray639[j1]; k1 > i1; i1 = ai[l++]);
if(k1 != i1 || class18.anIntArray342[k1] == 0)
method472(class18.anIntArray342[k1], class18.anIntArrayArray343[k1], class36.anIntArray640[j1], class36.anIntArray641[j1], class36.anIntArray642[j1]);
}

anInt1681 = 0;
anInt1682 = 0;
anInt1683 = 0;
l = 0;
i1 = ai[l++];
for(int l1 = 0; l1 < class36_1.anInt638; l1++)
{
int i2;
for(i2 = class36_1.anIntArray639[l1]; i2 > i1; i1 = ai[l++]);
if(i2 == i1 || class18.anIntArray342[i2] == 0)
method472(class18.anIntArray342[i2], class18.anIntArrayArray343[i2], class36_1.anIntArray640[l1], class36_1.anIntArray641[l1], class36_1.anIntArray642[l1]);
}

}

private void method472(int i, int ai[], int j, int k, int l)
{
int i1 = ai.length;
if(i == 0)
{
int j1 = 0;
anInt1681 = 0;
anInt1682 = 0;
anInt1683 = 0;
for(int k2 = 0; k2 < i1; k2++)
{
int l3 = ai[k2];
if(l3 < anIntArrayArray1657.length)
{
int ai5[] = anIntArrayArray1657[l3];
for(int i5 = 0; i5 < ai5.length; i5++)
{
int j6 = ai5[i5];
anInt1681 += anIntArray1627[j6];
anInt1682 += anIntArray1628[j6];
anInt1683 += anIntArray1629[j6];
j1++;
}

}
}

if(j1 > 0)
{
anInt1681 = anInt1681 / j1 + j;
anInt1682 = anInt1682 / j1 + k;
anInt1683 = anInt1683 / j1 + l;
return;
} else
{
anInt1681 = j;
anInt1682 = k;
anInt1683 = l;
return;
}
}
if(i == 1)
{
for(int k1 = 0; k1 < i1; k1++)
{
int l2 = ai[k1];
if(l2 < anIntArrayArray1657.length)
{
int ai1[] = anIntArrayArray1657[l2];
for(int i4 = 0; i4 < ai1.length; i4++)
{
int j5 = ai1[i4];
anIntArray1627[j5] += j;
anIntArray1628[j5] += k;
anIntArray1629[j5] += l;
}

}
}

return;
}
if(i == 2)
{
for(int l1 = 0; l1 < i1; l1++)
{
int i3 = ai[l1];
if(i3 < anIntArrayArray1657.length)
{
int ai2[] = anIntArrayArray1657[i3];
for(int j4 = 0; j4 < ai2.length; j4++)
{
int k5 = ai2[j4];
anIntArray1627[k5] -= anInt1681;
anIntArray1628[k5] -= anInt1682;
anIntArray1629[k5] -= anInt1683;
int k6 = (j & 0xff) * 8;
int l6 = (k & 0xff) * 8;
int i7 = (l & 0xff) * 8;
if(i7 != 0)
{
int j7 = modelIntArray1[i7];
int i8 = modelIntArray2[i7];
int l8 = anIntArray1628[k5] * j7 + anIntArray1627[k5] * i8 >> 16;
anIntArray1628[k5] = anIntArray1628[k5] * i8 - anIntArray1627[k5] * j7 >> 16;
anIntArray1627[k5] = l8;
}
if(k6 != 0)
{
int k7 = modelIntArray1[k6];
int j8 = modelIntArray2[k6];
int i9 = anIntArray1628[k5] * j8 - anIntArray1629[k5] * k7 >> 16;
anIntArray1629[k5] = anIntArray1628[k5] * k7 + anIntArray1629[k5] * j8 >> 16;
anIntArray1628[k5] = i9;
}
if(l6 != 0)
{
int l7 = modelIntArray1[l6];
int k8 = modelIntArray2[l6];
int j9 = anIntArray1629[k5] * l7 + anIntArray1627[k5] * k8 >> 16;
anIntArray1629[k5] = anIntArray1629[k5] * k8 - anIntArray1627[k5] * l7 >> 16;
anIntArray1627[k5] = j9;
}
anIntArray1627[k5] += anInt1681;
anIntArray1628[k5] += anInt1682;
anIntArray1629[k5] += anInt1683;
}

}
}

return;
}
if(i == 3)
{
for(int i2 = 0; i2 < i1; i2++)
{
int j3 = ai[i2];
if(j3 < anIntArrayArray1657.length)
{
int ai3[] = anIntArrayArray1657[j3];
for(int k4 = 0; k4 < ai3.length; k4++)
{
int l5 = ai3[k4];
anIntArray1627[l5] -= anInt1681;
anIntArray1628[l5] -= anInt1682;
anIntArray1629[l5] -= anInt1683;
anIntArray1627[l5] = (anIntArray1627[l5] * j) / 128;
anIntArray1628[l5] = (anIntArray1628[l5] * k) / 128;
anIntArray1629[l5] = (anIntArray1629[l5] * l) / 128;
anIntArray1627[l5] += anInt1681;
anIntArray1628[l5] += anInt1682;
anIntArray1629[l5] += anInt1683;
}

}
}

return;
}
if(i == 5 && anIntArrayArray1658 != null && anIntArray1639 != null)
{
for(int j2 = 0; j2 < i1; j2++)
{
int k3 = ai[j2];
if(k3 < anIntArrayArray1658.length)
{
int ai4[] = anIntArrayArray1658[k3];
for(int l4 = 0; l4 < ai4.length; l4++)
{
int i6 = ai4[l4];
anIntArray1639[i6] += j * 8;
if(anIntArray1639[i6] < 0)
anIntArray1639[i6] = 0;
if(anIntArray1639[i6] > 255)
anIntArray1639[i6] = 255;
}

}
}

}
}


after compiling...



class8.java: error illegal start of expression
public final class model extends animable
^

1 error
compiling finished.

can anyone help me fix that error i don't understand am new plz thanks

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Sign in to follow this  

×