Git Product home page Git Product logo

nfs-resources-converter's People

Contributors

andygura avatar dependabot[bot] avatar lgortot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lgortot geoshock5

nfs-resources-converter's Issues

Editor: programmatic field values

Some fields in binary files should not be edited manually via code or via GUI by user, but required to be set to some determined value. The value affects some property(ies) for another field(s) when reading file, and should work vice versa: when saving updated file, it should calculate it's value.

Examples:

  1. array size field: number, affects amount of blocks, which are presented in file. When saving, array can be changed and this field value should be automatically set to array length
  2. table of offsets in file: if some chunk became longer or shorter, it affects offsets of all chunks after it. Some files have offsets table, which should update itself accordingly
  3. field with md5 sum of file contents - the same idea, user should not calculate it by himself

In order to implement that, the architecture requires context management so values can be obtained: #15

Imported TNFS car texture has some wrong colors

Currently, it is possible to put an image as a car texture, but on certain tracks, some colors are shown completely wrong. CFM has an additional palette !xxx, and it seems to affect displayed colors, but the pattern is unclear

Investigation steps:

  • confirm that the current conversion of 24-bit dos palette colors is correct by comparing colors of images in the menu
  • determine whether index of color affects conversion: fill both palettes with certain color (test with red, green, blue, and grey) and check if all pixels change their color equally
  • assuming index is not affecting anything, fill !xxx palette with some color, repeat tests, and note how color changed on each map and time of a day

The steps above should narrow down the problem and give an idea of how it's done in the actual game

Feature request: font editor

Add an ability to edit fonts. MVP is an ability to convert png + fnt back to ffn file. Final solution would be ability to edit it in GUI

Editor/Reader: better context management

Remove "state" and replace with context tree. Each block has access to his context (a dictionary of values of parent block, and reference to parrent context). Context should never be serialized to files and/or GUI: all logic, which requires lookup to state, should use values from other fields instead, the state is populated from other fields anyways

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.