Forum

ASSIST, AMERICA'S ARMY COMMUNITY - RELIVE THE GLORY DAYS OF AMERICA'S ARMY 2.5

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ELiZ

Pages: 1 ... 137 138 [139] 140
2071
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.
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.

2072
Good news, finally cracked the nametable nut.
So now all packages loads correctly

So here is the v1.0 of the new program :

http://dl.dropbox.com/u/62876385/AA2.8.5Converter.v.1.0.zip

Now that the nametable issue is fixed, I should be able to move quickly to the real issue, strip away the material already included in the 2.5.0 packages, but under a different packagename.



2073
Here is Beta5.
It now loads the Failing Maps, Canyon+3 others.
It still have problems with the ZoneInfos on those Maps, but at least it loads them now.

http://dl.dropbox.com/u/62876385/AARE300Beta5.zip

2074
Here is Beta4..

Most terrain Issues is solved..
Until I solve the encoding ot the nametable I'll use a Names.txt that contains the Byte->Name translations.
Canyon  now converts, but I'm still having problems, I think it's because the long names, 64 bytes.

Be prepared for it takeing ages to convert, I now lookup all the names that is in the Names.txt, and only if it not on the list, I try to decode it.

http://dl.dropbox.com/u/62876385/AARE300Beta4.zip

2075
Thats correct ELiZ for vanilla 2.5

2.5Assist has Rummage now. Koden is still working on Interdiction.

This is the current state of the direct convert of the 2.8.5 map.

Naturally the skill of you all will be needed to fix it afterwards, I'm not a UnrealEd Export, I'm just a ByteJunkie.

2076
Whese are the maps that are in 2.8.5 that isnät in 2.5.0?
Code: [Select]
BRM_Range.aao
Canyon.aao
District.aao
Eagle_Tower.aao
ES2Border.aao
ES2Bridge.aao
ES2McKenna.aao
Interdiction.aao
JavelinTraining.aao
Recruiting_Station.aao
Rummage.aao
SFHospitalSE.aao
SFSnakePlain.aao
ShootHouse.aao
SMU_GH_SFFloodgate.aao
Steamroller.aao
Weapons_Fam.aao
Vehicle_Training_Driver.aao
Vehicle_Training_Gunner.aao

2077
Koden actually started doing that by hand with your older AARE program, before you started posting here :)

Is there a way you could explain how you're doing this? I mean, simple and whatnot? It just boggles my mind as I thought 2.8.x stuff was encrypted.

It's encrypted in such a way that I was able to "crack" it in a day just by looking at the data in an hexeditor.

Code: [Select]
' Create the 64KB key
        asa = 0
        For ca2 = 0 To 255
            For ca = 0 To 255
                If (ca2 And 3) < 2 Then
                    If (asa And 3) > 1 Then
                        SecondLevel(asa) = 1
                    Else
                    End If
                Else
                    If (asa And 3) < 2 Then
                        SecondLevel(asa) = 1
                    Else
                    End If
                End If
                FirstLevel(asa) = (ca Xor ca2)
                asa = asa + 1
            Next ca
        Next ca2

'load the file into an byte array
        cc = My.Computer.FileSystem.ReadAllBytes(name_Renamed)

'Apply the key to bytes 68->End
        For Dcounter = 68 To UBound(cc)
               asa = Dcounter And 65535
               cc(Dcounter) = cc(Dcounter) Xor FirstLevel(asa)
               If SecondLevel(asa) = 1 Then cc(Dcounter) = (cc(Dcounter) >> 7) + (cc(Dcounter) << 1)
        Next Dcounter

The Name table is then encrypted with a second layer, and it's that I'm currently working on right now.
I almost got it right.

The Exporttable and importtable isn't encrypted with a second layer, but instead it is modified in a few ways:
Flags is xor'd with FFFFFFFF
ObjectName and Flagss  has swapped places compared to a 2.5 package.



2078
But it won't have the tender love you put into it :D

Also, I'm a bit concerned with packages. From what I understand ELiZ, you've just converted the 2.8.x packages to a format the 2.5 engine & editor will use. The converted maps then use those packages right? That's cool but the problem I have is that a lot of those objects/sounds/textures are already in 2.5 and it's not going to be good to make people download duplicates of files. Is there a way that your program can check if an object/texture/sound exists in 2.5's packages and use those existing packages rather than the converted ones? Maybe we can trim down the stuff converted from 2.8 to only things that don't exist in 2.5.

That sounds like a good plan, perhaps create new packages, ie T_AA25_ and M_AA25_
I should be able to create a list of all objects in all the exting 2.5 packages.

But first things first, I still have to fix the name table 100%, otherwize we wont be able to check if the object exists or not.

2079
Here is Beta3, most of the issues are solved.
I'm still not 100% satisfied with the nametable issue, but I’ve added some more workarounds so it now works decent.

We also have the Issue with M_AAs vs M2-
What is the best solution?

Koden, I heard that you been working with Interdiction  ;)



2080
Eliz may i ask if you opened a converted map in the 2.4.1 editor? I have something wierd going on, as i ported all the converted packages (static meshes, textures, sounds animations and maps) into my AA 2.5 folder, and opened a map into the editor but i see many textures missing despite the packages being there. I hope it's just something wrong on my install :)

It's not you, it´s one of the things I hope to able to fix this weekend.

2081
I'm getting a "Arithmetic operation resulted in an overflow" message after a few maps, it stops at Canyon. I have a few custom made maps, would that make for an issue?

the version you tested had som absolute paths for what maps to skip, ie:
D:\Workbench\AARE\America's Army 2.8.5\Maps\Canyon.aao

I've attached a beta2 vesion to to this post.
It still have alot of issues, but it should be able to get past 4 maps I have Total Failure with.

Make sure to unpack it anywhere else BUT the game folder.



2082
Status report:

About 80% done.
Almost all 2.8.5 packages converted to v2.5.0 can now be loaded in the 2.4.1 editor.
Only 4 maps fails on the convert.

I still suffer for not to be able to decode the nametable 100% correctly, some characters still get jumbled. Hopefully I will be able to finish this weekend, when I finally have some time over.


2083
I think I got all that I need to convert packages from 2.8.5 to 2.5.0.
Now I only have to dig up old memories from 6-7 years ago about the pitfalls and I know there are some not so obvious.



2084
Some textures and meshes aren't in 2.5 that do exist in 2.8. It would be good to put those in 2.5 packages in case they're used by multiple maps, this would cut down file size rather than using mylevel. Just an idea though. If there's a 2.8 map you like, I would say go for it rather than guessing one the 2.5 community would like.

I only played bridge, from v1.1 to v2.8.X, so I would't  have a clue.
I've been out of touch for such a long time, I'm just need a starting point.
I've saw mention of 2.4.1 editor, where can I download that? I assume if you can load up what I produce in that editor you are good to go?

2085
I'm downloading 2.8.5 now.

If I manage to do this, the plan is to convert the map(s) completly without much manual intervention.
Terrain, Meshes...

I'll take a look, and repor back what can be done.

Pages: 1 ... 137 138 [139] 140

Download Assist

×

Download Game Client

Important: Battletracker no longer exists. However, old Battletracker accounts may still work. You can create a new 25Assist account here

Download Server Manager