Unit Poser (modding tool or w/e)

Unit Poser (modding tool or w/e)

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderators: Moderators, Moderators

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Unit Poser (modding tool or w/e)

Post by knorke »

/* EDIT: LATEST VERSION HERE: http://springrts.com/phpbb/viewtopic.php?t=27268 */
original post below
---


Image
a unit poser 8)
bash buttons, pieces of unit move and rotate.
dump/b-export current positions as a list of Turn&Move commands.
only works on last spawned unit, similiar to boxxy http://springrts.com/phpbb/viewtopic.php?f=14&t=24882

gallery, some are .gif, most suck:
http://www.abload.de/gallery.php?key=bq7TpOYa

you can make it write a list of pieces, useable in a unit script ie like
local body, head, leftarm, rightarm = piece ("body", "head", "leftarm", "rightarm")
Also writes all the needed Move/Turn commands to get the unit into the current pose. Which is a long list but you can just c&p that, change POSENAME to ie "StandOnLeftLeg" and call it like StandOnLeftLeg (movespeed, turnspeed)
Look at the examples in scripts\, its simple really.

This is not useable to automagically make walkscript, attack animations etc yet(?) at best it is a helper. if you wanted to make a walk animation, you have to remove all the commands refering to non-legs yourself so hands, turrets etc are not moved when walking. Also must add WaitForTurn/Move yourself.

button sender -> luaui\widgets
unit message transmitter -> luarules\gadgets
tpkeyframeus.lua -> set as script in unitdef

so you do not have to set up all that stuff, i compiled a demo mod with some units. thanks to the original modelers!
smoth, KDR_11k, Wartender, Forboding Angel , maackey

/give pose [press tab]
for list of all poseable units

/give ani [press tab]
for list of some animations i made.
Originally planned to make at least one ani for every unit but got lazy and whatever gay reason like no time. So only the gundam zaku, lolimod schoolgirl and evo crabthing have an ani.

How to use:
/cheat
/give pose[whateverunit]
mash those buttons:
w/s next/prev piece
a switch edit mode turn <-> move
4/6 x axis
8/2 z axis
7/9 y axis
5 change stepsize, ie 1┬░, 10┬░ 45┬░ for rotation
d write current position to infolog
also writes a piece list

currently selected piece flashes (game must not be paused)
to get a screenshot of the posed model without missing pieces, you have to pause in the correct moment when the piece is visible :regret:
If no piece is flashing, it is probally an empty piece like an emitpoint for muzzleflashes etc.

If you type in console, it will likely spam some errors if you use some letters, but you can just ignore those.

Download is a zipped as .7z with an .sdd inside so you can test it on your own models easier.
http://www.file-upload.net/download-312 ... dd.7z.html
This is a working mod but of course no playable game. Also lol leftover unneeded files like weapondefs but yeah, its just a demo.

I plan to use this to animate a unit i have yet to make so maybe advances will follow or maybe not.
Planned*:
-autoadjust move/turn speed so all pieces finish moving at same time
-smarter exporting of piece position instead of long ass-list
-option not to move all pieces (like a walk animation should only move legs, not arms)
-better organization of gadget/widget/unit script
-piece reset to nullpos, skip empty pieces with no child pieces
...
blablabla.

*in a thousand years maybe
Last edited by knorke on 26 Apr 2013, 10:09, edited 1 time in total.
Reason: see http://springrts.com/phpbb/viewtopic.php?t=27268
0 x

User avatar
Beherith
Moderator
Posts: 4934
Joined: 26 Oct 2007, 16:21

Re: Unit Poser (modding tool or w/e)

Post by Beherith »

Really awesome stuff, knorke. Highly needed, as I am stumped on how to animate my kbots .
0 x

User avatar
Peet
Malcontent
Posts: 4381
Joined: 27 Feb 2006, 22:04

Re: Unit Poser (modding tool or w/e)

Post by Peet »

This is a really wonderful thing and its continuation into a full ingame WYSIWYG unit editing suite would be a really really wonderful thing.
0 x

User avatar
smoke_th
Posts: 140
Joined: 25 May 2010, 13:15

Re: Unit Poser (modding tool or w/e)

Post by smoke_th »

How i like to say in those in cases like this one-
"At fucking least". :lol:
0 x

User avatar
MidKnight
Posts: 2650
Joined: 10 Sep 2008, 03:11

