Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    2. GTANet 20th Anniversary

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

      1. Court House
    3. Suggestions

[3DSMAX|REL] OpenIV openFormats I/O


Alexander Blade

Recommended Posts

  • 2 weeks later...

updated , bone Index property is calculated automatically now , old scenes are compatible

Edited by Alexander Blade
Link to post
Share on other sites
  • 4 weeks later...

Hi! First of all thank you for these great scripts!

 

I am new to GTA modding and want to give mapping a try. I tried numerous times to export a simple, static mesh as a drawable but I only get an "EXCEPTION: MESH ERROR - dr_test_mesh type parameter is not drawable". I have a dummy called dr_test and a connected mesh called dr_test_mesh. The mesh has the iv_drawable_material applied and a texture is selected. I read the help file but I have no idea what's wrong.

Link to post
Share on other sites

Object's user props are not set , import some drawable and see what user props look like for each scene object .

 

Hi! First of all thank you for these great scripts!

I am new to GTA modding and want to give mapping a try. I tried numerous times to export a simple, static mesh as a drawable but I only get an "EXCEPTION: MESH ERROR - dr_test_mesh type parameter is not drawable". I have a dummy called dr_test and a connected mesh called dr_test_mesh. The mesh has the iv_drawable_material applied and a texture is selected. I read the help file but I have no idea what's wrong.

Link to post
Share on other sites

Ahh, thanks! That was the issue. I didn't know there were user defined parameters involved and I didn't know where to look for them but I found them.

 

Now I have the problem that all the edges are smoothed after exporting even though it looks fine in 3ds Max:

ZRSZf3w.jpg

