Search results for query: *

  1. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello.K700 can you show how code about native calculate base party speed?
    I want to know what can affect it.
  2. EastSea

    Need More Info General Jump to Different Mission makes crush when leave mission

    What do you mean by jumping around missions?
    Such like when talk to someone and CreateMission in Dialog.
    and I just test arena of town. It use a inquery to exit.
    This inspires me. I will check it. Thank your reply. and this issue I think is over.
    Thank you again for your reply.
  3. EastSea

    Need More Info General Jump to Different Mission makes crush when leave mission

    ---------------------------
    Info
    ---------------------------
    Thank you for your help. Upload completed successfully.

    You can use the following identifier if you prefer to seek help in person: 2024-04-04_08.45.26_a1d836d4fbb0b8a357f19e3ec1efcc7c (Copied to clipboard)
  4. EastSea

    Need More Info General Jump to Different Mission makes crush when leave mission

    here are code
    Code:
        public override void OnMissionModeChange(MissionMode oldMissionMode, bool atStart)
        {
            if (!atStart)
            {
                foreach (Agent agent in base.Mission.Agents)
                {
                    if (agent.IsHuman)
                    {
                        agent.SetAgentExcludeStateForFaceGroupId(_disabledFaceId, agent.CurrentWatchState != Agent.WatchState.Alarmed);
                    }
                }
    
                // Change
                if (oldMissionMode == MissionMode.Conversation)
                {
    
                    if (// some condition)
                    {
                        Task.Delay(2000);
                        PlayerEncounter.LocationEncounter.CreateAndOpenMissionController(LocationComplex.Current.GetLocationWithId(Helper.LocationNames.tavern), null, null, null);
                    }
                }
            }
        }
  5. EastSea

    Need More Info General Jump to Different Mission makes crush when leave mission

    To help you further and continue our investigation oF the reported issue, we need the crash report identifier. You should see a pop-up window when the game is crashed. Please follow the instructions there to complete the upload and get the crash report identifier. It will be copied to your clipboard automatically. You can find more info about the crash report identifier here. Have you tried the workarounds for common crashes detailed here? Thanks for reporting and sorry for any inconvenience!
    Here is Exception. And do you need more info about?

    Code:
    Exception information
    Type: System.NullReferenceException
    Message: Object reference not set to an instance of an object.
    Source: TaleWorlds.CampaignSystem
    CallStack:
    [LIST=1]
    [*]at void TaleWorlds.CampaignSystem.GameState.MenuContext.HandleStates()
    [*]at void TaleWorlds.CampaignSystem.GameState.MapState.EnterMenuMode()
    [*]at void TaleWorlds.CampaignSystem.GameMenus.GameMenu.ActivateGameMenu(string menuId)
    [*]at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.Init(PartyBase attackerParty, PartyBase defenderParty, Settlement settlement)
    [*]at void TaleWorlds.CampaignSystem.EncounterManager.StartPartyEncounter(PartyBase attackerParty, PartyBase defenderParty)
    [*]at void TaleWorlds.CampaignSystem.Party.MobileParty.TaleWorlds.CampaignSystem.Map.IMapEntity.OnPartyInteraction(MobileParty engagingParty)
    [*]at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounterForMobileParty(MobileParty mobileParty, float dt)
    [*]at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounters(float dt)
    [*]at void TaleWorlds.CampaignSystem.Campaign.Tick()
    [*]at void TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(float dt)
    [*]at void TaleWorlds.CampaignSystem.GameState.MapState.OnTick(float dt)
    [*]at void TaleWorlds.Core.GameStateManager.OnTick(float dt)
    [*]at void TaleWorlds.Core.Game.OnTick(float dt)
    [*]at void TaleWorlds.Core.GameManagerBase.OnTick(float dt)
    [*]at void TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch2(Module this, float dt)
    [/LIST]
  6. EastSea

    Need More Info General Jump to Different Mission makes crush when leave mission

    I meet 2 types of crash these crash always appear in player leave mission. 1. when player **talk** to a Hero, in dialog use StartMission to a new Mission, after press tab leave, and back to map, it crashed. 2. when player in custom mission finish some thing and jump to Location Mission such as...
  7. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    send_message_to_url standard Warband operation and it works in single player
    I test follow code a map trigger in single player mode. and web server did not received request.
    Code:
    (1, [
      (send_message_to_url_advanced, "@http://localhost:14725/", 'str_empty_string', "script_es_process_url_response", "script_es_process_url_response", 1),
    ]),

    The WebServer use python3 aiohttp

    WebServer ScreenShot
  8. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello, k700. Your WSE2 greatly expands the engine capabilities of the original Mount & Blade. And it gave new vitality to M&B. We as players and developers sincerely appreciate your work. I would like to ask if there are any plans to allow non-networked parts of the Warband to be able to send network requests(send_url).
    your op name is wrong.
    actually is send_message_to_url = 380 # (send_message_to_url, <string_id>, <encode_url>),

    What he said is that he want to use (send_message_to_url) in single-player mode native

    K700, I want to confirm the real usage of it.
    because we often call it in
    (send_message_to_url, "@http://localhost:{port}/..."),

    or can you show the code of the function send_message_to_url?
  9. EastSea

    How to implement faction color feature?

    you should read header_operations.py . It tell you use (faction_set_color)
  10. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello. I was compile WSE2 launcher, I need help.
    Is the launcher use MSVC++ or G++? and the version?
    kd.png
  11. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hi. k700.
    I met a wired problem. This problem appeared at more than 10 multiplayers in server.

    this is my script
    Code:
    # script_es_spawn_horse
        ("es_spawn_horse", [
            (store_script_param_1, ":horse_item_id"),
    
    
            (try_begin),
                (gt, ":horse_item_id", 0),
                (item_get_type, ":item_type", ":horse_item_id"),
                (eq, ":item_type", itp_type_horse),
                (spawn_horse, ":horse_item_id"),
                (return_values, reg0),
            (else_try),
    
    
            (try_end),
            ]),
    1.png

    3-code.png

    4-code.png

    I try more than 2 version wse2, the problem appeared in all version.
  12. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    :shifty:Nice. Thank your reply
  13. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello. K700.
    When I check this https://github.com/theAdamColton/WSE2-Launcher-Warband
    Its latest update is last year..
    It can fit with current version 1099?
    I want to add a auto-update mod files button from self ftp server.
  14. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello. K700
    How can I make WSE2 dedicated server cmd window show utf8 char?
    p2.png
  15. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hello.
    I opened this: bBreakWarbandCompatibility=true
    and copy the server_config.ini to server.
    p1.png
  16. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Send me the full code and a detailed description of the problem
    After We use another Warband Dedicated Sever(Mod files is old). The problem disappeared miraculously.
    Sorry to disturb you:grin:
  17. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hi. I encountered a strange bug.
    Version 1097
    All lvalue operation failed , same situation appeared in my teammate computer.

    a2.png

    for example
    a3.png

    Code:
    for curAgent in game.agentsI() do    local is_alive = game.agent_is_alive(curAgent)
    local is_human = game.agent_is_human(curAgent)
    local is_ai = game.agent_is_non_player(curAgent)
    if is_alive and is_human and is_ai then
    game.remove_agent(curAgent)
    end
    end
    will remove all player and non-player agent

    and
    agent_get_position = 1710 # (agent_get_position, <position>, <agent_id>),

    a5.png
    a6.jpg

    a7-operation-not-defined.jpg

    and this problem we never meet until today
    If you need total code and more detailed, I will pm you github url
  18. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    A big update. :wink: What is next update? is Scene Editor?
  19. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    Hi. I met a problem:
    Code:
    mesh_mp_ingame_menu = 6
    create_mesh_overlay   =  911  # (create_mesh_overlay, <destination>, <mesh_id>),
    15:23:12 - SCRIPT ERROR: Illegal lvalue in statement
    15:23:12 - - Lua (line 0, opcode 911, modifier 0x0)
    15:23:12 - -  (line 0, opcode 5113, modifier 0x0)

    Code:
    local temp = 0
    local overlay_id = game.create_mesh_overlay(temp, game.const.meshes.mesh_mp_ingame_menu)
  20. EastSea

    Warband Script Enhancer 2 (v1.1.2.0)

    This is code works for me
    Code:
    function test()
      local is_clicked = game.key_clicked(0x30)
      if is_clicked then
        game.display_message("key_clicked")
      end
    end
    
    game.addTrigger("mst_multiplayer_dm", 0, 0, 0, test)
    ok. I will test it again after download the latest version.
Back
Top Bottom