floating text inconsistency ***Resolved***

The place to post your WML questions and answers.

Moderator: Forum Moderators

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.
Post Reply
User avatar
Spannerbag
Posts: 535
Joined: December 18th, 2016, 6:14 pm
Location: Yes

floating text inconsistency ***Resolved***

Post by Spannerbag »

Hi,
first off could I ask where's the best place to seach for know/reported bugs?
I have an issue here that I don't think is a real bug, but rather something I'm strugging to pin down.
That said it'd be handy to know for sure.

Edit: long post deleted, I'd used [filter] parameters instead of [filter_location] ones because I hadn't read the wiki properly :doh:

Cheers!
-- Spannerbag
Last edited by Spannerbag on March 14th, 2023, 1:10 pm, edited 1 time in total.
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
User avatar
Ravana
Forum Moderator
Posts: 3004
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: floating text inconsistency

Post by Ravana »

id is not recognized key of [floating_text].
gnombat
Posts: 706
Joined: June 10th, 2010, 8:49 pm

Re: floating text inconsistency

Post by gnombat »

Take a look at the code for Delfador concentrating in "The Sceptre of Fire" (the scenario in Heir to the Throne, not the campaign).
User avatar
egallager
Posts: 583
Joined: November 19th, 2020, 7:27 pm
Location: Concord, New Hampshire
Contact:

Re: floating text inconsistency

Post by egallager »

Spannerbag wrote: March 13th, 2023, 4:43 pm Hi,
first off could I ask where's the best place to seach for know/reported bugs?
bugs.wesnoth.org (currently a redirect to the GitHub issue tracker)
User avatar
Spannerbag
Posts: 535
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: floating text inconsistency (edited)

Post by Spannerbag »

gnombat wrote: March 13th, 2023, 6:43 pm Take a look at the code for Delfador concentrating in "The Sceptre of Fire" (the scenario in Heir to the Throne, not the campaign).
Didn't read the wiki properly :augh:

[floating_text]

Floats text (similar to the damage and healing numbers) on the given locations.

StandardLocationFilter: the text will be floated on all matching locations simultaneously (do not use [filter]).
text: the text to display.


Edit: to be clear, I just saw (do not use [filter]) and the idea that it used [filter] kinda stuck :roll:

Thanks for pointing this out, it's frustrating that I keep managing to make stupid mistakes :annoyed:

I've already reverted to using locations and as it works it can stay that way. It's done and as finished as it's going to be at least 'til I calm down.
This should've been a straightforward (ish) "breather" scenario after a large battle but it's caused me more grief than some much more complex scenarios.

Thanks again for pointing this out.

Cheers,
-- Spannerbag
Last edited by Spannerbag on March 14th, 2023, 1:52 am, edited 1 time in total.
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
User avatar
Spannerbag
Posts: 535
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: floating text inconsistency

Post by Spannerbag »

egallager wrote: March 13th, 2023, 10:37 pm
Spannerbag wrote: March 13th, 2023, 4:43 pm Hi,
first off could I ask where's the best place to seach for know/reported bugs?
bugs.wesnoth.org (currently a redirect to the GitHub issue tracker)
Thanks for that, much appreciated.
Still can't believe I missed that [floating_text] uses a location filter :doh:

Cheers,
-- Spannerbag
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
User avatar
Spannerbag
Posts: 535
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: floating text inconsistency

Post by Spannerbag »

Ravana wrote: March 13th, 2023, 5:14 pm id is not recognized key of [floating_text].
Thanks for the advice, annoyed with myself that I couldn't sort it out myself!

Cheers,
-- Spannerbag
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
Post Reply