Classic-Burger
Community Members-
Posts
484 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Classic-Burger
-
OkOk understand that choice is used to have a list of options. https://stackoverflow.com/questions/39578301/why-does-xschoice-allow-multiple-different-xselement-in-the-resulting-xml Sorry for asking such basic questions, there are tags I've never had the pleasure of using. https://www.mendix.com/blog/xml-choice-elements-and-xml-to-domain-mappings/ I've just been copying some elements and understanding the logic. Like heal.js or attack.js https://www.liquid-technologies.com/Reference/XmlStudio/XsdEditorNotation_Choice.html
-
The economic ones yes.
-
So my goal is. Create a compact UnitAI~convert.js that only modifies or adds functions for the "Convert" command, integrating with Convert.js I need to modify the healer XML for testing. <Convert> <MaxFaith>100</MaxFaith> <CurrentFaith>100</CurrentFaith> <FaithRegenRate>1</FaithRegenRate> <ConversionCost>50</ConversionCost> <CooldownTime>5000</CooldownTime> <ChancePerSecond>0.05</ChancePerSecond> <Range>20</Range> <ConvertibleClasses>Infantry Cavalry Support</ConvertibleClasses> </Convert>
-
-
I have to make a list of corrections, I only corrected the first line of convert.js I'm not sure if UnitAi.js is correct, if I'm not missing anything it's a very complex file. I'm lost with the commands.js suggestion but I need to look into it in depth. I don't know if I should see what's in input.js I don't know the structure yet, I'm following the heal.js trail/path. I don't know if I should clear the cache.
-
You have to investigate the templates, I guess.
-
I am mostly focused on basic implemention of component/functions. I was thinking of a game of rock, paper, scissors. The Priest = Religión and Myths etc. The Philosopher= Rational and metaphysical thought and elemental natural social. Then Politician= Aristotelianism, platonism, despotism, republic oligarchs, democracy and tyrants. The politician defeats the philosopher and converts through bribery. Politician is defeated by Religion, Priest handles more masses than the politician, the conversion with villagers through myth and faith. The philosopher defeats the religious by conventionalizing myth and metaphysics and convinces through oratory but it is a defeat. Priest>Politician>Philosopher Priest uses faith. Politician uses metal. Philosopher uses oratory. These are the types of control (mind and ideas) through discourse and influence. Conquest without struggle. It's an idea for fighting between units that convert. Priest bonus vs support units ( villagers and slaves). Politician Bonus vs Elite & Champion military. Philosopher bonus vs Citizen Soldier B & A, merchants. It's an idea...
-
Look at the animal templates and see if they have a tag. template_unit_fauna https://gitea.wildfiregames.com/0ad/0ad/src/branch/main/binaries/data/mods/public/simulation/templates/template_unit_fauna.xml
-
I'm not there yet. Clean my code from another file, how? The interesting log. ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty ERROR: RelaxNGValidator: Failed to compile schema ERROR: JavaScript error: simulation/helpers/Player.js line 36 cmpPlayerManager is null LoadPlayerSettings@simulation/helpers/Player.js:36:19 Stan said: Your template is expecting a choice tag And not finding it <optional> </optional> <optional>{youroptionalelement}</optional> Basically it's useful if you want to add non default behaviours e.g for instance you might say that conversion rate is always 1, and someone might want to override it, but you don''t want to write ConversionRate in all templates. You probably don't need NonConvertibleClasses if you have a whitelist with ConvertibleClasses. That's what Stan said. <Convert> <MaxFaith>100</MaxFaith> <CurrentFaith>100</CurrentFaith> <FaithRegenRate>1</FaithRegenRate> <ConversionCost>50</ConversionCost> <CooldownTime>5000</CooldownTime> <ChancePerSecond>0.05</ChancePerSecond> <Range>20</Range> <ConvertibleClasses>Infantry Cavalry Support</ConvertibleClasses> <NonConvertibleClasses>Hero Mechanical Siege Structure Ship</NonConvertibleClasses> </Convert> Healer XML. Convert tag. I will upload the files when I can.
-
For now it is like this, not all factions will be like this.
-
For now it will be cosmetic.
-
It's going to be fun. Now we have to specialize both.
-
The capture system needs to be improved first, as it hasn't received many changes since A16. There should be a cooldown and an assimilation process. The Dacians learned a little about making siege machinery from the Romans.
-
There should be a single definition for when it is not part of a civ, i.e. neutral.
-
Already committed?
-
Until it is committed it is not known.
