Jump to content

LordStark

Community Members
  • Posts

    116
  • Joined

  • Last visited

Posts posted by LordStark

  1. When I went to check the error logs they had already been cleared due to me starting the game after deleting the player file. The game is working again, so I made the adjustments again and the second time around the game started but the changes I made does not seem to limit the number of lords I can build.

    Vassal_b:

    Quote

    <?xml version="1.0" encoding="utf-8"?>
    <Entity parent="template_unit_infantry_melee_swordsman">
      <Auras datatype="tokens">
        units/heroes/anglo_loyalty
     </Auras>
       <Cost>
            <Population>1</Population>
    <Resources>
    <food>1000</food>
    <wood>1000</wood>
    <metal>1000</metal>
    <stone>1000</stone>
    </Resources>
          </Cost> 
    <Attack>
        <Melee>
              <AttackName context="Name of an attack using a double-edged sword.">Sword</AttackName>
              <Damage>
                <Hack>2</Hack>
              </Damage>
              <MaxRange>3</MaxRange>
              <PrepareTime>375</PrepareTime>
              <RepeatTime>750</RepeatTime>
              <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
            </Melee>
          </Attack>
      <Identity>
        <Civ>anglo</Civ>
        <SelectionGroupName>units/anglo/vassal_b</SelectionGroupName>
        <GenericName>Nobleman</GenericName>
        <SpecificName>Feudal Lord</SpecificName>
        <Icon>units/anglo_infantry_swordsman.png</Icon>
        <VisibleClasses datatype="tokens">Noble</VisibleClasses>
      </Identity>
    <ResourceGatherer disable=""/>
      <Promotion>
        <Entity>units/anglo/vassal_a</Entity>
      </Promotion>
    <Health>
            <Max>600</Max>
          </Health>
      <VisualActor>
        <Actor>units/anglo/vassal_b.xml</Actor>
      </VisualActor>
      <Resistance>
            <Entity>
              <Damage>
                <Hack>4</Hack>
                <Pierce>4</Pierce>
              </Damage>
            </Entity>
          </Resistance>
    <Population>
            <Bonus>10</Bonus>
     </Population>
    <Builder>
      <Rate>1.0</Rate>
      <Entities datatype="tokens">
          -structures/{civ}/civil_centre
              -structures/{civ}/military_colony
              -structures/{civ}/house
              -structures/{civ}/storehouse
              -structures/{civ}/farmstead
              -structures/{civ}/field
              -structures/{civ}/corral
              -structures/{civ}/dock
              -structures/{civ}/barracks
              -structures/{civ}/stable
              -structures/{civ}/forge
              -structures/{civ}/temple
              -structures/{civ}/market
              -structures/{civ}/outpost
              -structures/{civ}/sentry_tower
              -structures/{civ}/defense_tower
              structures/{civ}/fortress
              -structures/wallset_palisade
              -structures/{civ}/wallset_palisade
              -structures/{civ}/wallset_siege
              -structures/{civ}/wallset_stone
              -structures/{civ}/wonder
      </Entities>
    </Builder>
    </Entity>
     

    And player:

    Quote

    <?xml version="1.0" encoding="utf-8"?>
    <Entity>
      <AttackDetection>
        <SuppressionTransferRange>80</SuppressionTransferRange>
        <SuppressionRange>160</SuppressionRange>
        <SuppressionTime>60000</SuppressionTime>
      </AttackDetection>
      <BattleDetection>
        <TimerInterval>200</TimerInterval>
        <RecordLength>12</RecordLength>
        <DamageRateThreshold>0.04</DamageRateThreshold>
        <AlertnessBattleThreshold>4</AlertnessBattleThreshold>
        <AlertnessPeaceThreshold>0</AlertnessPeaceThreshold>
        <AlertnessMax>8</AlertnessMax>
      </BattleDetection>
      <EntityLimits>
        <Limits>
          <Animal>50</Animal>
          <CivilCentre>1</CivilCentre>
          <Fortress>10</Fortress>
          <Gladiator>0</Gladiator>
          <Hero>1</Hero>
          <Juggernaut>1</Juggernaut>
          <Library>1</Library>
          <Lighthouse>1</Lighthouse>
          <Monument>5</Monument>
          <Palace>2</Palace>
        <Noble>2</Noble>
        <Lord>1</Lord>

          <Pillar>0</Pillar>
          <PyramidLarge>2</PyramidLarge>
          <PyramidSmall>4</PyramidSmall>
          <TempleOfAmun>1</TempleOfAmun>
          <TempleOfVesta>1</TempleOfVesta>
          <Theater>1</Theater>
          <Tower>30</Tower>
          <WarDog>20</WarDog>
          <Wonder>1</Wonder>
        </Limits>
        <LimitChangers>
          <Gladiator>
            <Amphitheater>15</Amphitheater>
          </Gladiator>
          <Juggernaut>
            <PtolemyIV>4</PtolemyIV>
          </Juggernaut>
          <Pillar>
            <Ashoka>5</Ashoka>
          </Pillar>
        </LimitChangers>
        <LimitRemovers>
          <CivilCentre>
            <RequiredTechs datatype="tokens">phase_town</RequiredTechs>
          </CivilCentre>
        </LimitRemovers>
      </EntityLimits>
      <Identity>
        <Civ/>
        <GenericName>Player</GenericName>
        <Classes datatype="tokens">Player</Classes>
        <Undeletable>true</Undeletable>
      </Identity>
      <Player>
        <BarterMultiplier>
          <Buy>
            <food>1.0</food>
            <wood>1.0</wood>
            <stone>1.0</stone>
            <metal>1.0</metal>
          </Buy>
          <Sell>
            <food>1.0</food>
            <wood>1.0</wood>
            <stone>1.0</stone>
            <metal>1.0</metal>
          </Sell>
        </BarterMultiplier>
        <SharedLosTech>unlock_shared_los</SharedLosTech>
        <SharedDropsitesTech>unlock_shared_dropsites</SharedDropsitesTech>
        <SpyCostMultiplier>1.0</SpyCostMultiplier>
      </Player>
      <ResourceTrickle>
        <Rates>
          <food>0.0</food>
          <wood>0.0</wood>
          <stone>0.0</stone>
          <metal>0.0</metal>
        </Rates>
        <Interval>1000</Interval>
      </ResourceTrickle>
      <Sound>
        <SoundGroups>
          <defeated>interface/alarm/alarm_defeated.xml</defeated>
          <defeated_ally>interface/alarm/alarm_defeated_ally.xml</defeated_ally>
          <defeated_enemy>interface/alarm/alarm_defeated_enemy.xml</defeated_enemy>
          <no_idle_unit>interface/alarm/alarm_no_idle_unit.xml</no_idle_unit>
        </SoundGroups>
      </Sound>
      <StatisticsTracker>
        <!-- The summary screen and lobby rankings expect these classes, but additional classes may be added. -->
        <UnitClasses datatype="tokens">
          Cavalry
          Champion
          Domestic
          FemaleCitizen
          Hero
          Infantry
          Ship
          Siege
          Trader
          Worker
        </UnitClasses>
        <StructureClasses datatype="tokens">
          Economic
          CivCentre
          Fortress
          House
          Military
          Outpost
          Wonder
        </StructureClasses>
      </StatisticsTracker>
      <TechnologyManager/>
    </Entity>
     

     

  2. Thanks, this didn't work for me - and it actually prevented the game from starting. Can I just confirm that these are the only changes I need to make:

    So in my Vassal_b units file I put the following code:

    Quote
    <Identity>
      <GenericName>Cavalry Crossbowman</GenericName>
      <VisibleClasses datatype="tokens">Noble</VisibleClasses>
      </Identity>

    And then in templates\special\player\player I add:

    Quote
    <Limits>
     

    <Noble>3</Noble>

    <Animal>50</Animal>

      <CivilCentre>1</CivilCentre>
      <Gladiator>0</Gladiator>
      <Hero>1</Hero>
      <Juggernaut>1</Juggernaut>
      <Library>1</Library>
      <Lighthouse>1</Lighthouse>
      <Monument>5</Monument>
      <Palace>2</Palace>
      <Pillar>0</Pillar>
      <PyramidLarge>2</PyramidLarge>
      <TempleOfAmun>1</TempleOfAmun>
      <TempleOfVesta>1</TempleOfVesta>
      <Theater>1</Theater>
      <WarDog>20</WarDog>
      <Wonder>1</Wonder>
      </Limits>

     

    And this will result in me only able to appoint three Vassal Lords at a time?

    Please note the difference in file path (special/player/player) which I assume is because I have a different version of the game - Alpha 25.

  3. Hi team,

    I have really put a lot of effort in to trying to figure this out myself but I am at a complete loss and suspect what I want to do is impossible with the engine.

    As far as I can tell you can limit the number of times a unit can be built in a game. You can also make the unit a hero - resulting in it only being able to be built once. But you can't edit "hero" parameters. Even if you could modify hero and set population cap to 5, it would work across all the heros and so would limit you to 5 heros combined - rather than 5 of your particular unit.

    The problem is, I have the following units that I need to impose limits on:

    Lord x 1 (represents you, the player).

    Lessor Lord x 3

    Bailiff x 2

    Sheriff x 1

    Lady x 1 ("marriage" upgrade for female citizen)

    Marshal x 1

    Steward x 1

    Master at Arms x 1

    Captain of House Guard x 1

    I don't mind not having the declared as a hero. I just need to find a way to limit the number of the units and have them able to be retrained if they day (actually all these units are appointed (upgraded) from elite citizens or Men at Arms (which are themselves appointed from citizens). 

    Is there any way to do it?

  4. I pressed ctrl + J and a new error occured:

    Quote

    ERROR: art/meshes/props/castle.dae: Assertion not satisfied (line 570): failed requirement "mesh has single set of polygons"

    ERROR: Could not load mesh 'art/meshes/props/castle.dae'

    ERROR: CObjectEntry::BuildVariation(): Model art/meshes/props/castle.dae failed to load

    ERROR: Error loading object variation (actor: art/actors/props/special/eyecandy/crate_test.xml)

    ERROR: art/meshes/props/castle.dae: Assertion not satisfied (line 570): failed requirement "mesh has single set of polygons"

    ERROR: Could not load mesh 'art/meshes/props/castle.dae'

    ERROR: CObjectEntry::BuildVariation(): Model art/meshes/props/castle.dae failed to load

    ERROR: Error loading object variation (actor: art/actors/props/special/eyecandy/crate_test.xml)

    ERROR: art/meshes/props/castle.dae: Assertion not satisfied (line 570): failed requirement "mesh has single set of polygons"

    ERROR: Could not load mesh 'art/meshes/props/castle.dae'

    ERROR: CObjectEntry::BuildVariation(): Model art/meshes/props/castle.dae failed to load

    ERROR: Error loading object variation (actor: art/actors/props/special/eyecandy/crate_test.xml)

    ERROR: art/meshes/props/castle.dae: Assertion not satisfied (line 570): failed requirement "mesh has single set of polygons"

    ERROR: Could not load mesh 'art/meshes/props/castle.dae'

    ERROR: CObjectEntry::BuildVariation(): Model art/meshes/props/castle.dae failed to load

    ERROR: Error loading object variation (actor: art/actors/props/special/eyecandy/crate_test.xml)

    I'm unsure if I can post the model to a public forum because I bought it online - it is not my personal model. Although I am developing my skill in blender (very slowly as also working on learn javascript - which I find a lot easier).

  5. Hey team,

    I get the following error when I try and look at my castle in the scenario editor:

    Quote

    ERROR: art/meshes/props/castle.dae: Found too many possible objects to convert - try adding the 'export' property to disambiguate one

    ERROR: art/meshes/props/castle.dae: Couldn't find object to convert

    ERROR: Could not load mesh 'art/meshes/props/castle.dae'

    ERROR: CObjectEntry::BuildVariation(): Model art/meshes/props/castle.dae failed to load

    ERROR: Error loading object variation (actor: art/actors/props/special/eyecandy/crate_test.xml)

    Here is the castle:

    3D model medieval castle 2 VR / AR / low-poly | CGTrader

    I used this guide but changed the name to "castle.dae" instead:

    Basic3DImplementation – Wildfire Games

    Very confused by the "too many possible objects to convert"... it is just one castle...

  6. Hi guys,

    Some I am learning Blender and Java simultaneously. I'm a slow learner but highly motivated.

    One of the things I have been working on is a model of a village.

    • I made a flat circle which I plan to texture as "dirt" once i'm finished.
    • Around the circle of "dirt" I have a circle of cylinders that look like upright pencils - which I plan to texture as a palisade wall.
    • From there I wanted to add some of the buildings already in game as props at various points on the "dirt" and from within the enclosure.

    In my mod you can appoint a bailiff who I intend to give the ability to build this rather large enclosure - a sort of ready made village which can be upgraded with a few houses and a couple of other things.

    It occurs to me I might run in to the following issues:

    1. I realised the game is going to end up treating this village as one large structure - that means that villagers will not be able to walk around inside the enclosure. Because the game will not treat it as an enclosure, but rather one big building. Or could the wall be treated as a prop with its own footprint and still be part of an overall structure. Am I correct in thinking that because the game will think my big village is actually a big structure, it this means I cannot do what I want?

    2. Assuming there is a way around issue number 1, would the game be able to recognise each individual piece of wall so that you can attack one part and destroy one part without destroying the entire enclosure/wall?

    3. Doing this basic modelling seems surprisingly easy. It did not take me long to figure out how to make an upright "pencil" for the palisade. I also learned how to make a circular array - making a perfectly nice circle. But I had to leave a gap where a gate would be. As i'm a novice at using blender, is it likely that I can easily figure out away to put a gate on the enclosure or is this an especially hard thing to do that requires an expert? 

    The stone castles are build by the noblemen you grant Lordships to. The Bailiffs build the villages and the Lords build castles. This is ultimately the idea I am trying to implement (but with wooden palisade

    sshot0014.jpg

  7. Thank you, this is amazing. Could these two documents and the path page be stickied?

    Path page: simulation in ps/trunk/binaries/data/mods/public – Wildfire Games

    When I came to these forums I read the tutorials that I could find and often use the search function. I really find what I am looking for - but you guys have been amazing. I think these two documents would have substantially helped me and cut down on all my questions (and so saved you all some time).

    I have decided to learn Java so maybe one day I can help with the game - I am on my second lesson and loving it!

    Really appreciate all the help.

    • Like 1
  8. Thanks for your reply. I did not quite understand what you meant - where would I write -building? 

    Also, do you mean that exact code or do you mean <Builder disable=""/> which is the code that I use to completely remove a build option from a unit?

    How would I change the inheretence? Apologies for all the questions, i'm really trying to figure this stuff out on my own and I often use the search function before asking a question.

  9. So I did the quick blender tutorial where you literally open it up, uv map the default object, save it and then add a texture before putting it ingame. This got me pretty excited as it was very easy to do.

    So now I want to take one of the towers in the game (or possibly in another mod) and combine it with three others (one of them is different from the other three) - effectively making big 2x2 tower. I successfully imported some models into blender and joined them together (feels like a real accomplishment for me). However, I don't know how to apply the textures. I now have one model but I don't have one text - is there any easy fix for this?

    Or am I trying to do something that is far too advanced for my skill level?

  10. Sorry, I edited my post. I have been playing the anglo saxon side so much that I forget there are other sides and those fortresses do look somewhat castle like.

    However, I meant for the anglo saxons - it seems that while William the Conquer built lots of castles after his invasion, my reading on the subject suggests that there were castles before the invasion but that they were not too common.

    Quote

    Although there were a few castles built before the invasion by William I in 1066 - probably by Normans wishing to settle in England - it is generally acknowledged that nearly all were erected after the conquest and based on castles built in Normandy. Even though some were little more than lookout posts, and others privately owned by nobles, they were all originally built as military strongholds, with most coming under the direct and strict control of the royal administration. Nearly all Anglo-Saxon nobles were ousted and Norman ones put in their place, as a further reinforcement of Williams rule over England.

    A Comparison of Burhs and Castles | PeakD

  11. This is my favourite mod and to be honest it is basically the only way I played the game.

    I was wondering if there were any plans to have something that looks like a castle for the anglo-saxons ingame.

    While castles did not appear until after the timeframe in this mod, it seems that there were buildings that were built of stone that looked like castles - no idea why they are not considered castles.

    For example: Ribat of Monastir - Wikipedia

    I would love to see a semi customizable castle/fort where you build the base castle/fort and can then upgrade it with a stable/barracks/tower etc etc.

    Even if castle-like structures are not implemented, it would be a cool feature if the fortresses were more customisable with different upgrades.

    It also looks like some burhs were made of stone so that could be a cool upgrade.

  12. Thanks, the other problem I am having is with the upgrades always appears in the top left of the units build queue.

    In general this is find but I would like to have it so that there are three upgrades and they all appear in the same spot. So for example, if we put them all down in the bottom right it could be:

    "Switch to sword" (far bottom right)

    "Switch to spear" (bottom second from right)

    "Switch to Bow" (bottom third from right)

    They need to appear in their own separate places so if you select a group of units that are equiped with different weapons you can quickly access the "Switch to spear" option if cavalry are charging.

  13. I gave this a good shot, I even tried playing as the Persians and built each hero to try and find this ability (give soldiers experience) and I had no luck.

    In the hero_cyrus_ii.xml

    templates I did find:

     

    Quote
    <Trainer>
    15 <BatchTimeModifier>0.7</BatchTimeModifier>
    16 <Entities datatype="tokens">
    17 units/anglo/infantry_archer
    18 </Entities>
    19 </Trainer>

    But when I copied and pasted this text into my civilian woman template (for testing) it came up with an error and woman could no longer be build in the game.

    I am not actually sure if this tag would give soldiers experience or if it simply decreases their build time...

    I am modding the millenium mod so my unit is in the anglo side.

×
×
  • Create New...