-
Posts
80 -
Joined
-
Last visited
-
Days Won
1
Everything posted by man_s_our
-
off-course you do. because you speak without any Idea how is the game developed.
-
realistically. to balance the ranged units you need to give them higher spread. especially for non promoted units. in most battles, archers used to need carpet shooting entire areas to be able to kill enemy soldiers. while they didn't need much arrow hits to kill someone.
-
in my long term plans for my mod I want to add a component that takes care of all social related stuff. starts from family and tribes/races and introduces religions to form basics for loyalty and bonuses ...etc
-
I found that map now on 0AD fandom. here is the download link: https://www.dropbox.com/sh/7uss4ew7uhp8ik7/AADDCrms-a7YReJ56s3NxRsTa?dl=0
-
in 2019 I once downloaded and edited a 0ad map that has north east africa (including east libya) and eastern Europe and persia. but unfortunately I lost the computer back then.
-
I thought about something similar today (but for now my priority is patching UnitAI to handle separation of horse/rider entities) my idea was that at 50%+ health the units aren't healable but have some positive health change. at 50%-25% they're healable, have no health change and are weaker (especially movement speed). at 25% or less the template change to dead looking template and have negative health change which makes them need aids or otherwise they die. maybe even make them capturable as captives in that state? edit: if you want a more realistic strategic effects from injuries, you can make the injured and captured soldiers keep consuming population to force players do captives exchanges.
-
animals getting weight is easy if you have the models. give them xp tickle and set the bigger unit as promotion units.
-
after I built A27 and executed pyrogenesis I got these two results: when I placed it in system (debian, pyrogenesis in /usr/games and data in /usr/share/games/0ad and .so files in /usr/lib) it gave me this error: CreateDirectories: failed to mkdir /usr/data (mode 448) Function call failed: return value was -110300 (Insufficient access rights to open file) Location: file_system.cpp:168 (CreateDirectories) Call stack: (0x564f5ee82375) pyrogenesis(+0x673375) [0x564f5ee82375] (0x564f5ee31d21) pyrogenesis(+0x622d21) [0x564f5ee31d21] (0x564f5ee337d3) pyrogenesis(+0x6247d3) [0x564f5ee337d3] (0x564f5ee31f33) pyrogenesis(+0x622f33) [0x564f5ee31f33] (0x564f5ee44baa) pyrogenesis(+0x635baa) [0x564f5ee44baa] (0x564f5ee44822) pyrogenesis(+0x635822) [0x564f5ee44822] (0x564f5ee447c7) pyrogenesis(+0x6357c7) [0x564f5ee447c7] (0x564f5ee5926e) pyrogenesis(+0x64a26e) [0x564f5ee5926e] (0x564f5eadb882) pyrogenesis(+0x2cc882) [0x564f5eadb882] (0x564f5e8c69d2) pyrogenesis(+0xb79d2) [0x564f5e8c69d2] (0x564f5e8b2688) pyrogenesis(+0xa3688) [0x564f5e8b2688] (0x7f9dba6e0d0a) /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f9dba6e0d0a] (0x564f5e8c3aca) pyrogenesis(+0xb4aca) [0x564f5e8c3aca] errno = 13 (Insufficient access rights to open file) OS error = ? (C)ontinue, (S)uppress, (B)reak, Launch (D)ebugger, or (E)xit? trying to use -writableRoot always give me error: Skipping file '/home/user/.local/share/0ad' which does not have a mod file extension. when I run it inside binaries it works fine.
-
I edited some meshes using blender to resize them to half in order to generate ones for human and animal infants. when I tested the mesh on an archer I found it instead of changing the size of actor it just made it look ugly. what am I doing wrong here. here is a screenshot showing the comparison:
-
Tips: Make your citizens consume food...
man_s_our replied to Grenefolc's topic in Tutorials & Guides
I have components for that but they aren't fully finished yet. although they're enough if you want to make it for players only use it. PS: in my WIP mod food resources are devided. so, you need few customizations to use it with the public mod. edit: you also need the custom unit ai for the purpose of the units break for launch don't break the cammands' series. MeatSupplies.js VeganSupplies.js WaterSupplies.js UnitAI.js -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
I already planned to do it when I complete the TODO list. the same with the hunger script when finishing the last bug. -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
this attack.js patch has the increased spread for archers when the horse is moving. Attack.js -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
@Freagarach changelog: riders' orientation is now the same with the horse most the time when the horse is walking (turretable.js) the horse will automatically go to the targeted unit so that the rider attack it instead of having to make 2 seperate orders. the cavalry units are automatically using hit-run tactics (can be disabled by replacing "range.max / 2" in the line 5087 by range.min) TODO: fix the bugs related to gathering (when gather order issued you can't stop it) UnitAI.js Turretable.js -
is there any tutorial about modding GUI such as unit's buttons? I would like also to have a list of hardcoded functions like unit motion and position functions.
-
Soft Battalions [General Thread]
man_s_our replied to Lion.Kanzen's topic in Game Development & Technical Discussion
I would like to see the ability of recruiting commanders that has their own formations, you can assign units for them and having the ability of making them controlled by AI to minimize micros. -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
@Freagarach this is what I reached till the moment. couldn't find the reason why melee units can't attack while turretting horses. UnitAI.js -
===[Feature Request]== AI resignation
man_s_our replied to Yekaterina's topic in Game Development & Technical Discussion
I suggest that this only happens when AI is ran out of resources and soldiers. because he can't do anything else to resist enemies. except if there is still potential allies. -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
till now the problems I got is: when order the unit to gather while it's riding a horse (propably will be solved after editing more UnitAI functions) if I order a melee unit to ride a horse and send it to fight it doesn't attack the enemies. I don't know which function that will return the current movement speed (instead of max speed) to use it for archer's spread. (solved) -
(solved) changed coordinates problem
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
I fond the problem was in the need to turn the args into dictionary first. this code solves the problem: UnitAI.prototype.Walk = function(x, z, queued, pushFront) { let mov = 1; let cmpTurretable = Engine.QueryInterface(this.entity, IID_Turretable); if (cmpTurretable) { mov = 0; let tur = cmpTurretable.HolderID(); if (tur) { let cmpTimer = Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer); if (cmpTimer) { var data = { "x": x, "z": z, "queued": queued, "pushFront": pushFront }; cmpTimer.SetTimeout(tur, IID_UnitAI, "Walkt", 100, data); } } else mov = 1; } if (mov) { if (!pushFront && this.expectedRoute && queued) this.expectedRoute.push({ "x": x, "z": z }); else this.AddOrder("Walk", { "x": x, "z": z, "force": true }, queued, pushFront); } }; UnitAI.prototype.Walkt = function(data, lateness) { let x = data.x; let z = data.z; let queued = data.queued; let pushFront = data.pushFront; if (!pushFront && this.expectedRoute && queued) this.expectedRoute.push({ "x": x, "z": z }); else this.AddOrder("Walk", { "x": x, "z": z, "force": true }, queued, pushFront); }; -
I was trying to implement the feature of seperate entities for horse riders but I got a problem and didn't knew what the thing that keeps changing coordinates. the logs gave me: the horse 7079 got the order from 7085, x = 608.2567138671875 z = 852.1669311523438 7079 ordered to Walk to x = 841.0175601990993, z = 100 the function is: UnitAI.prototype.Walk = function(x, z, queued, pushFront) { let mov = 1; log(this.entity + " ordered to Walk to x = " + x + ", z = " + z); let cmpTurretable = Engine.QueryInterface(this.entity, IID_Turretable); if (cmpTurretable) { mov = 0; log(this.entity + " Turretable"); let tur = cmpTurretable.HolderID(); log(tur + " is Turret"); if (tur) { let cmpTimer = Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer); if (cmpTimer) { log("the horse " + tur + " got the order from " + this.entity + ", x = " + x + " z = " + z); cmpTimer.SetTimeout(tur, IID_UnitAI, "Walk", 100, x, z, queued, pushFront); } } else mov = 1; } if (mov) { if (!pushFront && this.expectedRoute && queued) this.expectedRoute.push({ "x": x, "z": z }); else this.AddOrder("Walk", { "x": x, "z": z, "force": true }, queued, pushFront); } }; any ideas?
-
so, I added some features in my mod (WIP) that included units being hungry/thirsty and supplying units. the hungry units needs gathering food or otherwise they start losing their health. the same (but higher rate) goes for thirsty units. this requires that units automatically go gather their needed supplies but I wonder whether there is predefined functions for this or I need to define a new function that looks for the near supply units and start gathering it.
-
extended players quantity
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
good to know this feature is already planned -
extended players quantity
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
the idea is not about having many players. but about being able to divide leadership between multiple commanders instead of having only one leader for the entire army. -
extended players quantity
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
this Idea is good for increasing players without slowing down the game since max units related to civs number and not players number -
extended players quantity
man_s_our replied to man_s_our's topic in Game Development & Technical Discussion
they play as different sides, right? what I meant is being able to play as commanders in one nation (not just allies) and share the resources and such things. but I think it can be edited through JS (by editing deplomacy and gui and such)