搜索结果: *

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

    Hi Guys,
    I implented shield bashing but i still get this memoryerror:

    Initializing...
    Exporting strings...
    Exporting skills...
    Exporting tracks...
    Exporting animations...
    Exporting meshes...
    Exporting sounds...
    Exporting skins...
    Exporting map icons...
    Creating new tag_uses.txt file...
    Creating new quick_strings.txt file...
    Exporting faction data...
    Exporting item data...
    Exporting scene data...
    Exporting troops data
    Exporting particle data...
    Exporting scene props...
    Exporting tableau materials data...
    Exporting presentations...
    Exporting party_template data...
    Exporting parties
    Exporting quest data...
    Exporting info_page data...
    Exporting scripts...
    Exporting mission_template data...
    Exporting game menus data...
    exporting simple triggers...
    Traceback (most recent call last):
      File "process_dialogs.py", line 6, in ?
        from module_dialogs import *
    MemoryError
    Checking global variable usages...
    Exporting postfx_params...

    ______________________________

    Script processing has ended.
    Press any key to exit. . .

    and i don't know how to fix that, i tried to shield bash ingame, and it didn't work, any possiblity that this memoryerror could be the root of all evil?

    thanking you in anticipation
  2. TypeError: float arguement required!

    so i added common_shield_bash at the line you posted. but now it still keeps me telling, that theres mistake with:
    common_shield_bash = (0,0,0,[
    (key_clicked, key_left_control),
    (neg|main_hero_fallen),
    ],
    [
    (call_script, "script_shield_bash"),
    ])
    above the mission_templates O.O invalid syntax






    Traceback (most recent call last):
    File "process_init.py", line 2, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    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 6, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting faction data...
    Exporting item data...
    Traceback (most recent call last):
    File "process_items.py", line 66, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting scene data...
    Traceback (most recent call last):
    File "process_scenes.py", line 15, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting troops data
    Exporting particle data...
    Traceback (most recent call last):
    File "process_scene_props.py", line 7, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_tableau_materials.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_presentations.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting party_template data...
    Traceback (most recent call last):
    File "process_parties.py", line 6, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting quest data...
    Exporting info_page data...
    Traceback (most recent call last):
    File "process_scripts.py", line 7, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_mission_tmps.py", line 5, in ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_game_menus.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_simple_triggers.py", line 5, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_dialogs.py", line 6, in ?
    from module_dialogs import *
    MemoryError
    Traceback (most recent call last):
    File "process_global_variables_unused.py", line 3, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    270
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting postfx_params...

    ______________________________

    Script processing has ended.
    Press any key to exit. . .

    Edit: problem solved, i messed a little bit up with the tabulator at one point =) now i'm testing shield bash, hoping it will work

    Edit2: well, i can't shield bash ingame, maybe it's because of that error?
    exporting simple triggers...
    Traceback (most recent call last):
      File "process_dialogs.py", line 6, in ?
        from module_dialogs import *
    MemoryError
    Checking global variable usages...
    Exporting postfx_params...

    ______________________________

    Script processing has ended.
    Press any key to exit. . .

    it's only one i got at the moment
  3. TypeError: float arguement required!

    i added now that code

    common_shield_bash = (0,0,0,[
    (key_clicked, key_left_control),
    (neg|main_hero_fallen),
    ],
    [
    (call_script, "script_shield_bash"),
    ])


    right above the mission_templates, exactly as you posted. So far so good. and for the second one ("numer two"), i just have to post that code (common_shield_bash,) somewhere within the mission_templates? did i get it right? or do i have to add something more?
  4. TypeError: float arguement required!

    ok
    number one:
    (try_end),
              (store_random_in_range, ":rand", 5, 100),
              (try_begin),
                (lt, ":rand", "$g_arena_training_num_agents_spawned"),
                (assign, ":selected_team", ":strongest_team"),
              (try_end),
              (agent_set_team, ":agent_no", ":selected_team"),
            (try_end),
            (agent_set_slot, ":agent_no", slot_agent_arena_team_set, 1),
            (try_begin),
              (neq, ":agent_no", ":player_agent"),
              (val_add, "$g_arena_training_num_agents_spawned", 1),
            (try_end),
          (try_end),
          ]),
      ]

    mission_templates = [

    common_shield_bash = (0,0,0,[
    (key_clicked, key_left_control),
    (neg|main_hero_fallen),
    ],
    [
    (call_script, "script_shield_bash"),
    ])

      (
        "town_default",0,-1,
        "Default town visit",
        [(0,mtef_scene_source|mtef_team_0,af_override_horse,0,1,pilgrim_disguise),
        (1,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (2,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (3,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (4,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (5,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (6,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (7,mtef_scene_source|mtef_team_0,af_override_horse,0,1,[]),
        (8,mtef_scene_source,af_override_horse,0,1,[]),
        (9,mtef_scene_source,af_override_horse,0,1,[]),
        (10,mtef_scene_source,af_override_horse,0,1,[]),
        (11,mtef_scene_source,af_override_horse,0,1,[]),
        (12,mtef_scene_source,af_override_horse,0,1,[]),
        (13,mtef_scene_source,0,0,1,[]),
        (14,mtef_scene_source,0,0,1,[]),
        (15,mtef_scene_source,0,0,1,[]),

    number two:

    common_battle_mission_start = (
      ti_before_mission_start, 0, 0, [],
      [
        (team_set_relation, 0, 2, 1),
        (team_set_relation, 1, 3, 1),
        (call_script, "script_change_banners_and_chest"),
        ])


    common_shield_bash,

    common_battle_tab_press = (
      ti_tab_pressed, 0, 0, [],
      [
        (try_begin),
          (eq, "$g_battle_won", 1),
          (call_script, "script_count_mission_casualties_from_agents"),
          (finish_mission,0),
        (else_try),
          (call_script, "script_cf_check_enemies_nearby"),
          (question_box,"str_do_you_want_to_retreat"),
        (else_try),
          (display_message,"str_can_not_retreat"),
        (try_end),
        ])
  5. TypeError: float arguement required!

    I've added the code now right at the beginning of mission_templates just like you posted and then i scrolled to the "common_XXX" and postet right under the "common_battle_mission_start" the "common_shield_bash," (just without quotes) but now i got this error here o.o:

    Traceback (most recent call last):
    File "process_init.py", line 2, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    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 6, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting faction data...
    Exporting item data...
    Traceback (most recent call last):
    File "process_items.py", line 66, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting scene data...
    Traceback (most recent call last):
    File "process_scenes.py", line 15, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting troops data
    Exporting particle data...
    Traceback (most recent call last):
    File "process_scene_props.py", line 7, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_tableau_materials.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_presentations.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting party_template data...
    Traceback (most recent call last):
    File "process_parties.py", line 6, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting quest data...
    Exporting info_page data...
    Traceback (most recent call last):
    File "process_scripts.py", line 7, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_mission_tmps.py", line 5, in ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_game_menus.py", line 8, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_simple_triggers.py", line 5, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
    File "process_dialogs.py", line 6, in ?
    from module_dialogs import *
    MemoryError
    Traceback (most recent call last):
    File "process_global_variables_unused.py", line 3, in ?
    from process_operations import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\process_operations.py", line 21, in
    ?
    from module_mission_templates import *
    File "C:\Dokumente und Einstellungen\pascal\Eigene Dateien\Downloads\mb_warban
    d_module_system_1143(2)\Module_system 1.143\module_mission_templates.py", line 1
    272
    common_shield_bash = (0,0,0,[
    ^
    SyntaxError: invalid syntax
    Exporting postfx_params...

    ______________________________

    Script processing has ended.
    Press any key to exit. . .


    = / i guess i did someting wrong ._.
  6. TypeError: float arguement required!

    Hi Caba' drin and thx for your reply,
    I've used now the tabulator once in line 50 (in process_mission_tmps.py) and now i'm getting this error:

    插入代码块:
    Initializing...
    Exporting strings...
    Exporting skills...
    Exporting tracks...
    Exporting animations...
    Exporting meshes...
    Exporting sounds...
    Exporting skins...
    Exporting map icons...
    Creating new tag_uses.txt file...
    Creating new quick_strings.txt file...
    Exporting faction data...
    Exporting item data...
    Exporting scene data...
    Exporting troops data
    Exporting particle data...
    Exporting scene props...
    Exporting tableau materials data...
    Exporting presentations...
    Exporting party_template data...
    Exporting parties
    Exporting quest data...
    Exporting info_page data...
    Exporting scripts...
      File "process_mission_tmps.py", line 50
        file.close(),
        ^
    SyntaxError: invalid syntax
    Exporting game menus data...
    exporting simple triggers...
    Traceback (most recent call last):
      File "process_dialogs.py", line 6, in ?
        from module_dialogs import *
    MemoryError
    Checking global variable usages...
    Exporting postfx_params...
    
    ______________________________
    
    Script processing has ended.
    Press any key to exit. . .
    ........................................
    Maybe you've got an idea how to solve that^^ I would be very glad and thankful to you =) and here is the code i put into mission_templates:
    插入代码块:
    "common_shield_bash",0,0,0,[
    		(key_clicked, key_left_control),
    		(neg|main_hero_fallen),
    		],
    		[
    		(call_script, "script_shield_bash"),
    		]
    		],
    		),
    
    
    		]
    --------------------
    i put it at the and of mission_templates.py, and yeah next time I'll use the FAQ thread sorry, my bad =(

    Darksplinter
  7. TypeError: float arguement required!

    Hey Guys, I've just started to make my own mod. Until now the only thing i've changed so far was to implement the Shield Bash script written by xenoargh (http://forums.taleworlds.com/index.php?topic=134163.0) and the animation made by Papa Lazarou...
后退
顶部 底部