<a href="http://www.game-advertising-online.com/" target="_blank">Game Advertising Online</a><br /> banner requires iframes
Results 1 to 1 of 1

Thread: [Modding] M2TW: Formatted campaign modeldb files for all campaigns - Kingdoms & Vanilla 1.5

  1. #1
    Maximus IV's Avatar Usooooopp Golden Pound
    Join Date
    Feb 2010
    Location
    Greece,Crete
    Posts
    1,087

    Default [Modding] M2TW: Formatted campaign modeldb files for all campaigns - Kingdoms & Vanilla 1.5



    Author: Gigantus
    Original Thread: [Resource] Formatted campaign modeldb files for all campaigns - Kingdoms & Vanilla 1.5

    Formatted campaign modeldb files for all campaigns - Kingdoms & Vanilla 1.5
    The download includes the formatted modeldb files for all 4 Kingdoms campaigns as well as the basic (Vanilla) campaign. I have included the modeldb checker, adapted by me for these campaigns. The credit for the checker goes to Knight Errand, taken from here.

    The modeldb files are taken from the latest versions.

    Edit:
    It appears the included americas modelDB file was faulty. Please use the new attachment. Note: the checker doesn't accept it, but it works.

    Modifying the checker:
    If you add factions not originally present then you will have to modify the checker to recognize them.
    - Right click the file, choose 'Edit with IDLE'
    - two files will open, close 'python shell
    - in the other file scroll down until this section:
    Code:
    def isfactionname( string ) :
        if string == 'england' :
            return True
    This is the section for the faction names. The end of this section should look similar to this (my version is already modified):
    Code:
        elif string == 'georgia' :
            return True        
        elif string == 'seljuks' :
            return True        
        else :
            return False
    
        return False
    Now simply copy two lines: the one starting with 'elif', and the one underneath it. Paste it under the last 'return True' line. Substitute the faction name with your new faction. It should now look like this:
    Code:
        elif string == 'georgia' :
            return True        
        elif string == 'seljuks' :
            return True        
        elif string == 'my_new_faction_name' :
            return True        
        else :
            return False
    
        return False
    Save and use
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •