XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Apr 27, 2017 11:59 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: NFS No Limits
PostPosted: Wed Jan 14, 2015 2:44 am 
Offline
veteran

Joined: Sun Apr 11, 2010 7:46 pm
Posts: 134
Has thanked: 8 times
Have thanks: 6 times

Thanks chipi it works perfect, but I have no idea how to make textures work.

How to convert NFS NL (sba) textures to any usefull format?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Wed Jan 14, 2015 6:37 am 
Offline
advanced

Joined: Mon Sep 22, 2014 1:23 am
Posts: 72
Has thanked: 24 times
Have thanks: 6 times
TomWin wrote:
Thanks chipi it works perfect, but I have no idea how to make textures work.

How to convert NFS NL (sba) textures to any usefull format?


Read his post, mate. :(

Quote:
My converter has been ready since Sunday, but I've been struggling with sba textures.
It's all a mess, multiple data chunks connected together like databases...


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Wed Jan 14, 2015 8:56 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Thu Feb 03, 2011 11:18 am
Posts: 476
Has thanked: 42 times
Have thanks: 286 times
Here's what I know so far about the SBA.
The file structure itself is very straight-forward:
Code:
int32 fileIdentifier //"SBIN"
int32 version

struct dataBlock
{
   int32 dataIdentifier; //4byte string
   int32 dataLength; //not including identifier, length or checksum
   int32 checksum;
   byte[] data;
}

This structure is looped until the end of the file, and each one is aligned to 4 bytes (although only CDAT needs it)

There are several types:
  • "ENUM", "STRU": groups of shorts(usually 6) that may give additional information about the other structures that follow
  • "FIEL": group of shorts; unknown at this point
  • "OHDR": presumably acts like a header with reading instructions for the "DATA" that follows
  • "DATA": contains texture properties such as format, width, height, mipmaps
  • "CHDR": header for the "char data block"; contains pairs of int32 offsets and lengths used to read strings
  • "CDAT": char data block from which strings are read using "CHDR"; the strings are null-terminated, but that's probably part of the writing process, not the reading
    Examples: ImageFormatType, TextureFilterType, TextureWrapType, Image, format, data, width, height, Texture, mipmaps, filter_min, filter_mag, wrap_s, wrap_t, default, RGB, RGBA, PVRTC_2BPP_RGB, PVRTC_2BPP_RGBA, PVRTC_4BPP_RGBA, PVRTC_4BPP_RGB, DXT1, DXT3, DXT5, ATC_RGB, ATC_RGBA_Explicit, ATC_RGBA_Interpolated, ETC_RGB, PNG, JPEG, Nearest, Linear, NearestMipmapNearest, NearestMipmapLinear, LinearMipmapNearest, LinearMipmapLinear, Repeat, ClampToEdge
  • "BULK": unknown at this point; could be used to link everything together
  • "ALGN": used for the sole purpose of aligning the image data
  • "BARG" contains the actual image data

In case of PNG textrues the image data inside "BARG" is the whole PNG file and just needs to be extracted. That's why Dragon Unpacker can find them easily.
In case of DXT or PVR, the texture headers need to be rebuilt, that's why it's important to parse "DATA" properly and read everything.

The way I see it, property strings from CHDR need to be linked to property types and then to actual values from DATA in order to have enough information to rebuild texture headers.
It's just a matter oh "how" :)

_________________
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Wed Jan 14, 2015 11:15 am 
Offline
veteran

Joined: Sun Apr 11, 2010 7:46 pm
Posts: 134
Has thanked: 8 times
Have thanks: 6 times
Ok thanks I didn't read that post I got confused with "texture names"


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Wed Jan 14, 2015 11:52 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Thu Feb 03, 2011 11:18 am
Posts: 476
Has thanked: 42 times
Have thanks: 286 times
Yeah, it may be a bit confusing. What I mean is texture names and file paths are registered, but they will fail to load.
So at the very least you will know what kind of texture should be used for a specific material.

_________________
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Fri Jan 16, 2015 8:32 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Thu Feb 03, 2011 11:18 am
Posts: 476
Has thanked: 42 times
Have thanks: 286 times
Here is a small tool I made to convert textures: http://www.mediafire.com/download/m00pm ... aBrute.zip
It is by no means a "true" converter. It basically guesses the image format and number of mipmaps based in width, height and image data size.
Only for NFS:NL! Most textures are successfully converted, except cube maps and some special sba files.

I have also updated M3G2FBX:
- fixed a small issue with rotations
- added option to make mesh names unique, useful if you plan to convert FBX to OBJ; usage: M3G2FBX -u file/folder
- the tool will now actively search for textures that have been converted with sbaBrute; keep textures in their original location or in the same folder as the model

I suggest you remove any special characters from folder names, for example the ™ in NFS NL, otherwise textures may not load.

Image Image Image Image Image

_________________
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Sat Jan 17, 2015 8:21 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Thu Feb 03, 2011 11:18 am
Posts: 476
Has thanked: 42 times
Have thanks: 286 times
Please re-download M3G2FBX. I have fixed a serious issue that prevented reading UVs on certain models, including a few cars.

Thanks to Automotive Gaming for pointing it out.

_________________
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Sat Jan 17, 2015 3:13 pm 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
Works perfectly well!
Again,thank you very much @Chipicao for theese amazing tools! :D

Image Image Image Image Image Image Image Image Image Image


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Tue Jan 20, 2015 8:03 am 
Offline
ultra-n00b

Joined: Sat Dec 13, 2014 9:51 am
Posts: 7
Has thanked: 0 time
Have thanks: 0 time
Chipicao wrote:
Here is a small tool I made to convert textures: http://www.mediafire.com/download/m00pm ... aBrute.zip
It is by no means a "true" converter. It basically guesses the image format and number of mipmaps based in width, height and image data size.
Only for NFS:NL! Most textures are successfully converted, except cube maps and some special sba files.

I have also updated M3G2FBX:
- fixed a small issue with rotations
- added option to make mesh names unique, useful if you plan to convert FBX to OBJ; usage: M3G2FBX -u file/folder
- the tool will now actively search for textures that have been converted with sbaBrute; keep textures in their original location or in the same folder as the model

I suggest you remove any special characters from folder names, for example the ™ in NFS NL, otherwise textures may not load.

Image Image Image Image Image



wow great... can u please share the garage FBX model???
Thanks


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Fri Jul 17, 2015 12:32 pm 
Offline
ultra-n00b

Joined: Wed Jul 15, 2015 11:41 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
Chipicao wrote:
- supports all models from RR3, NFS:MW and NFS:NL

Um, is a support for NFS:HP possible (as it uses M3G for models as well)?


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Thu Feb 04, 2016 9:27 pm 
Offline
beginner

Joined: Thu Feb 04, 2016 9:20 pm
Posts: 35
Has thanked: 1 time
Have thanks: 2 times
sbaBurte isn't working from newest cars and obb file can not open http://www.mediafire.com/download/l14hj ... blo_sv.rar


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Sun May 15, 2016 8:06 pm 
Offline
beginner

Joined: Thu Feb 04, 2016 9:20 pm
Posts: 35
Has thanked: 1 time
Have thanks: 2 times
Game have new archive of models: http://www.mediafire.com/download/gnkaf ... models.ob1


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Sun Jul 03, 2016 12:17 am 
Offline
ultra-n00b

Joined: Sat Jul 02, 2016 1:18 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
They updated NFSNL game archive... i want it nissan r34 and 180sx


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Sun Sep 04, 2016 7:20 pm 
Offline
ultra-n00b

Joined: Sun Aug 28, 2016 4:00 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
Any progress on the .sb file scropt?


Top
 Profile  
 
 Post subject: Re: NFS No Limits
PostPosted: Tue Apr 11, 2017 10:12 am 
Offline
beginner
User avatar

Joined: Wed Dec 21, 2011 9:16 am
Posts: 39
Has thanked: 5 times
Have thanks: 1 time
What about sb3d? Now, nobody pays attention to this file. What's up?


_________________
ImageI Love Nermal!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group