搜索结果: *

  • 用户:-R0B0-
  • 按日期排序
  1. -R0B0-

    [BUGS] - A place to report bugs to prevent duplicate posts

    I can't enter any hideouts except for the tutorial one.
    Items get duplicated in my inventory when i equip it.
    When trying to play the rival gang missions my game crash after the conversation.
  2. -R0B0-

    Warband Modder's Download Repository

    kalarhan 说:
    then visit the Q&A thread and post it there. Include your build log (the entire message).

    https://forums.taleworlds.com/index.php/topic,6575.0.html

    Yea I've posted my inquiry there but its the lack of a build log that's my current problem
  3. -R0B0-

    Modding Q&A [For Quick Questions and Answers]

    I'm having a weird issue with my Module system, the build_module Isn't working properly by not showing any of the "exporting" texts or errors. When I use the build_module It just opens a cmd window as It should but then nothing happens and after a while this appears
    ______________________________

    Script processing has ended.
    Press any key to exit. . .
    This Is not an installation problem! I have been using the module_system for a long time and this Is the first time getting any type of error.
  4. -R0B0-

    Warband Modder's Download Repository

    kalarhan 说:
    ᚱᛟᛒᛟ 说:
    I'm having a weird issue with my module systems build_module.bat, it wont show any "Exporting..." messages or errors! I have not made any changes to vital .py files and newly downloaded module systems are having the same problem, any suggestions on what could be causing this would be very helpful

    check this https://forums.taleworlds.com/index.php/topic,240255.0.html

    Before i read through i just wanna say that its not an installation problem, but a problem that has appeared at random long after successful installation
  5. -R0B0-

    Warband Modder's Download Repository

    I'm having a weird issue with my module systems build_module.bat, it wont show any "Exporting..." messages or errors! I have not made any changes to vital .py files and newly downloaded module systems are having the same problem, any suggestions on what could be causing this would be very helpful
  6. -R0B0-

    Native LSP World Map Map Icons Pack

    I dont think its something wrong with the module cus everything works except for the kings, they dont want to "equip" the kings icon but they equip the lord icon but i will read into that!

    (the battlefield works but i could't see it cus for some reason it was tiny as hell)
  7. -R0B0-

    Native LSP World Map Map Icons Pack

    have no idea what i really did but i got it working barely.... the lords and kings spawn with the same icon but seperate depending on the faction and i tried entering a battle and the battleground did not appear after the battle
  8. -R0B0-

    Native LSP World Map Map Icons Pack

    i get this error for the pt_battlefield, same with the other osp but with the simple_trigger and when i try to launch the game i get an error that tell me that the module in question could't be read.
      File "process_party_tmps.py", line 52, in <module>
        save_party_templates()
      File "process_party_tmps.py", line 31, in save_party_templates
        file.write("pt_%s %s %d %d %d %d "%(convert_to_identifier(party_template[0]),replace_spaces(party_template[1]),party_template[2],party_template[3], party_template[4], party_template[5]))
    TypeError: %d format: a number is required, not list
  9. -R0B0-

    Native LSP World Map Map Icons Pack

    Janycz 说:
    @ᚱᛟᛒᛟ, oh, I forgot to write about party template 'battlefield'. Just create in module_party_templates.py party template 'battlefield'.

    like this? if not what specifics dose it need.
    ("battlefield","Battlefield",icon_battlefield_a|pf_is_static|pf_hide_defenders,0,fac_neutral,[]),
  10. -R0B0-

    Native LSP World Map Map Icons Pack

    Antonis 说:
    By their own, "variables not used" warning isn't anything to worry about. In some of my mods I have a lot of those lying around, mostly of experiments half-implemented or failed. It is a bit of lazy programming not to erase them and I know kalarhan would frown at this shoddy work.  :razz:
    But it just means that you assign a variable and you don't really use it anywhere.

    Now, as for the "Error: Unable to find object:pt_battlefield", that means that you forgot to add a party template named battlefield or miss-typed something. Check what you edited in party templates. As for the other errors, again probably a miss-type, you seem to reference the wrong type of variable.

    Still i havent changed anything from what the tutorial is giving, this error is from something thats already in the module system.
      File "process_simple_triggers.py", line 30, in <module>
        save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
      File "process_simple_triggers.py", line 20, in save_simple_triggers
        save_statement_block(file,0, 1, simple_trigger[1]  , variable_list,variable_uses,tag_uses,quick_strings)
      File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 459, 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 "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 408, in save_statement
        ofile.write("%d "%operand)
    TypeError: %d format: a number is required, not list

    And nothing is to be added in module_party_templates, and i don´t know how i would add it.
    WARNING: Local variable never used: root_defender_party, at: game_event_battle_end
    Error: Unable to find object:pt_battlefield
    ERROR: Illegal Identifier:pt_battlefield
  11. -R0B0-

    Native LSP World Map Map Icons Pack

    I´ve implemented it all and i get these errors when build the module and i got no idea what to do.


    WARNING: Local variable never used: root_defender_party, at: game_event_battle_end
    Error: Unable to find object:pt_battlefield
    ERROR: Illegal Identifier:pt_battlefield

    Traceback (most recent call last):
      File "process_simple_triggers.py", line 30, in <module>
        save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
      File "process_simple_triggers.py", line 20, in save_simple_triggers
        save_statement_block(file,0, 1, simple_trigger[1]  , variable_list,variable_uses,tag_uses,quick_strings)
      File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 459, 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 "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 408, in save_statement
        ofile.write("%d "%operand)
    TypeError: %d format: a number is required, not list

    Checking global variable usages...
    WARNING: Global variable never used: auto_menu
    WARNING: Global variable never used: g_player_banner_granted
    WARNING: Global variable never used: g_force_peace_faction_1
    WARNING: Global variable never used: g_force_peace_faction_2
    WARNING: Global variable never used: g_presentation_lines_to_display_begin
    WARNING: Global variable never used: g_presentation_lines_to_display_end
    WARNING: Global variable never used: g_player_icon_state
    WARNING: Global variable never used: g_camp_mode
    WARNING: Global variable never used: g_player_raiding_village
    WARNING: Global variable never used: g_last_rest_payment_until
    WARNING: Global variable never used: qst_collect_taxes_menu_counter
    WARNING: Global variable never used: qst_collect_taxes_unrest_counter
    WARNING: Global variable never used: g_player_party_icon
    WARNING: Global variable never used: g_check_autos_at_hour
    WARNING: Global variable never used: g_last_half_payment_check_day
    WARNING: Global variable never used: qst_train_peasants_against_bandits_num_hours_trained
    WARNING: Global variable never used: g_last_report_control_day
    WARNING: Global variable never used: total_no_fief_changes
    WARNING: Global variable never used: g_dont_give_fief_to_player_days
    WARNING: Global variable never used: g_dont_give_marshalship_to_player_days
    WARNING: Global variable never used: training_ground_position_changed
    WARNING: Global variable never used: bug_fix_version
    WARNING: Global variable never used: g_one_faction_left_notification_shown
  12. -R0B0-

    Native LSP World Map Map Icons Pack

    kalarhan 说:
    ᚱᛟᛒᛟ 说:
    i took a peek at module_constants and don't understand where

    anywhere, altho for readability sake you should keep things together (party slots on the party section, etc). Not like it matters to the game, just to you (the coder).

    see this https://forums.taleworlds.com/index.php/topic,12620.0.html
    I know where to define it but i cant figure out what to define it "correctly" so i dont get a bunch of errors and it wont work
  13. -R0B0-

    Native LSP World Map Map Icons Pack

    Janycz 说:
    @ᚱᛟᛒᛟ you have to define the slot 'slot_num_hours_battle_icon_on_map' and the constant 'spt_battlefield_icon_on_map'.
    I know that but where is the question really, i took a peek at module_constants and don't understand where to place it and i have no idea where to define 'slot_num_hours_battle_icon_on_map'!
  14. -R0B0-

    Native LSP World Map Map Icons Pack

    Janycz 说:
    Many scripts for this osp(battlefields):

    插入代码块:
      ("dedal_battlefield_a",mcn_no_shadow,"dedal_battlefield_a", 0.15, 0),
      ("dedal_battlefield_b",mcn_no_shadow,"dedal_battlefield_b", 0.15, 0),
      ("dedal_battlefield_c",mcn_no_shadow,"dedal_battlefield_c", 0.15, 0),
      ("dedal_battlefield_d",mcn_no_shadow,"dedal_battlefield_d", 0.15, 0),
    插入代码块:
      (1,
      [
        (try_for_parties, ":party"),
          (party_slot_eq, ":party", slot_party_type, spt_battlefield_icon_on_map),
          (party_get_slot, ":hours", ":party", slot_num_hours_battle_icon_on_map),
          (val_add, ":hours", 1),
          (try_begin),
            (ge, ":hours", 24), #24 - how many hours will be visible icon
            (party_clear, ":party"),
            (remove_party, ":party"),
          (else_try),
            (party_set_slot, ":party", slot_num_hours_battle_icon_on_map, ":hours"),
          (try_end),
        (try_end),
      ]),

    插入代码块:
      ("draw_battle_icon",
      [
        (store_script_param, ":party_no", 1),
      
        (set_spawn_radius, 0),
        (spawn_around_party, ":party_no", "pt_battlefield"),
        (assign, ":battlefield", reg0),
    	
    	(assign, ":icon", "icon_dedal_battlefield_a"),
        (store_random_in_range, ":rand", 0, 3),
    	
    	(try_begin),
          # (eq, ":rand", 0),
    	  # (assign, ":icon", "icon_dedal_battlefield_a"),
    	# (else_try),  
          (eq, ":rand", 1),
    	  (assign, ":icon", "icon_dedal_battlefield_b"),
    	(else_try),  
          (eq, ":rand", 2),
    	  (assign, ":icon", "icon_dedal_battlefield_c"),
    	(else_try),  
          (eq, ":rand", 3),
    	  (assign, ":icon", "icon_dedal_battlefield_d"),
    	(try_end),
    	
        (party_set_icon, ":battlefield", ":icon"),
    	
        (party_set_slot, ":battlefield", slot_num_hours_battle_icon_on_map, 0),
        (party_set_slot, ":battlefield", slot_party_type, spt_battlefield_icon_on_map),
        (party_set_flags, ":battlefield", pf_is_static|pf_always_visible|pf_no_label, 1),
      ]),

    insert into the begin of the script 'game_event_battle_end':
    插入代码块:
    (store_script_param_1, ":root_defender_party"),
    (store_script_param_2, ":root_attacker_party"),
    (call_script, "script_draw_battle_icon", ":root_attacker_party"),

    for example:
    插入代码块:
     ("game_event_battle_end",
        [
          (store_script_param_1, ":root_defender_party"),
          (store_script_param_2, ":root_attacker_party"),
    	  
          (call_script, "script_draw_battle_icon", ":root_attacker_party"),
    
          #other operations ...
          ...
     ]),


    I've added these exactly as you did and i get this error
      File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\module_simple_triggers.py", line 3990, in <module>
        (party_slot_eq, ":party", slot_party_type, spt_battlefield_icon_on_map),
    NameError: name 'spt_battlefield_icon_on_map' is not defined
      File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\module_scripts.py", line 47618, in <module>
        (party_set_slot, ":battlefield", slot_num_hours_battle_icon_on_map, 0),
    NameError: name 'slot_num_hours_battle_icon_on_map' is not defined
  15. -R0B0-

    SP Tutorial Module System Complete Guide to Adding Factions

    Could you give an already existing castle to a new faction. I'm creating a faction that originates from Praven and Swadia is holding it at the start and I'm just wondering if its possible
  16. -R0B0-

    Modding Q&A [For Quick Questions and Answers]

    Okay so i tried this boat script out and i have put all the scripts into the right places BUT now, i have a ton of error messages and I'm not the best and coding for warband, anyone that could help me?

    link to script: http://forums.taleworlds.com/index.php/topic,316581.0.html

    This is my the entire MS build.
    Traceback (most recent call last):
      File "process_init.py", line 5, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Traceback (most recent call last):
      File "process_global_variables.py", line 8, in <module>
        from module_triggers import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_triggers.py", line 1538, in <module>
        (party_set_slot, ":target", slot_center_has_port, 1),
    NameError: name 'slot_center_has_port' is not defined
    Exporting strings...
    Exporting skills...
    Exporting tracks...
    Exporting animations...
    Exporting meshes...
    Exporting sounds...
    Exporting skins...
    Traceback (most recent call last):
      File "process_map_icons.py", line 9, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Exporting faction data...
    Exporting item data...
    Traceback (most recent call last):
      File "process_items.py", line 69, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Exporting scene data...
    Traceback (most recent call last):
      File "process_scenes.py", line 21, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Exporting troops data
    Exporting particle data...
    Traceback (most recent call last):
      File "process_scene_props.py", line 10, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Traceback (most recent call last):
      File "process_tableau_materials.py", line 11, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Traceback (most recent call last):
      File "process_presentations.py", line 11, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Exporting party_template data...
    Traceback (most recent call last):
      File "process_parties.py", line 7, in <module>
        from module_game_menus import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_game_menus.py", line 7680, in <module>
        (party_slot_eq, "$current_town", slot_center_has_port, 1),
    NameError: name 'slot_center_has_port' is not defined
    Exporting quest data...
    Exporting info_page data...
    Traceback (most recent call last):
      File "process_scripts.py", line 7, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Traceback (most recent call last):
      File "process_mission_tmps.py", line 11, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Traceback (most recent call last):
      File "process_game_menus.py", line 8, in <module>
        from module_game_menus import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_game_menus.py", line 7680, in <module>
        (party_slot_eq, "$current_town", slot_center_has_port, 1),
    NameError: name 'slot_center_has_port' is not defined
    Traceback (most recent call last):
      File "process_simple_triggers.py", line 5, in <module>
        from module_simple_triggers import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_simple_triggers.py", line 1599, in <module>
        (party_set_slot, ":party_no", slot_party_save_icon, ":cur_icon"),
    NameError: name 'slot_party_save_icon' is not defined
    Traceback (most recent call last):
      File "process_dialogs.py", line 8, in <module>
        from module_triggers import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_triggers.py", line 1538, in <module>
        (party_set_slot, ":target", slot_center_has_port, 1),
    NameError: name 'slot_center_has_port' is not defined
    Traceback (most recent call last):
      File "process_global_variables_unused.py", line 6, in <module>
        from process_operations import *
      File "C:\Users\User\Desktop\Module_system 1.166\process_operations.py", line 24, in <module>
        from module_scripts import *
      File "C:\Users\User\Desktop\Module_system 1.166\module_scripts.py", line 2947, in <module>
        (else_try),
    TypeError: 'tuple' object is not callable
    Exporting postfx_params...
后退
顶部 底部