Thread: Kobo Patcher
View Single Post
Old 12-05-2013, 12:37 PM   #550
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,393
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by erikssenmar867 View Post
For example, i cannot find the file libnickel of my firmware, and which kpg file do i have to use?
Forgive my inability, thanks
The code block covers the current state of the 3.1.0 patches. Copy and paste the contents into a kpg.conf file and use the kpg.exe file from Metazoa's v11 patcher. If you are using Windows, I'd recommend using 7Zip to extract the libnickel.so.1.0.0 file from the firmware archive.

Code:
# Kobo Patch Generator config file
# firmware ver. 3.1.0
# (c) 2013 MZ
#

<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# CSS. Then CSS over zlib. Then CSS over XOR "crypto". Then CSS over XOR+NOT "crypto". Kobo managers, are you wacky ???
#
# Disable footer example
#replace_xor_58 = 13FA550, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `* {\n\theight: 5px;\n\tfont-size: 1px;\n\tcolor: transparent;\n}\n\n`
# Decrease footer example
replace_xor_58 = 13FA550, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `* {\n\theight: 25px;\n\tfont-size: 20px;\n}\n\n`
</Patch>

<Patch>
patch_name = `My line spacing values` 
patch_enable = `yes`
# Bypass code-injected values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 73FA06, 35 F6 BC EB, 00 46 00 46
replace_bytes = 73FA54, 35 F6 94 EB, 00 46 00 46
replace_bytes = 73FA7A, 35 F6 82 EB, 00 46 00 46
replace_bytes = 73FAB0, 35 F6 66 EB, 00 46 00 46
replace_bytes = 73FB0C, 35 F6 38 EB, 00 46 00 46
# Other values for replace
replace_float = 73FB50, 1.05, 0.9
replace_float = 73FB58, 1.07, 0.95
replace_float = 73FB60, 1.1,  1.0
replace_float = 73FB68, 1.35, 1.05
replace_float = 73FB70, 1.7,  1.10
replace_float = 73FB78, 1.8,  1.15
replace_float = 73FB80, 2.2,  1.2
replace_float = 73FB88, 2.4,  1.25
replace_float = 73FB90, 2.6,  1.3
replace_float = 73FB98, 2.8,  1.35
</Patch>

<Patch>
patch_name = `Custom fonts sizes`
patch_enable = `yes`
# Values for replace
replace_int = 1157928, 12, 20
replace_int = 115792C, 14, 21
replace_int = 1157930, 16, 22
replace_int = 1157934, 17, 23
replace_int = 1157938, 18, 24
replace_int = 115793C, 19, 25
replace_int = 1157940, 20, 26
replace_int = 1157944, 21, 27
replace_int = 1157948, 22, 28
replace_int = 115794C, 24, 29
replace_int = 1157950, 25, 30
replace_int = 1157954, 26, 31
replace_int = 1157958, 28, 32
replace_int = 115795C, 32, 33
replace_int = 1157960, 36, 34
replace_int = 1157964, 40, 35
replace_int = 1157968, 44, 36
replace_int = 115796C, 46, 37
replace_int = 1157970, 48, 38
replace_int = 1157974, 50, 39
replace_int = 1157978, 52, 40
replace_int = 115797C, 54, 44
replace_int = 1157980, 56, 42
replace_int = 1157984, 58, 43
</Patch>

<Patch>
patch_name = `Custom left & right margins`
patch_enable = `yes`
# Values for replace
replace_int = 13EF57C, 02, 01
replace_int = 13EF580, 04, 02
replace_int = 13EF584, 06, 03
replace_int = 13EF588, 08, 04
replace_int = 13EF58C, 10, 05
replace_int = 13EF590, 12, 06
replace_int = 13EF594, 14, 07
replace_int = 13EF598, 16, 08
</Patch>

<Patch>
patch_name = `Brightness fine control`
patch_enable = `yes`
replace_int = 90DD08, 10, 01
replace_int = 90DD38, 10, 01
</Patch>

<Patch>
patch_name = `Fix page breaks bug`
patch_enable = `yes`
replace_bytes = DE6576, E8 D0, E8 E7
#Alternative method
#replace_bytes = DE6576, E8 D0, 00 46
</Patch>

<Patch>
patch_name = `Freedom to advanced fonts control`
patch_enable = `yes`
replace_bytes = 98372C, D4 F7 64 E1, E4 F7 54 E5
replace_bytes = ADC554, B3 F6 DC E1, 00 46 00 46
replace_bytes = AE0256, AF F6 5C E3, 00 46 00 46
</Patch>

<Patch>
patch_name = `Search in Library by default`
patch_enable = `yes`
replace_bytes = 9E7BBC, 7E F7 9A E3, 00 46 00 46
replace_bytes = 9E7C08, 7E F7 74 E3, 00 46 00 46
</Patch>
Regards,
David
DNSB is offline   Reply With Quote