
Atrik
Community Members-
Posts
493 -
Joined
-
Days Won
23
Everything posted by Atrik
-
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 -
@Emacz, you should do this, it will help you NOT wast time on very lame syntax mistakes. As well, modifying the templates, you will always work with objects and arrays. So it would be useful for you to memorize their structure.
-
MainMenu > LocalRating > 'BuildList' button somewhere.
-
Seems like the gitea is down every once in a while...
- 1 reply
-
- 1
-
-
Guide: Running AutoCiv Mod on 0 A.D. Alpha 27 (Temporary Workaround)
Atrik replied to Tulughma's topic in Game Modification
autociv.zip Here is autociv with overlay stats, as well as option compatibility with other mods fixed. (I was asked to do this for a while lol) -
"requirements": { "entity": [{ "class": "Village", "number": 25 }, { "class": "Town", "number": 2 }] } More likely to work like this but untested.
-
@Stan` thanks for the explanations and instructions. I still feel like I don't understand too much what I'm doing, but I did follow your instructions. I would add to the wiki if theses tips are added: to make sure public and mod mods contents are unziped, as-well as placing your mod in binaries/data/mods/ if you are used to place them somewhere else ofc. After this I was able to recompile the shaders for mod and public mods. But when trying for my mod, I can't do it. python3 source/tools/spirv/compile.py -d binaries/data/mods/mod binaries/data/mods/public binaries/data/mods/moderngui source/tools/spirv/rules.json binaries/data/mods/moderngu Trying to input mod and public as dependency throw me usage error: usage: compile.py [-h] -d DEPENDENCY [-p PROGRAM_NAME] [-j JOBS] input_mod_path rules_path output_mod_path compile.py: error: unrecognized arguments: binaries/data/mods/moderngui python3 source/tools/spirv/compile.py -d binaries/data/mods/mod binaries/data/mods/moderngui source/tools/spirv/rules.json binaries/data/mods/moderngui Trying with only mod or only public as dependency fails: Failed to run command: glslc -x glsl --target-env=vulkan1.1 -std=450core -I binaries/data/mods/moderngui/shaders/glsl -I binaries/data/mods/mod/shaders/glsl -fshader-stage=vertex -O binaries/data/mods/moderngui/shaders/glsl/model_common.vs -DIGNORE_LOS=1 -DMODE_SHADOWCAST=1 -DPASS_SHADOWS=1 -DRENDER_DEBUG_MODE=RENDER_DEBUG_MODE_NONE -DREQUIRE_ALPHA_GEQUAL=0.4 -DSHADOWS_CASCADE_COUNT=1 -DUSE_SHADOW=1 -DUSE_SHADOW_PCF=1 -DUSE_SHADOW_SAMPLER=1 -DUSE_TRANSPARENT=1 -DUSE_SPIRV=1 -DSTAGE_VERTEX=1 -o binaries/data/mods/moderngui/shaders/spirv/model_solid_tex_93abd5df7e11b5eb0eaca7c7664483806526d883ca0a0c39319cffd6de61462a.vs.spv -g multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 406, in build_combination reflection = compile_and_reflect( File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 160, in compile_and_reflect ret, out, err = execute([*command, "-g"]) File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 76, in execute process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 971, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) [...] FileNotFoundError: [Errno 2] No such file or directory: 'glslc' """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 705, in <module> run() File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 685, in run build( File "/home/pc/Programs/0ad/0ad-0.27.0/source/tools/spirv/compile.py", line 592, in build result.get() File "/usr/lib/python3.10/multiprocessing/pool.py", line 774, in get raise self._value FileNotFoundError: [Errno 2] No such file or directory: 'glslc' The only thing I got it to build the problematic "model_solid_player" was then you copy past shaders folder into moderngui then run the compile script with the mod itself as dependency. But that doesn't solve the initial problem, and nothing changed. python3 source/tools/spirv/compile.py -d binaries/data/mods/moderngui binaries/data/mods/moderngui source/tools/spirv/rules.json binaries/data/mods/moderngui Program "model_solid_tex" Building. Program "model_solid_player" Building. [...] I also tried to read the compile script but ofc I'm not good enough to conclude anything from it... Can you see what I missed?
-
You shouldn't need a huge screen with the a27's ModernGUI, I adapted some features to smaller screens, a few elements get resized automatically and you have a great deal of options to shrink or remove some on-screen features. I did my best to improve this aspect over a26 gui mods.
-
@zzshahzz from the screenshots I think you have the mods folder at the wrong place? It should be in ~/Library/Application\ Support/0ad/ So, basically you should have ~/Library/Application\ Support/0ad/mods/ModernGUI/ [the mod content directly here] On @wowgetoffyourcellphone's screenshot, I believe he was showing you that you are NOT supposed to have ~/Library/Application\ Support/0ad/mods/ModernGUI/ModernGUI/ [mod content]