Product Chat / Zombie dance troupe final version

Author
Message
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Mar 2017 22:47
So I've ended up doing it all in Lua, i.e. these are just plain entities, no physics. not characters, no spine tracking, just plain entities with positioning and animation directly controlled by Lua scripting.

Still not perfect but as close as I can get without a lot more work.

My reasoning for posting the (huge) video is to show that even with Lua doing all the hard work on a high resolution the AI bar hardly even registers.


Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Mar 2017 22:54 Edited at: 4th Mar 2017 09:53
For those interested this is the Lua script.

-- edited to add the cleaned up version of the script
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Johno 15
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 3rd Mar 2017 23:03
I am a simple man, I see AmenMoses has posted, I click on the thread But seriously, awesome as ever man
'Judge a man not by his answers. But by his questions.'
geistschatten
12
Years of Service
User Offline
Joined: 10th Apr 2012
Playing: GameGuru
Posted: 3rd Mar 2017 23:10 Edited at: 3rd Mar 2017 23:11
Hahaha, this is the best thing ever!

Excellent job on the animation control by the way!
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Mar 2017 23:13
132 lines, but who's counting?
Been there, done that, got all the T-Shirts!
PM
MK83
GameGuru TGC Backer
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN USA
Posted: 3rd Mar 2017 23:16 Edited at: 3rd Mar 2017 23:16
Wonderfull!
AMD Phenom x4 9850 2.58 Ghz , 6 gb ram, 2GB EVGA Geforce GTX 750, Win 10 x64



PM
Johno 15
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 3rd Mar 2017 23:20
Its oddly intensely satisfying to watch, probably because they're literally synced perfectly, Now all we need is a moonwalk and the anti gravity lean and Michael Jackson would be green with envy
'Judge a man not by his answers. But by his questions.'
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Mar 2017 23:32
Actually if you look at the script they aren't synced perfectly, if they were it would look odd because humans are never synced perfectly, the art of computer AI is based on randomness, in this case there is a random component in when each dancer becomes active, it is subtle but makes a big difference.

Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 4th Mar 2017 00:33
Excellent show of animation control. Great job as always. Thanks for the script.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

devlin
10
Years of Service
User Offline
Joined: 12th Feb 2014
Location:
Posted: 4th Mar 2017 00:41 Edited at: 4th Mar 2017 00:47
brilliant what more can you say.
and thanks for the script.

would love to see this on done in gg

https://www.youtube.com/watch?v=xT_Ce8-fGLo
PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 4th Mar 2017 08:22
Awesome AmenMoses , i take my hat off to you.

Cool. lol
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 4th Mar 2017 08:43
Every time I get frustrated with something I'm working on I look at the dancers.makes me smile every time,thank you.

Dave
Windows 10 Pro
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 4th Mar 2017 09:29
That is sweet - thanks for sharing
Johno 15
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 4th Mar 2017 10:42
@AmenMoses That is serious attention to detail! Bravo sir
'Judge a man not by his answers. But by his questions.'
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 4th Mar 2017 10:43
So after a lot of faffing around (had to reduce some of the texture sizes) I managed to get the smallest of the zombie models to an uploadable size, it's the policewoman model (who I called Cagney, if you're too young to get the reference ask your parents - or maybe grandparents).

I've also included the lua script with the music loading bit commented out so it can be used straight away, if you have a suitable music file just edit the script to refer to it and uncomment the two lines.

There is a 20 second delay before she starts dancing, there are two reasons for that, 1) the music has a long lead in, 2) it allows time for GamGuru to settle down, for some reason the g_Time value is very erratic when test level first runs, any scripts that rely on it for fine grained timing should allow a few seconds at least for it to settle down. You can reduce it if you want but don't make it less than about 5 seconds.

Feel free to play around with the script to see how it works.

Oh and you can put as many instances of 'Cagney' in a level as you want but make sure you select 'always active' in the properties.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 4th Mar 2017 11:20


When I say 'as many as you like' it appears the FPS starts to plummet at around 100.

Been there, done that, got all the T-Shirts!
PM
MooKai
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location: World
Posted: 4th Mar 2017 11:37
wow, lol... that's a good start into the weekend
great work!!!!
Old school FPS fan, DOOM!!! Why GG not working on my AMIGA 500?
PM
Earthling45
8
Years of Service
User Offline
Joined: 3rd Sep 2016
Location: Zuid Holland Nederland
Posted: 4th Mar 2017 13:00
This is so enjoyable to watch, thanks for sharing.

Around 100 before the FPS drops, that is quite good.
Loretta
8
Years of Service
User Offline
Joined: 13th Aug 2016
Playing: Generation Zero; Skyrim SE , Fallout 4, In VR- Pistol Whip,
Posted: 8th Mar 2017 17:27
Excellent Work!
I love this!
Thank you!
Cagney would be honored.
Web Designer/Photographer/Videographer/ Video Editor
ASUS ROG G20- Desktop Intel Core i7-6700 -3.4Ghz - 16GB Memory - NVIDIA GeForce GTX 970-4GB - Windows 10 64bit
PM
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 9th Mar 2017 15:21
You're officially the hero of game-guru now. This made my morning, thanks
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 9th Mar 2017 15:46
Addendum: Wow.. your code style humbles me - like, seriously man. Clean, very efficient and intelligently written.


Side note, did you know you can use --[[ and ]]-- as block commenting so you don't have to use -- in front of each line?
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 9th Mar 2017 19:07
Yep I do, but I am so used to Ada that '--' comes naturally to me, in fact muscle memory means I type it without thinking most of the time.

Now if I could just retrain my muscles to stop typing ':=' all the time I could probably code a lot faster.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-11-17 17:31:03
Your offset time is: 2024-11-17 17:31:03