Re: Unit Poser (modding tool or w/e)

Post by MidKnight »

This is really awesome.
Peet wrote:This is a really wonderful thing and its continuation into a full ingame WYSIWYG unit editing suite would be a really really wonderful thing.
I agree with this, except with more 'really's
0 x

User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Unit Poser (modding tool or w/e)

Post by KingRaptor »

Why do I forsee the main use of this being to make Garry's Mod-style comics?
0 x

User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Unit Poser (modding tool or w/e)

Post by Wartender »

YAAAAAAAAAAAAAAAAAAAAAAY it's my mech :D
0 x

User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Unit Poser (modding tool or w/e)

Post by Wombat »

Wartender wrote:YAAAAAAAAAAAAAAAAAAAAAAY it's my mech :D
im disapointed ur last one :,

btw why knorke got no tag or something. 'Royal Coder' maybe
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unit Poser (modding tool or w/e)

Post by knorke »

ya srsly whats with that!
As alternative to tag, i also accept higher file size limit for animated avatars or just gold 8)
0 x

User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Unit Poser (modding tool or w/e)

Post by Wombat »

knorke wrote:As alternative to tag, i also accept higher file size limit for animated avatars or just gold 8)
uh oh ill make some models for this one
0 x

User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: Unit Poser (modding tool or w/e)

Post by Wartender »

Wombat wrote:
Wartender wrote:YAAAAAAAAAAAAAAAAAAAAAAY it's my mech :D
im disapointed ur last one :,

btw why knorke got no tag or something. 'Royal Coder' maybe
i counter your statement with unfinished models that i never textured from about the same time i made the mech

Image
Image

tank kinda sucks but i like the spider mech (except the guns)
0 x

User avatar
MidKnight
Posts: 2650
Joined: 10 Sep 2008, 03:11

Re: Unit Poser (modding tool or w/e)

Post by MidKnight »

Wombat wrote:
Wartender wrote:YAAAAAAAAAAAAAAAAAAAAAAY it's my mech :D
im disapointed ur last one :,

btw why knorke got no tag or something. 'Royal Coder' maybe
I propose 'Rhymes with Bjork'
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Unit Poser (modding tool or w/e)

Post by CarRepairer »

Animator complete!!

Image
0 x

User avatar
MidKnight
Posts: 2650
Joined: 10 Sep 2008, 03:11

Re: Unit Poser (modding tool or w/e)

Post by MidKnight »

\o/
Woo!
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unit Poser (modding tool or w/e)

Post by knorke »

CarRepairer wrote:Animator complete!!
[img]http://i.imgur.com/aYNKD.jpg[img]
feel free to release. as said in chat, i am doing an UI and some other things myself but that will be at least 9000 years because low prio.
0 x

klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Unit Poser (modding tool or w/e)

Post by klapmongool »

So we can have dancing units at last?
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unit Poser (modding tool or w/e)

Post by knorke »

Image
0 x

User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2695
Joined: 25 Aug 2004, 13:31

Re: Unit Poser (modding tool or w/e)

Post by bobthedinosaur »

Can you export or save the pose information on each frame?
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6123
Joined: 29 Apr 2005, 01:14

Re: Unit Poser (modding tool or w/e)

Post by FLOZi »

CarRepairer wrote:Animator complete!!

Image
Looks awesome, but how difficult is it to use?

Do we drop it into our mod (if so does it require a working chilli framework?)

or do we drop our models into it?
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Unit Poser (modding tool or w/e)

Post by CarRepairer »

Just a gadget and widget, using some code from knorke's unitposer. If your mod has chili, just drop them in. I'll post them later today, after I set this up to work in a modoption.

Only caveat is right now it doesn't stop the units from doing their own animations (if you accidentally tell them to move they will ruin their pose). I think it could be solved with a unitdefspost block to detect when modoption is on and set the units to use an empty LUS.
bobthedinosaur wrote:Can you export or save the pose information on each frame?
knorke wrote:Also writes all the needed Move/Turn commands to get the unit into the current pose. Which is a long list but you can just c&p that, change POSENAME to ie "StandOnLeftLeg" and call it like StandOnLeftLeg (movespeed, turnspeed)
Last edited by CarRepairer on 06 Mar 2011, 19:39, edited 1 time in total.
0 x

Post Reply

Return to “Game Development”