Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for loading fields model with file name after "az" #12

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

satsukiyatoshi
Copy link

For fields models Kimera only read files until az. Everything after ba, bb and so on will be ignored.

Here's the fix:

in FF7AASkeleton.bas
in Sub ReadAASkeleton

Add (declaration):
Dim fixfield As Integer

Replace:

        If .NumBones = 0 Then   'It's a battle location model
            .IsBattleLocation = True
            For pSufix2 = 109 To 122
                If FileExist(baseName + Chr$(pSufix1) + Chr$(pSufix2)) Then
                    ReDim Preserve .Bones(.NumBones)
                    If load_geometryQ Then
                        ReadAABattleLocationPiece .Bones(.NumBones), .NumBones, baseName + Chr$(pSufix1) + Chr$(pSufix2)
                    End If
                    .NumBones = .NumBones + 1
                End If
            Next pSufix2

by:

        If .NumBones = 0 Then   'It's a battle location model
            .IsBattleLocation = True

            For pSufix1 = 97 To 123
            
                If pSufix1 = 97 Then fixfield = 109 Else fixfield = 97
            
                For pSufix2 = fixfield To 123
                    If FileExist(baseName + Chr$(pSufix1) + Chr$(pSufix2)) Then
                        ReDim Preserve .Bones(.NumBones)
                        If load_geometryQ Then
                            ReadAABattleLocationPiece .Bones(.NumBones), .NumBones, baseName + Chr$(pSufix1) + Chr$(pSufix2)
                        End If
                        .NumBones = .NumBones + 1
                    End If
                Next pSufix2
            
            Next pSufix1
            
            pSufix1 = 97

julianxhokaxhiu and others added 16 commits March 14, 2021 16:56
- Add .gitattributes and .gitignore compatible with VB6 projects
- Fix line ending in several files
- Set "Tsunamods Team" as the new maintainers of this fork
- Set the output EXE name to "Kimera.exe"
Fixed Error 9 when selected "show frames option"->"frame data part"->"Root translation".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants