Recent content by dunde

  1. dunde

    What are you playing right now?

    Jade Empire. In fact, I still have a modding project for the game, and just released some parts of it on nexus.
  2. dunde

    Modding Q&A [For Quick Questions and Answers]

    builder of the gods said:
    I'm back again
    With some help the error i showed is gone
    With some help to the xbox errors are gone
    But now it tells me that mesh note window bottom is not defined
    But in meshes

    Code:
    ## 14 Dec 2011
    
    from header_meshes import *
    meshes = [
      ## Prebatle Orders & Deployment Begin
      ("note_window_bottom", 0, "note_window", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("order_frame", 0, "order_frame", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag4", 0, "flag4", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag5", 0, "flag5", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag6", 0, "flag6", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag7", 0, "flag7", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag8", 0, "flag8", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ("flag9", 0, "flag9", 0, 0, 0, 0, 0, 0, 1, 1, 1),
      ## Prebattle Orders & Deployment End
    [/spoiler]
    Code:
    File "C:\Users\joostgrunwald\Downloads\A World Of Warlock\A World Of Warlock\C
    ompile\pbod_presentations.py", line 332, in <module>
        ("prebattle_orders",0, mesh_note_window_bottom,[
    NameError: name 'mesh_note_window_bottom' is not defined
    Replace 'mesh_note_window_bottom' at presentation by 0 first, then compile. module system will recreate the IDs file. Put 'mesh_note_window_bottom' back, and recompile.
  3. dunde

    Modding Q&A [For Quick Questions and Answers]

    jacobhinds said:
    jacobhinds said:
    You've done everything right, it's not your fault. Someone who was working on Viking Conquest decided now was a good time to rename a single vital file called header_operations.py, and change the word marshall to marshal for no good reason. This is extremely frustrating because it broke a lot of stuff even outside of viking conquest, and due to weird compiling errors I didn't realise what was going on until I'd reinstalled the module system twice.  :neutral:

    If you're using notepad ++, search through all the files simultaneously and replace every instance of "party_set_marshall" with "party_set_marshal". It shouldn't take long as there aren't many of them.

    But damn, what a pain in the butt.
    No need to replace anything. A single line at the end of header_operations.py is enough :
    party_set_marshall = party_set_marshal
  4. dunde

    OSP Kit Optimisation Warband Module System 1.166 (with tweaks and giggles)

    K700 said:
    Trigger param 4 for ti_on_agent_hit - hit bone. Viking Conquest decompiled script http://prntscr.com/63h97j
    The names of the bones can be taken from WSE.

    #Human bones
    hb_abdomen = 0
    hb_thigh_l = 1
    hb_calf_l = 2
    hb_foot_l = 3
    hb_thigh_r = 4
    hb_calf_r = 5
    hb_foot_r = 6
    hb_spine = 7
    hb_thorax = 8
    hb_head = 9
    hb_shoulder_l = 10
    hb_upperarm_l = 11
    hb_forearm_l = 12
    hb_hand_l = 13
    hb_item_l = 14
    hb_shoulder_r = 15
    hb_upperarm_r = 16
    hb_forearm_r = 17
    hb_hand_r = 18
    hb_item_r = 19

    #Horse bones
    hrsb_pelvis = 0
    hrsb_spine_1 = 1
    hrsb_spine_2 = 2
    hrsb_spine_3 = 3
    hrsb_neck_1 = 4
    hrsb_neck_2 = 5
    hrsb_neck_3 = 6
    hrsb_head = 7
    hrsb_l_clavicle = 8
    hrsb_l_upper_arm = 9
    hrsb_l_forearm = 10
    hrsb_l_hand = 11
    hrsb_l_front_hoof = 12
    hrsb_r_clavicle = 13
    hrsb_r_upper_arm = 14
    hrsb_r_forearm = 15
    hrsb_r_hand = 16
    hrsb_r_front_hoof = 17
    hrsb_l_thigh = 18
    hrsb_l_calf = 19
    hrsb_l_foot = 20
    hrsb_l_back_hoof = 21
    hrsb_r_thigh = 22
    hrsb_r_calf = 23
    hrsb_r_foot = 24
    hrsb_r_back_hoof = 25
    hrsb_tail_1 = 26
    hrsb_tail_2 = 27

    This is just what I need most from WSE. It's nice to have it on native MS.
  5. dunde

    Modding Q&A [For Quick Questions and Answers]

    Stealthunt3r said:
    [WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_troop_upgrades_button_clicked

    A new game script at new version of WB?  It's looks interesting.
  6. dunde

    OSP Kit Combat Chopping off hands kit

    So there are new flags also. How about wse's modified triggers like on hit? And is the on init trigger is fired for horses now as New material and meshes operation for items should be used in the trigger?
  7. dunde

    Modding Q&A [For Quick Questions and Answers]

    @ikaguia,
    agent_is_alive will be false for both wounded and killed agents. You need third param of the trigger to separate them.
  8. dunde

    OSP Kit Combat Chopping off hands kit

    Masterancza said:
    I have problem with this script. Someone can help me?

    Traceback (most recent call last):
      File "process_init.py", line 2, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_global_variables.py", line 8, in <module>
        from module_presentations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_presentation
    s.py", line 12750, in <module>
        modmerge(var_set)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\modmerger.py", line
    297, in modmerge
        modmerge__(modcomp_name,var_dict)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\modmerger.py", line
    237, in modmerge__
        _temp = __import__( src_module_name ,{} , {}, [mergefn_name],-1)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\tournament_presenta
    tions.py", line 11, in <module>
        from module_items import *  # Added for Show all Items presentation.
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' 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 6, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting faction data...
    Traceback (most recent call last):
      File "process_items.py", line 4, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting scene data...
    Traceback (most recent call last):
      File "process_scenes.py", line 15, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting troops data
    Exporting particle data...
    Traceback (most recent call last):
      File "process_scene_props.py", line 7, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_tableau_materials.py", line 8, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_presentations.py", line 4, in <module>
        from module_presentations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_presentation
    s.py", line 12750, in <module>
        modmerge(var_set)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\modmerger.py", line
    297, in modmerge
        modmerge__(modcomp_name,var_dict)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\modmerger.py", line
    237, in modmerge__
        _temp = __import__( src_module_name ,{} , {}, [mergefn_name],-1)
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\tournament_presenta
    tions.py", line 11, in <module>
        from module_items import *  # Added for Show all Items presentation.
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting party_template data...
    Traceback (most recent call last):
      File "process_parties.py", line 6, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting quest data...
    Exporting info_page data...
    Traceback (most recent call last):
      File "process_scripts.py", line 4, in <module>
        from module_scripts import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_scripts.py",
    line 48158, in <module>
        (agent_get_bone_position,pos1,":victim_agent_no",hb_hand_r),
    NameError: name 'agent_get_bone_position' is not defined
    Traceback (most recent call last):
      File "process_mission_tmps.py", line 5, in <module>
        from module_mission_templates import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_mission_temp
    lates.py", line 64, in <module>
        (item_get_swing_damage_type, ":item_swing_damage_type", ":item_id"),
    NameError: name 'item_get_swing_damage_type' is not defined
    Traceback (most recent call last):
      File "process_game_menus.py", line 8, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_simple_triggers.py", line 5, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_dialogs.py", line 9, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Traceback (most recent call last):
      File "process_global_variables_unused.py", line 3, in <module>
        from process_operations import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\process_operations.
    py", line 13, in <module>
        from module_items import *
      File "C:\Users\pawel\Desktop\mb_warband_module_system_1153\module_items.py", l
    ine 1790, in <module>
        ["invisible_left_hand", "Left Handsless", [("invisible_L",0)], itp_type_hand
    _armor|itp_show_right_hand  ,0, 0 , weight(0)|abundance(0)|head_armor(0)|body_a
    rmor(0)|leg_armor(0)|difficulty(0) ,imodbits_plate ],
    NameError: name 'itp_show_right_hand' is not defined
    Exporting postfx_params...

    ______________________________

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

    You need WSE as itp_show_right_hand is from WSE.
  9. dunde

    Clarifying Module System Operations

    The_dragon said:
    dunde said:
    I wonder why the facecode operations needs string operands. Why don't they make it with integer operands?

    Because the face code is by far much much higher than 2 ^ 32 (max int 32).
    0x0000000000000001124000000020000000000000001c00800000000000000000 = 6724590433320233934322779735076119692987884466761552101376

    AFAIK, WB's variables are about 52 bits length.
  10. dunde

    Clarifying Module System Operations

    I wonder why the facecode operations needs string operands. Why don't they make it with integer operands?
  11. dunde

    OSP Kit Combat Chopping off hands kit

    It's still better to write the code on hit trigger of WSE than getting bone position and comparing with hit pos.
  12. dunde

    Modding Q&A [For Quick Questions and Answers]

    HyperCharge said:
    Im making a code of set the lower map speed when every nights.Should i add some more ? or have an mistakes ?

    Code:
    (0.1, 0, 0,
        (is_currently_night),
    	(map_free),
    	(eq, ":slowerman", "trp_player"),
    	(assign, "trp_player", ":slowerman"),
    	(call_script, "script_game_get_party_speed_multiplier", ":multplier"),
    	(assign, ":multplier", 50),
    	]
       ),

    And,game_get_party_speed_multiplier;
    Code:
    ##  #script_game_get_party_speed_multiplier
    ##  # This script is called from the game engine when a skill's modifiers are needed
    ##  # INPUT: arg1 = party_no
    ##  # OUTPUT: trigger_result = multiplier (scaled by 100, meaning that giving 100 as the trigger result does not change the party speed)
      ("game_get_party_speed_multiplier",
       [
        (store_script_param, ":party_no", 1),
        (set_trigger_result, 100),
        ]),

    You need no new trigger. Just set the trigger result of the script.
    Code:
    ("game_get_party_speed_multiplier",
       [
        (store_script_param, ":party_no", 1),
        (assign,   ":speed", 100),
        (try_begin), 
            (is_currently_night),
            (eq,  ":party_no","p_main_party"),
            (assign,   ":speed", 50),
        (try_end),
        (set_trigger_result, ":speed"),
        ]),
  13. dunde

    PYTHON SCRIPT/SCHEME EXCHANGE

    That's a very smart method. I made an anti import system once, by saving and comparing the stats of player troop, but now I find your method is much simpler and stronger approach.
  14. dunde

    OSP Code QoL Dynamic Kingdom Troop Tree Presentation

    Arven2802 said:
    Hello, I am having an error somewhere.
    This is the log:
    ERROR: Illegal Identifier:str_faction_troop_tree
    Error: Unable to find object:str_faction_troop_tree
    ERROR: Illegal Identifier:str_faction_troop_tree
    What am I doing wrong?
    You forgot to add 1 line code to module_strings.py that introduce str_faction_troop_tree.
  15. dunde

    Modding Q&A [For Quick Questions and Answers]

    Knight of calradia said:
    ] # -----------------------------> move this to the last line of this file

    ############## MF for testing start ####################
    ( # ------------------------------> remove this line
    ("camp_modding",0,"Select an option:","none",[],
    [("camp_mod_1",[],"Increase player's renown.",
    [(str_store_string, s1, "@Player renown is increased by 100. "),

    The IndentationError occurs because the menus list is closed above the first line of the code, so the code's not part of menus list anymore, and python considers it as new real python code line.
Back
Top Bottom