|
|
#16 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
|
I need some help with the patches please. I'm trying to set the "My 10 line spacing values" by modying src\libnickel.so.1.0.0.yaml. But they don't seem to be applied.
Attached is the log. The thing that stands out to me in the log is: Code:
applying overrides
override My 10 line spacing values -> enabled:false
Code:
My 10 line spacing values:
- Enabled: yes
- PatchGroup: Line spacing values alternatives
- Description: |
This patch changes the values on the line spacing adjustment slider,
reducing the number of spacing options from 15 to 10, but allowing
much narrower spacing values to be set.
# Bypass code-constructed values 1.0, 1.2, 1.5, 2.0, 3.0
# These are all the appends not loaded using adr.
- BaseAddress: {Sym: "ReadingSettings::lineHeightScalars() const", Rel: 84} # first append
- ReplaceBytes: {Offset: 0, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
- ReplaceBytes: {Offset: 86, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
- ReplaceBytes: {Offset: 128, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
- ReplaceBytes: {Offset: 188, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
- ReplaceBytes: {Offset: 290, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
# 10 values for replacement, change these replace_float values to suit:
# Find the prologue for the values + first subtraction (has been unique in
# every version so far, and is near impossible to change and fail silently):
- FindBaseAddressHex: CDCC CCCC CCCC F03F 1F85
- ReplaceFloat: {Offset: 0x00, Find: 1.05, Replace: 0.8}
- ReplaceFloat: {Offset: 0x08, Find: 1.07, Replace: 0.85}
- ReplaceFloat: {Offset: 0x10, Find: 1.1, Replace: 0.875}
- ReplaceFloat: {Offset: 0x18, Find: 1.35, Replace: 0.9}
- ReplaceFloat: {Offset: 0x20, Find: 1.7, Replace: 0.925}
- ReplaceFloat: {Offset: 0x28, Find: 1.8, Replace: 0.95}
- ReplaceFloat: {Offset: 0x30, Find: 2.2, Replace: 0.975}
- ReplaceFloat: {Offset: 0x38, Find: 2.4, Replace: 1.0}
- ReplaceFloat: {Offset: 0x40, Find: 2.6, Replace: 1.05}
- ReplaceFloat: {Offset: 0x48, Find: 2.8, Replace: 1.1}
Thank you for the help. |
|
|
|
|
|
#17 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 931
Karma: 275656
Join Date: Jun 2016
Device: Kobo
|
|
|
|
|
|
|
#18 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
|
|
|
|
|
|
|
#19 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 931
Karma: 275656
Join Date: Jun 2016
Device: Kobo
|
Just edit this file without affecting other files. As understand, in kobopatch.yaml Jon added all the currently existing patches. Or almost everything.
Indicate in it: yes or no. |
|
|
|
|
|
#20 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It is everything in kobopatch.yaml. You do the yes/no in there and any edits to the patches in the appropriate .yaml in the src directory.
|
|
|
|
|
|
#21 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Might you want Custom font sizes which is in libnickel.so.1.0.0.yaml? |
|
|
|
|
|
|
#22 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
|
|
|
|
|
|
|
#23 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#24 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2023
Device: Kobo Mini, Libra 2, H2O, various Kindles
|
In the ZIP file attached to the first post, the kobopatch.yaml file says, on line 3:
version: 4.38.2552 I assume that this should actually be: version: 4.38.23552 but I'm unsure whether it is actually used anywhere or makes any difference to anything. |
|
|
|
|
|
#25 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That is a mistake. But it doesn't matter because the in: line with the name of the source file is correct.
|
|
|
|
|
|
#26 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 747
Karma: 4306712
Join Date: Jun 2006
Location: Toronto
Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite
|
Both page turn buttons go to next not working
I'm trying to patch my Kobo Libra 2 running firmware 4.38.23552.
My favorite patch, "Both page turn buttons go to next," isn't working. Yes, I know the description line for this patch in libnickel.so.1.0.0.yaml says "Make both page turn buttons on the Forma go next in the reader" -- but it's always worked before for the Libra 2, as well. This is the error message from kobopatch.bat: Code:
APPLY `Both page turn buttons go next`
Error: could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry
Error: could not apply patches: error applying patch file 'src/libnickel.so.1.0.0.yaml': could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry
|
|
|
|
|
|
#27 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unofficial patches for 4.44.23552 | JSWolf | Kobo Developer's Corner | 11 | Today 11:51 AM |
| Unofficial Patches for 4.38.23429 | JSWolf | Kobo Developer's Corner | 65 | 12-11-2025 07:30 AM |
| Unofficial Patches for 4.38.23555 | JSWolf | Kobo Developer's Corner | 7 | 12-10-2025 08:47 PM |
| Unofficial Patches for 4.43.23418 | JSWolf | Kobo Developer's Corner | 13 | 12-03-2025 10:47 PM |
| Unofficial Sigil patches | varlog | Sigil | 8 | 11-12-2014 07:14 PM |