Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,142 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

The Hero

DFF importer and exporter for 3ds max

Recommended Posts

The Hero

Haha, hidden nazi propaganda, eh? Probably due to the mess that is unicode on windows. (f*ck YOU UTF-16 f*ck YOU, DIE, DIE, DIE). Haven't actually tested the unicode versions myself...gah. Will fix it later, for now this is what it should say (lazy copy and paste from my code):

	{ "GTA III PS2 (3.1)", 0x31000 },	{ "GTA III PC (3.3)",  0x33002 },	{ "GTA VC PS2 (3.3)",  0x33002 },	{ "GTA VC PC (3.4)",   0x34003 },	{ "GTA III/VC Mobile (3.4)",   0x34005 },	{ "GTA III/VC XBOX (3.5)",   0x35000 },	{ "GTA SA (3.6)",   0x36003 },
Edited by The Hero

Share this post


Link to post
Share on other sites
MrMateczko

Is this the third DFF exporter ever made for 3ds Max in the world?

 

Is so, try to make it as best as possible!

Share this post


Link to post
Share on other sites
The Hero

That's the idea. I will continue to improve it in the next time until it does everything i want it to. What I released today was one week of work.

Share this post


Link to post
Share on other sites
The Hero

Jinx and I just noticed a MAJOR bug: the exporter doesn't actually write files, lol.

I will fix this immediately.

EDIT: Should be fixed now. For some reason the plugin doesn't load properly in 2014 and upwards for me. Not sure what the reason is. Is it just me perhaps? You can load it manually in any case but there is some f*ckup happening...

Edited by The Hero

Share this post


Link to post
Share on other sites
lpgunit

I have some problems with version selection BslUuAJ.png

The YTMND community will thank you for this xD:

 

Seriously though, did you use snippets from the Renderware SDK when you made this, or is this all made from scratch?

 

EDIT: Tried exporting a project file I made using 3DS Max, and it doesn't appear to be scaled well on import compared to the one I did using Kam's scripts.

Edited by lpgunit

Share this post


Link to post
Share on other sites
The Hero

From the old 3.1 exporter (for which we have the source code) I actually stole some code (two small functions I think) but I mostly used it for reference. I also used the 3.7 exporter (for which I have no source) to experiment with and create test files.

Scaling (and object offsets, i.e. moving the pivot around) are indeed things that aren't implemented yet. For now you have to bake the transform manually into the geometry (on the command panel: hierarchy tab -> adjust transform -> reset)

Edited by The Hero

Share this post


Link to post
Share on other sites
lpgunit

From the old 3.1 exporter (for which we have the source code) I actually stole some code (two small functions I think) but I mostly used it for reference. I also used the 3.7 exporter (for which I have no source) to experiment with and create test files.

Scaling (and object offsets, i.e. moving the pivot around) are indeed things that aren't implemented yet. For now you have to bake the transform manually into the geometry (on the command panel: hierarchy tab -> adjust transform -> reset)

It certainly isn't ready for prime time yet, but I'm looking forward to the next release. ;)

Share this post


Link to post
Share on other sites
zmudziak32

Hey, it is possible to import/export peds and characters models from PS2/XBOX?

Share this post


Link to post
Share on other sites
The Hero

Yes.

Share this post


Link to post
Share on other sites
The Hero

Updated to 2.1:

- scaled and translated geometry should be handled correctly now.

- nodes are now sorted by ID (important for anm animations later on)

- lights and cameras are exported correctly oriented (not very interesting for GTA, but who cares)

- fixed the bug in the unicode versions (2014 and upwards) where strings were missing

Edited by The Hero

Share this post


Link to post
Share on other sites
lpgunit

Updated to 2.1:

- scaled and translated geometry should be handled correctly now.

- nodes are now sorted by ID (important for anm animations later on)

- lights and cameras are exported correctly oriented (not very interesting for GTA, but who cares)

- fixed the bug in the unicode versions (2014 and upwards) where strings were missing

There, just tried it on a scooter mod I made, and it scales correctly now.

Share this post


Link to post
Share on other sites
The Hero

Little update:

- fixed a crash that happened with geometries having more than 8 materials (stupid typo, argh)

- fixed reflection material shininess (stupid brain, argh)

 

Sorry that these are so small incremental updates but this is pretty basic functionality and I find it embarrassing I'm still finding bugs.

Share this post


Link to post
Share on other sites
ermaccer

Shouldn't be hard to port into gmax?

Share this post


Link to post
Share on other sites
The Hero

Urgh...unlikely. Supporting all these versions is a pain in the ass and nobody even uses gmax anymore.

Edited by The Hero

Share this post


Link to post
Share on other sites
lpgunit

Urgh...unlikely. I supporting all these versions is a pain in the ass and nobody even uses gmax anymore.

Despite being freeware and not requiring the user to jump hoops or appropriate the stuff illicitly, if I might add.

Share this post


Link to post
Share on other sites
ColtA

