Stan` Posted June 16, 2019 Report Share Posted June 16, 2019 Hello everyone, Following https://trac.wildfiregames.com/changeset/22379 there will be some changes needed for those of you who have mods modifying templates. I believe that's most of you. Before rP22379 a typical attack component was defined like this: <Attack> <Ranged> <Hack>0.0</Hack> <Pierce>12.0</Pierce> <Crush>0.0</Crush> <MaxRange>72.0</MaxRange> <MinRange>0.0</MinRange> <PrepareTime>1200</PrepareTime> <RepeatTime>2000</RepeatTime> <Delay>0</Delay> <Projectile> <Speed>75.0</Speed> <Spread>1.5</Spread> <Gravity>9.81</Gravity> <LaunchPoint y="3"/> </Projectile> <PreferredClasses datatype="tokens">Human</PreferredClasses> <RangeOverlay> <LineTexture>outline_border.png</LineTexture> <LineTextureMask>outline_border_mask.png</LineTextureMask> <LineThickness>0.175</LineThickness> </RangeOverlay> </Ranged> </Attack> Now you have to wrap Hack, Pierce, Crush (but not Capture !) into a Damage Tag <Attack> <Ranged> <Damage> <Hack>0.0</Hack> <Pierce>12.0</Pierce> <Crush>0.0</Crush> </Damage> <MaxRange>72.0</MaxRange> <MinRange>0.0</MinRange> <PrepareTime>1200</PrepareTime> <RepeatTime>2000</RepeatTime> <Delay>0</Delay> <Projectile> <Speed>75.0</Speed> <Spread>1.5</Spread> <Gravity>9.81</Gravity> <LaunchPoint y="3"/> </Projectile> <PreferredClasses datatype="tokens">Human</PreferredClasses> <RangeOverlay> <LineTexture>outline_border.png</LineTexture> <LineTextureMask>outline_border_mask.png</LineTextureMask> <LineThickness>0.175</LineThickness> </RangeOverlay> </Ranged> </Attack> Also note this will be breaking auras and technologies as well. { "type": "range", "radius": 50, "affects": [ "Soldier" ], "modifications": [ { "value": "Attack/Melee/Crush", "multiply": 1.20 }, { "value": "Attack/Ranged/Hack", "multiply": 1.20 } ], "auraName": "Religious Fervor", "auraDescription": "+20% attack damage for soldiers.", "overlayIcon": "art/textures/ui/session/auras/attack_bonus.png" } Will become { "type": "range", "radius": 50, "affects": [ "Soldier" ], "modifications": [ { "value": "Attack/Melee/Damage/Crush", "multiply": 1.20 }, { "value": "Attack/Ranged/Damage/Hack", "multiply": 1.20 } ], "auraName": "Religious Fervor", "auraDescription": "+20% attack damage for soldiers.", "overlayIcon": "art/textures/ui/session/auras/attack_bonus.png" } { "genericName": "Close Combat Cavalry Training", "specificName": { "mace": "Xyston", "spart": "Xyston", "athen": "Xyston", "sele": "Xyston", "ptol": "Xyston", "rome": "Hasta" }, "description": "Training increases melee attack.", "cost": { "food": 500, "wood": 750, "stone": 0, "metal": 350 }, "requirements": { "tech": "phase_town" }, "requirementsTooltip": "Unlocked in Town Phase.", "icon": "horse_trainer.png", "researchTime": 40, "tooltip": "+20% melee cavalry attack.", "modifications": [ { "value": "Attack/Melee/Hack", "multiply": 1.2 }, { "value": "Attack/Melee/Pierce", "multiply": 1.2 }, { "value": "Attack/Melee/Crush", "multiply": 1.2 } ], "affects": [ "Cavalry Melee" ], "soundComplete": "interface/alarm/alarm_upgradearmory.xml" } Becomes { "genericName": "Close Combat Cavalry Training", "specificName": { "mace": "Xyston", "spart": "Xyston", "athen": "Xyston", "sele": "Xyston", "ptol": "Xyston", "rome": "Hasta" }, "description": "Training increases melee attack.", "cost": { "food": 500, "wood": 750, "stone": 0, "metal": 350 }, "requirements": { "tech": "phase_town" }, "requirementsTooltip": "Unlocked in Town Phase.", "icon": "horse_trainer.png", "researchTime": 40, "tooltip": "+20% melee cavalry attack.", "modifications": [ { "value": "Attack/Melee/Damage/Hack", "multiply": 1.2 }, { "value": "Attack/Melee/Damage/Pierce", "multiply": 1.2 }, { "value": "Attack/Melee/Damage/Crush", "multiply": 1.2 } ], "affects": [ "Cavalry Melee" ], "soundComplete": "interface/alarm/alarm_upgradearmory.xml" } This change will then allow any modder to add different types of attack to his mod. One currently has hack, pierce, crush, and could add, magic, fire etc... following https://code.wildfiregames.com/D1938 Sorry for the inconvenience and Happy modding You can answer this thread if you need further details 6 Quote Link to comment Share on other sites More sharing options...
asterix Posted June 16, 2019 Report Share Posted June 16, 2019 @Exodarion @darkinterloper @borg- @Nescio @Angen 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2019 Report Share Posted June 16, 2019 Really? Quote Link to comment Share on other sites More sharing options...
Feldfeld Posted June 16, 2019 Report Share Posted June 16, 2019 Maybe someone can do a script for this Quote Link to comment Share on other sites More sharing options...
GunChleoc Posted June 16, 2019 Report Share Posted June 16, 2019 Really. If you read the commit message for the patch, you'll understand why. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted June 16, 2019 Report Share Posted June 16, 2019 @wowgetoffyourcellphone 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 16, 2019 Report Share Posted June 16, 2019 @wowgetoffyourcellphone 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 16, 2019 Report Share Posted June 16, 2019 Don't forget that every aura and every technology must also be changed. 1 Quote Link to comment Share on other sites More sharing options...
Trinketos Posted June 17, 2019 Report Share Posted June 17, 2019 @Trinketos :v Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted June 17, 2019 Report Share Posted June 17, 2019 (edited) 23 minutes ago, Trinketos said: @Trinketos :v my bad memory...sorry. Edited June 17, 2019 by Lion.Kanzen Quote Link to comment Share on other sites More sharing options...
Trinketos Posted June 17, 2019 Report Share Posted June 17, 2019 3 minutes ago, Lion.Kanzen said: my bad memory...sorry. >:v Quote Link to comment Share on other sites More sharing options...
borg- Posted June 17, 2019 Report Share Posted June 17, 2019 1 hour ago, wowgetoffyourcellphone said: Don't forget that every aura and every technology must also be changed. Fauna templates too. 2 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 17, 2019 Author Report Share Posted June 17, 2019 7 hours ago, wowgetoffyourcellphone said: Don't forget that every aura and every technology must also be changed. Thanks for the reminder. I updated the post. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 18, 2019 Report Share Posted June 18, 2019 Pro-tip. This applies to Ranged, Melee, and Slaughter attacks. 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 18, 2019 Report Share Posted June 18, 2019 @Stan` I found some problems: 1. When farmers and riders hunt wild deer, they will not chase the prey when they reach half or run in another direction. It seems that they can't find the prey. When the prey is shot, the rider will not automatically get the food. He needs to give instructions again to get the food. 2. Wild animals can only stay where they are. They can't walk. Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 18, 2019 Author Report Share Posted June 18, 2019 1 minute ago, gameboy said: @Stan` I found some problems: 1. When farmers and riders hunt wild deer, they will not chase the prey when they reach half or run in another direction. It seems that they can't find the prey. When the prey is shot, the rider will not automatically get the food. He needs to give instructions again to get the food. 2. Wild animals can only stay where they are. They can't walk. Not related Those bugs were already reported to @wraitii I believe. Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 18, 2019 Report Share Posted June 18, 2019 Really? I don't seem to feel that wraitii is paying attention to these problems. They really need him to solve them. If you are free now, please tell him. 2 Quote Link to comment Share on other sites More sharing options...
Silier Posted June 18, 2019 Report Share Posted June 18, 2019 @gameboy there are a lot of problems he needs to fix, please be paitent 4 1 Quote Link to comment Share on other sites More sharing options...
wraitii Posted June 18, 2019 Report Share Posted June 18, 2019 1 hour ago, gameboy said: Really? I don't seem to feel that wraitii is paying attention to these problems. They really need him to solve them. If you are free now, please tell him. Hey @gameboy I am working on these issues, and uploading diffs regularly. They will be fixed, don't worry. Thanks for reporting them anyways 1 2 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 18, 2019 Report Share Posted June 18, 2019 2 hours ago, wowgetoffyourcellphone said: Pro-tip. This applies to Ranged, Melee, and Slaughter attacks. Melee Ranged Slaughter Splash Quote Link to comment Share on other sites More sharing options...
Trinketos Posted June 24, 2019 Report Share Posted June 24, 2019 Is this changes are in the github repo? Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 24, 2019 Author Report Share Posted June 24, 2019 2 minutes ago, Trinketos said: Is this changes are in the github repo? Yes. SVN and GitHub. 1 Quote Link to comment Share on other sites More sharing options...
thankforpie Posted June 24, 2019 Report Share Posted June 24, 2019 slingers no op anymore? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted June 25, 2019 Report Share Posted June 25, 2019 11 hours ago, thankforpie said: slingers no op anymore? This wasn't a balance change. 2 1 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 26, 2019 Report Share Posted June 26, 2019 On Tue Jun 18 2019 at 5:12 PM, wraitii said: Hey @gameboy I am working on these issues, and uploading diffs regularly. They will be fixed, don't worry. Thanks for reporting them anyways @wraitii Where are the fixes for these problems? I didn't see them in SVN, my friend, please take time to tell me, thank you! 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.