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

    1. GTAForums Annual Awards 2018

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. 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. News

    2. Forum Support

    3. Site Suggestions

NTAuthority

From NY to Five in a few steps - the FiveM rage:formats pre-release

Recommended Posts

NTAuthority

This guide will show you roughly how to use both the new FiveM conversion utility for converting certain GTA:NY (IV/EFLC, PC) RAGE assets to Five (V, PC x64) and the coupled 'archetype file' replacement for textual IPLs/IDEs.

 

It is assumed that you already have FiveM running on your system and copy of V - multiplayer/authentication being functional is optional, being able to Invoke-LevelLoad to a successfully-loading game is. In addition it is assumed you know how to obtain the models you are looking to use in GTA IV format, and are aware of the following limitations at this time:

  • FiveM, at runtime, only shows lower mipmaps of textures (i.e. texture settings are forced to 'low') due to an unknown bug. Similarly, shadow mapping resolution is lower than what would be expected.
  • The archetype file definitions do not currently support LOD parents (previously one of the last entries in IPL files) - this is expected to be added in the future.
  • Maps require FiveM at runtime, for two reasons primarily: a) the lack of .imap/.ityp creation support (mainly due to complexities in parser states) and b) collision files not getting a BVH generated by the conversion tool, rather having such be done by the game at load-time.
  • The following subtypes of supported assets are currently unsupported:
    • Fragment types (gtaFragType, .#ft) - any breakable object, including vehicle models. These are fairly complex, so will not be supported for a while.
    • Skeleton data - this includes pedestrian models and weapons - the current release is mainly map-focused.
    • Drawable dictionaries (.#dd) - while trivial to add, they are currently unsupported.
  • Collision materials are broken for now.
  • Any archetype type other than CBaseModelInfo (objs) - i.e. CTimeModelInfo (tobj) and variants
  • In addition, for editing archetype files by hand, Visual Studio 2013 (or higher) with the Web Developer tools installed is recommended for a visual JSON editor.
Converting the resources

 

It'd be a good idea to extract common/shaders/ from GTA V -- common.rpf's version is fine -- into citizen/shaders/ in the FiveM folder as follows:

 

shrove.png

 

To get started converting the resources, open a Windows command prompt (or PowerShell, if you're familiar with it - you'll only have to follow along partially then :) ) and go to the folder your IV-format assets are in.

 

 

C:\> cd /d Y:\dev\ydr\speed2
In addition, prepend the FiveM folder to your current PATH environment variable, and verify if FiveM's tool console can be launched:

 

 

Y:\dev\ydr\speed2> set PATH=D:\citizen\five;%PATH%Y:\dev\ydr\speed2> fivemNo command passed. Valid commands include: formats:convert
If that part shows - good! Now, it's time to run the conversion for one drawable at the start:

 

 

Y:\dev\ydr\speed2> fivem formats:convert stat_hilberty01.wdrconverting drawable stat_hilberty01.wdr...written successfully - compressed size 982589
As you can see in the directory, there'll be a .ydr file next to the .wdr now:

 

 

Y:\dev\ydr\speed2> dir stat_hil*[..]2015-06-01  08:23 PM           985,845 stat_hilberty01.wdr2015-06-04  03:30 PM           982,589 stat_hilberty01.ydr
Full-project conversion

 

Now, we'll go to a folder with another project to show how the London map was created.

 

 

 

 

 

Y:\dev\ydr\london> dir /w *.w*pCube20.wdr     pCube161.wdr    pCube214.wdr    pCube184.wdr    pCube2101.wdr[...]lodon.wtd       pCube237.wdr    pCube133.wdr    pCube269.wdr    pCube1107.wdr[...]london.wbn      pCube1114.wdr   pCube24.wdr     pCube252.wdr    pCube148.wdr
To run commands on multiple files from a single line, there's this one weird trick for the legacy Command Prompt batch processor:

 

 

Y:\dev\ydr\london> for %i in (*.w*) do @fivem formats:convert %i[... lots of waiting ...]
Now, the folder should be filled with .ydr files in addition to .wdr files (and a .ybn and .ytd, in this case):

 

viscerates.png

 

Good!

 

Now, let's set up the pseudo-pack for the map - we'll get to converting the .ipl/.ide afterwards.

 

Create a new folder in the 'usermaps' directory in your FiveM folder with the name of whatever your asset is supposed to be:

 

oversensitivenesses.png

 

... and in there, create a structure similar to this:

 

tald.png

scabrate.png

 

(where the .rpf is just a .txt with a few paragraphs of text renamed to .rpf - there might be a minimum size; when in doubt, just keep it at 4 kB minimum)

 

Finally, create a new .meta file set for the level in usermaps/london2/:

 

images.meta:

 

<?xml version="1.0" encoding="UTF-8"?><dataFiles>	  <Item>    <filename>platform:/levels/gta5/minimap.rpf</filename>    <contents>CONTENTS_MAP</contents>    <fileType>RPF_FILE</fileType>    <installPartition>PARTITION_2</installPartition>  </Item>  		<Item>		<filename>platform:/levels/gta5/navmeshes0.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes1.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes2.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes3.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes4.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes5.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes6.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes7.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes8.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/navmeshes9.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>  <Item>		<filename>platform:/levels/gta5/waypointrec.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/textures/script_txds.rpf</filename>		<fileType>RPF_FILE</fileType>		<locked value="true"/>	</Item>  <Item>    <filename>platform:/textures/waterfog_txds.rpf</filename>    <fileType>RPF_FILE</fileType>  </Item>	<Item>		<filename>platform:/levels/gta5/generic/procobj.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/generic/icons.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/building/v_rooftop.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/rt_bink/vfx_reference.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>		<installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/recreational/v_coin_op.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/recreational/v_sports.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/residential/v_bathroom.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/residential/v_garden.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/residential/v_electrical.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/residential/v_seating.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/residential/v_kitchen.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/commercial/v_bar.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/commercial/v_fastfood.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/commercial/v_garage.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/commercial/v_office.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/industrial/v_airport.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/industrial/v_industrial.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/industrial/v_industrial_2.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_bins.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_construction.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_fences.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_fences_2.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_rubbish.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_seating_tables.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_signs.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_storage.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_traffic_lights.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/roadside/v_utility.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/rural/v_farm.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/Lev_Des/Lev_Des.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/Lev_Des/v_minigame.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/Lev_Des/V_Set_Pieces.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/Lev_Des/V_Lev_Doors.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/Lev_Des/P_V_Lev_Des_Skin.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/procedural/v_proc1.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_ext_veg.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_fanpalm.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_palm.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_trees.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_bush.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_potted.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_cacti.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_crops.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_rocks.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/props/vegetation/v_snow.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/outsource/building_xrefs.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/_hills/cs_xref.rpf</filename>		<contents>CONTENTS_PROPS</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_1</installPartition>	</Item>	<Item>		<filename>platform:/levels/gta5/paths.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>			<filename>platform:/levels/gta5/cloudhats/v_clouds.rpf</filename>			<contents>CONTENTS_MAP</contents>			<fileType>RPF_FILE</fileType>        <installPartition>PARTITION_2</installPartition>	</Item>	<Item>		<filename>platform:/models/cdimages/ped_mp_overlay_txds.rpf</filename>		<fileType>RPF_FILE</fileType>	</Item>	<Item>		<filename>platform:/models/cdimages/ped_sp_overlay_txds.rpf</filename>		<fileType>RPF_FILE</fileType>	</Item>			<Item>		<filename>platform:/models/cdimages/ped_tattoo_txds.rpf</filename>		<fileType>RPF_FILE</fileType>	</Item>	<Item>		<filename>platform:/models/cdimages/ped_mugshot_txds.rpf</filename>		<fileType>RPF_FILE</fileType>	</Item>		<Item>		<filename>usermaps:/london2/images/london.rpf</filename>		<contents>CONTENTS_MAP</contents>		<fileType>RPF_FILE</fileType>	        <installPartition>PARTITION_2</installPartition>	</Item></dataFiles>
(where the usermaps:/london2/ in the last entry gets replaced with the name of your usermap, of course)

 

london2.meta

 

(where, again, you replace any 'london2' with the name of your map - the ARCHETYPE_FILE entry called 'map.json' will be explained later)

 

water.xml: (just an empty one)

 

 

<?xml version="1.0" encoding = "UTF-8"?><WaterData>  <WaterQuads>    <Item>    </Item>  </WaterQuads></WaterData>
Now, the final step is creating the archetype file(s), which are the equivalent of older IPL/IDEs in the FiveM level loader code.

 

I can't really explain this easily as it really depends on your workflow, but there's a single-use C# tool I made you can compile (requires JSON.NET) and try to convert IV .ide/.opl (OpenIV exported stuff, yes, I hate OpenIV but it's useful as a reference tool) files.

 

In addition, here's a 'schema.json' file you can put next to your level .json so you can open it in Visual Studio 2013 and have nice automatic completion:

 

 

{    "$schema": "http://json-schema.org/draft-04/schema",    "definitions": {        "vector": {            "type": "array",            "minItems": 3,            "maxItems": 4,            "items": {                "type": "number"            }        },        "archetype": {            "type": "object",            "properties": {                "aabbMin": {                    "$ref": "#/definitions/vector"                },                "aabbMax": {                    "$ref": "#/definitions/vector"                },                "centroid": {                    "$ref": "#/definitions/vector"                },                "radius": {                    "type": "number",                    "minimum": 0                },                "drawDistance": {                    "type": "number",                    "minimum": 0                },                "archetypeName": {                    "type": "string",                    "minLength": 1                },                "txdName": {                    "type": "string",                    "minLength": 1                },                "lodDictName": {                    "type": "string"                }            },            "required": [ "aabbMin", "aabbMax", "centroid", "radius", "archetypeName", "txdName" ]        },        "entity": {            "type": "object",            "properties": {                "position": {                    "$ref": "#/definitions/vector"                },                "rotation": {                    "$ref": "#/definitions/vector"                },                "guid": {                    "type": "string"                },                "archetypeName": {                    "type": "string",                    "minLength": 1                }            },            "required": ["position", "rotation", "guid", "archetypeName"]        }    },    "type": "object",    "properties": {        "archetypes": {            "type": "array",            "items": {                "$ref": "#/definitions/archetype"            }        },        "entities": {            "type": "array",            "items": {                "$ref": "#/definitions/entity"            }        }    },    "minProperties": 1}
(requires the level.json to have a "$schema" entry, see the following example for a single entry)

 

Example .json with one entry:

 

 

{  "$schema": "schema.json",  "archetypes": [    {      "aabbMin": [        -64.1238,        -61.5589,        -5.12991      ],      "aabbMax": [        64.1238,        61.5589,        5.12991      ],      "centroid": [        0.0,        0.0,        0.0      ],      "radius": 89.0375,      "archetypeName": "pCube2102",      "txdName": "lodon"    }  ],  "entities": [    {      "position": [        -492.2797,        -488.9332,        -5.208692      ],      "rotation": [        0.0,        0.0,        0.0,        1.0      ],      "guid": "37434716-cc7d-444b-a4df-b75d33df14fc",      "archetypeName": "pCube2102"    }  ]}
Anyway, if everything is fine and the stars line up alright, you should be able to run Invoke-LevelLoad london2 from your FiveM console! Edited by NTAuthority

Share this post


Link to post
Share on other sites
Op_Saster

omg thanks dude you're awesome!!!

Share this post


Link to post
Share on other sites
jedijosh920

NTAuthority, my man!

Share this post


Link to post
Share on other sites
Chumillas

Amazing stuff,good job mate

Share this post


Link to post
Share on other sites
Frank.s

Excellent mate. :^:

Now to re-read this baby ten thousand times before i understand it all. :p

Share this post


Link to post
Share on other sites
Zer0w5

Here's my first conversion of one of Push's weapons

tui.png

Share this post


Link to post
Share on other sites
itrpatrick

Legendary!

Share this post


Link to post
Share on other sites
Op1e

Good work :)

