wowgetoffyourcellphone Posted April 1, 2020 Report Share Posted April 1, 2020 I've noticed that Atlas now puts a <Garrison/> flag in the map XML file for buildings. <Entity uid="1569"> <Template>skirmish/structures/default_civil_centre</Template> <Player>1</Player> <Garrison/> <Position x="690.68207" z="792.24982"/> <Orientation y="2.35621"/> <Actor seed="46682"/> </Entity> How does this work? Quote Link to comment Share on other sites More sharing options...
Silier Posted April 1, 2020 Report Share Posted April 1, 2020 https://code.wildfiregames.com/rP23529 Example in: maps/skirmishes/Sicilia_Nomad.xml <Garrison> <GarrisonedEntity uid="3429"/> <GarrisonedEntity uid="3430"/> <GarrisonedEntity uid="3431"/> <GarrisonedEntity uid="3432"/> <GarrisonedEntity uid="3433"/> <GarrisonedEntity uid="3435"/> <GarrisonedEntity uid="3436"/> <GarrisonedEntity uid="3437"/> <GarrisonedEntity uid="3438"/> <GarrisonedEntity uid="3439"/> <GarrisonedEntity uid="3440"/> <GarrisonedEntity uid="3441"/> <GarrisonedEntity uid="3442"/> <GarrisonedEntity uid="3443"/> <GarrisonedEntity uid="3444"/> </Garrison> It is replacement for "Garrison": { "3434": [3435, 3436, 3437, 3438, 3439, 3440, 3441, 3442, 3443, 3444, 3429, 3430, 3431, 3432, 3433] }, It garrisons entity on game init with entities in GarrisonEntity element. No atlas ui was created for this yet. 1 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 2, 2020 Author Report Share Posted April 2, 2020 19 hours ago, Angen said: No atlas ui was created for this yet. Hmm, I wonder how it would work. A drag n' drop feature? Drag a unit over a garrisonable building with a hotkey (like alt) pressed? Quote Link to comment Share on other sites More sharing options...
Silier Posted April 2, 2020 Report Share Posted April 2, 2020 well, one needs to figure that out first do you think that could work fine? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 2, 2020 Author Report Share Posted April 2, 2020 Either that, or the upper ribbon menu needs to be more dynamic (or have a 2nd ribbon for dynamic options). That's more difficult of course. How about this. Normally when you move a unit over another object like a building that unit will turn red, but you can still move that unit over that object in Atlas. This is generally necessary to allow designers to be creative and put together some cool stuff in the editor. But what about a tiny little tooltip could pop up that says "Press and hold 'Alt' to garrison"? That could work. No extra UI work beyond that, except to somehow show what units are garrisoned in that building when it's selected. Also, allowing to ungarrison units if the designer wants. Yeah, needs more thinking. lol 2 Quote Link to comment Share on other sites More sharing options...
Stan` Posted April 2, 2020 Report Share Posted April 2, 2020 What would be actually nice is to merge back Atlas with the game. I believe that to do so, we only need two more features in the GUI, scrollbars, and colorpickers. We discussed it with @bb_ and @Imarok at FOSDEM. 2 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted April 8, 2020 Report Share Posted April 8, 2020 On 4/2/2020 at 6:11 PM, wowgetoffyourcellphone said: Hmm, I wonder how it would work. A drag n' drop feature? Drag a unit over a garrisonable building with a hotkey (like alt) pressed? For now, if you start the simulation in Atlas and garrison units, those will be saved correctly. However, I understand that for many maps starting the simulation to get entities to garrison is a no-go, hence a UI for that ought indeed to be made :) 1 Quote Link to comment Share on other sites More sharing options...
Silier Posted May 7, 2020 Report Share Posted May 7, 2020 Creation of empty Garrison tag removed in https://code.wildfiregames.com/rP23634, thnx Freagarach 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.