Skip to content

PredatorCZ/InsomniaToolset

Repository files navigation

Insomnia

Insomnia is a collection of modding tools and research for Insomniacs 7th gen engine for PS3 platform

This toolset runs on Spike foundation.

Head to this Wiki for more information on how to effectively use it.

Module list

Extract Assets

Module command: extract_assets

Extracts packed assets, converts textures. In addition, converts mobys and ties into GLTF format.

Important

Some moby animations for large objects might have biased tranlations, cause is uknown.

Input file patterns: ^assetlookup.dat$

Settings

  • extract-filter

    CLI Long: --extract-filter
    CLI Short: -e

    Default value: NULL

    Select groups that should be extracted.

  • convert-filter

    CLI Long: --convert-filter
    CLI Short: -c

    Default value: Mobys | Ties | Shrubs | Foliages | Zones | Textures | Shaders | Animsets

    Select groups that should be converted.

Extract Effect

Module command: extract_effect

Extracts and converts textures from vfx_system_header.dat.

Extract PSARC

Module command: extract_psarc

Extracts psarc archives.

Extract sound

Module command: extract_sound

Extracts sound files and converts them into WAV format.

Input file patterns: ^ps3sound.dat$, ^ps3dialogue.*.dat$, ^resident_dialogue.*.dat$, ^resident_sound.dat$

Extract texture banks

Module command: extract_textures

Extracts textures from tp/tph texture banks.

Input file patterns: .tph$

Levelmain to GLTF

Module command: levelmain_to_gltf

Converts level from Resistance: Fall of Man to GLTF. Currently there are some missing features:

  • detail textures
  • scene lighting data (per vertex lightmaps, texel directional lightmaps)
  • moby instances (individual mobys are converted to GLTF)
  • Water(?)
  • Skybox

Textures are embedded in the GLTF file and converted to be up to GLTF standard. Textures, that were unable to be linked to GLTFs are normally extracted, however unconverted (normal and template maps)

Important

Some moby animations for large objects might have biased tranlations, cause is uknown.

Input file patterns: ^ps3levelmain.dat$

Localization to JSON

Module command: loc_to_json

Converts localization package from Resistance: Fall of Man to JSON.

Input file patterns: .pkg$

Settings

  • fonts-folder

    CLI Long: --fonts-folder
    CLI Short: -f

    Path to folder with fonts.dat file

Region to GLTF

Module command: region_to_gltf

Converts entire region map to GLTF.

Input file patterns: ^region.dat$

License

This toolset is available under GPL v3 license. (See LICENSE)
This toolset uses following libraries:

  • Spike, Copyright (c) 2016-2025 Lukas Cone (Apache 2)

About

Collection of tools for formats used in 7th gen IG Luna

Topics

Resources

License

Stars

Watchers

Forks

Contributors