2071
General Chat / Re: Guide for converting game assets from America's Army 2.8.5 to America's Army 2.5
« on: Sunday, March 11, 2012, 17:00:01 PM »
Here is the complete Code for the Second layer of encryption that is applied to the name table.
The first I have already posted in this thread.
Considering how easy the solution is when I see it, it the row with:
I thought they would do something completely different, after all, they were connected with the Army after all, I assumed the level of encryption would be more complicated.
The above code, and the first layer posted before can be used to mess with 2.8.5, so it’s up to you to moderate it or not as you see fit.
The first I have already posted in this thread.
Code: [Select]
offset = gheader.NameOffset
ReDim nametable(gheader.namecount - 1)
For f = 0 To gheader.namecount - 1
NameStr = ""
Call ReadIndexFromArray(offset)
bsa = (-bt) - 1
offset = offset + bl
nextRol = 5
For yu = 1 To bsa
S1 = cc(offset)
S2 = cc(offset + 1)
S3 = S1 Xor S2
For g = 1 To nextRol
S3 = ROR8(S3)
Next g
NameStr = NameStr & Chr(S3)
offset = offset + 2
nextRol = (S1 + 3) And 7
Next yu
nametable(f).text = NameStr
offset = offset + 1
offset = offset + 2
ReDim nametable(f).flags(4)
For yu = 0 To 3
nametable(f).flags(yu) = cc(offset + yu)
Next yu
offset = offset + 4
Next f
Looking back in what I was doing wrong, I cant help but slap myself for beeing stupid.Considering how easy the solution is when I see it, it the row with:
Code: [Select]
nextRol = (S1 + 3) And 7
I thought they would do something completely different, after all, they were connected with the Army after all, I assumed the level of encryption would be more complicated.
The above code, and the first layer posted before can be used to mess with 2.8.5, so it’s up to you to moderate it or not as you see fit.