Page 173 of 173 FirstFirst ... 73123148163164165166167168169170171172173
Results 3,441 to 3,451 of 3451

Thread: Bugs Reports & Technical Help

  1. #3441
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    3,924

    Default Re: Bugs Reports & Technical Help

    Well, this script was not my creation so I don't know ins and outs. It seems I'll have to get into the details to understand it.

  2. #3442

    Default Re: Bugs Reports & Technical Help

    Hi! Having an issue. I can't play Late/High Era Campaign. I choose one faction (oddly out of only 3 choices), I press Play, and...nothing. It just boots me back to the menu after choosing Late/High Era Campaign.

    Installed SS and SSHIP to the letter of their respective instructions. I can play SS and SSHIP Early Era without issues.

    Would appreciate any help.

  3. #3443
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    3,924

    Default Re: Bugs Reports & Technical Help

    Quote Originally Posted by RLTYProds View Post
    Hi! Having an issue. I can't play Late/High Era Campaign. I choose one faction (oddly out of only 3 choices), I press Play, and...nothing. It just boots me back to the menu after choosing Late/High Era Campaign.

    Installed SS and SSHIP to the letter of their respective instructions. I can play SS and SSHIP Early Era without issues.

    Would appreciate any help.
    High/Late Era Campaign are not playable in the SSHIP. You can start only in 1132.

  4. #3444

    Default Re: Bugs Reports & Technical Help

    Hey Jurand, just asking, did you manage to find the culprit that CTD's at turn 5? .

  5. #3445
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    3,924

    Default Re: Bugs Reports & Technical Help

    Quote Originally Posted by Nemesis2345 View Post
    Hey Jurand, just asking, did you manage to find the culprit that CTD's at turn 5? .
    Yes, I did (at least: I hope I did). It was related to the Abbasids and that "set_counter panel_check 2" part.
    Now I'm studying the other possible source of CTD, the one discussed with Gigantus.
    I see differences with the coding in the script:
    Code:
            if I_FactionLeaderTrait hre Usurper >= 3
            and I_EventCounter civil_war_hre_going_on = 0            and RandomPercent > 50
                        
                set_event_counter civil_war_hre_going_on 1   
                historic_event civil_war_hre
                increment_kings_purse hre -1000    
                
                
                if I_NumberOfSettlements hre > 2
                 faction_emerge slave hre 1 100.0 0.0 1.2 town true
                 
                 if I_NumberOfSettlements hre > 5
                   faction_emerge slave hre 1 100.0 0.0 1.2 town true
                   
                   if I_NumberOfSettlements hre > 8
                    faction_emerge slave hre 1 100.0 0.0 1.2 town true unused_labelh1 Casper 30
                    
                    if I_NumberOfSettlements hre > 11
                      faction_emerge slave hre 1 100.0 0.0 1.2 town true unused_labelh2 Ernst 30
                      
                      if I_NumberOfSettlements hre > 14
                    faction_emerge slave hre 1 100.0 0.0 1.2 town true unused_labelh3 Heinrich 30
                   end_if 
                     end_if 
                   end_if 
                 end_if   
               end_if     
                              end_if
    with eg. here
    Code:
    declare_counter portugal_emerge
       monitor_event and I_TurnNumber > 1
          and I_TurnNumber < 5
          and I_CompareCounter portugal_emerge == 0
          
          faction_emerge portugal scotland 4 80.0 120.0 0.85 town false 
          
          if I_NumberOfSettlements portugal > 0
             add_money portugal 10000
             set_counter portugal_emerge 1
          end_if    
          
         historic_event portugal_emerges 
          
       end_monitor
       
          ;check when English leaders authority is low
       monitor_event FactionTurnEnd FactionType scotland
          and I_NumberOfSettlements scotland > 2
          and I_NumberOfSettlements portugal = 0
          
          generate_random_counter   authority_value 1 100
          
                ;the lower the faction leaders authority, the greater the chance of the portugal appearing
          if I_FactionLeaderAttribute scotland Authority = 0
          
             if I_EventCounter authority_value <= 33
          faction_emerge portugal scotland 4 80.0 120.0 0.85 town false
             end_if
          
          end_if
          
          if I_FactionLeaderAttribute scotland Authority = 1
          
             if I_EventCounter authority_value <= 25
          faction_emerge portugal scotland 4 100.0 120.0 0.85 town false
             end_if
          
          end_if
          
          if I_FactionLeaderAttribute scotland Authority = 2
          
             if I_EventCounter authority_value <= 20
          faction_emerge portugal scotland 4 100.0 120.0 0.85 town false
             end_if
          
          end_if
          
          if I_FactionLeaderAttribute scotland Authority = 3
          
             if I_EventCounter authority_value <= 15
          faction_emerge portugal scotland 4 90.0 120.0 0.85 town false
             end_if
          
          end_if
          
          if I_FactionLeaderAttribute scotland Authority = 4
          
             if I_EventCounter authority_value <= 10
          faction_emerge portugal scotland 4 90.0 120.0 0.85 town false
             end_if
          
          end_if
          
          if I_FactionLeaderAttribute scotland Authority = 5
          
             if I_EventCounter authority_value <= 5
          faction_emerge portugal scotland 4 80.0 120.0 0.85 town false
             end_if
          
          end_if 
              end_monitor
    I'll try to re-code the SSHIP code to avoid that nested-in conditions. I understand the reason was to have the number of spawned civil-war-rebels dependent on the size of a faction but maybe it doesn't work like this.
    Last edited by Jurand of Cracow; August 01, 2020 at 11:09 AM.

  6. #3446
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    48,568
    Blog Entries
    23

    Default Re: Bugs Reports & Technical Help

    Suggestion: add a wait command in the first monitor of the second batch to allow the emerging to finish before testing for settlement count. Rest looks fine apart from the unnecessary secondary IF use.
    Code:
    declare_counter portugal_emerge
       monitor_event and I_TurnNumber > 1
          and I_TurnNumber < 5
          and I_CompareCounter portugal_emerge == 0
          
          faction_emerge portugal scotland 4 80.0 120.0 0.85 town false 
          wait 1.0
          if I_NumberOfSettlements portugal > 0
             add_money portugal 10000
             set_counter portugal_emerge 1
          end_if    
          
         historic_event portugal_emerges 
          
       end_monitor




  7. #3447

    Default Re: Bugs Reports & Technical Help

    Quote Originally Posted by Jurand of Cracow View Post
    High/Late Era Campaign are not playable in the SSHIP. You can start only in 1132.
    Ahh, oops. Thanks for clarifying.

  8. #3448
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    3,924

    Default Re: Bugs Reports & Technical Help

    Gigantus, is this going to work?

    Code:
    	if I_FactionLeaderTrait spain Usurper >= 3			and I_EventCounter civil_war_spain_going_on = 0  
                and RandomPercent > 50
    			
    			set_event_counter civil_war_spain_going_on 1
    			historic_event civil_war_spain
    			increment_kings_purse spain -1000
                          
    			if I_NumberOfSettlements spain > 2
                 faction_emerge slave spain 1 100.0 0.0 1.2 town true
    			 wait 1.0
                end_if 
    			   
    			if I_NumberOfSettlements spain > 5
                 faction_emerge slave spain 1 100.0 0.0 1.2 town true
    			 wait 1.0
                end_if  
    
    
    			if I_NumberOfSettlements spain > 8
                 faction_emerge slave spain 1 100.0 0.0 1.2 town true
    			 wait 1.0
                end_if 
    
    
    			if I_NumberOfSettlements spain > 11
                 faction_emerge slave spain 1 100.0 0.0 1.2 town true
    			 wait 1.0
                end_if 
    
    
    			if I_NumberOfSettlements spain > 14
                 faction_emerge slave spain 1 100.0 0.0 1.2 town true
    			 wait 1.0
                end_if 
               
    		end_if

  9. #3449
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    48,568
    Blog Entries
    23

    Default Re: Bugs Reports & Technical Help

    It's not really needed in that part - there is no command\condition following the emerge command within the monitor. And as mentioned the repeating sequence will not apply for the same settlement anyhow. But it can't harm either, so go ahead.




  10. #3450
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    3,924

    Default Re: Bugs Reports & Technical Help

    Gig, could you remind me what to do with the not-regeneratable strat.txt? How to get the .bin file in the easiest way? ATM, I've got the steam version of Med2, unfortunately.
    Funny enough, I've made it somehow last time, but I cannot do the trick once again...

  11. #3451
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    48,568
    Blog Entries
    23

    Default Re: Bugs Reports & Technical Help

    In Steam the strat.STRING.BIN file will not generate on it's own if it is missing - an old version has to be present. Simply take the same file from another mod and make sure your mod's strat.TXT file has a later time stamp (simply do a small edit and reverse it, then save) - that will then result in an updated STRING.BIN file.

    Same principle applies to battle, tooltips and shared.




Tags for this Thread

Posting Permissions

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