Search results for query: *

  1. CountBane

    Modding Q&A [For Quick Questions and Answers]

    kalarhan said:
    CountBane said:
    Solved the previous errors but now I get this

    your syntax is wrong there.

    When you open a array with the "[" you need to close it with a "]". Same with a "(" closing with ")", and you need to use a "," for new entries.

    Now look at this
    Code:
    ["tpe_settings",          "TPE Persistent Settings",     "TPE Scaled Troops", 0,0,0, fac_kingdom_6,

    You started a new troop "tpe_settings", but you left it half baked, missing several elements in there.
    A troop has several values, read the comments on the file module_troops.py for their definition.

    A good troop is something like this:
    Code:
    ["mercenary_cavalry","Mercenary Cavalry","Mercenary Cavalry",tf_mounted|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_horse|tf_guarantee_shield,no_scene,reserved,fac_commoners,
       [itm_heavy_lance,itm_bastard_sword_a,itm_sword_medieval_b,itm_tab_shield_heater_c,itm_cuir_bouilli,itm_banded_armor,itm_hide_boots,itm_kettle_hat,itm_mail_coif,itm_flat_topped_helmet,itm_helmet_with_neckguard,itm_warhorse,itm_hunter],
       def_attrib|level(25),wp(130),knows_common|knows_riding_5|knows_ironflesh_4|knows_shield_5|knows_power_strike_4,mercenary_face_1, mercenary_face_2],

    You may ignore some elements when using a fake troop (to represent a array), but you still need to close it "]"

    Actually they are closed there's just a lot of white space for whatever reason.
  2. CountBane

    Modding Q&A [For Quick Questions and Answers]

    Solved the previous errors but now I get this

    Code:
    Error: Unable to find object:trp_tpe_array_static_troops
    ERROR: Illegal Identifier:trp_tpe_array_static_troops
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_array_static_troops
    ERROR: Illegal Identifier:trp_tpe_array_static_troops
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
    Error: Unable to find object:trp_tpe_array_sorted_troops
    ERROR: Illegal Identifier:trp_tpe_array_sorted_troops
    Error: Unable to find object:trp_tpe_array_static_troops
    ERROR: Illegal Identifier:trp_tpe_array_static_troops
    Error: Unable to find object:trp_tpe_array_static_troops
    ERROR: Illegal Identifier:trp_tpe_array_static_troops
    Error: Unable to find object:trp_tpe_array_sorted_troops
    ERROR: Illegal Identifier:trp_tpe_array_sorted_troops
    Error: Unable to find object:trp_tpe_generic_troop_1
    ERROR: Illegal Identifier:trp_tpe_generic_troop_1
    Error: Unable to find object:trp_tpe_generic_troop_32
    ERROR: Illegal Identifier:trp_tpe_generic_troop_32
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
    Error: Unable to find object:trp_tpe_options
    ERROR: Illegal Identifier:trp_tpe_options
    Error: Unable to find object:trp_tpe_array_sorted_troops
    ERROR: Illegal Identifier:trp_tpe_array_sorted_troops
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
    Error: Unable to find object:trp_tpe_presobj
    ERROR: Illegal Identifier:trp_tpe_presobj
  3. CountBane

    Modding Q&A [For Quick Questions and Answers]

    Code:
    ####################################################################################################################################
    # TOURNAMENT PLAY ENHANCEMENTS (BEGIN)
    ####################################################################################################################################
      # TPE 1.3 Additions
      ["tpe_presobj",                  "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,																																												[																																																																																																								],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
      # Why: To remove needing so many global variables to track presentation objects.
      #["tpe_array_troop_joined",       "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,[],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
      # Why: So that I can track who is actually fighting in a round so that those who weren't picked get averaged points added to them to be competitive.
      ["tpe_xp_table",                 "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,																																												[																																																																																																								],def_attrib|level(1),wp(40),knows_power_strike_1, 0],
      # Why: So that I can track who is actually fighting in a round so that those who weren't picked get averaged points added to them to be competitive.
      ["tpe_array_static_troops",      "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,																																												[																																																																																																								],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
      # Why: This keeps the same static list of troop_ids throughout tournament.  Ie -> slot 1 = trp_somebody (throughout tournament rounds)
      ["tpe_array_sorted_troops",      "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,																																												[																																																																																																								],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
      # Why: Sorting array for showing rankings without changing static troops.  Ie -> slot 1 = rank 1 = troop # associated with first agent
      ["tpe_array_tournament_stats",   "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,																																												[																																																																																																								],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
      # Why: So I can track stats going on in a round without the use of global variables for special awards.
      ["tpe_settings",          "TPE Persistent Settings",     "TPE Scaled Troops", 0,0,0, fac_kingdom_6,																																										[],str_15|agi_14|int_8|cha_16|level(1),wp(1),knows_power_strike_1, 0x000000000000710004820c24204c000200000000001d16100000000000000000, 0x000000003f00714049fefe393fffc7ff00000000001ef96f0000000000000000],
      ["tpe_appearance",        "TPE Appearance Settings",     "TPE Scaled Troops", 0,0,0, fac_kingdom_6,																																										[],str_15|agi_14|int_8|cha_16|level(1),wp(1),knows_power_strike_1, 0x000000000000710004820c24204c000200000000001d16100000000000000000, 0x000000003f00714049fefe393fffc7ff00000000001ef96f0000000000000000],
      ["tpe_weapons",           "TPE Weapon Definitions",      "TPE Scaled Troops", 0,0,0, fac_kingdom_6,																																										[],str_15|agi_14|int_8|cha_16|level(1),wp(1),knows_power_strike_1, 0x000000000000710004820c24204c000200000000001d16100000000000000000, 0x000000003f00714049fefe393fffc7ff00000000001ef96f0000000000000000],
      ["tpe_center_menus",      "TPE Appearance Menu Choices", "TPE Scaled Troops", 0,0,0, fac_kingdom_6,																																										[],str_15|agi_14|int_8|cha_16|level(1),wp(1),knows_power_strike_1, 0x000000000000710004820c24204c000200000000001d16100000000000000000, 0x000000003f00714049fefe393fffc7ff00000000001ef96f0000000000000000],
      ["tpe_options",           "TPE Player Settings",         "TPE Scaled Troops", 0,0,0, fac_kingdom_6,																																										[],str_15|agi_14|int_8|cha_16|level(1),wp(1),knows_power_strike_1, 0x000000000000710004820c24204c000200000000001d16100000000000000000, 0x000000003f00714049fefe393fffc7ff00000000001ef96f0000000000000000],

    Code for output error while merging two mods

    Code:
    Traceback (most recent call last):
      File "process_scene_props.py", line 7, in <module>
        from process_operations import *
      File "C:\download\Tocans Calradia v1_6 Source Code-3916-1-6\process_operations.py", line 14, in <module>
        from module_troops import *
      File "C:\download\Tocans Calradia v1_6 Source Code-3916-1-6\module_troops.py", line 2115
        ["tpe_presobj",                  "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,
    
    
    
                                                    [
    
    
    
    
    
    
    
    
    
    
    ],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
        ^
    IndentationError: unexpected indent
  4. CountBane

    OSP Kit QoL Tournament Play Enhancements 1.5

    Here's hoping that someone out there knows what is going on because I have no clue.
    I'm attempting to merge TPE and Tocan's Calradia (Which has Diplomacy and a few other mods included) and I'm getting the following output. There's a lot more but too much that isn't all getting displayed.
    Code:
    Traceback (most recent call last):
      File "process_scene_props.py", line 7, in <module>
        from process_operations import *
      File "C:\download\Tocans Calradia v1_6 Source Code-3916-1-6\process_operations.py", line 14, in <module>
        from module_troops import *
      File "C:\download\Tocans Calradia v1_6 Source Code-3916-1-6\module_troops.py", line 2115
        ["tpe_presobj",                  "{!}Local Merchant","{!}Local Merchant",0,0,0, fac_commoners,
    
    
    
                                                    [
    
    
    
    
    
    
    
    
    
    
    ],def_attrib|level(5),wp(40),knows_power_strike_1, 0],
        ^
    IndentationError: unexpected indent
  5. CountBane

    Windows 8 "this app can't run on your PC" error

    For a simpler solution you can turn off SmartScreen, go to Control Panel > System and Security > Action Center > click the Security drop down menu and then click change settings under Window SmartScreen.
Back
Top Bottom