Bellakor Posted February 18, 2015 Report Share Posted February 18, 2015 Hi,I played Celtics and build Rotary Mill (increases the food production of nearby farms).But i didn't see the range of area effect on my farms.It should be usefull to see the real impact of all thing in game. 5 Quote Link to comment Share on other sites More sharing options...
HeroesGrave Posted February 19, 2015 Report Share Posted February 19, 2015 AFAIK, area effects haven't been implemented yet. I'm not sure what the true behaviour of the Rotary Mill is to compensate though. 1 Quote Link to comment Share on other sites More sharing options...
niektb Posted February 19, 2015 Report Share Posted February 19, 2015 In fact, the Rotary Mill has a working range aura but it doesn't have any range marker (so you don't know which farm(er)s are affected and which not.) 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) Can be done with selection ring or decal. Right now game is bugged so that footprint create selection area and selection ring is base on footprint size. Instead obstruction should create selection area or something else done like selection ring size put in selection ring code insread of footprint. Maybe extend aura entitycode for input of "aura ring" size and texture. Edited February 20, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 20, 2015 Report Share Posted February 20, 2015 Can be done with selection ring or decal. Right now game is bugged so that footprint create selection area and selection ring is base on footprint size. Instead obstruction should create selection area or something else done like selection ring size put in selection ring code insread of footprint. Maybe extend aura entitycode for input of "aura ring" size and texture.Actually this is handy, it allows one to define a zone for the fooprint, but allows units to come close to the walls. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) Can be like this: <Auras> <AuraFood> <Type>range</Type> <Radius>60</Radius> <AuraDecal>auras/celts/circle_60.xml</AuraDecal> <Affects>Gatherer</Affects> <Modifications> <ResourceGatherer.Rates.food..grain> <Multiply>1.2</Multiply> </ResourceGatherer.Rates.food..grain> </Modifications> <AuraName>"Rotary Mill" Aura</AuraName> <AuraDescription>Gatherers +20% Food Gather Rate within 60 meters.</AuraDescription> </AuraFood> </Auras>assumes it is in art/actors/decals folder of course. Or done in the <Selectable> element of the etntity with some diplicate of the footprint stuff.Only issue would be to descide if aura decal should only show up when selected, or like with hero star, be 50% see through and then full coloor when selected (best option in my opinion), or show up all the time full color. Or even better, make it option (or maybe this be confuse).EDIT: Changed it from a texture to a decal call.I think would be better to just call a decal than to add a bunch more width, depth, etc.code to this element. Edited February 20, 2015 by wowgetoffyourcellphone 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) Okay, so I try test. Looks like I was wrong and footprint code no long make selections, so intricate selection rings can be created! Here is a test I just did for temple Vesta: <Selectable> <Overlay replace=""> <AlwaysVisible/> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> </Overlay> </Selectable> Edited February 20, 2015 by wowgetoffyourcellphone 3 Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 20, 2015 Report Share Posted February 20, 2015 Wow quite nice Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) Wow quite nice thnx! After some play I think it best to not always have AlwaysVisible.And I think the aura ring should be separate like this: <Selectable> <AuraOverlay> <Radius>60</Radius> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> </AuraOverlay> </Selectable>separate from regular overlay with a radius element (so you can reuse the aura texture with different kinds and sizes of overlays which use footprint size). Mein gott, ther are many ways to do this. lol Because what if there are twoi aura? Edited February 20, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 20, 2015 Report Share Posted February 20, 2015 Yeah could you make it so it is only visible when selected ? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) Yeah could you make it so it is only visible when selected ? yep did this. \Now that I mess around more, I think it should go like this: <Auras> <Aura1> <Type>range</Type> <Radius>60</Radius> <AlwaysVisible>False</AlwaysVisible> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> <Affects>Structure</Affects> <Modifications> <Health.Max> <Multiply>1.25</Multiply> </Health.Max> </Modifications> <AuraName>"Eternal Fire of Rome"</AuraName> <AuraDescription>Structures +25% Health within 60 meters of the Temple of Vesta.</AuraDescription> </Aura1> </Auras>This way you can have different aura decals for multiple aura in same unit or building (so, imagine Temple Vesta here having a healing aura of 40 meters and a Loyalty aura of 100 meters or something). This also keeop all aura graphic separate from selection ring graphic. Edited February 20, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 20, 2015 Report Share Posted February 20, 2015 Nice Little question how did you make that aura decal ? It looks neat Could you submit a patch on trac for this ? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 20, 2015 Report Share Posted February 20, 2015 (edited) I have only messaed around with the code as it exists now. I have only added a new selection ring with the <Selectable> element. This right here is only my suggestion of how it could or should be done instead of in Selectable. Reasons for keeping it within <Auras>Helps keep the visual aura concept together with the aura codeGives flexibility because the visual aura does not necessarily have to have the same visual behavior of the selection ringGives flexibility for each aura visualization to be different if deemed necessaryPrevents the need for a custom texture for each building or unit with an aura. If the game combines the selection ring and the aura ring into 1 texture (like I have done above as a test), then you can't keep the selection footprint sizes separate from the aura ring sizes. It has to be one texture.Can give Aura ring the behavior of showing up with preview entity. Footprint/Selectable does not do this for good reason.So, you could have Aura1 and Aura2 and Aura3 each weith different textures and stuff. There might be bad reasons to do this, but I don't know them. <Auras> <Aura1> <Type>range</Type> <Radius>60</Radius> <AlwaysVisible>False</AlwaysVisible> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> <Affects>Structure</Affects> <Modifications> <Health.Max> <Multiply>1.25</Multiply> </Health.Max> </Modifications> <AuraName>"Eternal Fire of Rome"</AuraName> <AuraDescription>Structures +25% Health within 60 meters of the Temple of Vesta.</AuraDescription> </Aura1> </Auras> Edited February 20, 2015 by wowgetoffyourcellphone 3 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted February 21, 2015 Report Share Posted February 21, 2015 What a lot of gameplay can be possible with this and aura We can add bonus to the buildingsReligius festivals can add economical and militar bonus.In Empire earth I some buildings prevent to act some units like priest or prophet units other like houses gives a bonus to the nearby units. Quote Link to comment Share on other sites More sharing options...
niektb Posted February 21, 2015 Report Share Posted February 21, 2015 The problematic part of it is however the performance. Such decals require GPU intensive alpha blending IIRC. So they should only be used in rare cases. 1 Quote Link to comment Share on other sites More sharing options...
Pureon Posted February 21, 2015 Report Share Posted February 21, 2015 Okay, so I try test. Looks like I was wrong and footprint code no long make selections, so intricate selection rings can be created! Here is a test I just did for temple Vesta: <Selectable> <Overlay replace=""> <AlwaysVisible/> <Texture> <MainTexture>auras/test/1024x1024_aura.png</MainTexture> <MainTextureMask>auras/test/1024x1024_aura_mask.png</MainTextureMask> </Texture> </Overlay> </Selectable>Love it. Can we have that in the game please? 3 Quote Link to comment Share on other sites More sharing options...
fabio Posted February 21, 2015 Report Share Posted February 21, 2015 Eventually I think there should be a generalized way to paint ring of various type: aura, but for example also min and max firing range. They should be able to be set automatically, without specifying a texture, this would be a lot easier to manage (i.e. no need to modify XML files, just use settings already available in every unit for size, using a different color for type). See for example these that were generated using little textures that can be placed on the border of a big ring: Also for aura there should be a way to detect if a unit is really influenced by the aura, this is especially useful when aura only parttially cover a unit. A possibility would be to have a symbol floating over the unit when the aura affects it (as some of the units in previous images have). 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 21, 2015 Report Share Posted February 21, 2015 I thinbk firing range is unnecessary, but showing splash damage range or smething like this might be good. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 21, 2015 Report Share Posted February 21, 2015 The problematic part of it is however the performance. Such decals require GPU intensive alpha blending IIRC. So they should only be used in rare cases.1. Auras are relatively rare.2. modern graphics cards can handle thousands of instance of alpha blending. The game will not run very well on integrated graphics anyway. If a couple of more alpha blends are a problem for a rig the game can have option to tyrn them off (default: on, of course). Quote Link to comment Share on other sites More sharing options...
Yves Posted February 21, 2015 Report Share Posted February 21, 2015 I'm not sure if displaying aura ranges as rings is the right way to do it. Especially when there are many overlapping rings (female citizen aura for example), it doesn't work well anymore.I imagined it more like an effect on the affected units, like a glow or something (but I still don't quite see how we would show multiple different types of auras for example). Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted February 21, 2015 Report Share Posted February 21, 2015 When I implemented auras (including range auras), I also wanted visualisations (or at least that was one of the first requests). Selection rings and decals came up, but it appeared that both options would put a serious load on the processor when used on moving units. Even when used on non-moving entities, it makes the game a lot heavier, as big decals enlarge the bounding box of those enties. So this results in those entities being rendered quite often virtually, while they're not visible on screen at all. Of course, most of these concerns are theoretical, as the actual slowdown is caused by rather subtle (like depends on the number of units normally invisible, but due to the change being rendered). So the slowdown has never been actually profiled. EDIT: most of the performance doubts were raised by Philip, so I guess they're rather valid. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 21, 2015 Report Share Posted February 21, 2015 (edited) I'm not sure if displaying aura ranges as rings is the right way to do it. Especially when there are many overlapping rings (female citizen aura for example), it doesn't work well anymore.I imagined it more like an effect on the affected units, like a glow or something (but I still don't quite see how we would show multiple different types of auras for example).I would think that visualization would be for important things, like hero (you can only have 1) and static building (there are only a few of these). The female aura is quite inconsequential. Edited February 21, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 21, 2015 Report Share Posted February 21, 2015 @Yves why not a hotkey such as tab ? 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 21, 2015 Report Share Posted February 21, 2015 2 Quote Link to comment Share on other sites More sharing options...
fabio Posted February 21, 2015 Report Share Posted February 21, 2015 I can see bug #1368 on the first image: http://trac.wildfiregames.com/ticket/1368 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.