wowgetoffyourcellphone Posted March 1, 2015 Report Share Posted March 1, 2015 (edited) With hack I have implement farmlands. Before I reveal how, can anyone give idea of how it could have been done with current code and no extra programing? Edited March 1, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
auron2401 Posted March 1, 2015 Report Share Posted March 1, 2015 What do you mean by "farmlands", Not farms, surely? We already have those. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted March 1, 2015 Author Report Share Posted March 1, 2015 (edited) What do you mean by "farmlands", Not farms, surely? We already have those.Farmland texture on terrain give bonus to farming. http://trac.wildfiregames.com/ticket/1318http://trac.wildfiregames.com/attachment/ticket/1318/farmland.jpg Edited March 1, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
fabio Posted March 1, 2015 Report Share Posted March 1, 2015 With hack I have implement farmlands. Before I reveal how, can anyone give idea of how it could have been done with current code and no extra programing? I would suppose you added an aura with 0 radius on the texture? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted March 1, 2015 Author Report Share Posted March 1, 2015 (edited) I would suppose you added an aura with 0 radius on the texture?Basically, can use gaia objects that give grain gather bonus aura to "enemies" who are, you guess it, all the players. This works as advertise, but is a hack and is not as good as the real proposal in ticket I linked because you have to add them into each map where you want the farmland, where if the real proposal is added all the designer need to do is paint the texture.<?xml version="1.0" encoding="utf-8"?><Entity> <Auras> <Farmland> <Type>range</Type> <Radius>60</Radius> <Affects>Gatherer</Affects> <AffectedPlayers>Enemy</AffectedPlayers> <Modifications> <ResourceGatherer.Rates.food..grain> <Multiply>1.25</Multiply> </ResourceGatherer.Rates.food..grain> </Modifications> <AuraName>"Farmland" Aura</AuraName> <AuraDescription>Gatherers +25% Food Gather Rate within 60 meters. This is a hack to create "Farmlands" in the game.</AuraDescription> </Farmland> </Auras> <Footprint> <Square width="60" depth="60"/> <Height>9.0</Height> </Footprint> <Ownership/> <Position> <Altitude>0</Altitude> <Anchor>upright</Anchor> <Floating>true</Floating> <TurnRate>6.0</TurnRate> </Position> <Selectable> <EditorOnly/> <Overlay> <AlwaysVisible/> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> </Overlay> </Selectable> <VisualActor> <SilhouetteDisplay>false</SilhouetteDisplay> <SilhouetteOccluder>true</SilhouetteOccluder> <Actor>props/special/common/marker_object_char_a.xml</Actor> <VisibleInAtlasOnly>true</VisibleInAtlasOnly> </VisualActor></Entity>I do not like it as permanent solution, but it works very good for a hack and mod. Edited March 1, 2015 by wowgetoffyourcellphone 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.