Posted: Sun Aug 18, 2013 4:39 pm Post subject: Guide on how to put new vehicles in the game
This is an attempt to give starting vehicle modders instructions on the steps necessary to put a new vehicle in the game.
I know the information is on the forum somewhere, but for the most part its spread out and for me at least it took a lot of trial and error to put my first vehicle into action.
This my way of trying to help more people becoming successful sooner and easier.
On the actual painting of the vehicles there are guides on the forum (If you search for it).
Instructions for the RTB tools are included in download.
Where do you find the stuff to get started:
CCMT/GRAPHIC folder contains Tanks.azp - with vehicles graphics and Shadows.azp - containing -YES shadows graphics.
CCMT/DATA/Base folder contains all the data from the Workbook. like "Vehicles" and "RedTeams" and "BlueTeams"
So, here it goes:
1. Download workbook for CCMT and "RTB-tool" from DL section found on this page
2. Make copies and backups of all files you are editing and place them in a safe folder.
3. Make your new vehicle graphic and use RTB tool to unpack and repack both "Tanks.azp" and making the conversion from .TGA to TEX. - You should end up with a new "Tanks.azp" file containing your new vehicle graphic. - The new Tanks.azp goes back into the games GRAPHICS folder.
4. In the workbook you need to edit the "Vehicles" and "RedTeams" or "BlueTeams" tab.
- First add your new vehicle to the bottom of the (Vehicles) list (For patched CCMT this will be class number 69 for your first new vehicle.)
- Graphics name need to match exactly the title of the .tex file for your new vehicle that is packed in the "Tanks.azp" (look at the original entries and you will understand)
- The wreck file: You can use one of the existing ones or make a new one - again using RTB tool to unpack-repack just like with graphics (I didn't do this- Just used an existing wreck) Make sure your spelling is exact here as well.
- Put the data for your vehicle in the appropriate columns. If your vehicle is a variation of an existing one you might be able to copy a lot of the data from the original vehicle data.
- Now update the counter in the top left ( It says 149) to 150 - This is to account for the addition of 1 vehicle in the table.
- This is it for the vehicle tab.
- If you want your new vehicle to be present on both sides you will have to put in both tabs. otherwise put it on the team you have chosen.
- You can put the new vehicle anywhere in the list of teams but make sure to update the "Class" numbers so all teams have a unique number.
- Put the data you want for your vehicle, but pay attention to column 72 "Vehicle CLASS" - This number HAVE TO match the vehicles coresponding number from the "Vehicles" tab. In this case when we have added ONE new vehicle it will be: 69.
- Same as on Vehicles tab - update the number in top left by one. (Right under the Name")
When this is done you Save both "vehicles" and "Teams" tabs as Tab-delimited? Text file (My system is not in English) If you hit the right option, your saved text file should look exactly the same as your backups from the game base files.
5. Put the new "vehicles" and RedTeams/BlueTeams txt files in CCMT/DATA/BASE files folder.
6 Now one thing is left: The vehicle needs a shadow. -Game will crash without it.
- So unpack "Shadows.azp" with RTB tool same as with "Tanks.azp" and put in the shadow for your vehicle. It can be made or you can copy an existing shadow from the opened file.
ONE thing is important: Make sure the naming of the new shadow corresponds (is the same) with the vehicles graphic in the "Tanks.azp"
Re-pack shadows with RTB and put it in CCMT/GRAPHICS folder.
7. Open the game, make a scenario and put your new vehicle.
8. Be proud when YOUR vehicle successfully solves its first mission.
9. Optional but highly encouraged: Share your new vehicle with the community and keep this fantastic game alive;)
If someone has additional points or want to expand on this, please do. I do not claim to know this game in and out...
Posted: Mon Feb 24, 2020 8:14 am Post subject: Re: Guide on how to put new vehicles in the game
I'm trying to add new gun/tank graphics into PITF but seem to be a bit stuck on how to do this for 32 bit graphics.
Newest version of RTB tool doesn't support the 32 bit graphics, unpacked sprite is displayed as a black blur, can it still be used for PITF/GTC?
CCmunger can be used for packing unpacking but how can i adjust the hotpoints?
The CCmunger tool doesn't use *.TEX files but uses a texdata.txt file what is the difference between them?
If anyone with some experience in doing this for PITF/GTC could post a quick guide i would appreciate it.
Posted: Mon Feb 24, 2020 10:13 pm Post subject: Re: Guide on how to put new vehicles in the game
Yes, there is now only Texdata.txt.
a57mmM1A1_norm.tex - Name of the graphic as per in azpdata.txt
0 ---->? - Dont know, but all are set to 0
1 ---->? - Number of images for this graphic - One is enough for both guns and vehicles, even though PITF uses 17.
20, 35, 20, 35 ---> These are the XY coordinates of the hotpoint, 4 coordinates is this because of the 2 images (image and alpha channel?)
I think these are hotpoints for Hull graphic and for shadow. - Cant be much else really.
They are definitely not different for the image and alpha channel - As the alpha channel follows (Are on top of) the image.
Yes, hotpoint in center of the gun or center of tank-turret placement on tank hulls.
There is a trick to use of CCMunger: If you make a large image of say 500x500 pixels with vehicle/gun hotpoint that you want in the center of this, rest of image and alpha masked.
Use this center hotpoint in your texdata when packing and CCMunger will automatically cut down image and rewrite the hotpoint too if IIRC.
This info is somewhere on Matrix forums...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited
and found this site to thier liking. I hope you had time to check out some
of the great Close Combat mods and our forums. I'd also like to thank
all the members of our volunteer staff that have helped over
the years, and all our users that contributed to this site!