webOS Nation Forums >  Homebrew >  webOS patches > Best practice to make patch ?
Best practice to make patch ?

  Reply
 
LinkBack Thread Tools Display Modes
Old 11/17/2010, 07:57 AM   #1 (permalink)
Member
 
Join Date: Jan 2010
Location: Paris
Posts: 47
Likes Received: 0
Thanks: 0
Thanked 9 Times in 5 Posts
Default Best practice to make patch ?

Hi,

Can you explain how you proceed to make your patch ?
Do you working on your phone ? On the emulator ?
With vi ? With nano ?

Etc, all informations about your method to edit/test result.

Thanks
oxman. is offline   Reply With Quote
Old 11/17/2010, 09:30 AM   #2 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default

Your first step should be downloading a current webOS Doctor and extracting it so you have easy access to all the stock files.

Pick what file you want to edit and make a copy of it in a different folder. I recommend using something like Notepad++ to make your changes. Once you edit it to your liking, send the file to the correct location on the Emulator. Luna reboot to see your changes.
__________________
Twitter: @ChoorpStudios
Like my work and want to donate? You can do so here.
Garrett92C is offline   Reply With Quote
Old 11/17/2010, 09:33 AM   #3 (permalink)
Member
 
Join Date: Sep 2007
Posts: 802
Likes Received: 0
Thanks: 32
Thanked 143 Times in 95 Posts
Default

Real men test on there phone
helidos is offline   Reply With Quote
Old 11/17/2010, 09:40 AM   #4 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default

Quote:
Originally Posted by helidos View Post
Real men test on there phone
I use to do that... I make MANY tiny tweaks though, so I have to Luna reboot a lol. My phone takes about 45 seconds to a minute to Luna reboot; The Emulator takes less than 5 seconds...
__________________
Twitter: @ChoorpStudios
Like my work and want to donate? You can do so here.
Garrett92C is offline   Reply With Quote
Old 11/17/2010, 09:50 AM   #5 (permalink)
Member
 
Join Date: Sep 2007
Posts: 802
Likes Received: 0
Thanks: 32
Thanked 143 Times in 95 Posts
Default

Quote:
Originally Posted by Garrett92C View Post
I use to do that... I make MANY tiny tweaks though, so I have to Luna reboot a lol. My phone takes about 45 seconds to a minute to Luna reboot; The Emulator takes less than 5 seconds...
Ya I could see changing something 10+ times as a pita if done on the device. I just hate the emulator even though I should use it more.
helidos is offline   Reply With Quote
Old 11/17/2010, 09:58 AM   #6 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default

Quote:
Originally Posted by helidos View Post
Ya I could see changing something 10+ times as a pita if done on the device. I just hate the emulator even though I should use it more.
Once you get comfortable with the Emulator, you get things done MUCH quicker.

I was forced to switch to the Emulator though. In an average patch, I make hundreds of tiny tweaks lol.
__________________
Twitter: @ChoorpStudios
Like my work and want to donate? You can do so here.
Garrett92C is offline   Reply With Quote
Old 11/17/2010, 10:19 AM   #7 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

would you guys know how to do this? http://forums.precentral.net/webos-p...cape-only.html

I'm loosing to the code cause I don't know how to beat it
patricksmangan is offline   Reply With Quote
Old 11/17/2010, 10:22 AM   #8 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

Quote:
Originally Posted by oxman. View Post
Hi,

Can you explain how you proceed to make your patch ?
Do you working on your phone ? On the emulator ?
With vi ? With nano ?

Etc, all informations about your method to edit/test result.

Thanks
I've been using this to create the patch I've been working on http://forums.precentral.net/canuck-coding/210781-unified-diff-creator.html and/or you can open an existing patch with notepad++ to see how it's written
patricksmangan is offline   Reply With Quote
Old 11/17/2010, 12:02 PM   #9 (permalink)
Member
 
Join Date: Sep 2007
Posts: 802
Likes Received: 0
Thanks: 32
Thanked 143 Times in 95 Posts
Default

Quote:
Originally Posted by patricksmangan View Post
would you guys know how to do this? http://forums.precentral.net/webos-p...cape-only.html

I'm loosing to the code cause I don't know how to beat it
At work so only have internalz to mess around with(no time to drag out my laptop)... but looking at your patch and changing this one line from free to left has a similar effect you want touching the screen hides/shows the buttons.

This is the only line I change I didn't use the other code in you patch.

Code:
this.controller.stageController.setWindowOrientation('free');
helidos is offline   Reply With Quote
Old 11/17/2010, 01:47 PM   #10 (permalink)
Member
 
ToniCipriani's Avatar
 
Join Date: Apr 2009
Location: Toronto, ON
Posts: 3,688
Likes Received: 266
Thanks: 185
Thanked 429 Times in 336 Posts
Default

I want to know too actually... how to pack everything into an IPK.

I have a patch to add Merriam-Webster to universal search I want to share, though I don't know if it'll be relevant anymore once Just Type in 2.0 hits.
__________________
Palm IIIc -> Sony CLIÉ T650C -> Sony TJ-37 -> Palm TX -> Palm Centro -> Palm Pre Bell -> Palm Pre Plus Bell/Verizon Hybrid -> HP Veer -> HP Pre 3 NA

[i]Pry my keyboard from my stone dead hands. I dare you. Death to all slates./i]

Need OEM Palm Pre parts? See here
ToniCipriani is offline   Reply With Quote
Old 11/17/2010, 03:27 PM   #11 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

@helidos
I've got allways landscape working, but yeah could hae probably been just that line. I've figured out at one point how to never have the buttons show and can find it easily again, so what I'm trying to do is figure out how to change what tapping on the screen does. I want it to take the user to the alarms scene.
__________________
patricksmangan is offline   Reply With Quote
Old 11/18/2010, 11:17 AM   #12 (permalink)
Member
 
patricksmangan's Avatar
 
Join Date: Oct 2009
Posts: 1,239
Likes Received: 2
Thanks: 175
Thanked 83 Times in 71 Posts
Default

so, another super selfish request. I don't know code, but am trying to pick it up from looking at patches, atleast enough to do some patches myself. As part of general public education, I think patches should include a good amount of // notes that exlain what the code is doing specifically.

I'm telln you guys, if I learned this stuff, the patches would be crazy!
patricksmangan is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0