Atrik
Community Members-
Posts
653 -
Joined
-
Days Won
34
Everything posted by Atrik
-
We miss you nubs.
-
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
I've got frustrated of not being able to find 16 colors well distinct of each others, so I added an option to force only 8 colors to be used. So with this option you could only define the 8 first colors, and they will also always appear in order. customcolors.zip@Seleucids For the mod above, there are no default config, boolean options are bugged, check and uncheck to actually set to false Or here is the configuration I'll set as default for ModernGUI with a good color palette that is nice for any game size from 1v1 to 4v4. (That config can be used for Mentula's original version as well ofc, I kept them cross-compatible). -
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
In option, you define what color you want to steal, then every game you aren't this color, yours will be swaped with the player who has the one you want (As well as you customizing this color in the first place ofc) Example: Set color 1 to your favorite red, then set "Replace Own Color" to 1. -
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
Thanks Mentula. Excellent work. I used your code to replace legacy color replacements code from boongui. @Seleucids here is a version for you customcolors+.zip -
Replace line 224 in GuiInterface, "total" by "Unit". "enemyUnitsKilledTotal": cmpPlayerStatisticsTracker?.enemyUnitsKilled.Unit ?? 0
- 476 replies
-
- 1
-
-
- hotkeys
- autoassign civ
- (and 9 more)
-
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
This helps a bit for sure. -
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
I wish i could resist replying to this but i can't. Actually I can. Pointless to try to undo all your built up narration. I'm glad you consider introducing autosniping. -
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
Sorry I don't want to ruin your alt-clicking spam amazing game-play experience. -
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
Although totally automated sniping as you suggest it wouldn't be that bad. I still think that some other ideas that were requiring some user micro could be fun. -
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
I though i read somewhere that you were against autosniping. This would be the most automated form of autosniping that was ever suggested, funnily enough. -
Why 0 A.D. Units Prefer Buildings Over Enemies!
Atrik replied to leopard's topic in Gameplay Discussion
I also think that units should just totally ignore buildings in general. Would just be far less frustrating. Even if no exceptions are made for sieges it would be fine. -
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
OR, mods in a26 were aligned on a solution to add options after nani's mod and you suggested something else. Indeed I didn't write this code, but overwriting some functionality of the game such as the one that are here in option is the concept of a mod. Your approach might be slightly better in some ways but also you are asking existing mods to adapt to you instead because you didn't want to get along with using autociv purposely created global variable (that was also a easier way to add options). -
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
To be precise, this code is adding options if there are already existing one in a global variable, all mods could do this, it would also be working fine. -
mod CustomColors mod - replace default player colors
Atrik replied to Mentula's topic in Game Modification
Oh wow, I missed this. I almost was going to to try making this options myself! Thanks @Mentula. -
Guide: Running AutoCiv Mod on 0 A.D. Alpha 27 (Temporary Workaround)
Atrik replied to Tulughma's topic in Game Modification
@sarcoma indeed. I didn't introduced this bug thoughts autociv.zip Here is the corrected version. -
Side note on performance, players who have the issue, have good results leaving/rejoining a game. So something else that seems to hints to it not being just un-optimized tasks.
-
Yes I know... But that's why I was kinda asking if there is a way to make sure this will actually have a "smoothing" effect. Even if you call some async js function, will it still run it within the same frame (and therefor being totally useless)? Iirc tested it 2 days ago with a dummy 'lag' function. And calling it, was still blocking the frame until completion even if it was an async function.
-
I might even want to try to do it but : is it possible to make the selection more smooth with async js? Like would it even be possible to load minimal entity datas (maybe even without using getEntityState / using a alternative), THEN load entity datas next frame(s)? I can think of using mouse over event handler to load tooltip datas, but i guess the performance gain aren't worth pursuing, all the datas would be loaded on later frames?
-
@wraitii Probably stupid idea/question but why isn't it possible to have a kind of proxy function in the engine to execute some of the gui functions, asynchronously while a fully asynchron gui sim is not developed?
-
For having used profiler regularly for the past week, I can see absolutely 0 pattern. It can be ANY of the task that suddenly slow the game unreasonably. When it's no GC, it's state hash check, when it's not state hashcheck it's sim update, when it's not sim update, it's gui sim update. Any of them can decide to take sometimes 100+ms in a single frame. Of course it's probably linked to what's going on in game you are playing but this still hints something that isn't specific to any task in particular.
-
A27 Disadvantageous farming tech upgrade time cost for Han
Atrik replied to stevenlau's topic in Help & Feedback
Not sure I understood what you meant, but if we take n = 1, this perfectly check out as P0 = Pn: Pn = P0 * (0.9)^(n-1) P1 = P0 * (0.9)^(1-1) P1 = P0 * (0.9)^0 P1 = P0 * 1 This is how I though confident the ai didn't hallucinate . In that case Pn is indeed the correct worker n? -
Guide: Running AutoCiv Mod on 0 A.D. Alpha 27 (Temporary Workaround)
Atrik replied to Tulughma's topic in Game Modification
-
A27 Disadvantageous farming tech upgrade time cost for Han
Atrik replied to stevenlau's topic in Help & Feedback
Interesting question I only looked it up now. The template indicate a diminishing return of 0.9. Asking a llm to translate the code in ResourceSupply.js it helps to define the formula: (omg can't make laTex code insert, seems not working) Pn = P0 * (0.9)^(n-1) Where: Pn is the productivity of the nth worker P0 is the productivity of the first worker So for the 5th gatherer for example, given that base gathering is 0.5 and no upgrades: P5=0.32805