I can't seem to properly export a vehicle using this plugin. I could barely export them using Seggae's plugin, lol. All I'm getting is failure to loads and CTDs.

When I re-import them into Max they look fine, and it's not an archiving problem, so I've got no idea what's wrong.

Not sure whether my 3DS Max is at fault, or whether I'm just an idiot.

Share this post


Link to post
Share on other sites
cj2000

What about UVmap2 suport?

Share this post


Link to post
Share on other sites
The Hero

Should be working already.

Share this post


Link to post
Share on other sites
cj2000

Should be working already.

Cool, but any chace to get suport for earlier max versions?

Share this post


Link to post
Share on other sites
Jinx.

 

Should be working already.

Cool, but any chace to get suport for earlier max versions?He answered about this a few posts ago.

Share this post


Link to post
Share on other sites
cj2000

 

 

Should be working already.

Cool, but any chace to get suport for earlier max versions?
He answered about this a few posts ago.

 

I was not tallking about gmax. I meaned earlier versions of 3ds Max than 2009.

Share this post


Link to post
Share on other sites
Jinx.

 

 

 

Should be working already.

Cool, but any chace to get suport for earlier max versions?
He answered about this a few posts ago.

 

I was not tallking about gmax. I meaned earlier versions of 3ds Max than 2009.Doesn't matter, because he already stated that supporting all these versions is a pain in the ass.

Share this post


Link to post
Share on other sites
cj2000

 

 

 

 

Should be working already.

Cool, but any chace to get suport for earlier max versions?
He answered about this a few posts ago.

 

I was not tallking about gmax. I meaned earlier versions of 3ds Max than 2009.Doesn't matter, because he already stated that supporting all these versions is a pain in the ass.

 

That why I prefer max scripts over SDK, they worck with all max versions.

Share this post


Link to post
Share on other sites
The Hero

You don't want to write a sophisticated library for working in RW files in maxscript though. Maxscript is nice but the thought of importing ps2 dffs with maxscript......no thanks, it's hard enough with c++.

This posts sounds like written by fastman.

Edited by The Hero

Share this post


Link to post
Share on other sites
cj2000

You don't want to write a sophisticated library for working in RW files in maxscript though. Maxscript is nice but the thought of importing ps2 dffs with maxscript......no thanks, it's hard enough with c++.

This posts sounds like written by fastman.

I understand. Any chance that PS2 mdl from LCS and VCS will be suported in the future? I have already gained many information about that formats, so if interested can share.

Share this post


Link to post
Share on other sites
Cherbet97

Omg, i imported blistac.dff(SA PC), fixed taillight, exported, and game will crash if i load it. Any idea?

Edited by Cherbet97

Share this post


Link to post
Share on other sites
The Hero

I understand. Any chance that PS2 mdl from LCS and VCS will be suported in the future? I have already gained many information about that formats, so if interested can share.

No, reading the files properly requires pointers no larger than 32 bits. Since recent max versions only come as 64 bit versions and I don't support 32 bit versions anyway this will never work. I thought about supporting LCS dffs though.

 

 

Omg, i imported blistac.dff(SA PC), fixed taillight, exported, and game will crash if i load it. Any idea?

No. Note that the "current" version is already old. I've made changes that aren't official yet and there's a chance it will work with later versions...I'm just not ready for another release yet.

Share this post


Link to post
Share on other sites
Cherbet97

 

Iy6JNBt.jpg

Look at rear window, this after import and export on 3ds max using your plugin, how to fix? And Kam's are exporting like that too.

Edited by Cherbet97

Share this post


Link to post
Share on other sites
cj2000

 

I understand. Any chance that PS2 mdl from LCS and VCS will be suported in the future? I have already gained many information about that formats, so if interested can share.

No, reading the files properly requires pointers no larger than 32 bits. Since recent max versions only come as 64 bit versions and I don't support 32 bit versions anyway this will never work. I thought about supporting LCS dffs though.

What do you mean by pointers? If I understood yo right, you mean fileoffsets that are using int32, but it´s really not a problem to cast in32 to int64.

Share this post


Link to post
Share on other sites
The Hero

Look at rear window, this after import and export on 3ds max using your plugin, how to fix? And Kam's are exporting like that too.

Broken normals. You have to set smoothing groups to make it smooth, and the vertices have to be welded for that.

 

 

What do you mean by pointers? If I understood yo right, you mean fileoffsets that are using int32, but it´s really not a problem to cast in32 to int64.

Well, the files contain offsets that are 4 bytes in size. When you read the file into memory you use the relocation table to fix up these offsets from file-relative to pointers to absolute memory locations. This can only work however if the address of the file in memory fits into 4 bytes and hence it will never work with 64 bit pointers. Of course you can read the file the hard way on any system by reading everything manually and putting it into appropriate structs or by copying the atomic/clump/texDict (*ahem*...i mean element/elementGroup/texList of course :D) and handling pointer references in a special way. But both these ways are pretty cumbersome and I won't implement anything like that. Edited by The Hero

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.