Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jaapteeuw12
Old
#821  
Senior Member
Thanks Meter 160
Posts: 350
Join Date: Mar 2012
Location: middelharnis
This is really amazing

Sent from my GT-S5660 using xda premium
--------------
Device: Samsung Galaxy S GT-I9000
Rom: [DEV][RC5] Team Nyx [Android 4.0.4] (ICSSGS)
Kernel: Devil Kernel 2_0.94
Recovery: Included by kernel

--------------
 
digetx
Old
#822  
Junior Member
Thanks Meter 47
Posts: 29
Join Date: Feb 2010
Location: Moscow
Good idea, but source code quality makes me cry
 
Dunc001
Old
#823  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1116
Posts: 2,491
Join Date: Apr 2010
Location: Hiding out south of the border...
I've read through the OP and scripts from several ROMs but I must be missing the answer to one very basic question. In aroma.config for the page titles:

Code:
"SD-EXT Mods","",2,
What does the "" and 2 do in this line? Also why in some scripts do I see in updater-script for checkbox items on the first page of several being designated item.0.x and in some scripts the first page items are designated item.1.x - why do page numbers start 0 in some cases and 1 in others?

Like I said, basic questions but I can't seem to find the logic anywhere.
HTC One
TrickDroid 5.5.1 Sense 5.0 with ElementalX Kernel

First HTC HD2
Back from the dead and running Nexus JB 1.3

Second HTC HD2
Touchwiz 2.1 DataOnExt
 
carl1961
Old
(Last edited by carl1961; 23rd April 2012 at 04:00 PM.)
#824  
carl1961's Avatar
Senior Member
Thanks Meter 2109
Posts: 3,125
Join Date: Dec 2010
Location: Tickfaw
Quote:
Originally Posted by Dunc001 View Post
I've read through the OP and scripts from several ROMs but I must be missing the answer to one very basic question. In aroma.config for the page titles:

Code:
"SD-EXT Mods","",2,
What does the "" and 2 do in this line? Also why in some scripts do I see in updater-script for checkbox items on the first page of several being designated item.0.x and in some scripts the first page items are designated item.1.x - why do page numbers start 0 in some cases and 1 in others?

Like I said, basic questions but I can't seem to find the logic anywhere.
that 2 means the SD-EXT Mods will be in the black menu that you see

like a heading for the next items to choose



check boxes with one heading seem to have item.0.x and check boxes with more than one heading have item.1.1 for first heading ,item.2.1 for second heading,item.3.1 for third heading etc...
The Following User Says Thank You to carl1961 For This Useful Post: [ Click to Expand ]
 
Dunc001
Old
#825  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1116
Posts: 2,491
Join Date: Apr 2010
Location: Hiding out south of the border...
Quote:
Originally Posted by carl1961 View Post
that 2 means the SD-EXT Mods will be in the black menu that you see

like a heading for the next items to choose

Thanks Carl So where do I find a list of the options for that variable then? And also, any idea what the empty quotes are for ("" before the 2)?
HTC One
TrickDroid 5.5.1 Sense 5.0 with ElementalX Kernel

First HTC HD2
Back from the dead and running Nexus JB 1.3

Second HTC HD2
Touchwiz 2.1 DataOnExt
 
carl1961
Old
#826  
carl1961's Avatar
Senior Member
Thanks Meter 2109
Posts: 3,125
Join Date: Dec 2010
Location: Tickfaw
Quote:
Originally Posted by Dunc001 View Post
Thanks Carl So where do I find a list of the options for that variable then? And also, any idea what the empty quotes are for ("" before the 2)?
I have no idea why, other than just code for the aroma's update-binary to use to signal what is what, I never looked at the source code for arroma installer, maybe there is doc's there like the kernels sources have
 
Dunc001
Old
#827  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1116
Posts: 2,491
Join Date: Apr 2010
Location: Hiding out south of the border...
K, just found most outstanding answers in the source code examples on GitHub - only place I hadn't looked previously. Slightly confused by this though:

Code:
# show_progress(0.2, 400);
#    show_progress( progress size, number of files to be extracted );
#    if we had 50 files, and want to "add" 0.2 into progress after all finished
#    use (0.2, 400)
So how does the 50 files relate to the 400 variable there then? I have checked in the Runnymede AIO scripts and can see these examples:

Code:
set_progress(0.2);
show_progress(0.2,953);
Code:
set_progress(0.4);
show_progress(0.05,60);
so am I right in reading it that the show_progress will gradually increase the progress bar by 20% (0.2) as the 953 files extract (and 5% as the subsequent 60 extract)?
HTC One
TrickDroid 5.5.1 Sense 5.0 with ElementalX Kernel

First HTC HD2
Back from the dead and running Nexus JB 1.3

Second HTC HD2
Touchwiz 2.1 DataOnExt
 
carl1961
Old
#828  
carl1961's Avatar
Senior Member
Thanks Meter 2109
Posts: 3,125
Join Date: Dec 2010
Location: Tickfaw
Quote:
Originally Posted by Dunc001 View Post
K, just found most outstanding answers in the source code examples on GitHub - only place I hadn't looked previously. Slightly confused by this though:

Code:
# show_progress(0.2, 400);
#    show_progress( progress size, number of files to be extracted );
#    if we had 50 files, and want to "add" 0.2 into progress after all finished
#    use (0.2, 400)
So how does the 50 files relate to the 400 variable there then? I have checked in the Runnymede AIO scripts and can see these examples:

Code:
set_progress(0.2);
show_progress(0.2,953);
Code:
set_progress(0.4);
show_progress(0.05,60);
so am I right in reading it that the show_progress will gradually increase the progress bar by 20% (0.2) as the 953 files extract (and 5% as the subsequent 60 extract)?
I think 0.05 is a lot less than 5% , I made F's in math LOL (0.05,60)
 
Dunc001
Old
#829  
Dunc001's Avatar
Recognized Developer
Thanks Meter 1116
Posts: 2,491
Join Date: Apr 2010
Location: Hiding out south of the border...
LOL, nope 1.0 = 100% therefor 0.05 = 5%
HTC One
TrickDroid 5.5.1 Sense 5.0 with ElementalX Kernel

First HTC HD2
Back from the dead and running Nexus JB 1.3

Second HTC HD2
Touchwiz 2.1 DataOnExt
The Following User Says Thank You to Dunc001 For This Useful Post: [ Click to Expand ]
 
carl1961
Old
#830  
carl1961's Avatar
Senior Member
Thanks Meter 2109
Posts: 3,125
Join Date: Dec 2010
Location: Tickfaw
Quote:
Originally Posted by Dunc001 View Post
LOL, nope 1.0 = 100% therefor 0.05 = 5%
thanks for correcting me

 
Post Reply+
Tags
aroma, chef, flashable zip, installer, mod, one of the best, pure awesomeness installer ui
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...