Connection failed:An existing connection was forcibly closed by the remote host

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
User avatar
LordAwsomeness
Posts: 189
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: Connection failed:An existing connection was forcibly closed by the remote host

Post by LordAwsomeness »

Ravana wrote:
March 13th, 2020, 6:47 am
Instead of show_if, it is generally possible to use normal if - to not insert the options into message if condition is not true.

I do not currently have any good examples, but this is somewhat fitting. https://github.com/ProditorMagnus/Agele ... s.lua#L142 If it would be inside function/wml_action, then the line could be for example

Code: Select all

-- local T = wml.tag -- I use such shortcut
if cfg.something then 
    table.insert(message, T.option{
        --option content
    })
end
im still working on the lua, but I wanted to find a temporary fix while im working on learning the lua. I have a question however. I couldn't make the method that you both were giving me, however I created a new method instead. the new method incorporates a fire event. it drastically cut down on the total amount of options being read by the preprocessor. however I am trying to understand if I potentially messed up on my code or if fired events are unable to change the options displayed. In my attempts to swap weapons, the page stays the same and the variables dont change.
Are the options that are displayed able to be changed?


EDIT: nevermind, it was an inconsistency that I had in my variables. it works perfectly now. hell even better than before.
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA

Post Reply