| 
			
			 | 
		#256 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#257 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It looks as if the mass of bytes written to the screen when an error occurred has been suppressed.  Makes it a lot easier to see where the error occurred.  Thanks!  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#258 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821 
				Karma: 19162882 
				Join Date: Nov 2012 
				Location: Te Riu-a-Māui 
				
				
				Device: Kobo Glo 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The line with the mistake is: - ReplaceBytes: {Offset: 0x14, FindH: 20 46, ReplaceH: 04 E0} It should be: - ReplaceBytes: {Offset: 0x14, FindH: 20 46 61 E9 1E 89, ReplaceH: 7B 60 03 E0 00 BF} (BTW I'm not sure whether it is worth using this multi-version patch or not, although it doesn't need updating so long as the code doesn't change, once the code changes it may be more difficult to update than the original.)  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#259 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 - How unique are the finds - What is the chance of it breaking silently (I like to be able to mostly depend on my automated testing) - If the patch breaks, will it prevent connecting to a computer and require a reset (as in, are the instructions reached right after booting) One thing I'm experimenting with right now is automated patch updates on a slightly higher level (based on finding/replacing instructions). This would then generate ordinary patches.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#260 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			There is now a new kobopatch request thread, which consolidates all the requests for patches and major kobopatch features. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have tried my best to collect all the requests from before scattered around the threads, and if I missed anything, please tell me.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#261 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		![]() Code: 
	Patching ./usr/local/Kobo/nickel
  Applying overrides
    DISABLE `Reduce reading footer and quit caption`
    ENABLE  `Custom font-size nozlib`
    ENABLE  `Custom font-size zlib`
    DISABLE `Only Reading and My Books`
    DISABLE `Remove Footer and Recommendations`
Error: could not apply patches: invalid patch file 'src/nickel-363.yaml': i286: internal error while validating `Custom font-size zlib` (you should report this as a bug)
 
		Last edited by jcn363; 11-21-2018 at 01:28 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#262 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 EDIT: I had another look, actually, I think this is a bug in the validation. I will look into this later (I probably forgot to incremented the counter for one of the zlib instructions). Last edited by geek1011; 11-21-2018 at 02:51 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#263 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		![]() Sorry, my fault.   There was a   - ReplaceZlib: free. ![]() Good luck.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#264 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#265 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			When you try recursively a simple change (same length string) the error raises immediately.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	![]() Spoiler: 
 If you remove the space the error raises before. ![]() Spoiler: 
 ![]() Perhaps I'm doing something bad or you should flush memory, redo loops or something, because I think this is really simple. Good luck.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#266 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			This is happening because it is being re-compressed after every replace (not just the final one). Thus, the compression ratio may differ each time. A possible workaround would be to try playing around with the order of the replacements. I will implement a new ReplaceZlibGroup instruction later this week to solve this issue completely.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#267 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#268 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,811 
				Karma: 7423683 
				Join Date: May 2016 
				Location: Ontario, Canada 
				
				
				Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I have released kobopatch v0.11.0 (which will be included in the next release of the patches). 
		
	
		
		
		
		
		
		
		
		
		
		
		
			This release adds a new ReplaceZlibGroup (as requested by jcn363). This instruction replaces multiple strings in a zlib string, then compresses the result (instead of compressing at each replacement). This is useful when making many tiny changes to a zlib stream, and one temporarily makes the stream too long. Usage example for ReplaceZlibGroup: Code: 
	Example for ReplaceZlibGroup:
  - Enabled: yes
  - Description: An example patch for the new ReplaceZlibGroup instruction.
  - FindZlib: "#someRandomID"
  - ReplaceZlibGroup:
      Offset: 0
      Replacements:
        - {Find: "#someRandomID", Replace: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib"}
        - {Find: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib", Replace: "#someRandomIDThatIsNowShortEnough"}
Last edited by geek1011; 11-27-2018 at 12:14 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#269 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@geek1011, 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Re: ReplaceZlibGroup Please can you also show an example of how to use this for the occasions when I prefer to have the Find: and Replace: statements on separate lines to facilitate comparing the find/replace strings. ETA: Ideally, I'd like to be able to mix and match Find/Replace one-liners and multi-liners in the same ReplaceZlibGroup Here's an extract from a very large patch that I have. How would I use ReplaceZlibGroup to group these 4 find/replace together without losing the last 2 as multi-liners? Spoiler: 
 
		Last edited by jackie_w; 11-27-2018 at 12:02 PM. Reason: ETA  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#270 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| kobo, kobopatch, patch, patch32lsb | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| kobopatch - A new (WIP) patching system | geek1011 | Kobo Developer's Corner | 93 | 05-27-2018 04:04 PM | 
| Patching H2O | Maillemom | Kobo Developer's Corner | 8 | 10-19-2016 10:58 AM | 
| Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 06:35 PM | 
| Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 08:22 AM | 
| how to clean more disk space in root file system to upgrade system | chinaet | iRex | 1 | 12-18-2006 04:54 PM |