YesNoOk
avatar

"Shared" SFF , AIR and SND between characters. (Read 2702 times)

Started by Seravy, May 19, 2009, 12:25:39 pm
Share this topic:
"Shared" SFF , AIR and SND between characters.
#1  May 19, 2009, 12:25:39 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
If you make multiple characters at the same time and want to add the same move/animation/sound for all of them (like when making a full game or just many characters of the same game system, that need access to some system specific sprites and sounds), you can save a lot of work by making a DOS batch file that puts all of your characters together from the individual pcx and wav files.

Below is an example batch file for my CCS characters.
Code:
@echo off

copy /Y Sakura.spr+system.spr sakura.mak
move /Y sakura.mak Sakura
cd Sakura
..\sprmaker <sakura.mak
cd ..
copy /Y sakura.ai1+system.air sakura.air
move /Y sakura.air Sakura
copy /Y Sakura.snd+system.snd sakura.mk2
move /Y sakura.mk2 Sakura
cd Sakura
..\sndmaker <sakura.mk2
cd ..

copy /Y Shaoran.spr+system.spr Shaoran.mak
move /Y Shaoran.mak Shaoran
cd Shaoran
..\sprmaker <Shaoran.mak
cd ..
copy /Y Shaoran.ai1+system.air Shaoran.air
move /Y Shaoran.air Shaoran
copy /Y Shaoran.snd+system.snd Shaoran.mk2
move /Y Shaoran.mk2 Shaoran
cd Shaoran
..\sndmaker <Shaoran.mk2
cd ..

copy /Y Eriol.spr+system.spr Eriol.mak
move /Y Eriol.mak Eriol
cd Eriol
..\sprmaker <Eriol.mak
cd ..
copy /Y Eriol.ai1+system.air Eriol.air
move /Y Eriol.air Eriol
copy /Y Eriol.snd+system.snd Eriol.mk2
move /Y Eriol.mk2 Eriol
cd Eriol
..\sndmaker <Eriol.mk2
cd ..

copy /Y Void.spr+system.spr Void.mak
move /Y Void.mak Void
cd Void
..\sprmaker <Void.mak
cd ..
copy /Y Void.ai1+system.air Void.air
move /Y Void.air Void
copy /Y Void.snd+system.snd Void.mk2
move /Y Void.mk2 Void
cd Void
..\sndmaker <Void.mk2
cd ..

copy /Y Yue.spr+system.spr Yue.mak
move /Y Yue.mak Yue
cd Yue
..\sprmaker <Yue.mak
cd ..
copy /Y Yue.ai1+system.air Yue.air
move /Y Yue.air Yue
copy /Y Yue.snd+system.snd Yue.mk2
move /Y Yue.mk2 Yue
cd Yue
..\sndmaker <Yue.mk2
cd ..

copy /Y Neko.spr+system.spr Neko.mak
move /Y Neko.mak Neko
cd Neko
..\sprmaker <Neko.mak
cd ..

copy /Y Jes.spr+system.spr Jes.mak
move /Y Jes.mak Jes
cd Jes
..\sprmaker <Jes.mak
cd ..

copy /Y jes.ai1+system.air jes.air
move /Y jes.air jes

copy /Y neko.ai1+system.air neko.air
move /Y neko.air neko

the system.air, system.spr and system.snd files contain the data that needs to be included in all character's files, and the charname.ai1, spr and snd files are for the stuff that is used for one character only. It uses Sprmaker and sndmaker to put the files together, so data must be in the correct format for them.

If you have this kind of setup ready, every time you need to change anything that applies to all of your characters, all you need to do is change the image/wav file once, or edit your system.air file once, then run the batch file and all files of all your characters will be updated. Adding new content is also a lot easier this way, just copy the files into the proper folder and add them into the spr/snd text file, then run the batch file.
Re: "Shared" SFF , AIR and SND between characters.
#2  May 19, 2009, 11:13:31 pm
  • *****
    • Mexico
I use this for full-games, if I add some kind of system that every character have, I just go to the characters def file and write in the extra .cns file (I put the files in the char folder and then write ../nameoffile.cns).