搜索结果: *

  1. Modding Q&A [For Quick Questions and Answers]

    I'm getting this error while compiling

    Error in script_cf_reinforce_party: ERROR: Usage of unassigned local variable: :real_party_faction
    Traceback (most recent call last):
      File "process_scripts.py", line 52, in <module>
        save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
      File "process_scripts.py", line 20, in save_scripts
        save_statement_block(file,convert_to_identifier(func[0]), 0,func[1], variable_list,variable_uses,tag_uses,quick_strings)
      File "C:\Users\PC\Desktop\DRUHY DISK\nic\Mount And Blade\Mount&Blade Warband\Modules\src\process_operations.py", line 451, in save_statement_block
        save_statement(ofile,opcode,no_variables,statement,variable_list,variable_uses,local_vars, local_var_uses,tag_uses,quick_strings)
      File "C:\Users\PC\Desktop\DRUHY DISK\nic\Mount And Blade\Mount&Blade Warband\Modules\src\process_operations.py", line 402, in save_statement
        operand = process_param(statement[i + 1],variable_list,variable_uses,local_vars_list,local_var_uses,tag_uses,quick_strings)
      File "C:\Users\PC\Desktop\DRUHY DISK\nic\Mount And Blade\Mount&Blade Warband\Modules\src\process_operations.py", line 376, in process_param
        result = get_variable(param, local_vars_list,local_var_uses)
      File "C:\Users\PC\Desktop\DRUHY DISK\nic\Mount And Blade\Mount&Blade Warband\Modules\src\process_operations.py", line 298, in get_variable
        raise Exception("ERROR: Usage of unassigned local variable: " + variable_string)
    Exception: ERROR: Usage of unassigned local variable: :real_party_faction

    The code if that helps.
    插入代码块:
    (assign, ":party_template", 0),
          (store_random_in_range, ":rand", 0, 100),
      	  ##diplomacy start+
    	  #Implement "quality vs. quantity" in a way that is visible in player battles
    	  #(previously, quantity increased party size, but quality only had an effect
    	  #in autocalc battles)
    	  (try_begin),
    		(is_between, ":real_party_faction", kingdoms_begin, kingdoms_end),
    		(faction_get_slot, ":dplmc_quality", ":real_party_faction", dplmc_slot_faction_quality),
    		(val_clamp, ":dplmc_quality", -3, 4),
    		(val_add, ":rand", ":dplmc_quality"),
    		(val_clamp, ":rand", 0, 101),
    	  (try_end),
  2. Modding Q&A [For Quick Questions and Answers]

    Thank you so much gokiller, everything is running fine now! This problem was bugging me for months!
  3. Modding Q&A [For Quick Questions and Answers]

    I'm having some problems with the scenes in my custom town.

    I edited all the necessary files, and added scenes to SceneObj (which are basically copy-pasted Uxkhal scenes). However...

    1) There's no tavern keeper in the tavern (a NPC named Merchant is there instead)
    2) The arena master is missing
    3) The town centre is just a flat plain. The NPCs are all there though

    Any help?
  4. LSP Kit Combat Project Age of Machinery [Released!]

    Nice work you've done there!  :wink:
  5. Modding Q&A [For Quick Questions and Answers]

    Nope, still nothing :sad: Maybe Diplomacy is behind this...
    But the error doesn't seem to affect the game in any way, so I'm probably gonna let it there for some time.
  6. Modding Q&A [For Quick Questions and Answers]

    I still can't find any problems... I have added a player-owned town and NPCs for it. Can this be causing problems?
  7. Modding Q&A [For Quick Questions and Answers]

    So, I'm getting this error everytime I start a new game.

    SCRIPT ERROR ON OPCODE -2147483088: Invalid Troop ID: -1; LINE NO 560:
    At script: game_start
    At script: game_start
    SCRIPT ERROR ON OPCODE 500: Invalid Troop ID: -1; LINE NO:561:
    At script: game_start
    At script: game_start
    At script: game_start

    But I don't see any problems on line 560 and 561

    插入代码块:
    (call_script, "script_give_center_to_faction_aux", "p_town_5", "fac_kingdom_5"),
    (call_script, "script_give_center_to_faction_aux", "p_town_6", "fac_kingdom_1"),

    Any help?
后退
顶部 底部