Modcraft - The community dedicated to quality WoW modding!

Community => Showoff - what you are working on => Topic started by: schlumpf on March 01, 2013, 09:54:01 am

Title: Scene Scripts: client side NPCs, animations, cut scenes, ...
Post by: schlumpf on March 01, 2013, 09:54:01 am
They are MoP only.

I'm currently unable to initiate them myself; the server tells the client to play a scene.
The server spawns a CGSceneObject. The scene can only play while that object exists.

Scene scripts are in lua, can't interface with the UI though and have a special API, allowing to modify the world in different ways.

Modifying the Varian Gets Punched scene:
Instead of camera movement, spawn a field of ???:
(http://d.pr/i/GxQE+)

Instead of ???, use a specific model:
(http://d.pr/i/CB6d+)

Instead of just spawning a model, clone the player, phase out the actual player, then randomly run around.
[youtube:28k4mg7v]http://www.youtube.com/watch?v=a-UbMUQ83BU[/youtube:28k4mg7v]

An excerpt of functions (without arguments) and variables available in the API:
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: stoneharry on March 01, 2013, 11:45:46 am
Very nice, thanks for documenting.

Why is it only MoP? I thought scene scripts were implemented in Cataclysm. Most of Uldum is based around them.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 01, 2013, 11:59:16 am
That's not SceneScripts, but server side scripts, IIRC. At least, there is nothing with Uldum showing up in the database. Remind me to put up a list of all scripts up later.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: stoneharry on March 06, 2013, 11:45:32 pm
Any more progress on this?
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 07, 2013, 11:32:17 am
Nope. The next steps are intense in reverse engineering:
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 13, 2015, 11:05:44 am
Hi, can you make some tutorial for using this?
And this works only in MOP or works in Cata as well?
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: Rangorn on March 13, 2015, 12:33:25 pm
Quote from: "schlumpf"
They are MoP only.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 13, 2015, 03:25:33 pm
And above.

There are no proper tools and everything, so tutorials would require a shitload of work.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 13, 2015, 04:13:40 pm
Okay, then I need to figure out by myself.
One more question where I can find this .luas ?
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 13, 2015, 05:02:04 pm
DBFilesClient/SceneScript*.db2
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 13, 2015, 07:11:34 pm
I can't find them  :(
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 14, 2015, 12:53:59 am
They are inside the databases. There are no separate lua files.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 14, 2015, 09:19:21 am
Finally I found it :)
One more thing, I can convert it to SQL but can't convert back because DB2Edit 1.4 don't work for me.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 14, 2015, 10:58:08 am
I don't even know that application, so I can't help you.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 14, 2015, 11:11:15 am
What do you use?
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: schlumpf on March 14, 2015, 11:19:10 am
I wrote my own handling directly converting between db2 and filesystem.
Title: Re: Scene Scripts: client side NPCs, animations, cut scenes,
Post by: chaze117 on March 14, 2015, 12:14:02 pm
Okay I`m not that good, I am olny wwb-programmer. But now I don't give up that colse to my taeget . BTW  Thank You for help