LovelyHusky的最近内容

  1. Warband Script Enhancer 2 (v1.1.0.5)

    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

    插入代码块:
    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
    I worked with him on this project
    It used to work without any problems, but recently it has been running into problems
    Attempts to backtrack on ms code, backtrack on lua code, and lower wse2 versions all appear
    code:
    game.scene _prop_get_num_instances(0,spr_pw_item_chest_a)
    WSE2 Version 1.0.9.6
    ERROR:
    SCRIPT ERROR: Illegal lvalue in statement lua
    WSE2 Version released around 2023/4/26
    ERROR:
    Lua error: Modules\PW_4.5.5S\lua\main.lua:1: undefined module system operation: 'scene_prop_get_num_instances'
  2. Warband Script Enhancer 2 (v1.1.0.5)

    so,how could i use luasocket, i will make it doc,so that every one could learn it
  3. Warband Script Enhancer 2 (v1.1.0.5)

    hi k700,I have a problem,I tried to reference the socket in lua but he started the server and crashed,But When I use ScitTe and Write these code, it could execute right.
    This is the test video address

    Files in the socket folder
    QQ-20230528114849.png

    This is the code
    package.path = package.path .. ";" .. 'C:\\Program Files (x86)\\Lua\\5.1\\lua\\socket'
    local socket = require("socket")
    local http = require("socket.http")
    local url = "http://127.0.0.1:5000"
    local params = {
    ["param1"] = "value1",
    ["param2"] = "value2"
    }

    url = url .. "?" .. socket.urlencode(params)

    response, status_code, headers, status_line = http.request(url)

    if status_code == 200 then
    print(response)
    else
    print("Error: HTTP status code " .. status_code)
    end
  4. Warband Script Enhancer 2 (v1.1.0.5)

    hi k700,The initialization of lua will flash back if the code is buggy but no error is reported

    For example, require() a file. If the file does not exist, it will blink back, but rgl_log will not report an error.

    Hope to improve: rgl_log can report errors



    15:44:55 - Loading quick strings...
    15:44:55 - Loading item kinds...
    15:44:55 - Loading conversations...
    15:44:55 - Loading mission templates...
    15:44:55 - Loading party templates...
    15:44:55 - Loading actions...
    15:44:55 - Initializing lua...
后退
顶部 底部