Jump to content

Conversion system round 2 CmpConvert


Recommended Posts

7 hours ago, Grapjas said:

At the bottom half of Helpers/Player.js there are some functions that might help clean up your code a bit.

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.

Edited by Classic-Burger
Link to comment
Share on other sites

Would be easier if you uploaded your project on github or something. 

You also need function Convert() {} on line 1, which is likely to solve alot of issues.

 

1 hour ago, Classic-Burger said:

Clean my code from another file, how?

I meant you can improve your code by using the tools available :)

Edited by Grapjas
  • Thanks 1
Link to comment
Share on other sites

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...

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...