Search results

  1. Better MS Scripting Reference: header_operations expanded

    my error, store_main_party_wounded - 2180

    set_ally_collision_threshold - wse operation, default for alies
  2. Warband Script Enhancer 2 (v1.0.4.3)

    Yes, you can even do it yourself, use linux build for reversing, with function names it will be easier.
  3. Warband Script Enhancer 2 (v1.0.4.3)

    wse2 not yet implemented scene editor
  4. Warband Script Enhancer 2 (v1.0.4.3)

    reverse
  5. Warband Script Enhancer 2 (v1.0.4.3)

    1.0.4.3
    -Added some Carribean operations - set_random_seed, store_application_time, is_party_skill, agent_get_horse_rotation_velocity, agent_get_current_vertical_speed, agent_set_current_vertical_speed, agent_get_position_in_group, agent_get_current_ai_mesh_face_group, prop_instance_remove_particle_system, prop_instance_remove_light, prop_instance_get_sound_progress, cur_item_mesh_set_color, cur_item_add_mesh_with_material, party_switch_stacks, party_stack_upgrade, position_get_length, get_dot_product_of_positions, get_cross_product_of_positions, str_store_skill_desc, overlay_button_set_type, overlay_get_scroll_pos, overlay_set_scroll_pos.
    -Extended add_point_light and add_point_light_to_entity operations - range parameter.
    -Operations that are performed in lua now get context (trigger).
    -Fixed particle_system_remove and cur_item_add_mesh operations.


    Thanks to the development sponsor who wished to remain anonymous.
  6. [WB] Warband Script Enhancer v4.8.0 for 1.174

    v4.8.0
    -Added some Carribean operations - set_random_seed, store_application_time, is_party_skill, agent_get_horse_rotation_velocity, agent_get_current_vertical_speed, agent_set_current_vertical_speed, prop_instance_remove_particle_system, prop_instance_remove_light, cur_item_mesh_set_color, cur_item_add_mesh_with_material, party_switch_stacks, position_get_length, get_dot_product_of_positions, get_cross_product_of_positions, str_store_skill_desc, overlay_button_set_type, overlay_get_scroll_pos, overlay_set_scroll_pos.
    -Extended add_point_light and add_point_light_to_entity operations - range parameter.
    -Operations that are performed in lua now get context (trigger).
    -Fixed particle_system_remove operation.


    Thanks to the development sponsor who wished to remain anonymous.
  7. Warband Script Enhancer 2 (v1.0.4.3)

    Code:
    float mbAgent::getMissileSpeed()
    {
        float missileSpeed = 10.0f;
        float speedFactor = 1.0f;
        mbItem item = getWieldedItem(ah_primary);
    
        if (item.isValid())
        {
            mbItemKind *itemKind = item.getItemKind();
    
            missileSpeed = (float)itemKind->getMissileSpeed();
    
            if (itemKind->getType() == itp_type_bow)
            {
                speedFactor = rglMin(g_game->getTroopSkill(m_troopNo, skl_power_draw, true), item.getDifficulty() + 4) * 0.12f + 1.0f;
    
                if (m_horseAgentNo != -1)
                    speedFactor *= g_game->getTroopSkill(m_troopNo, skl_horse_archery, true) * 0.019f + 0.8f;
    
                if (g_mission->m_weather.m_precipitationType == wpr_rain)
                    speedFactor *= 0.9f;
            }
            else if (itemKind->getType() == itp_type_crossbow)
            {
                if (g_mission->m_weather.m_precipitationType == wpr_rain)
                    speedFactor *= 0.75f;
            }
            else if (itemKind->getType() == itp_type_thrown)
            {
                speedFactor = g_game->getTroopSkill(m_troopNo, skl_power_throw, true) * 0.1f + 1.0f;
    
                if (m_horseAgentNo != -1)
                    speedFactor *= g_game->getTroopSkill(m_troopNo, skl_horse_archery, true) * 0.019f + 0.8f;
            }
        }
        
        return rglSqrt(speedFactor) * missileSpeed * 1.2f;
    }
  8. Better MS Scripting Reference: header_operations expanded

    yes
    Code:
    if (intValues[3] > 0)
      newMesh->setVertexColorAlpha(intValues[3]);
  9. Better MS Scripting Reference: header_operations expanded

    cur_item_add_mesh has an optional fourth parameter color

    (cur_item_add_mesh, <mesh_name_string>, [<lod_begin>], [<lod_end>], [<color>]),
  10. Warband Script Enhancer 2 (v1.0.4.3)

    if your mod crashes, it will be easier for you to understand the reason
  11. Warband Script Enhancer 2 (v1.0.4.3)

    they are included, you do not need to download anything separately
  12. Warband Script Enhancer 2 (v1.0.4.3)

    Put pdb files together with exes. When the game crashes, names of procedures will be displayed in call stack.
  13. Warband Script Enhancer 2 (v1.0.4.3)

    1.0.4.2
    -Fixed reloading bug.
    -Fixed agent_equip_item, face_keys operations.
    -Added undocumented store_main_party_wounded, str_store_agent_face_keys Warband's operations.


    Also wse2 now inlcude pdb files for simplify debug.
  14. Better MS Scripting Reference: header_operations expanded

    Undocumented Warband operations

    store_main_party_wounded = 2176 # (store_main_party_wounded,<destination>),

    lhs operation

    Code:
    case store_main_party_wounded:
            {
                int wounded = 0;
                mbParty *mainParty = g_game->getMainParty();
    
    
                for (int i = 0; i < mainParty->m_numStacks; ++i)
                {
                    mbPartyStack *stack = mainParty->getStack(i);
    
    
                    if (!stack->isPrisoner())
                    {
                        mbTroop *troop = g_game->getTroop(stack->m_troopNo);
    
    
                        wounded += troop->isHero() ? (int)ceilf(((float)troop->getMaxHitPoints() - troop->m_hitPoints) * 0.15f) : stack->m_numWounded;
                    }
                }
                returnValue(localVariables, wounded);
            }


    str_store_agent_face_keys = 2749 # (str_store_agent_face_keys, <string_no>, <agent_id>),

    Code:
    case str_store_agent_face_keys:
            if (mbCheckRegister(intValues[0]) && mbCheckAgent(intValues[1]))
            {
                mbAgent *agent = g_mission->getAgent(intValues[1]);
                mbTroop *troop = agent->getTroop();
    
    
                g_faceGenerator.load(agent->m_skinNo, agent->m_dna, troop->m_faceKeys1, troop->m_faceKeys2);
                mbFaceKeys facekeys;
                g_faceGenerator.fillKeys(facekeys);
                g_basicGame.m_stringRegisters[intValues[0]] = facekeys.toString();
            }

    Their practical application is unclear, which is probably why they are not in the documentation.
  15. [WB] Warband Script Enhancer v4.8.0 for 1.174

    v4.7.9
    -Fixed buggy face_keys_get_morph_key, face_keys_set_morph_key operations - supports all morph keys, not only first 8.
    -Fixed fst operation - supports big int.
    -Removed currently unnecessary allow_wse_execute_statement_blocks module.ini option.
  16. [WB] Warband Script Enhancer v4.8.0 for 1.174

    bug
  17. [WB] Warband Script Enhancer v4.8.0 for 1.174

    add this strings to language file
  18. Hi. I can analyze performance and figure out what is causing the FPS drop, but it will take...

    Hi. I can analyze performance and figure out what is causing the FPS drop, but it will take time. I will help if you pay for it.
  19. Warband Script Enhancer 2 (v1.0.4.3)

    1.0.4.1
    -Fixed ai weapon usage orders.
Top Bottom