Share this post


Link to post
Share on other sites
_CP_

Problems while compiling your C# tool:

Un7S58Hh.png

Share this post


Link to post
Share on other sites
NTAuthority

Problems while compiling your C# tool:

 

Un7S58Hh.png

You're probably using a non-English locale in Windows - try adding the following line at the start of Main:

 

 

System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
Edited by NTAuthority

Share this post


Link to post
Share on other sites
_CP_

Working fine, more or less.

W4VYhjZh.png

 

but with some tiny problems.

65Wj8hwh.png

Edited by _CP_

Share this post


Link to post
Share on other sites
Anthony817

WOW! Nice progress guys!

Share this post


Link to post
Share on other sites
avail

Great progress for two weeks on-and-off, yes ;)

Share this post


Link to post
Share on other sites
Op_Saster

Quick question can i convert a model and put it into normal gta v with it loading correctly?

Share this post


Link to post
Share on other sites
The_XXI

OH. MY GOD.

 

You've done great for the community man, thanks a f*cking bunch !!!!

Share this post


Link to post
Share on other sites
RM76

Bitchin'. Need to try this out.

(would dig if you replied to my PM's, however I can understand if it's because you have a crapton of them)

Edited by RM76

Share this post


Link to post
Share on other sites
PhillBellic

GTA IV in V? Hmm, sounds intriguing. :)

