Cinema
Cinema
Animate pixel arts or whole scenes(also animate Gifs)
Version: v2.1.4
gif by AnAwesomeGuy
PLUGIN IS DISCONTINUED!
remember that free plugins wont buy me food :3Ever wanted to animate one of your pixel arts? Or perhaps you would like to make a building change in a more elaborate way? Even wanted to make 3d movies come to life on your server? These dreams can now come true with this plugin!
Cinema is a block moving plugin which makes scenes come to life in a full moving picture!
How Does it work?
Simple~ Have you ever drawn a scene on a piece of paper, then on the next sheet the next scene and so on~ by the end of it you flip through your book and you see a moving picture.
The same rules apply here! You select your "Stage", and then you begin to implement your first scene known as a frame. Each save is a frame of your cinema and in the end the cinema will go through the frames in a loop or one time (You Choose!).
Main tutorials/videos from the creator
http://www.youtube.com/watch?v=aiIDRNG6WMU
http://www.youtube.com/watch?v=hvC1qQ8dEgE
nice demovideo from metroid4
http://www.youtube.com/watch?v=_7msPjYPFnk
some other videos
http://www.youtube.com/watch?v=ObIb29a-LBY
http://www.youtube.com/watch?v=8Dh7VBNQm40
Step one!
Selecting your stage,
By using /cpos1 and /cpos2 you can select your stage much like using world edit to select your cuboid space. (Alternatively you can select the field with an x y z coordinate /cpos1 [x] [y] [z] [[world name if console]] )
Once your field is created you can move to step 2!
Step Two!
Creating your first frame,
You need to make your beginning piece of pixel art, or 3d scene
Once built you use the command /csave <File name>
(/csavedelta can be used to reduce the file size and serverload when playing the files, but editing these files can give unwanted results)
Step Three!
Making more Frames,
You can repeat step two until your animation is complete!!
Step Four!
Playing your cinema,
This command is rather long but each field is necessary~
/cplay <playername> <filename> <frame duration> <play count>
The playername IS NOT YOUR NAME!! It is the name the plugin needs to identify the player for various commands. You can use any text as a player name but again, it is not your name!
Frame Duration is in milliseconds, 1000 milliseconds = 1 second
(this is the time that the plugin waits until it shows the next frame)
Play count is the amount of times the animation will play, using 0 will make the animation loop endlessly
Here is an example of what your command should look like
/cplay Theater1 test1 400 1
This means the cinema will have the name Theater1; use the file test1; play only once; and use a 400 millisecond frame duration.
Commands in this plugin:
- /cpos1 [x] [y] [z] [[worldname if console]] : set the first corner of your cuboid, which should be saved. if you play a saved file, this will be the pos1 you used by saving. so save your pixelart where you want. and then set pos1 to the destination and play your animation. if no parameters were given, the position of the players feet is used(the block you are standing in) as player you can also specify the x, y and z. if you want to use this command from the console. you also have to specify the worldname
- /cpos2 [x] [y] [z] [[worldname if console]] : sets the second corner of your cuboid. is just used for saving. parameters are the same as in /cpos1
- /csavedelta <filename> [frameindex] : saves the frame selected by pos1 and pos2 to the specified file. you can optionally specify the index in the file the frame should be saved to. e.g. /csave test 1 would save the frame as second frame in the animation. 0 would be first frame. if index is out of file the frame will be saved last. delta means, that only the differences to the previous frame will be saved, which means less serverload for bigger animations, and also smaller file size.
- /csave <filename> [frameindex] : saves whole frames instead of just the differences.
- /cplay <ID> <filename> <framedurationInMillis> <playcount>: plays the given file under the given ID (needed to stop this player with cstop)(ID does not refer to your own player name, but to the name you give the playing animation. it also can be 213232123 or whatever. its just for identification purposes later) playcount is the amount of times the file will be played. it then calls stop by itself. playCount = 0 means it plays endlessy the frameduration is the amount of time it takes until the next frame is drawn in your world.
- /cstop <ID> : stops the player with the given ID. this refers to the ID used in /cplay
- /cinemainfo : shows you the current pos1 and pos2. Also shows current version and give you a note if there is a new version available
- /canimations : shows all currently playing cinemaplayers
- /cinemaremove <filename> : removes the file with the given name. this cant be undone
- /ceditopen <filename> : opens a cinema animation for editing
- /ceditremove <index> : removes the frame at position <index>. the first frame has index 0
- /ceditsave : saves the changes made to the animation
- /ceditclose : closes the editor and file. all unsaved progress will be lost
- /ceditinfo : shows you the current loaded file in the editor
- /ceditshow <index> : draws the given frame at pos1.
- /cinemagif <input file name(with extension)> <output animation name> <alignment> : converts the given image (preferably a GIF animated file) into a cinema animation. for alignment see /cinemagifalignment. input file has to be in plugins/cinema/files/
- /cinemagifalignment : Shows you the 5 available alignments (use the numbers or the text shown here as arguments in /cinemagif
- /creverse <ID> : reverses a given players playdirection. you can reverse a playing animation
this list is not complete. use the /help command on your server to see all commands
Permissions: there is only one permission node: Cinema.basic
Features:
- Saves/deletes and plays animated Pixel arts/ 3d Scenes
- notifies you if a new version is available (use /cinemainfo)
- restores playing Cinemas after shutdown of server
- converts GIF-files to cinema-animations
you can use ../ or folder/ in the filename.
Hi,
Sorry if I'm just not seeing this at all, but:
Is there a way to make an animation saved to a location? As in:
I have several animations in different locations I want to run from the console; if I can only have one selection, I can only have one animation playing at a time.
If I'm missing something, please correct me.
If this feature is not implemented, I would like to request that you would add it to the next update.
Thanks!
nope signs dont work with the plugin as it is made for cinematics
Do signs work with the plugin
Doesn't work anymore.
Xtorrent and Samiko!!! best plugin evar
Pleas send link to ALTERY PLUGIN
Pleas UpDate to 1.5.2
@fredlllll
true but it still makes the biggest difference tho
@N1T3SLAY3R
every block causes recalculation of light. not only glowstone.
@fredlllll
hmm, will thats not good because id normally be all the other players having the lag, so the only solution would be to not use blocks like glowstone in your movies?
@N1T3SLAY3R
you have to do that yourself. its somewhere in the minecraft options menue
@fredlllll
question, can i turn off shadows in the config so that the blocks and that dont change lighting? or can u add that option if not?
@AbbyMaeTaylor
turn off shadows. i think these cause the lag
This is a brilliant plugin :) It's just that my players who don't have high spec computers got graphic lag, it has nothing to do with the plugin tho :)
@VOTProductions
"java.lang.NegativeArraySizeException 16:24:57 [SEVERE] at com.forgewareinc.Cinema.CinemaFile.<init>(CinemaFile. java:39)" means its reading a negative blockCount from the file (of a frame). so yeah your file might be corrupt?
38 int blocks = raf.readInt();
39 myBlock[] mba = new myBlock[blocks];
these are the lines 38 and 39 (this thing here is open source. you can look it up) so wether im reading a negative value from the file (raf is a RandomAccessFile) or the value is extremely huge and the allocation of the super big array would take more memory than available
so all i can say is, that the file is corrupt. i dont know why this happened. this should be the binary spec of the file format used by cinema:
int32(frameCount) how much frames in the file?
for(frameCount){ for each frame
int32(blockCount) how many blocks in this frame?
for(blockCount){ foreach block
int32(x Position) the position relative to "pos1"
int32(y Position)
int32(z Position)
int32(Material ID) the ID of the material (bukkits constants)
byte(Block data) the data of the block (e.g. color of wool blocks)
}
}
so if your animation is super duper important and you know how to read binary files you could propably rescue some information of that file.
i really dont know why it is corrupted (never had any report of this yet). maybe you are trying to load some very old animation?
sorry for being rude before, there are too many people moaning over their own mistakes when it comes to using my plugin =/ /edit: and sorry that dev bukkit doesnt allow me to properly format my post -.-
No other plugin is out of memory with 8GB dedicated to the server with 3 people on it. It is impossible that it is out of memory. More output:
CommandBook's /debug info says that there is 3417MB free allocated memory.
@VOTProductions
ever thought about what " OUT of MEMORY" means? it means your server cant allocate any more ram. this is not an issue of my plugin. every plugin needs ram. and mine reads the whole file into the ram. a frame needs space. and you dont give your server enough ram.
Newest Spigot build. When trying to play more than 1 screen, I get this.
It tells me that some IOException occurred. and the file might be corrupted. It is definitely not a RAM issue since Commandbook's /debug info shows 3031MB left.
Craftbukkit works fine.
One of the greatest creation ever :) I am using it for my 1000+ players server :3