Shadow-Link Posted November 2, 2010 Share Posted November 2, 2010 (edited) 3DS Max to IV Description This tutorial will learn you how to put custom models into GTA IV. It's still a work in progress and will be updated whenever I release a new version of Shadows Plugins! This tutorial will be split into several sections. Creating the WDR Creating the WTD Creating the WBD (No info yet) Adding the model to the game files Placing the model Ejoying the new model Extra tuts:Setting up lights, dummys and bones Setting up materials What you'll need3DS Max 2010 or higher Shadows Plugins G-Texture OpenIV Shadow Mapper 0.1b GTA IV or EFLC Let's get started! Creating the WDR Download the latest version of my scripts and install them by extracting all files into the 3DS Max->Scripts folder. Now launch 3DS Max and model something you want in IV. Only use the default material diffusemap and use atleast 2 materials! This will be the model I'll be using in this example called "glasbak" (dutch for GlassContainer)(I know it's not awesome ): Next step is to go to the "Utilities"(1) tab and click "IV IO"(2). A new window will pop up. Select the model you want to export and click "Export WDR" and give it a name. That's it you now got yourself a WDR file! Creating the WTD To create the WTD file we'll use G-Texture by Respawn. Launch G-Texture and select "New" from the File menu. You can now tell it where you want to save the wtd file. Now add the textures (.dds only) by clicking "Add" in the Textures menu. Once you've added all your textures you should get something like this: Save the WTD and you're done! Creating the WBD More info about this soon! Adding the model to the game files To add the model to the game files you can use Shadow Mapper or OpenIV. I'll use OpenIV in this example because it's what most people use. Launch OpenIV and open the IMG you want to add the model to. Next press the little "Add" button and add your WDR and WTD file.. wowa easy isn't it. I am using the OpenIV beta so things might look a bit different for you. As you can see I added glasbak.wdr and glasbak.wtd to the img. Close OpenIV and you're done with this step. Positioning the model Now we only need to place the model somewhere so we can check it out! This will be one of the hardest things for most people because Shadow Mapper is not really stable. Launch Shadow Mapper and select your install. Now go to the IDE tab and select the IDE with the same name as your IMG where you added the files to. Click the "New" button on the middle right of the form. A new window will popup. Click on "Select" and select your wdr form the img. Click on "Select" and select your wtd from the img. Click "Ok". You've just created the IDE line for your model. Now go to the scene tab and find the ipl where you want the model in. Check the checkbox in front of it and click render... Be patient, loading might take a while. Double click the ipl file to move the camera right to the action. Move to the position you want the model to be placed and go to the "IPL" tab. Click the "New" button on the middle right of the form. A new window will popup. Select the IDE and select the just created IDE line. Now go to the scene tab again and render it again (Sorry bug, my fault ) You can position your model by going to the "Properties" tab and use the controls there. Close Shadow Mapper it will ask you to save your files. Click "Save". You're done! Enjoy the custom model Edited November 3, 2010 by Shadow-Link Dock and Argonaut 2 Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 3, 2010 Author Share Posted November 3, 2010 (edited) Setting up lights, dummies and bones Description You are now able to export a model and put it ingame, but what if you want it to have lights, dummies or even bones. Note: Only lights are supported at this moment Let's get started! Open the model you want to attach the light to, I'll use the same example as in the exporting tutorial. There are two ways to create a light (That I know off). From the menu select "Create->Lights->Standard Lights->Omni". Now click your scene to create it. This is the other way: To adjust the light settings (Color only for now), you can go to the "Tools->Light Lister.." settings. For the export we need to attach the light to the model you can do this in the "Schematic View" Click the connect button then click on the light and drag it to your model. You should now see something like this: You're done! To export the model, with light, select only the model and follow the steps from the first tutorial. Result: Edited November 3, 2010 by Shadow-Link Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 3, 2010 Author Share Posted November 3, 2010 Post reserved for Materials tut Link to comment Share on other sites More sharing options...
coin-god Posted November 3, 2010 Share Posted November 3, 2010 Great work Finaly IV modding is starting to get interesting. Link to comment Share on other sites More sharing options...
ZAZ Posted November 3, 2010 Share Posted November 3, 2010 Great work Finaly IV modding is starting to get interesting. yep does it work with 3dmax v7? CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 3, 2010 Author Share Posted November 3, 2010 Great work Finaly IV modding is starting to get interesting. yep does it work with 3dmax v7? Nope sorry. Max 2010 or higher (Someone got it to work on 2009 tho). Link to comment Share on other sites More sharing options...
Arvis Posted November 3, 2010 Share Posted November 3, 2010 Awesome tutorial! That light in the screenshot, it works only in night or whole time? Link to comment Share on other sites More sharing options...
vans123 Posted November 3, 2010 Share Posted November 3, 2010 yeh, i get everything and everything goes cool, but when closing shadow mapper and say it to save "save" button is doesnt do anything, it keeps having the pop up there Link to comment Share on other sites More sharing options...
pmillett Posted November 3, 2010 Share Posted November 3, 2010 Well I can't get Shadow Mapper working <_< Right after the loading bars disappear, nothing happens. the program shuts down, no error given. Link to comment Share on other sites More sharing options...
lpgunit Posted November 4, 2010 Share Posted November 4, 2010 Nice... Well it's obvious that this will impair multiplayer functionality, but who cares when you made a new city in IV? Oh, and here are your precious cookies, Shadow, you really, really deserve to have one: Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 4, 2010 Author Share Posted November 4, 2010 @pmillett try the x64 or x86 (doesn't matter which version of windows you got). @vans: Looks like something went wrong with your ide file, open the ide window and select the model/wtd again. This Might fix it. @Arvis, only at night time, but I'll add more light options in one of the next releases Link to comment Share on other sites More sharing options...
pmillett Posted November 4, 2010 Share Posted November 4, 2010 Tried both.. same thing Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 4, 2010 Author Share Posted November 4, 2010 Try running it via command line "java -jar PathToShadowMapper.jar" and post the output Link to comment Share on other sites More sharing options...
pmillett Posted November 4, 2010 Share Posted November 4, 2010 Do I use regular command line? Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 4, 2010 Author Share Posted November 4, 2010 Do I use regular command line? yes Link to comment Share on other sites More sharing options...
pmillett Posted November 4, 2010 Share Posted November 4, 2010 As soon as it loads, it says "Unable to Load Ini" adn then I have to select IV's location but it doesn't load into the select screen..... that's it Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 I need to know the command line output Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 How do I post that??? Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 Take a screenshot or type it over or something Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 Here Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 What happens after that? Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 exactly what I told you happens. That's all that is shown in the CMD. Then I have to select IV but it doesn't show in the menu. Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 That's because you've got to add it.. Link to comment Share on other sites More sharing options...
Arvis Posted November 5, 2010 Share Posted November 5, 2010 pmillett, there is simple solution for your problem: 1st in cmd write cd c:/users/dragon king/desktop/shadow mapper/ and then java -jar shadow-mapper.jar If you did this exactly as I told it should work now. Also add ALL these lines to settings file offset13 = 0xBE6540name13 = 1.0.6.0 All offset14 = 0xBE7540 name14 = 1.0.7.0 Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 (edited) @shadow, i did several times but it doesn't appear in the select menu after i added it. @Vecis, ok NOW I got something worth posting Thank you. Here's all that was available for posting: Problem Event Name: APPCRASHApplication Name: javaw.exeApplication Version: 6.0.220.4Application Timestamp: 4c9088ddFault Module Name: nvoglv64.DLLFault Module Version: 8.17.12.6099Fault Module Timestamp: 4cb9db45Exception Code: c0000005Exception Offset: 0000000000761b28OS Version: 6.1.7600.2.0.0.768.3Locale ID: 1033Additional Information 1: 3f76Additional Information 2: 3f76a2f97cb0d43752984c382605bc27Additional Information 3: 4d12Additional Information 4: 4d12e41703a5369c2d401c1a91c62709 Edited November 5, 2010 by pmillett Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: C:\Users\Dragon King\Desktop\Shadow Mapper\jogl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform Like I said before use the other version of Shadow-Mapper (x86 or x64). Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 (edited) I was about to post the x64 bit version: Problem Event Name: APPCRASH Application Name: javaw.exe Application Version: 6.0.220.4 Application Timestamp: 4c9088dd Fault Module Name: nvoglv64.DLL Fault Module Version: 8.17.12.6099 Fault Module Timestamp: 4cb9db45 Exception Code: c0000005 Exception Offset: 0000000000761b28 OS Version: 6.1.7600.2.0.0.768.3 Locale ID: 1033 Additional Information 1: 3f76 Additional Information 2: 3f76a2f97cb0d43752984c382605bc27 Additional Information 3: 4d12 Additional Information 4: 4d12e41703a5369c2d401c1a91c62709 Edited November 5, 2010 by pmillett Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 I need to know the crash not the other info (Could you please edit your post and remove all the info?). Link to comment Share on other sites More sharing options...
pmillett Posted November 5, 2010 Share Posted November 5, 2010 better? Link to comment Share on other sites More sharing options...
Shadow-Link Posted November 5, 2010 Author Share Posted November 5, 2010 Yeah, could you please edit your other post to? I can't help you with that crash, looks like it's something beyond my reach. Link to comment Share on other sites More sharing options...