Page MenuHomeWildfire Games

Vantha ( )
User

Projects

User Details

User Since
Mar 30 2024, 10:25 PM (16 w, 6 d)

Recent Activity

Yesterday

Vantha added a comment to D4189: Additional loading screen tips.

Yes. There needs to be a linebreak character at the end of the last line.

Fri, Jul 26, 9:00 PM
Vantha added a comment to D4189: Additional loading screen tips.

Yep. Just make sure to add a newline to the end of all the files.

Fri, Jul 26, 4:02 PM
Vantha added a comment to D4189: Additional loading screen tips.

Thanks @Stan
@ShadowOfHassen you have the necessary permissions. Just click the "Update Diff" button in the top right of the page.
I'll see if I can help with D1730 as well. Maybe we can finish both now.

Fri, Jul 26, 3:24 PM

Thu, Jul 4

Vantha added a comment to D5297: Enable players to flare after winning.

Well, it was just an idea and is (of course) not technically necessary by any means.

Thu, Jul 4, 11:08 AM
Vantha updated the diff for D5297: Enable players to flare after winning.
Thu, Jul 4, 11:01 AM
Vantha added a comment to D5297: Enable players to flare after winning.
In D5297#226050, @Stan wrote:

Well just like my inline suggestion this will only work if the value needs not be updated, calling the function each time ensures the function is fresh, if you have a global, you need to ensure it's updated correctly.

Thu, Jul 4, 12:13 AM

Wed, Jul 3

Vantha updated the diff for D5297: Enable players to flare after winning.
Wed, Jul 3, 9:41 PM
Vantha added a comment to D5297: Enable players to flare after winning.

I noticed that controlsPlayer(g_ViewedPlayer) is (maybe unnecessarily) called from many points in the code (in multiple scripts) individually. Maybe we should (in a separate diff) create a global bool g_ControlsViewedPlayer that can be checked directly to avoid repetition and unnecessary function calls. What do you think?

What do you think about that?

Wed, Jul 3, 9:41 PM
Vantha updated the diff for D5297: Enable players to flare after winning.

Yeah, my bad. Not sure how I missed those.

Wed, Jul 3, 12:03 AM

Tue, Jul 2

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#226011, @Stan wrote:

Yeah been busy with other things.

No problem, I understand that. Just meant as a friendly reminder:)

Tue, Jul 2, 7:10 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

This ready to be commited, no?
I've already written the olist page for the wiki and added a reference to this revision into the official mod porting guide.

Tue, Jul 2, 6:05 PM
Vantha added inline comments to D5297: Enable players to flare after winning.
Tue, Jul 2, 6:00 PM

Fri, Jun 28

Vantha requested review of D5297: Enable players to flare after winning.
Fri, Jun 28, 5:01 PM

Thu, Jun 27

Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
Thu, Jun 27, 11:43 AM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

This would work in CList.cpp but not in COList.cpp. Specifically because of

return selected && *m_TextColorSelected ? m_TextColorSelected : m_TextColor;

This is because in olists each column has its own textcolor and textcolorselected properties (column.m_TextColor and column.m_TextColorSelected) that need to be used in place of m_TextColor and m_TextColorSelected (see COList.cpp:443). So, if we used a GetTextColor function we'd need to pass those to it as well.

Thu, Jun 27, 11:43 AM

Jun 23 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#225648, @Stan wrote:

@phosit Does it make sense to have a GetTextColor function in CList that can be used in COList to reduce duplication? Can probably be handled in a separate patch.

Indeed, It should be done in this diff.

Are you sure that's worth it? The function would execute exactly one single line and we'd need to pass TextColor, TextColorSelected, i, (and possibly DrawSelected) to it.

Jun 23 2024, 8:59 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Ok, I rebased it and changed colorSelected to textcolor_selected.

Jun 23 2024, 11:32 AM

Jun 22 2024

Vantha added a comment to D5278: Rename the "color" property of olist columns to "textcolor" .

Nice, thanks

Jun 22 2024, 11:11 AM

Jun 21 2024

Vantha added a comment to D5278: Rename the "color" property of olist columns to "textcolor" .

@phosit @sera @Stan @vladislavbelov Hey, sorry for the ping. Is there anything left to change here or in D5269? If not, can someone please review the diffs and commit them?
After that, I can also update the guide for porting mods to A27.

Jun 21 2024, 2:27 PM

Jun 19 2024

Vantha added a comment to D5278: Rename the "color" property of olist columns to "textcolor" .

This diff is pretty simple. I don't think there's much to discuss here. Is it ready to be merged?

Jun 19 2024, 7:10 PM

Jun 12 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Is there anything else left to change?

Jun 12 2024, 11:28 PM
Vantha added inline comments to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
Jun 12 2024, 9:47 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
Jun 12 2024, 9:46 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

I added D5278 as a parent and will update this diff as soon as that is committed.

Jun 12 2024, 12:09 PM
Vantha added a comment to D5278: Rename the "color" property of olist columns to "textcolor" .

After its commit https://trac.wildfiregames.com/wiki/PortA26ToA27 should be updated accordingly.

Sure, I can do that.

