Code Monkey home page Code Monkey logo

Comments (3)

jakubg1 avatar jakubg1 commented on September 16, 2024

Yes, it's possible to add flags to the executable.
The problem with missing sprites is that we don't know their size - most objects in the engine which are rendered by sprites have an undefined size and are rendered with their natural size, defined in their sprite or inferred from the image size. Thus, we don't really know how big the rectangle should be in order to be drawn on the screen. It can be as small as a single sphere, or as big as an UI dialog background.
I like the idea of logging missing assets instead of crashing - this way, we can pinpoint multiple problems in a single launch, rather than dealing with problems one by one. In far future, there are plans to make a tool which would check the integrity of game files and log all paths to missing stuff, errors in files, unused assets, etc. These are far plans, though.
For now, due to the aforementioned problem, I have no immediate solution to this problem. Will however consider adding it in the future.

from opensmce.

ShamblesSM avatar ShamblesSM commented on September 16, 2024

...most objects in the engine which are rendered by sprites have an undefined size and are rendered with their natural size, defined in their sprite or inferred from the image size. Thus, we don't really know how big the rectangle should be in order to be drawn on the screen. It can be as small as a single sphere, or as big as an UI dialog background.

They could be a 32x32 px rect. It could also be a placeholder checkerboard texture even.

from opensmce.

jakubg1 avatar jakubg1 commented on September 16, 2024

Alright, works for me if it's going to be just a marker which is like "if you see me, you have a serious problem to deal with, check log". I think ResourceManager could handle stuff like that, but the exact implementation is up to discussion.

from opensmce.

Related Issues (20)

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.