Results 1 to 3 of 3

Thread: CTD after adding a character through Campaign_Script

  1. #1

    Default CTD after adding a character through Campaign_Script

    There's an event, after capturing Moling, that triggers the enlistment of 3 characters, Zhuge Jin and the two Zhang of Wu. One of the latters, Zhang Zhao, has a 16 yo son by 194, Zhang Cheng (another character have been wrongly name Zhang Cheng while his true name was Zhang Sheng, I've made the modification where needed). I want to add him in this event, but the game keep crashing. And I don't understand why because = 1: No problem seems to appear in the log 2: I've copied pass the code of his father and change what had to be change. Here is the code of Zhang Cheng :

    Code:
            spawn_army            faction hre
                character	J-5111-ZhangCheng, named character, age 16, x 160, y 104, portrait zhangcheng
                traits JbAAAA0100 1 , LoyaltyStarter 1 , Lz-6009-0 1 , Jn1001 1 , Jn2000 6 , Jn3000 7 , Jn4000 7 , Jn5000 7 , JnA1000 2 , JnA2000 3 , JnA3000 2 , JnA4000 2 , JnA5000 2 , JnA6000 2 , JnA7000 6 , JnA8000 8 , JnA9000 5 , Jnxg1000 2 , B2060JnAM-A 1 , C3140JnCZ-A 1 , C3070JnBJ-A 1 , Jn-orthodox 3
    			unit		JiangJun_JiangDong_Ea				exp 0 armour 0 weapon_lvl 0
            end
    I've had the name in names.txt and descr_names.txt, and of course his portrait in the folder "zhangcheng". I've also done what has need to be done in EDCT. When I remove those code, the event triggers without a CTD. Here's the log :

    Attachment 358832

    Attachment 358833

    Thank you!

  2. #2
    Seether's Avatar RoTK Workhorse
    Join Date
    Oct 2005
    Location
    FloRida
    Posts
    5,404

    Default Re: CTD after adding a character through Campaign_Script

    Only three things I can think of: 1) There is a mistake with Zhang Cheng's entry in one of the name files, or 2) the coordinates he spawns at are bad, or 3) "faction hre" needs to be on the line below "spawn_army"
    Code:
            spawn_army            
                faction hre
                character	J-5111-ZhangCheng, named character, age 16, x 160, y 104, portrait zhangcheng
                traits JbAAAA0100 1 , LoyaltyStarter 1 , Lz-6009-0 1 , Jn1001 1 , Jn2000 6 , Jn3000 7 , Jn4000 7 , Jn5000 7 , JnA1000 2 , JnA2000 3 , JnA3000 2 , JnA4000 2 , JnA5000 2 , JnA6000 2 , JnA7000 6 , JnA8000 8 , JnA9000 5 , Jnxg1000 2 , B2060JnAM-A 1 , C3140JnCZ-A 1 , C3070JnBJ-A 1 , Jn-orthodox 3
    	    unit		JiangJun_JiangDong_Ea				exp 0 armour 0 weapon_lvl 0
            end
    Last edited by Seether; July 05, 2019 at 07:48 AM.
    Member of the Imperial House of Hader - Under the Benevolent Patronage of y2day
    A Wolf Among Sheep: A Rise of Three Kingdoms AAR

  3. #3

    Default Re: CTD after adding a character through Campaign_Script

    Yeah hre is below, don't know why in my exemple it is not. But I think I found what was wrong. The name was in spain instead of hre.

Posting Permissions

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