(it's a model simply for testing)

 

I will try it with other models.

 

Edit: Same happens with a simple cube. :(

Edit 2: Fixed it. It was a problem with my mesh importing method.

Edited by DasMatze
Link to post
Share on other sites
  • 2 weeks later...

I have a slight problem, whenever I import a ped it messes up the skinning. However I am not sure if it's the tools fault as I have the same problem with KAM's Script when importing SA peds... As soon as I import it the rigging is F-ed up

Link to post
Share on other sites
  • 3 months later...

I have a slight problem, whenever I import a ped it messes up the skinning. However I am not sure if it's the tools fault as I have the same problem with KAM's Script when importing SA peds... As soon as I import it the rigging is F-ed up

 

Having exactly the same problem here. Someone must have some sort of idea? It just skins the mesh with all the bones in the skeleton and not rigged properly.

 

Edit: the rigging works on 3ds MAX 2012. Must be something to do with the different versions.

Edited by edwardh
Link to post
Share on other sites

Try gims , see if it's the same there

 

 

I have a slight problem, whenever I import a ped it messes up the skinning. However I am not sure if it's the tools fault as I have the same problem with KAM's Script when importing SA peds... As soon as I import it the rigging is F-ed up

 

Having exactly the same problem here. Someone must have some sort of idea? It just skins the mesh with all the bones in the skeleton and not rigged properly.

 

Link to post
Share on other sites

 

Try gims , see if it's the same there

 

 

 

 

 

I can get the rigging to work properly on GIMS EVO Max Payne 3 on my laptop, but the ofio rigging doesn't work on there either... but as I say it seems to work on 3ds MAX 2012...

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...

I always get this render issue when I export my model back into the game even without editing it.

 

I use 3ds max 2010 (32 Bit) and the latest openFormats I/O, should I upgrade to 2012 if it's possible and if not, jump over to 3ds max 2016 (student)?

 

At the moment there is no alternative because I can't find a download link for Gims IV Evo and zmodeler2 is confusing.

 

Schafter_bug_render.png

Edited by Nayrox
Link to post
Share on other sites

It was written in this topic for a few times already , this issue is caused because of smoothing groups attach and detach , it breaks some normals , this is the only way 3dsmax can import models and export them after , if this isn't performed exported models won't have visible edges .

 

I always get this render issue when I export my model back into the game even without editing it.

I use 3ds max 2010 (32 Bit) and the latest openFormats I/O, should I upgrade to 2012 if it's possible and if not, jump over to 3ds max 2016 (student)?

At the moment there is no alternative because I can't find a download link for Gims IV Evo and zmodeler2 is confusing.

Schafter_bug_render.png

Link to post
Share on other sites

So GIMS EVO has the same issue?

 

Then I try to learn zmodeler2, there I imported and exported my model back into the game without breaking the schafter3's model

Link to post
Share on other sites

Ahh, thanks! That was the issue. I didn't know there were user defined parameters involved and I didn't know where to look for them but I found them.

 

Now I have the problem that all the edges are smoothed after exporting even though it looks fine in 3ds Max:

ZRSZf3w.jpg

(it's a model simply for testing)

 

I will try it with other models.

 

Edit: Same happens with a simple cube. :(

Edit 2: Fixed it. It was a problem with my mesh importing method.

 

 

It was written in this topic for a few times already , this issue is caused because of smoothing groups attach and detach , it breaks some normals , this is the only way 3dsmax can import models and export them after , if this isn't performed exported models won't have visible edges .

 

I always get this render issue when I export my model back into the game even without editing it.

 

I use 3ds max 2010 (32 Bit) and the latest openFormats I/O, should I upgrade to 2012 if it's possible and if not, jump over to 3ds max 2016 (student)?

 

At the moment there is no alternative because I can't find a download link for Gims IV Evo and zmodeler2 is confusing.

 

Schafter_bug_render.png

 

You need to split smoothing groups into separate elements, for this reason I wrote a max script (note: your model must be converted to Editable Poly !):

/*!-------------------------------------------------------------------------------------------------------------------- * @file split smoothing groups into elements * @details File contains split smoothing groups to elements function realisation. * @author Tank * @copyright * @version 1.0 * @date 28.08.2015 *--------------------------------------------------------------------------------------------------------------------- */global groupIDsUsed = #()fn processSelection tmesh = (	try 	(		local faceCount = tmesh.getNumFaces()		for f = 1 to faceCount  do 		(			local groupID  = (polyop.getFaceSmoothGroup tmesh f)			appendIfUnique groupIDsUsed groupID		)		for g = 1 to groupIDsUsed.count do 		(			local faceGroup = #()			for i = 1 to faceCount do			(				local polygonGroupID  = (polyop.getFaceSmoothGroup tmesh i) as integer				if polygonGroupID == (groupIDsUsed[g] as integer) do				(					append faceGroup i				)			)			polyop.detachFaces tmesh faceGroup asNode:false		)		messageBox "Done !" title:"Information"	)	catch	(		print "Could not split smoothing groups into elements."	))rollout spl "Split tool" width:176 height:104(	button 'btn1' "Split Groups Into Elements" pos:[22,24] width:140 height:58 align:#left tooltip:"Split Polygon Smoothing Groups Into Elements"	on btn1 pressed do	(		clearListener()		sl = $selection		if sl.count > 0 do 		(			processSelection sl[1]		)			))createDialog spl
Edited by tank1
Link to post
Share on other sites

I got an Error "Exception: unknown bound type for wheel_rf_1"

 

I import the oft model, select the whole car with the mouse -> convert to:editable poly ->Use the split tool -> select ft_schafter -> OFT export Single

Link to post
Share on other sites

Is there a way to export a .wft in zmodeler2 to 3dsmax, then edit it and import it back into zmodeler to export it into .wft without errors ?

 

If not could someone suggest me a guide/tutorial how to work with zmodeler, at the moment the only thing I managed is swapping the wheels from the merit to the schafter3 or is there an official zmodeler thread where I can ask my questions ? :D

Edited by Nayrox
Link to post
Share on other sites
  • 3 weeks later...

Hey there, I'm new to GTA modding. I've tried to use OpenFormats I/O to export my car, but I get the following error:

 

Exception: FRAGMENT ERROR

 

unknown type for fragments

 

 

Googling only gives 1 result and the answer is poorly formulated. I've no documentation or guidelines to give me any direction to what the cause of this might be. Does anyone have any idea?

 

I'm using 3ds max 2015 (Student edition), linked all hierarchy as it's supposed to including the *_1 parts. I'm not entirely sure about the materials I'm supposed to use as I've no documentation etc. All I've applied so far is only a .dds texture and the "Car paint" material.

 

It's a custom model replacing an existing car. But exporting the original works fine, even after editing it.

Edited by erathia
Link to post
Share on other sites

Check the user props for some imported original vehicle and yours .

 

With props do you mean properties? Because in that case I'm not sure what or how to check (it).

 

This is all I get from running the MaxScript:

 

oLm6rah.jpg

 

Would you mean something like Object properties > User defined?

Edited by erathia
Link to post
Share on other sites

Yes , user defined props

 

Nope, I've quadruple checked everything. I've assigned all scene materials to the objects but it still gives me the same error.

 

 

dumping ft_virgo#("gta_vehicle_vehglass.sps", "vehicle_generic_glasswindows2", "1.00000000;1.00000000;1.00000000", "180.00000000", "0.15000000", "1.00000000;0.00000000;0.00000000", "1.00000000", "vehicle_generic_glassdirt", "vehicle_generic_smallspecmap")#("gta_vehicle_lightsemissive.sps", "virgo_lights", "1.00000000;1.00000000;1.00000000", "3.50000000", "0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000;0.00000000", "200.00000000", "1.50000000", "1.00000000;0.00000000;0.00000000", "0.50000000", "vehicle_genericmud_car", "Vehicle_generic_smallspecmap")#("gta_vehicle_badges.sps", "virgo_badges", "2.00000000;5.00000000;5.00000000", "200.00000000", "1.00000000", "1.00000000;0.00000000;0.00000000", "1.00000000;0.00000000;0.00000000;0.00000000", "1.00000000", "virgo_badges_n", "vehicle_generic_smallspecmap")#("gta_vehicle_mesh.sps", "vehicle_generic_detail2", "2.00000000;5.00000000;5.00000000", "100.00000000", "1.00000000", "1.00000000;0.00000000;0.00000000", "0.45000000", "vehicle_genericmud_car", "vehicle_generic_detail2_normal", "vehicle_generic_detail_spec")#("gta_vehicle_tire.sps", "vehicle_generic_tyrewallblack", "2.00000000;5.00000000;5.00000000", "50.00000000", "2.00000000", "1.00000000;0.00000000;0.00000000", "1.00000000", "vehicle_generic_tyrewall_dirt", "vehicle_generic_tyrewall_normal", "vehicle_generic_tyrewall_spec")#("gta_vehicle_lights.sps", "vehicle_generic_glasswindows2", "1.00000000;1.00000000;1.00000000", "200.00000000", "1.50000000", "1.00000000;0.00000000;0.00000000", "1.00000000", "vehicle_generic_glassdirt", "vehicle_generic_smallspecmap")#("gta_vehicle_paint1.sps", "vehicle_generic_smallspecmap", "2.00000000;1.00000000;1.00000000", "180.00000000", "0.15000000", "1.00000000;0.00000000;0.00000000", "40.00000000;0.00000000;0.00000000;0.00000000", "1.70000000;0.00000000;0.00000000;0.00000000", "0.45000000", "vehicle_genericmud_car", "Vehicle_generic_smallspecmap")#("gta_vehicle_shuts.sps", "vehicle_generic_doorshut", "2.00000000;1.00000000;1.00000000", "180.00000000", "0.30000000", "1.00000000;0.00000000;0.00000000", "0.20000000", "vehicle_generic_doorshut_normal", "Vehicle_generic_smallspecmap")#("gta_vehicle_paint2.sps", "vehicle_generic_smallspecmap", "2.00000000;2.00000000;2.00000000", "180.00000000", "0.15000000", "1.00000000;0.00000000;0.00000000", "40.00000000;0.00000000;0.00000000;0.00000000", "1.70000000;0.00000000;0.00000000;0.00000000", "0.45000000", "vehicle_genericmud_car", "Vehicle_generic_smallspecmap")#("gta_vehicle_interior2.sps", "virgo_interior", "2.00000000;5.00000000;5.00000000", "0.00100000", "0.00100000", "1.00000000;0.00000000;0.00000000", "1.00000000", "vehicle_generic_smallspecmap")EXPORT ERROR !
Link to post
Share on other sites

it throws this error if some object in fragment hierarchy has incorrect type user prop

should be one of these:

 

bone

common_mesh

fragment_group

fragment_child

boundbox

boundsphere

boundcapsule

boundcurvedgeometry

boundgeometry

Link to post
Share on other sites

it throws this error if some object in fragment hierarchy has incorrect type user prop

should be one of these:

 

bone

common_mesh

fragment_group

fragment_child

boundbox

boundsphere

boundcapsule

boundcurvedgeometry

boundgeometry

 

Ah, I managed to fix it. There were two tiny meshes that I didn't check. My apologies and thank you at the same time!

 

My model shows up invisible in OpenIV though, could that be because of the other meshes? I've only a High res of my model at the moment, the others are Med and L versions of an existing model. The size is close to the other model (Just slightly bigger), could it be the materials? Nothing shows up as far as I can see. Not even in edged mode.

Edited by erathia
Link to post
Share on other sites

Upload your exported files (.oft + others) somewhere

 

 

it throws this error if some object in fragment hierarchy has incorrect type user prop

should be one of these:

 

bone

common_mesh

fragment_group

fragment_child

boundbox

boundsphere

boundcapsule

boundcurvedgeometry

boundgeometry

 

Ah, I managed to fix it. There were two tiny meshes that I didn't check. My apologies and thank you at the same time!

 

My model shows up invisible in OpenIV though, could that be because of the other meshes? I've only a High res of my model at the moment, the others are Med and L versions of an existing model. The size is close to the other model (Just slightly bigger), could it be the materials? Nothing shows up as far as I can see. Not even in edged mode.

 

Link to post
Share on other sites

Has anyone got any idea why my whole mesh is shifted from the regular Z-axis?

 

PxKhblj.jpg

 

Even the mesh seems to be mirrored horizontally.

 

I removed all the _low and _med parts, but it remains the same. I only moved a few bones (Windows and the like), and suddenly it was like this..

Edited by erathia
Link to post
Share on other sites
  • 4 weeks later...

Hey, I have a problem with Export ODR. I am modifying Niko's head, I convert the materials to iv drawable, but the mesh... I don't know...

*Here is my character's head and the error

gtaiv_mx2_zpsu4cg6gkl.png

What? what parameter? HELP!!!

NOTE: The head is an skinned editable mesh

gtaiv_mx3_zpsmzdllvbi.png

Edited by Tonicipriani142
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
  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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