kaetemi / ryzomclassic

A classic fork of Ryzom. The goal is to remove outposts, reactivate the Ring, and only include the classic in-game web components.
https://ryzom.dev/
GNU Affero General Public License v3.0
1 stars 0 forks source link

Ring UI bug cannot change creature aggro range #150

Closed Xtarsia closed 3 years ago

Xtarsia commented 4 years ago

image

Altering the value in game does not save.

Altering the Aggro value in r2_palette.lua and reloading, does work and functions correctly on testing, issue is client based.

kaetemi commented 3 years ago

image

Exception will be launched: [string "       local editBox = getUICaller()    if ed..."]:1: 'then' expected near ';'
WRN: ELuaParseError: [string "       local editBox = getUICaller()    if ed..."]:1: 'then' expected near ';'
kaetemi commented 3 years ago
        prop = (char*) xmlGetProp( cur, (xmlChar*)"on_focus_lost" );
        if (prop) _AHOnFocusLost = (const char *) prop;

r2:buildEditBox -> strifyXml

Xtarsia commented 3 years ago

similar issue with "Minutes" and "Seconds" properties for both "Timed Spawner" and "Timer" components

image image

kaetemi commented 3 years ago
    local strxml = string.gsub(tostring(str), ">", ">")
    strxml = string.gsub(strxml, "<", "&lt;")
    strxml = string.gsub(strxml, "&", "&amp;")