Share this post


Link to post
Share on other sites
lunchxbles

kNUZu97.png

 

Got the GTA 3 Bank in :)

Edited by lunchxbles

Share this post


Link to post
Share on other sites
reditec

Sounds nice, but it's way too hard for normal users I guess.

Can't you do a GUI please? :p

Share this post


Link to post
Share on other sites
Microsoft Word

This is an introduction to something special. Nice work guys!

Share this post


Link to post
Share on other sites
NTAuthority

Sounds nice, but it's way too hard for normal users I guess.

Can't you do a GUI please? :p

here's a batchfile you can most likely just drag files to:

 

 

@echo offrem change the path belowset CFXPATH=D:\citizen\five%CFXPATH%\fivem formats:convert %*pause
Edited by NTAuthority

Share this post


Link to post
Share on other sites
Mr Dazza

Wait, so is this how car, weapon and map mods are coming to GTA v? Also, would we be able yo transfer things like GTA vice city map modules etc? :D

Share this post


Link to post
Share on other sites
reditec

Wait, so is this how car, weapon and map mods are coming to GTA v? Also, would we be able yo transfer things like GTA vice city map modules etc? :D

GTA Vice City isn't made in RAGE so you can't import them.

I guess you can convert them anyway by just exporting them from Vice City. Imprt them to GTA IV and then convert them to V :-)

