Comments (2)
So, looking at the 98.LFL file after its modification, it appears that the width table (at offset 0x08) is corrupted.
In the original file:
Character width table: 4, 8, 6, 8, 6, 0, 0 [...]
after the scummfont
changes:
Character width table: 8, 8, 8, 8, 8, 8, 8 [...] (all 8s)
from scummtr.
PR #48 was merged to work around this.
Basically, the following line is maybe wrong:
scummtr/src/ScummFont/scummfont.cpp
Line 400 in f067b2f
…in that some image editors are free to reorder/simplify the palette, but the code appears not to be ready for this.
So, we just reject any file with a modified palette, for now (GIMP and old MS Paint releases are known to leave it as-is, as long as you work from the original BMP file).
Making ScummFont even more strict is not really nice for users, but silently corrupting the game resources is worse.
ScummFont probably needs to be rewritten to either have a much more robust BMP implementation, or maybe a much better format than BMP (BMP is a bit like CSV… it seems so simple that you may think you should make your own encoder/decoder, but you really shouldn't). But that's not for now.
from scummtr.
Related Issues (20)
- [Regression] LOOM-EGA-FR gives a "Bad OIv3 offset" fatal error HOT 4
- Difficulty exporting/importing text using non-Latin alphabets HOT 1
- Improper exit status when an exception happens
- Ensure _checkDupOffset() doesn't remove the wrong duplicate HOT 1
- ScummTR: fatal "Empty lines are forbidden" error when doing a binary reimport HOT 1
- [Extra] Add a small tool to find orphan local scripts
- [Bug] When \255\001 is used inside a talkie sentence, the next two characters are misdecoded
- Make a fatal error when unknown flags are used HOT 1
- [Bad practice] Virtual functions are called inside some constructors/destructors
- [Regression] ScummTR 0.4.2 corrupts LOOM-EGA HOT 5
- [Build] Provide Linux packages through Open Build Service?
- ScummTR corrupts MONKEY1-VGA "v1.0" in ScummVM HOT 4
- [Unsupported game] Loom short non-interactive demo rejected because of duplicate offsets
- [Unsupported game] TurboGrafx-16/PC-Engine Loom is unsupported HOT 1
- [Unsupported game] Maniac Mansion NES is unsupported
- [Regression] MANIAC-V2/ZAK-V2 are broken in ScummTR 0.5.0 HOT 3
- [Todo] Check support for Steam versions HOT 1
- [MI1 VGA floppy] Modifying the total length of certain lines triggers "BUG: TableOfContent::merge different roomIds" HOT 2
- [Parsing] MONKEY1-AMIGA: LFLF 61 differently indexed from one file to another HOT 1
- [Enhancement] Import/export V1 common color palette in ScummRP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scummtr.