Welcome to Close Combat Series
  Login or Register Home  ·  Downloads  ·  Forums  ·  Combat Camera  ·  Help  

  Survey
Do incapacitations count as a soldier's kills?

Yes
No



Results
Polls

Votes 1179
Comments: 1

  Shout Box!!

Only registered users can shout. Please login or create an account.

  Main Menu
Articles & News  
    Help
    Player`s News
    Site News
    Multiplayer
    Terrain Challenge
    Boot Camp
Community  
    Forums
    Downloads
    Combat Camera
    MOOXE @ Youtube
    Statistics
Members  
    Private Messages
    Your Account
    Logout

  Donations
Anonymous - $25.00
08/15/2022

Anonymous - $25.00
08/15/2022

Anonymous - $25.00
12/18/2021

Anonymous - $100.00
11/08/2021

Anonymous - $15.00
04/09/2021

Anonymous - $100.00
04/05/2021

Anonymous - $20.00
02/20/2021

Anonymous - $10.00
12/29/2020

Anonymous - $1.00
11/06/2020

ZAPPI4 - $20.00
10/10/2020

Find our site useful? Make a small donation to show your support.



Search for at
Close Combat Series Advanced Search


 Author
Message
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Sun Aug 18, 2013 4:39 pm Post subject: Guide on how to put new vehicles in the game Reply with quote

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.
Vehicles:

   - 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.

RedTeams/BlueTeams

  - 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...

SchnelleMeyer.
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Mon Feb 24, 2020 8:14 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

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.

Thanks in advance
Back to top
View user's profile Send private message
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Mon Feb 24, 2020 3:35 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Aetius, for PITF/GTC you use a program called CCMunger to unpack/pack the graphics - Found here: https://www.matrixgames.com/forums/tm.asp?m=3244290

Just make sure the graphics have an alpha channel and are 32 bit tga before repacking and that they are linked in the text file that goes in the packed Tanks graphics file. (AZP and texdata files)

You adjust the hotpoints in the texdata.txt file
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Mon Feb 24, 2020 4:50 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Thanks for the info

It seems i was editing my original post while you where posting your reply
So if i understand correctly the *.TEX file isn't used anymore and has been replaced by the texdata.txt.

More questions about the hotpoints of guns:
Do you know what every digit of a gun sprite in the texdata.txt stands for?

example:
a57mmM1A1_norm.tex
0 ---->?
1 ---->?
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?)

The hotpoint should always be the center of tjhe gun itself, where the game engine "aims at" when fired upon?

Thanks in advance
Back to top
View user's profile Send private message
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Mon Feb 24, 2020 10:13 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

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...
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Tue Feb 25, 2020 10:04 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Thank you very much for the explanation.
Now it makes makes sense.
Back to top
View user's profile Send private message
 
Sapa

Rep: 76.3
votes: 8


PostPosted: Sun Mar 01, 2020 3:14 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Just a note Wink I dont know if its the same for the "newer" games
There was a problem with mods for CC5 that the game crashed sometimes when you tried to play single battles...

Tejszd found out that you need to have a wreck name on the same lines in the data as the orginal game, good work on that one  Very Happy

As i sad, just a note Smile
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Thu Mar 05, 2020 11:46 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Thanks for the tip.
I'll keep it in mind when i look at the wrecks file.
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Tue May 05, 2020 1:15 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Another question about hotpoints:

Where are the coordinates of the muzzle flash of a tank gun defined?
I've created a new tank image but the muzzle flash has a slight offset.
Where can i adjust this?

Aetius
Back to top
View user's profile Send private message
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Wed May 06, 2020 6:33 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

There is no specific coordinate for the muzzle flash as far as I know. I am not sure how it is controled, but it might be connected to the hotpoint of the graphic and size of the graphic.
Back to top
View user's profile Send private message
 
Aetius

Rep: 89.2
votes: 4


PostPosted: Thu May 07, 2020 11:18 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Thanks for your reply,

Posted the same question in the matrixgames forum, not really expecting a reply there.
Got the feeling old cc games are abandoned by the devs  Sad

Aetius
Back to top
View user's profile Send private message
 
arvigna

Rep: 39.5


PostPosted: Wed Jan 10, 2024 2:59 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Bonjour,
Happy new year !!

In the case of a new vehicle.

All phases are completed,

But when it comes to creating a scenario and adding the new vehicle, the game crashes. (only with it)


I suppose this is due to Shadows.azp.


I didn't create a new file, but copied an existing one and renamed it with the name of the new vehicle.

But does this file have to be the same size (pixel) as the vehicle?  

If not I don't understand the crash, I compiled with CCMunger...

Thank you for your help.
Back to top
View user's profile Send private message Visit poster's website
 
Pzt_Kanov

Rep: 14.2
votes: 9


PostPosted: Wed Jan 10, 2024 4:28 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

What version of Close Combat are you trying to mod.

CCMunger works well with Gateway To Caen and Panthers in the Fog. For the other versions it does not extract the tank files correctly.

use Mafi's RtB tool for extracting tanks from CC2, CC3, CC4, CC5, CoI, TLD, WaR, LSA.
Back to top
View user's profile Send private message GameRanger Account
 
arvigna

Rep: 39.5


PostPosted: Wed Jan 10, 2024 4:44 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Hello!

CCMT version,


For the shadow file, I tried both. CCMunger and RTB ...


It made no difference.


I copied a .spr file and renamed it ....
Back to top
View user's profile Send private message Visit poster's website
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Wed Jan 10, 2024 5:59 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Did you use the RTB for BOTH unpacking and packing? If not then make sure you do.
Back to top
View user's profile Send private message
 
arvigna

Rep: 39.5


PostPosted: Wed Jan 10, 2024 6:08 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

Hello!

find the error.

1 vehicle too many on the list ...

sorry for the inconvenience.  Embarassed

Very Happy
Back to top
View user's profile Send private message Visit poster's website
 
ScnelleMeyer

Rep: 190.3
votes: 18


PostPosted: Wed Jan 10, 2024 6:54 pm Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

No problem - the forum exists to help out each other.
Back to top
View user's profile Send private message
 
Hartinez

Rep: 0.1


PostPosted: Fri Feb 23, 2024 3:42 am Post subject: Re: Guide on how to put new vehicles in the game Reply with quote

how is it?
Back to top
View user's profile Send private message
 
 
Post new topicReply to topic printer-friendly view Close Combat Series Forum Index -> Close Combat Modern Tactics


 
   
 


Jump to:  
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




Forums ©





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!