Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3XXXLOlympic GamesXXL EditorToolsOff-TopicXXL RomasteredXXL 2 RemasteredOther GamesModsCaesar's ChallengeUnfair XXLPatchesFan ArtPersonal ArtSpeedrunningMediaRandomizerBETA RomeHSKALPresence AdrienPresence SPQRPresence Mr. RubinshteinSupport Bot Helpdesk

#hskal

pegperegogaucho
I believe there is a way to compile it (linux programs) without much hassle on windows, I believe it is named "MSYS"...
pegperegogaucho
Makes sense!
hesopesomeso
Well about that... does it support C++26 & gcc extensions? :KEKW:
pegperegogaucho
I'm not sure, but if it all compiles with official gcc, there should be no problems? :FrogThinking:
hesopesomeso
Not sure how you'd go about that though, it would have to be some kind of a translation layer from linux -> win.
hesopesomeso
The code is very much not cross platform
pegperegogaucho
You will get it working, heso!
pegperegogaucho
Also, what the hell do you need c++26 for? It's not even 2026 yet :KEKW:
hesopesomeso
You never know :KEKW:
hesopesomeso
For Windows? Yeah, definitely..... later :Obelul:
hesopesomeso
I'll provide build instructions for linux at the very least
adrientd
I remember when I was working on a [Warrior Kings engine rewrite](https://github.com/AdrienTD/wkbre2), at some point I had templated functions to make them work with both server-side and client-side objects (it's a multiplayer game). But that just made things more complicated than it should and problems (slower compile times, IDE suggestions not working well, having to put code in headers...). It was simplier to just have a common class, derive from that class server and client variants, and make functions use the common class if they can be used for both server and client.
pegperegogaucho
Something that I observed with templates is that they propagate: you have a templated class, write functions for it, which obviously need the template, and then the amount of templated stuff keeps on increasing further down :Obelul: For example, in the hsk codebase you can see that every kclass is templated for a kmodule
hesopesomeso
Yep, it's like a virus :Obelul: Not anymore though, I've since removed all templates from kal classes.
pegperegogaucho
What was the idea behind that?
hesopesomeso
You grab your context from the kmodule. You need a service object? From the kmodule. But wait, what if the service object is from a different game now? Or different engine version? Good that it's templated, I can just return that!
hesopesomeso
Or you'd want to make your own kmodule with specific things, etc. But with an editor, it kinda defeats the point...
hesopesomeso
Each kmodule would be a different game, or editor, etc. And with templates you could accommodate for that.
pegperegogaucho
And what did you replace this with?
hesopesomeso
a simple kmodule interface, and then editor+game implemented in different cpp files (for the kmodule interface).