Jun 12 2024, 12:06 PM

Jun 10 2024

Vantha added a comment to D5278: Rename the "color" property of olist columns to "textcolor" .

Sorry for the late reply.
I just succesfully tested it. These should now be all files that need to be changed. As far as I can tell it's complete.

Jun 10 2024, 10:50 AM
Vantha updated the diff for D5278: Rename the "color" property of olist columns to "textcolor" .
Jun 10 2024, 10:46 AM

Jun 3 2024

Stan awarded D5278: Rename the "color" property of olist columns to "textcolor" a Like token.
Jun 3 2024, 5:10 PM
Vantha requested review of D5278: Rename the "color" property of olist columns to "textcolor" .
Jun 3 2024, 12:13 PM

Jun 2 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#224957, @Stan wrote:

I wonder how many files are affected.

Not that many. From a quick count, there are around 10 files with olists in the game whose column's property would have to be changed, plus around 3 files implementing the feature.

Jun 2 2024, 7:48 PM

Jun 1 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Ok. How about I leave it at "colorSelected" for now and then open a new diff to rename "color" to "textcolor" and "colorSelected" to "textcolor_selected"?

Jun 1 2024, 11:17 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Does the font color of columns have to named color though? For all other GUI elements it is textcolor. What about renaming it to this? We could then also use the name textcolor_selected.

Jun 1 2024, 5:33 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#224895, @Stan wrote:

color is the standard css name for font color.

Ok, that makes sense.
But I don't quite understand what you're getting at...

Jun 1 2024, 2:25 PM

May 31 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

The textcolor attribute of columns is just called "color", so I figured its selected variant should be called "colorSelected"

May 31 2024, 11:13 AM

May 30 2024

Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Ok, I changed it accordingly.

May 30 2024, 12:13 AM

May 29 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Sorry for not writing earlier.

In this patch i wouldn't change *::Draw at all. And i wouldn't change the signature of *::DrawList.

@phosit Why not? Wouldn't that be the most logical solution?

When you change the signature you have to change other files like CDropDown.
Also i'm shy of changing signatures in class hirarchies. When you forget to change something, it might silently select the function from the parrent.

So you are recommending to not pass m_TextColorSelected to DrawList and instead read it directly? Isn't this way a bit inconsistent when compared to the handling of all other properties?

May 29 2024, 7:53 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

In this patch i wouldn't change *::Draw at all. And i wouldn't change the signature of *::DrawList.

@phosit Why not? Wouldn't that be the most logical solution?

May 29 2024, 11:06 AM

May 25 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

What is the best solution?

In this patch i wouldn't change *::Draw at all. And i wouldn't change the signature of *::DrawList.

Are you sure? That would mean accessing m_TextColorSelected directly but all other properties (including m_TextColor) through parameters of the function.

We don't need both the functions COList:Draw() and COList:DrawOList, we can merge them into one overriding CList:Draw().

We can do that in a future diff.

I mean, it's not unrelated to this diff. The diff is editing COList::Draw(O)List anyway.

May 25 2024, 7:10 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

As far as I'm understand, the code calls the Draw() function first for each GUI object. CList::Draw() then calls CList::DrawList().

Does CList::Draw() _only_ call CList::DrawList(). Yes it does (weird/useless function).

I think the awkward calls and overrides of the two functions Draw() and DrawList() are done, so the dropdown can execute code before drawing the list.

May 25 2024, 2:34 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#224735, @Stan wrote:

@phosit any reason we're casting to unsigned int rather than size_t?

No it's better to cast to size_t.

Ok, I changed that.

Code which previously called COList::DrawList doesn't find that anymore and calls CList::DrawList instead. Which is wrong i think.

As far as I'm understand, the code calls the Draw() function first for each GUI object. CList::Draw() then calls CList::DrawList(). COList previously ìnherited Draw()and only overrode DrawList(). But now with the extra property textColorSelected that OList doesn't need, we can remove that parameter from its drawing function. I therefore made COList also override Draw() to now call the new function COList:DrawOList() instead, with parameter less than previously CList:DrawList().

May 25 2024, 11:39 AM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 25 2024, 11:39 AM

May 24 2024

Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 24 2024, 6:55 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

removed the extra parameter textColorSelected from COList::DrawList()

You didn't do that. Right?

I did. See COList.cpp line 305 and COList.h line 76.

