Search found 38 matches

by Inkerrio
January 30th, 2023, 7:34 am
Forum: WML Workshop
Topic: Nested loops huge perfomance decrease[SOLVED]
Replies: 7
Views: 950

Re: Nested loops huge perfomance decrease

I compare an array (area) of hexes to another array of hexes and determine if they have the same coordinates. This is what find_in is for. Loop over one array and use find_in to see if the location is also in the second. You can also use a [while] to break out of the loop immediately if the find_in...
by Inkerrio
January 28th, 2023, 1:30 pm
Forum: WML Workshop
Topic: Nested loops huge perfomance decrease[SOLVED]
Replies: 7
Views: 950

Re: Nested loops huge perfomance decrease

Pentarctagon wrote: January 27th, 2023, 11:05 pm What is the size of each array being looped over?
Dozens, potentially hundres of elements. I compare an array (area) of hexes to another array of hexes and determine if they have the same coordinates.
by Inkerrio
January 27th, 2023, 10:21 pm
Forum: Scenario & Campaign Development
Topic: WWII: Through the Fire (0.02 test release)
Replies: 42
Views: 6657

Re: WWII: Through the Fire (0.02 test release)

Basically, the idea is to turn land units into images while an aircraft is selected, then unstore them and turn them back into units when a land unit is selected, while turning aircraft into images. Of course, it's more complicated than that, there are many, many caveats, but after managing to imple...
by Inkerrio
January 27th, 2023, 9:39 pm
Forum: WML Workshop
Topic: Nested loops huge perfomance decrease[SOLVED]
Replies: 7
Views: 950

Nested loops huge perfomance decrease[SOLVED]

Hello, Is it normal that nested loops (especially of the same type, [foreach] within [foreach] and [for] within [for]) hugely decrease perfomance, to the point of being pretty much unusuable, or am I doing something wrong?
by Inkerrio
January 27th, 2023, 9:36 pm
Forum: Scenario & Campaign Development
Topic: WWII: Through the Fire (0.02 test release)
Replies: 42
Views: 6657

Re: WWII: Through the Fire (0.02 test release)

Still working on it. Stuck a bit trying to move aircraft to separate layer
by Inkerrio
December 23rd, 2022, 4:16 pm
Forum: WML Workshop
Topic: moves=0
Replies: 4
Views: 525

Re: moves=0

To change a unit you need first to store it, apply the changes, and then to unstore it for these changes to take effect
by Inkerrio
December 23rd, 2022, 10:44 am
Forum: WML Workshop
Topic: Is it possible to dynamically change GUI2?
Replies: 3
Views: 627

Re: Is it possible to dynamically change GUI2?

That's awesome, thank you! I still fancy the idea to make a scrollable, clickable tech tree, which wouldn't be possible in WML, so this definitely will be useful
by Inkerrio
December 23rd, 2022, 10:40 am
Forum: Scenario & Campaign Development
Topic: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?
Replies: 11
Views: 1010

Re: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?

I'm a big fan of historical settings, I hoped there'd be more of that using the Wesnoth ''engine'' as basis, though not so much of a fan of ancient times, medieval up until industrial era is more interesting for me, and yep that includes other nations other than European based ones. Since I greatly...
by Inkerrio
December 23rd, 2022, 10:38 am
Forum: Scenario & Campaign Development
Topic: WWII: Through the Fire (0.02 test release)
Replies: 42
Views: 6657

Re: WWII: Through the Fire (0.02 test release)

I don't see much need to implement multi-hex right now, I think that default Wesnoth combat works well as it is and simulates WWII quite well, if you don't mind some abstractions. Aviation is a bit of a problem and is overloaded with abilities that allow to do this and don't allow to do that. I coul...
by Inkerrio
December 19th, 2022, 1:02 pm
Forum: WML Workshop
Topic: Is it possible to dynamically change GUI2?
Replies: 3
Views: 627

Is it possible to dynamically change GUI2?

Hello, It seems like the GUI2 doesn't recognize any WML tags, variables, or substitutions and doesn't accept any external data. Or am I missing something? I would like to know if it's possible to do things, like, show a different button depending which side's turn it currently is, or substitute a na...
by Inkerrio
December 15th, 2022, 5:58 pm
Forum: Scenario & Campaign Development
Topic: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?
Replies: 11
Views: 1010

Re: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?

Well, it seems like the community has spoken. While I'd like to do real-world civilizations, I'm not fundamentally opposed to Wesnoth races. I already have a few ideas of how to implement them in an interesting way. One other thing you might want to consider: ending up with the futuristic versions o...
by Inkerrio
December 13th, 2022, 1:25 pm
Forum: Scenario & Campaign Development
Topic: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?
Replies: 11
Views: 1010

Re: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?

Half-civ is not available for the current wesnoth version, unfortunately, but apparently, it was a multiplayer project, which requires a totally different approach. On a side note, I wonder why a free project can have a competent hex-combat AI, while a million dollar AAA game can't. Have another lo...
by Inkerrio
December 11th, 2022, 10:46 am
Forum: Art Workshop
Topic: AI-generated Art
Replies: 86
Views: 195688

Re: AI-generated Art

This is a popular misconception, the AI doesn't "remix internet images", it learns drawing patterns. Well, maybe, sometimes, the AI does that. Sometimes the AI just "memorizes" and "regurgitates" the original images it was trained with (or something very close to the o...
by Inkerrio
December 11th, 2022, 9:42 am
Forum: Scenario & Campaign Development
Topic: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?
Replies: 11
Views: 1010

Re: Poll: In a civilization-like addon, would you prefer to see Wesnoth races or real-world civilizations?

Half-civ is not available for the current wesnoth version, unfortunately, but apparently, it was a multiplayer project, which requires a totally different approach.

On a side note, I wonder why a free project can have a competent hex-combat AI, while a million dollar AAA game can't.
by Inkerrio
December 11th, 2022, 9:35 am
Forum: Art Workshop
Topic: AI-generated Art
Replies: 86
Views: 195688

Re: AI-generated Art

This is a popular misconception, the AI doesn't "remix internet images", it learns drawing patterns. In case of the most popular current technology, Stable Diffusion, the AI is taught to recognise shapes from random noise. Sort of like humans do when they scribble random pencil lines on th...