Share this post


Link to post
Share on other sites
R.F.

So all GTAIV 3ds plug-ins will work exactly the same for V? I'm curious when will a dedicated V plugin come out for Max so we don't have to go through this: model>3ds>IV>V procedure but something like: model>3ds>V

Share this post


Link to post
Share on other sites
NTAuthority

So all GTAIV 3ds plug-ins will work exactly the same for V? I'm curious when will a dedicated V plugin come out for Max so we don't have to go through this: model>3ds>IV>V procedure but something like: model>3ds>V

as for my toolchain I'm intending to allow conversion of standard COLLADA export + a plugin to add custom shader data to the export for Max initially, and an in-game material editor at a later time

Share this post


Link to post
Share on other sites
Alvarez

 

So all GTAIV 3ds plug-ins will work exactly the same for V? I'm curious when will a dedicated V plugin come out for Max so we don't have to go through this: model>3ds>IV>V procedure but something like: model>3ds>V

as for my toolchain I'm intending to allow conversion of standard COLLADA export + a plugin to add custom shader data to the export for Max initially, and an in-game material editor at a later time

 

That would be awesome, even for non-Max users.

Share this post


Link to post
Share on other sites
Izack

Excellent work. I see chicago from watch dogs, San francisco from Driver S.F....Just dreaming. I really wish a more friendly way to do the job, or a Really (I mean REALLY) detailed tutorial. Anyway, congratulation, and thank you.

Share this post


Link to post
Share on other sites
MrVicho13

I cant compile the file, the program says that Directory and Files not excist

 

you can make a .exe file that can convert ide, wpl files from gta v (drag and drop) and convert to a compatible v format?

Edited by MrVicho13

Share this post


Link to post
Share on other sites
PacketOverload_x64bit

Working fine, more or less.

 

W4VYhjZh.png

 

but with some tiny problems.

65Wj8hwh.png

 

 

AMAZING and enthusiastic to see IV in V!

Share this post


Link to post
Share on other sites
Fireboyd78

here's a batchfile you can most likely just drag files to:

 

 

@echo offrem change the path belowset CFXPATH=D:\citizen\five%CFXPATH%\fivem formats:convert %*pause
"REM" comments are still a thing? I always use double-colon ("::") comments. But to each their own, I guess. Edited by Fireboyd78

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

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