May 24 2024, 6:47 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Ok, I wrote the page (https://trac.wildfiregames.com/wiki/GUI_-_OList) and also added the missing properties here: https://trac.wildfiregames.com/wiki/GUI_-_Properties and the reference here:https://trac.wildfiregames.com/wiki/GUI_-_Scripting_Reference

May 24 2024, 5:09 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
In D5269#224721, @Stan wrote:

Most of the GUI pages are outdated so it's very possible the page may be not created. Do you want me to create one so you can edit it?

May 24 2024, 1:51 PM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Is the code fine as it is or does something else need to be changed?

May 24 2024, 10:51 AM

May 21 2024

Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 21 2024, 7:10 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 21 2024, 6:02 PM
Vantha added inline comments to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 21 2024, 6:00 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.

removed the extra parameter textColorSelected from COList::DrawList()

May 21 2024, 5:56 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.

This should prevent the compiler warnings.

May 21 2024, 2:17 PM

May 20 2024

Vantha added inline comments to D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 20 2024, 9:36 PM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.

updated the copyright years

May 20 2024, 9:36 PM

May 19 2024

Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Ok. I removed the whitespace.

May 19 2024, 11:49 AM
Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 19 2024, 10:56 AM
Vantha added a comment to D5269: Finish implementing property "textcolor_selected" for list GUI objects.

Thanks.
Are the problematic whitespaces still there? I couldn't find them in the files, but the inline comment is gone now.

May 19 2024, 12:14 AM

May 18 2024

Vantha updated the diff for D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 18 2024, 11:59 PM
Vantha requested review of D5269: Finish implementing property "textcolor_selected" for list GUI objects.
May 18 2024, 12:01 AM

May 9 2024

Vantha added a comment to D5256: Remove Roman numerals from bot names.

Nice. Is there anything else you want me to change?

May 9 2024, 4:17 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
May 9 2024, 4:16 PM
Vantha added inline comments to D5256: Remove Roman numerals from bot names.
May 9 2024, 11:14 AM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
May 9 2024, 11:10 AM

May 8 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
May 8 2024, 11:14 PM
Vantha added inline comments to D5256: Remove Roman numerals from bot names.
May 8 2024, 2:24 PM

May 7 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
May 7 2024, 6:52 PM
Vantha added a comment to D5256: Remove Roman numerals from bot names.
May 7 2024, 6:48 PM
Vantha added a comment to D5256: Remove Roman numerals from bot names.

elexis said that this revision should not be marked as closing ticket #3307 because it doesn't resolve all of that ticket. So, remove the reference to ticket #3307 in the ticket field. Then add a comment to the description stating that this resolves part of ticket #3307.

May 7 2024, 1:49 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
May 7 2024, 1:45 PM

Apr 28 2024

Vantha updated the diff for D5256: Remove Roman numerals from bot names.
Apr 28 2024, 8:14 PM

Apr 26 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
Apr 26 2024, 9:16 AM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
Apr 26 2024, 9:16 AM

Apr 24 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
Apr 24 2024, 9:14 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.

I addressed most of the suggestions.

Apr 24 2024, 9:13 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.

Ok, updated the diff. Is this how you wanted the comments?

Apr 24 2024, 3:29 PM

Apr 23 2024

Vantha updated the diff for D5256: Remove Roman numerals from bot names.

Like this?

Apr 23 2024, 8:30 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.

I added/updated the comments. Do you also want a comment before line 95? This.CountLabel is already marked for translation at this point (and has a comment explaining what it is).

Apr 23 2024, 12:20 PM

Apr 21 2024

Vantha updated the diff for D5256: Remove Roman numerals from bot names.

Ok, nice. Made the change and added the trac ticket.

Apr 21 2024, 12:11 AM

Apr 20 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
Apr 20 2024, 12:02 AM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.

Ok, I made the change.

Apr 20 2024, 12:01 AM

Apr 19 2024

Vantha added a comment to D5256: Remove Roman numerals from bot names.

OK, and what's preferred?

Apr 19 2024, 5:34 PM

Apr 18 2024

Vantha added a comment to D5256: Remove Roman numerals from bot names.

Before this diff the "forat translation" is allways done. That's almost certainly an issue.

Not sure what you mean by this, though. What should I change?

Apr 18 2024, 6:51 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
Apr 18 2024, 6:49 PM
Vantha added a comment to D5256: Remove Roman numerals from bot names.

I don't like it when data is mutated. (With the +=)
If one wants to know what's in the variable one has to reason about every point where it get's mutated.
If it's const one only has to reason abot the initialization.
Ideally there should be a chosenName and a translatedChosenName:

const translatedChosenName = this.settings.isNetworked ? chosenName : translate(chosenName);

elexis just wrote me again :)
User visible strings shouldn't be concatinated by + (or +=).

Apr 18 2024, 3:01 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
Apr 18 2024, 2:38 PM

Apr 17 2024

Vantha added inline comments to D5256: Remove Roman numerals from bot names.
Apr 17 2024, 8:22 PM
Vantha added a comment to D5256: Remove Roman numerals from bot names.

I never saw Template Literals in this codepase. I don't object it. :)

Apr 17 2024, 8:19 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.
Apr 17 2024, 8:03 PM

Apr 8 2024

Vantha updated the diff for D5256: Remove Roman numerals from bot names.

The Mauryan emperors were sorted chronologically. I put them in alphabetical order too.

Apr 8 2024, 6:22 PM
Vantha added a comment to D5256: Remove Roman numerals from bot names.

When the AINames are empty or don't exist, the game already throws errors before the step of choosing the names.

Apr 8 2024, 1:37 PM
Vantha updated the diff for D5256: Remove Roman numerals from bot names.

changing three let to const

Apr 8 2024, 1:30 PM

Apr 7 2024

Vantha requested review of D5256: Remove Roman numerals from bot names.
Apr 7 2024, 3:29 PM