![]() |
#136 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@tayseidel,
Feel free to ignore this, there's nothing wrong with what you're doing. However, you may be missing an opportunity to make it even easier for yourself at the next firmware or kobopatch update. Using your customised 'Reduce new header/footer height' patch as a worked example ...
Whatever I've posted about nickel.yaml above is also true, in principle, for the other kobopatch src/*.yaml files. However, there is a caveat, many patches in src/libnickel.so.1.0.0.yaml contain absolute offsets, e.g. Code:
- ReplaceBytes: {Offset: 0x94B33A, FindH: 42 00, ReplaceH: 82 00}
|
![]() |
![]() |
![]() |
#137 | |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
when I went to fix the left out font control modification to the package, it just wouldn't run at all, no bat window (no errors at all) and no log produced. so I reproduced what I did the first time. deleted it all and redownloaded everything. it still doesn't work, no bat action, no errors, no logs, nothing. at this point I'm not caring, I can live, but this is bizarre behavior in my world. I really think win10 doesn't like the bat file, especially me running it more than once. |
|
![]() |
![]() |
![]() |
#138 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,827
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 12-15-2019 at 04:32 PM. |
|
![]() |
![]() |
![]() |
#139 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,827
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The Set font scale factor patch needs to have new default values. The values of 8 are not good. If you want ot keep the same font size in ePub and use that same font size in KePub, use values of 4 as shows in the code block.
Code:
Set font scale factor: - Enabled: yes - Description: | This patch sets the font scale factor for ePub and KePub readers. See also `ePub uniform font scale` and `Custom font sizes` patches. # Font scale factor is calculated as (font size slider) / (X+32) # Original value X=14, so original scale factor is (font size slider) / 46. # Allowed replacement values for X: 0-15 (smaller X --> larger scale factor) - ReplaceInt: {Offset: 0x52C522, Find: 14, Replace: 4} # ePub - ReplaceInt: {Offset: 0xAE9C80, Find: 14, Replace: 4} # KePub |
![]() |
![]() |
![]() |
#140 | |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
I've done this three times now. the first time it no problems running each time as I corrected my errors. same for the second, today, got my error log missing the KoboRoot.tgz, etc. but the next time it wouldn't run until I downloaded everything again. third time, also today, just wouldn't run and no logs. I'll test my theory after the updates are finished. also, I am running win10 pro and its behavior is different than home version. |
|
![]() |
![]() |
![]() |
#141 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@pghaworth, It would be a lot easier to help you if we could see some error messages. Try opening kobopatch.bat in your text editor and putting this in it:
Code:
@echo off cd /d "%~dp0" erase "KoboRoot.tgz" >nul 2>&1 "./bin/koboptch-windows.exe" PAUSE |
![]() |
![]() |
![]() |
#142 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,827
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#143 | |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
Last edited by pghaworth; 12-15-2019 at 05:03 PM. |
|
![]() |
![]() |
![]() |
#144 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 189664
Join Date: Feb 2009
Device: Glo HD, Aura H20, PRS-T1
|
I'd like to chime in here to see if I can help pghaworth.
Like pghaworth, I was having problems generating a koboroot file in the /out folder when I ran kobopatch.sh (.bat for you since you are on windows), and I was getting nothing in the /out folder. So I put in a clean kobopatch.yaml file from the kobopatch .zip file. And ran the .sh file again, and it generated a koboroot file in the /out folder. Right then, I knew something was wrong in my kobopatch.yaml file. Either it was the indentation, or the group order of the patches with the patch file paths on the top of the kobopatch.yaml file. So what I did was: 1. renamed the my custom kobopatch.yaml file to OLD.yaml 2. Copied one line of patch from the src/nickel.yaml category from the OLD.yaml file over to the new Kobopatch.yaml file 3. made sure the patch I copied was indented four times, as shown below: Code:
overrides: src/nickel.yaml: Show all games: no Koboroot successfully generated in the /out folder. So I copied the rest of my patches over to the new kobopatch.yaml file, paying attention to indentation. It also might be worth making sure that the patch groups align with the file path order shown in the kobopatch.yaml file as shown here: Code:
patches: src/nickel.yaml: usr/local/Kobo/nickel src/libadobe.so.yaml: usr/local/Kobo/libadobe.so src/libnickel.so.1.0.0.yaml: usr/local/Kobo/libnickel.so.1.0.0 src/librmsdk.so.1.0.0.yaml: usr/local/Kobo/librmsdk.so.1.0.0 But yeah, like you, I got nothing in the /out folder until I changed the order from DNSB's template to fix the order and the indentation. Now that I've confirmed successful output of the KoboRoot.tgz file in the /out folder, I am going to work on making my own paths to my own patch files as explained by Jackie_w. Thank you for the excellent suggestion jackie_w! |
![]() |
![]() |
![]() |
#145 |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
I'm fine everyone. thank you. it was windows. after it updated and I restarted my pc the bat ran flawlessly.
|
![]() |
![]() |
![]() |
#146 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
Quote:
(tabs vs spaces, 1 space indentation, etc) and automatically convert tabs to 8 spaces. I never expected this many issues with indentation though... P.S. if anyone has further comments on indentation, please reply in the kobopatch thread. |
||
![]() |
![]() |
![]() |
#147 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,827
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Question about the sickel patch. Should there be more in log.txt other then
Code:
| "src/sickel.yaml": { | "sickel reboot timeout (20 sec)": false, | "sickel reboot timeout (30 sec)": true |
![]() |
![]() |
![]() |
#148 | |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
really need to move to server version, but... so many reasons. I think the pro version, even though I have a lot of things configured so that it shouldn't be able to take control like that, has more stringent controls because it is geared more toward a small business type environment. |
|
![]() |
![]() |
![]() |
#149 |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
when I created my kobopatch.yaml I used the template that was provided by @DNSB (thank you so much!) so it was pretty hard to muck that up since I just went down the list. the bat file not running was what gave it away for me. windows was protecting me, and I get that, but I just don't like that much protection.
@jackie_w thank you for the mod to the bat file. the PAUSE gave me what I was wishing for and didn't know how to get. I'll be incorporating that into future bat files so I get to see what's going on. takes longer to finish up, but I'm okay with the trade-off. |
![]() |
![]() |
![]() |
#150 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
You need to add the patches themselves to a new sickel.yaml file. What you are seeing is just the overrides section of the config.
|
![]() |
![]() |
![]() |
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 06:15 AM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |