Age of Mythology: Extended Edition

Age of Mythology: Extended Edition

Advance to the Steam Age
Explore modified graphics as well as new scenarios, maps, AI, and more! Ready to share your creations with the world? Upload right from the in-game mod manager.
amyhaf 19 Dec, 2019 @ 2:46am
unit carrying unit
I took on what I thought would be a simpler(ish) task.

Modding the dwarf to pickup and carry relics. There are a couple of dwarf heroes that can carry relics but also hunt and gather resources so I thought some reverse engineering would be a good learning experience.

Got everything almost there save one caveat.

The dwarf "wears" the relic on his body like the old nekked guy in a barrel trope.

All other functionality is solid.

After a dozen hours of banging my head I cannot seem to determine how Brokk/Eitri walk around with the relic in their extended arms, while the dwarf villager will not (again relic picks up and is visible, but attached to his body).

Further exasperating me is how doable this seems because the dwarf clearly has animations/models of carrying plenty of other things in the same manner.

Any nudges?
Last edited by amyhaf; 19 Dec, 2019 @ 2:47am
< >
Showing 1-7 of 7 comments
Loggy 27 19 Dec, 2019 @ 5:11am 
My initial reaction is that there's an attach point that the engine uses for relics, meaning that for a model that lacks them it'll fall back onto the model origin or whatever it feels like doing.
amyhaf 20 Dec, 2019 @ 12:52am 
Ugh.

And of course key for me was to have the head as an attach point for separate reasons and of course... the dwarf heroes that can deal with resources AND relics no problem, don't have a head attach point.

Classic.

Do you know off hand, has anyone ever been successful at having a unit carry any other, non-relic, object using the resource carry animations? I've scoured through old mods and nothing stands out in this area.
Zeus 19 20 Dec, 2019 @ 2:03pm 
I have units able to wear armor with attachpoints

Is possible to fix dwarfs in 3Ds max, if you need it I can fix the attachpoint of dwarfs for you

amyhaf 21 Dec, 2019 @ 12:08am 
I appreciate that offer, but no it's not necessary at all, but thanks.

The dwarfs actually already have the "righthand" attachment point for carrying, but Loggy says the relics are hardcoded and wont pay attention to that.

But I will ask you, do you know of any mods, using default anims, where units can pick up and carry (visibly) other objects besides resources and relics?

Loggy 27 21 Dec, 2019 @ 4:10am 
I should clarify I don't KNOW how relics attach, but I wouldn't be at all surprised if the engine just decides to look for a specific attachpoint.
Zeus 19 21 Dec, 2019 @ 5:00am 
yes, the the main code that make that if the unit have the RELIC flag active
amyhaf 21 Dec, 2019 @ 10:36am 
I see no reason why that isn't the exact, unfortunate, case.

Therefore I switched my approach on the "seemingly" simple task of getting a unit to pick up and carry an object around. I've had some success by using the existing 'righthand' attachpoints and re-working the resource subtypes (like say turning fish into a crate) - so in essence I can now get the dwarf to carry around anything, in its hands, under the right circumstances (e.g. dwarf collected 1 "fish" show him carrying visual attachment 'crate'). So he can pick-up from ground and drop-off in a building. However he can not drop the object back on the ground.

IOW I think the RELIC is the only thing you can pick-up off ground, visually carry around, drop off on the ground, and/or deposit in a building. And I just initially thought it would be fairly easier to apply that functionality to any object.

Was also confident I'd find some old mini-game mod that featured units grabbing/dropping different objects all over the map that I could deconstruct, but I'm coming up short and flying blind.
Last edited by amyhaf; 21 Dec, 2019 @ 10:40am
< >
Showing 1-7 of 7 comments
Per page: 1530 50