Coder Social home page Coder Social logo

viniciuszendron / msfsscenerytools Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 74 KB

This package provides some tools to validate and fix some errors when developing photogrammetry scenery to the new Microsoft Flight Simulator.

License: MIT License

R 100.00%
simulation flight-simulator game-development

msfsscenerytools's Introduction

msfsSceneryTools

R build status version

This package provides some functions to Microsoft Flight Simulator Scenery developers, especially those who extract photogrammetry data from other sources and need to do some cleaning and removing corrupted files.

Installation

After installing R (https://www.r-project.org), just run the code below to install the latest package stable version available:

if (!require("remotes")) install.packages("remotes")
remotes::install_github("viniciuszendron/msfsSceneryTools@main")

If a message asking to update packages appear, just press Enter key or select the option "None".

Changelog

Version 0.3.0

Remove Lods

New function removeLods remove specific LODS from a project. It removes LOD entries from .xml located in modelLib, its correspondent .bin/.gltf and textures in modelLib/textures.

Functions

New Functions
  • removeLods: Remove lods from project.
  • removeLodNodesFromXML: Remove lod nodes from XML.
  • removeBinGltfByLods: Remove .bin and .gltf by lods.
  • removeModelLibTexturesByLods: Remove textures by lods.

Version 0.2.0

Update Scenery Files

The new function updateSceneryFiles was created to remove remaining scenery files from modelLib and modelLib/texture that are no longer registered in scene/objects.xml (e.g. deleted photogrammetry tiles from in-game scenery editor). It can also remove .PNG.DDS and .PNG.DDS.json files located inside of a TEXTURE folder of an already built project.

Functions

New Functions
  • updateSceneryFiles: Delete scenery files across the project (modelLib and modelLib/texture) that are no longer registered in scene/objects.xml. It can also remove .PNG.DDS and .PNG.DDS.json files located inside of a TEXTURE folder of an already built project by providing the TEXTURE path in deleteBuiltTextures argument.
  • getXmlGuid: Get GUID from a modelLib .xml file.

Version 0.1.2

  • Functions fixLods and fixBinGltf (both executed from fixCorruptedFiles) now removes all correspondent texture files (.png) from folder texture. Previously, only the corrupted .bin, .gltf and .xml were deleted, but the textures themselves were not. This behavior could make the final package bigger to the end user (as Flight Simulator editor does not remove them automatically).
  • New function: objectsXmlGuids (Get all guids identifiers registered in objects.xml file).

msfsscenerytools's People

Contributors

viniciuszendron avatar

Stargazers

 avatar

Watchers

 avatar

msfsscenerytools's Issues

Create README and CHANGELOG

Write README and create CHANGELOG.

  • Description and Installation instructions;
  • Changelog;
  • Basic Usage instructions.

Create directory validation

It would be good to include a folder validation to prevent running fix and check functions in the wrong directory.

Document functions

Functions need to be documented in roxygen style. Including examples and a vignette would be great.

Function to remove lod nodes

Create a new function to remove lods from project (not only nodes on .xmls, but also related .bin/.gltf and texture files). Give the user arguments to control (activate/deactivate) each one of these 3 routines.

Add LICENSE

Choose and add LICENSE file and License field to DESCRIPTION.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.