Log in to reply
 

[Reference/Tool] Prop DLC Manager



  • How's it goin? Not so good since AddonProps is starting to grind your gears, eh? Well look no furthe--- Ok, ok, yeah. This is a tutorial on how to use a tool I made. It's pretty basic so don't get your hopes up. Source code linked below.


    What does it do?

    • Allows you to create dlc packs for props on-the-fly

    Will there be updates?

    • Maybe not. :/ I don't have a lot of time these days, but if there's a terrible bug, then I'll be sure to try and fix it.

    (Now that that's out of the way :sweat_smile: let's get started!)


    :one: Build your dlc into an installer.

    • :a: Name your dlc (this is not to be confused with the name of the dlcpack which will be important later).
      Enter the name in the CMap Name field at the top of the app.
      0_1495006593237_upload-9983ab42-1eac-4b68-9db5-4b1cf433a1f9

    • :b: Now, let's build the dlc by clicking the build button at the top of the app.
      0_1495006433136_upload-5ad5462b-dc7c-4410-8d9c-431e11ec4bd4
      Select your Output Directory. I'll choose my desktop.
      0_1495006671917_upload-b0cd67f0-3b79-4b43-a7a7-52dc69530b06
      Click OK and give a name to the dlcpack. I'll use mypropdlc.
      0_1495006769303_upload-c833c0a4-3fb9-4ea5-8022-f0889f78fa94
      Click OK and the package will be built under the name PropInstall.oiv in your Output Directory.

    :two: Install the dlc.

    • :a: Double click the .oiv file and OpenIV should begin to load.
      0_1495006980016_upload-40ff5948-9e79-4c66-bf5d-562778556555

    • :b: Once inside the OIV Package Installer, click the Install button, and choose "mods" folder if you don't want to lose original files. (You can read the description to see what this package replaces/edits.)
      0_1495007089281_upload-630c17d3-7b42-4cd5-98dc-c25113245a78
      IF THE SAME PACKAGE HAS BEEN PREVIOUSLY INSTALLED, THE INSTALLATION WILL FAIL BUT IT WILL STILL WORK

    :three: Adding props.

    • :a: Go back to the Prop DLC Manager. Here you can see I have a folder of .ydr files (all embedded) that I'd like to add to the manager. All I have to do is Select All > Drag Into The Data Grid View.
      Img
      Now we select a preset for our items. Leave the TextureDict field blank if you wish to use the prop name as the dict.
      0_1495565117322_upload-08176926-4b57-44f1-9d61-5a47b82c2e36
      Click Done when finished. You can configure your props from the manager if you would like to tweak values.
    • :b: Now click File > Export to export your props to a ytyp.xml file.
      0_1495007728387_upload-31806479-c0f2-4bb1-97ae-b2dfe286111c
      Once you've exported your file, with OpenIV navigate to your new dlc props folder.
      0_1495007830922_upload-bbb77752-e658-4c82-85c7-7d8d749f1432
      Drag and Drop your ytyp.xml file into the rpf folder. (OpenIV will import it as "open format" and create a ytyp file from it.
      Now we just drag all of our .ydr files into the dlc folder, and our prop dlc should look like this:
      0_1495007952964_upload-0e3e87e6-ad71-4664-98ec-d2ca67fa2bfe


    Now that we're done, make sure to keep your [namehere].ytyp.xml in a folder somewhere for later use. This is just like addonprops in the sense that you can add props to the xml file by creating new entries in the data grid. You can also open other ytyp.xml files and edit those as well. You don't need to rebuild every time, just exporting the data to ytyp.xml and dragging it into OpenIV is enough.


    You can get the C# Soruce Code here.

    Hope you enjoy!





  • @sollaholla good work



  • Updated v1.1

    • Fixed prop flags and texture types not correctly saving.
    • Fixed null reference errors.
    • Added automatic value assignment when new prop entry is added.

    :file_folder: http://www.mediafire.com/file/5vu17ax41bk7pgm/GVDLCM.zip



  • Updated again. This might be the final release for awhile.

    • Fixed small spelling mistake that causes the program to crash.

    This release is stable, and has no known bugs.



  • @sollaholla when I drag and drop props, the preset window appear, so I set it and press done but nothing happen ;S any idea from what it could come ?
    Also, was thinking starting as admin will solve the issue, but the drag and drop don''t work in admin mode xS



  • @Shaezbreizh I have to push the changes for the new version and package it, I added a lot more features and fixed more bugs.



  • Updated v1.2

    • Change texture dictionary field to text box for different dictionary names.
    • Added ability to read text files with prop names and create rows from that.
    • Added bound definitions to ytyp file.
    • Fixed program breaking bug, not allowing user to export or build files.

    :file_folder: http://www.mediafire.com/file/5vu17ax41bk7pgm/GVDLCM.zip

    @Shaezbreizh




Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.