xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
5 Pages V  1 2 3 > »   
Reply to this topicStart new topic
> Pedro’s Forzabintoolz – Official Support Thread., Custom Forza decals!
PedrosPad
post Jun 14 2005, 10:09 AM
Post #1


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



Pedro’s ForzaBINToolz – Official support thread.
(Devised by Angerwound, implemented by Pedro)
(The announcement of the release of these tools was buried deep in an unfocused thread, so I thought I formalise their release by creating their own support thread – apologies to those to whom this not new information.)

M$’s Forza Motorsport allows limited car paintjob customisation. This is achieved through a limited set of decals and vinyls that users can apply to their cars. Some very creative people have already achieved amazing effects layering the supplied decals to create highly personalised cars (examples here).

For the less imaginative of us, I present Pedro's ForzaBINToolz. (Initially available for download from the tools page of http://www.forzacustoms.info/)

The ForzaBINToolz allow the user to replace the standard collection of available car decals with their own images (photos, clan logos, etc.). These can then be applied to the cars using the in-game tools in the “garage”.

Going technical for a moment, when you exit the in game “garage”, any custom decals are stamped onto the car’s skin (which is stored in the gamer's profile on the HDD). And it is this skin that is transmitted to others players over system link or XBOX!Live – so they do not require your personal decals to actually view and appreciate your handiwork. biggrin.gif
fyi - The skin looks like this:
user posted image

The standard decals are stored in a custom format on the game disk in the file \media\decals.bin.

Pedro’s ForzaBINDump program extracts the existing decals and vinyls into separate TGA files, readable by most graphic painting programs. And Pedro’s ForzaBINPack will reassemble a collection of TGA files back into the decals.bin file. Once the game’s decals.bin file is replaced with the new one, your own decals will be available for use in-game.

Single decals can be replaced:
user posted image user posted image user posted image user posted image

Or, with more imagination, several decals can be utilised to facilitate more options. (See Pedro's TGAtoTiles also available from http://www.forzacustoms.info/)
user posted image user posted image user posted image user posted image

Thanks to Angerwound, krash, jackbauer, & Nunim for their assistance and testing.
Thanks to the ForzaCustoms.info team for hosting the utils (http://www.forzacustoms.info/).
And thanks for all the posters on the xbox-scene & forzacustoms.info forums for their encouragement.

This post has been edited by PedrosPad: Jun 14 2005, 09:00 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 14 2005, 10:20 AM
Post #2


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



Pedro's ForzaBINDump:
Version History:
Version 1.5 - Source code tidy up.
Version 1.4 - Now flips decal image itself & tidied up source code.
Version 1.3 - Add dumping of CarRights information.
Version 1.2 - Integrated zLib inflate() library.
Version 1.1 - Added zLib inflate() via zLib1.DLL
Version 1.0 - 1st release.

Pedro's ForzaBINPack:
Version History:
Version 1.2 - Fixed bug preventing Ferrari logo appearing.
Version 1.1 - Source code tidy up.
Version 1.0 - 1st release.

Pedro's ForzaBINToolz Release 2 included full 'C' source code. The source code documents the decals.bin file format and is probably the major value of the project. The command line toolz are really just proof-of-concept, and were simply used to validate the file format assumptions. Hopefully more dedicated fans will take this work further. biggrin.gif

This post has been edited by PedrosPad: Jun 14 2005, 10:46 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
CrakkedOut
post Jun 14 2005, 07:11 PM
Post #3


X-S Expert
***

Group: Members
Posts: 731
Joined: 21-August 03
From: LINY
Member No.: 57638
Xbox Version: none
360 version: none



are you limited to the amount of decals that you can put into the game?

or is it you only replace certain decals with the new ones?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 14 2005, 08:19 PM
Post #4


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



QUOTE(CrakkedOut @ Jun 14 2005, 08:22 PM)
are you limited to the amount of decals that you can put into the game?

or is it you only replace certain decals with the new ones?
*


Short answer:
It's safer to simply replace existing decals, althrough you can replace any size decal with one up to the maximum size of 128x128.

Long answer:
On the decal picking screen, the Forza game engine displays the title of the selected decal in the footer. These names aren't contained in the decals.bin file - they exist elsewhere in the game engine. They appear to relate to the decals solely based on the location/order of the decal in the decals.bin file (decal 1 is always "3DLogo", etc.).

Tests appending a small number of additional decals did work, but resulted in rogue decal titles being displayed. It is anticipated that further appending would eventually cause the Forza game engine to crash - although this was not proven. Now that the source is available, others are welcome to continue this investigation.

This post has been edited by PedrosPad: Jun 14 2005, 08:23 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 15 2005, 08:08 AM
Post #5


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



Angerwound has written a step-by-step tutorial on using the ForzaBINTools.

QUOTE("angerwound")
Extracting/Injecting Decals

EXTRACTING THE ‘DECALS.BIN’ FOR VIEWING OR MODIFICATION
1. First of all, you will need a copy of the original ‘decals.bin’ from the /media/ folder of your Forza game disk. Retrieve it from you console using your preferred method. If you are unaware how to do this, visit Xbox-Scene.com.
2. Next, grab the latest version of ForzaBINToolz from ForzaCustoms.info.
3. Open a command prompt -> Start -> Run -> ‘cmd’.
4. Navigate to the folder where your ‘decals.bin’ and ForzaBinToolz currently reside.
5. Extract the ‘decals.bin’ with ForzaBINDump using the syntax,
“ForzaBinDump decals.bin”
6. The program will then extract every decal, vinyl, and carclub_icon from the archive.
7. You can now view these with Photoshop or edit them for later injection back into the ‘decals.bin’ archive.

INJECTING CUSTOM IMAGES INTO THE ‘DECALS.BIN’ ARCHIVE
1. You will need to extract ‘decals.bin’s contents to a folder on your desktop before doing anything. Read above on how to do that.

2. Next, figure out which image/images you will want to inject into the archive. The source image will need to have specific details depending upon which image you plan on replacing.
    a. Decal TGA files must be 256 colour palettised TGA files with Alpha channel format. Saving as a regular 256 colour TGA works (the ForzaBINPack makes up a solid alpha channel if none exists).
    b. Vinyl TGA files must be greyscale TGA files.
3. Photoshop should be able to handle all of this. If you’re having difficulties getting your images to the required format, visit the ForzaCustoms.info Forums for more assistance.

4. The Forza ‘In-Game Editor’ is set to only accept 128x128 pixel images for use. Therefore, you can either:
    a. Edit an already existing ‘extracted’ decal.
      i. Open any number of the extracted decals from the first step in Photoshop and edit to your liking.

      ii. Be sure when you save the image it is 128x128 pixels and fits the specifics from #2.
    b. Take a larger, custom image and slice it up into 128x128 pixel tiles with ‘TGAtoTiles”. (Image must be TGA format set to specifics in #2)
      i. Grab the latest version of ‘TGAtoTiles' from ForzaCustoms.info and place it within the same folder as your source .tga image.

      ii. Open a command prompt and navigate to the folder where your source .tga image is located.

      iii. Slice the image into tiles with the syntax:
      “TGAtoTiles 128 128 Source.tga decal”

      iv. Replace some of the decals that were extracted in the first step with the resulting .tga images. Be sure to rename them correctly.
5. Now that we have all of our images saved over the ones that were original extracted we can begin to rebuild the ‘decals.bin’ archive to stick back in the game. You will need to once again navigate to the folder where our ForzaBinToolz is located alongside your extracted/edited decals.

6. Rebuild the archive with the syntax: “ForzaBINPack decals.bin”.

7. Transfer your new ‘decals.bin’ back to your xbox console begin building that masterpiece of a car.

NOTES:
  • Once your car is finalized allow it to save. The car is now usable on xbox live as well as system link. It can be sold, traded, and viewed by all. However, be sure that you do not attempt to edit the car with an original ‘decals.bin’ in place; your car’s paint will be come corrupted and deleted. Be Careful.


This post has been edited by PedrosPad: May 31 2006, 09:01 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 16 2005, 03:01 AM
Post #6


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



I've just completed a new utility that allows irregular shaped decals to be produced. It's a generic TGA utility and not Forza specific (although I can think of no other use for it wink.gif ). Thus it'll be released in a new version of TGAToolz (along with the old TGAtoTiles utility). It should be available for download from http://www.forzacustoms.info/ shortly.

From the readme:
CODE

TGAPal24to32:

Description:
This simple command line utility exports the palette of a 256 colour TGA format file into a simple text format.   This text version of the palette can then be edited as required - such as specifying any translucent colour requirements - then the utility allows the modifications to be injected back into the original image.

Why?
The TGA image file format supports 'translucent colours' which, like gels, allow any background image to still show through.  Each one of the 256 colours in the palette can have a 'translucent' value associated with it.  0 is clear, and 255 is most opaque.  However I've not found a graphic program that allows the user to configure this (not even the mighty Photoshop).  I have found one utility, Aha-view (from http://www.aha-soft.com/ahaview/tga-viewer.htm), that does display such TGA files correctly (useful for previewing your efforts).

Why might you wish to do this?
The 'translucent colour' can be used to simulate an alpha channel, and facilitate irregular shaped images, and images that combine with their background.

Usage:
TGAPal24to32 -[ei] <filename.tga> <palette filename.txt>

-e Extract palette to text file.
-i Inject palette from text file into image.

e.g.
TGAPal24to32 -e Source.tga SourcePal.txt
(Extracts the palette)
and
TGAPal24to32 -i Source.tga SourcePal.txt
(Injects the palette)

Notes:
The utility is so named as it actually changes a TGA's 24 bit colour palette (RGB), into a 32 bit colour palette (RGBA).

Version History:
Version 1.0 - 1st release.


Many thanks to Qwaz for his ideas, which ultimately led to this wink.gif beerchug.gif

This post has been edited by PedrosPad: Jun 16 2005, 04:08 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 16 2005, 03:24 AM
Post #7


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



In order to produce the livery below in Forza using the custom decals approach, you need a "Gulf" logo that is truly round, as it appears on both an orange and blue background (bonnet and door).
user posted image

A way to produced such a decal is to reduce its colour palette down to 255 colours and use the 256th palettes slot as a transparency colour. PaintShopPro 9 allows such a palette reduction to any number. I then set the colour of the vacant palette slot to a vivid green (R=0, G=255,B=0), to make it noticeable, and filled the areas I wanted transparent.
user posted image

I then saved the image as a 256 colour TGA. And used TGAPal24to32 to export the palette to a text file. Using TGAPal24to32 -e Gulf.tga Gulf.txt

CODE
Num R G B I
0 90 0 0 255
1 99 0 0 255
<snip/>
254 255 255 255 255
255 0 255 0 255

I knew the final palette entry was my transparency colour, and the RGB values confirmed this (Entry=255,R=0, G=255,B=0, I=255)

Using Notepad, I edited the intensity value right down to 0 (completely clear) and saved the file as "GulfModified.txt".
CODE
Num R G B I
<snip/>
255 0 255 0 0


I then used TGAPal24to32 again to inject my palette alterations back into the TGA.
TGAPal24to32 -i Gulf.tga GulfModified.txt

I coped the modified Gulf.tga across into my decals directory as decal000.tga, and used ForzaBINPack to produce a new decals.bin file. The Gulf logo transparency now appeared in-game smile.gif
user posted image

This was very coarse use of the technique. With a little more imagination, alpha blending, and transparent gels offer up all sorts of opportunities. By setting multiple (all?) palette entries to an incrementing ‘intensity’ nice fades can be achieved.

Well, enjoy.

This post has been edited by PedrosPad: Jun 17 2005, 08:53 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 16 2005, 11:28 AM
Post #8


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



I’ve seen a few posts around saying that some people are disappointed with their reduced colour palette decals in-game – complaining about muddy whites, etc. (I've not encounterd this myself).

Not sure about this but...
AFAIK the displayable colour gamut of a TV set is a lot less than a computer monitor (colour calibration may also contribute). So you may need to 'palette map' to a TV safe palette. Googling for information on this may throw up some useful links (e.g. like this and this).

It could be the XBOX hardware simply takes care of all this. unsure.gif

Just an idea. smile.gif

This post has been edited by PedrosPad: Jun 16 2005, 12:00 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Angerwound
post Jun 16 2005, 01:51 PM
Post #9


X-S Freak
*****

Group: Members
Posts: 1718
Joined: 16-January 04
From: Hell
Member No.: 92487
Xbox Version: v1.0
360 version: none



I haven't experienced the problem either however I'm running in 480p i believe. Might display colors a bit better then the average television set.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 16 2005, 02:42 PM
Post #10


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



QUOTE(Angerwound @ Jun 16 2005, 03:02 PM)
I haven't experienced the problem either however I'm running in 480p i believe. Might display colors a bit better then the average television set.
*


NTSC:
  • Never The Same Color.
  • Never Twice Same Color.
  • Not The Same Colors.
  • Never Tested Since Christ.
tongue.gif biggrin.gif

This post has been edited by PedrosPad: Jun 16 2005, 02:45 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Angerwound
post Jun 16 2005, 03:58 PM
Post #11


X-S Freak
*****

Group: Members
Posts: 1718
Joined: 16-January 04
From: Hell
Member No.: 92487
Xbox Version: v1.0
360 version: none



haha biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sirpyke
post Jun 16 2005, 06:30 PM
Post #12


X-S Member
*

Group: Members
Posts: 146
Joined: 28-March 05
Member No.: 209600
Xbox Version: v1.3



just a question...i havent used this so i am just asking here..i know you can extract the car textures..now can you paint a picture right on it...or can the decals be the only way to put a picture on it? say i got a viper and i want it to look like ...samurai jack. can i place the picture in the texture area or do i make the picture into decals and puzzle them together?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 17 2005, 09:36 AM
Post #13


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



QUOTE(sirpyke @ Jun 16 2005, 07:41 PM)
just a question...i havent used this so i am just asking here..i know you can extract the car textures..now can you paint a picture right on it...or can the decals be the only way to put a picture on it?
*


You have several choices:
  • Design you own car using the game’s built-in editor and the standard in-game decals. These are useable on XBOX!Live. Examples here.
  • Design you own car using the game’s built-in editor and custom decals. These are useable on XBOX!Live. Examples here.
  • Direct painting on the texture – using non-XBL auth key – usable on system link, but not useable on XBOX!Live! See the "Forza Texture Tool" available from http://www.forzacustoms.info/
  • Direct painting on the texture – Useable on XBOX!Live. This requires you to use the service offered by http://www.forzacustoms.info/.


This post has been edited by PedrosPad: Jun 17 2005, 09:37 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PedrosPad
post Jun 17 2005, 05:04 PM
Post #14


X-S Freak
*****

Group: Moderator
Posts: 1859
Joined: 4-July 03
From: UK
Member No.: 47221
Xbox Version: v1.1
360 version: v1 (xenon)



A couple of less obvious abilities/techniques with using TGAPal24to32 and the fact the palettes are exported to tab delimited TXT files…

To re-colour a existing decal that already has a complex palette alpha channel you don’t want to lose:
  • Export the palette from the original decal to txt (saves alpha channel).
  • Load the TGA into PS, re-colour (by adjusting palette entry colours), and save.
  • Export palette from new image.
  • Load both TXT files into Excel, cut/paste 4 column, and save. (Transfers the alpha channel values).
  • Inject new palette complete with old alphas into new decal.tga.

Excel can also be used to sort the palette entries, in order to group colours (useful for blended drop shadows), and can also be used to auto-increment the alpha number to author gradients.

The TXT file is tab delimited, and contains palette entry number, for use with Excel in mind. The TXT file palette rows can be safely reordered, and the palette entry field ensures the colours are still injected back into the right palette slots. biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sirpyke
post Jun 17 2005, 06:57 PM
Post #15


X-S Member
*

Group: Members
Posts: 146
Joined: 28-March 05
Member No.: 209600
Xbox Version: v1.3



ok..i was wondering i am not much for xbox live so i was just wondering because i see some sick looking vehicles and i wasnt sure if the car had to be painted one colour and a picture of whatever had to be decaled or just use it as a texture...so what does the key do then?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





5 Pages V  1 2 3 > » 
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 20th May 2013 - 01:34 AM