xboxscene.org forums

OG Xbox Forums => No-Modchip Hacks (exploits) => XBE Exploits => Topic started by: crosseye on September 09, 2005, 12:19:00 PM

Title: Clock Setting In Ndure And Nkpatcher?
Post by: crosseye on September 09, 2005, 12:19:00 PM
well, you don't have to worry about the clock problem to begin with, but you can easily access the M$ dash to change the time.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: kingroach on September 09, 2005, 12:21:00 PM
old bert and earnie fonts used to set the date to 4th july.. but ude/uxe/ndure doesnt mess with clock so there is no chance of clock loop.. However with Ndure, you can boot to retail msdash by pressing the eject button, and that will bring you to msdash screen for clock adjustment.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 09, 2005, 12:23:00 PM
if you use a NDURE installer it will have the MS dash as a item
so you could just it to set the clock
or use open-retail (then set clock)
or maybe use clock setting xbe/xip (not sure what one) as a app

NKpatcher could be modifided to test the clock and if the date was older
then a preset it would run the clock setting xbe/xip or msxboxdash.xbe but you would have to power cycle after you set it
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 09, 2005, 01:54:00 PM
Actually the clock safety code is indeed in the UXE fonts and also in the Ndure fonts.
it set's the clock to a predefined value if the clock is unset. This is not to prevent clockloops but it is to keep games running when the clock is dead.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: DaddyJ on September 09, 2005, 02:38:00 PM
as far as clock loop the system calls the msdash to set the clock, but the respective uxe ndure xbe doesnt respond to that system call, therefor no clock loop.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 09, 2005, 02:46:00 PM
The poster is even asking about a clock loop. He's asking if he needs to set it each time since it set's it to a predefined value. Since this is only the case when the clock is dead he doesn't need to fear that issue.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 10, 2005, 08:42:00 AM
Some games will go DDE if the clock isn't set to a valid date..  Ages ago I designed a script for mxm to set the clock..  Basically the xbox boots mxm, runs te autoexec script which sets the clock to an 'incorrect' but 'valid' time, then it would load another dash..  (It would keep increasing the date so that gamesaves had a somewhat proper oder)..  End result took about 6 extra seconds to boot..  Thats faster than it can be done by hand,but still slow..  That is why I have ALWAYS LOVED Xselect..
Beyond that, I might look into writing an xbe to do that..  Or better still, I'm going to request that xman954 look into the possibility for nkpatcher10++..smile.gif
(Alot of ppl transport their boxes all over..  Many can't plug into a network)

If you want that mxm script I'll see if I can dig it up and post it here..
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 10, 2005, 10:13:00 AM
when i first seen this post i new what the poster was getting at
i live in the tampa bay area and lightning is bad here (unplug things alot)
but xbox is conected to the internet (wireless) so evox sets the time

did some testing and found:
settings_adoc.xip is the only .xip that can be run as a .xbe
and what a suprise that was  smile.gif but no use

the only easy way is through the MSdash
there is a few ways to do this but all ways i can think of will require
a power cycle when done.. sad.gif

in the fonts:
don't reset the time if not set then run C:\msxboxdash.xbe it should go stright to the clock settings menu.
(could maybe use the XBL tab to do a controlled crash or reboot)

in nkpatcher:
test time if older then say 8/01/05 then run C:\msxboxdash.xbe
but you would have to go to the clock settings menu. (or use fonts that don't reset it and i should go stright to the clock settings menu)
becouse the only dash that was loaded was the MS dash
IGR will not work (unless someone knows a work around)

NOTE: both ways you must have a working MSdash or it will crash

OR run some other xbe that lets you set it and can do a quick reboot when done
(is there such a thing)
 
any thoughts ?
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 10, 2005, 10:29:00 AM
hmmm yeah. allthough a normal dual/tri-retail setup would do the same thing. just power on with eject after pluggin it in. But offcourse not everybody likes the retail dualboot...

Another idea might be to (when clock is dead) load to xboxdash.xbe on the virtual C via nkpatcher. then when an IGR is performed (with set clock) it should boot to the other dash.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 10, 2005, 10:43:00 AM
I'd still add the option to simply have the time set to a valid but incorrect value, or atleast default to that if msdash cannot load the clock settings..
Some ppl won't care if the clock is correct as long as they can play all their games, and would prefer not to take the time to set it manually..
Also, problems similar to the original clock loop might arise if msdash can't load..  (Eh scrap that, I'm sure you're not stupid enough to let that happen)..
In any case, I doubt it would be much tougher to implement both methods..  You could even store a .txt with the last date set for the purpose of autoincrementing so gamesave order will be preserved to a point..
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 10, 2005, 09:38:00 PM
good news
messed around a little and found that IGR will work even if the default NKpatcher dash was never ran to start with
(if it can boot DVD first then it has to be able to do it)

so tested running C:\xboxdash.xbe (from shadowC)
from inside NKpatcher and then doing IGR,
it went straight to the default dash  smile.gif

now the only thing to decide is:

1 it's not needed

2 remove the clock setting code from the fonts so that when it is not set it would go straight to the clock setup
as a unmodded xbox would do, then do IGR to get to the default dash

3 let nkpatcher test the date and if it was set by the fonts (or too long ago)then
run the msdash and you will have to select "settings" then "clock" then "time and date" to set it, then do IGR
                  
of course there will be options to do this in the config.inc file
and if this option is not selected, then in case 2 it would set the time
to a preset in nkpatcher
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 10, 2005, 11:55:00 PM
I would leave the code in the fonts as they have a safety function.

Can't in option 3 after the checking of the clock's value let nkp unset he clock again? Or find another way to load the clock setup screen instantly. Guess it will be hard.

Or maybe run a txt file like Triggernum suggested and capture all times and dates on and when clock is set to a low value it automatically sets it to the latest one.

But yeah this is all difficult and I doubt many people are gonna use it.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 11, 2005, 07:52:00 AM
The reason I requested this for nkpatcher is the fact that you're on a role right now..  If this looks like a daunting task to do in asm then I can try my hand at a less legal solution..smile.gif

Question:  Can you program the time without invoking msdash, with i2c maybe?  Duh, there must be a way since fonts have been doing it for years..smile.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 11, 2005, 11:01:00 AM
going to set the clock in NKPatcher to 1970
and see if the MSdash will kick it to the clock setting menu
will let you know (it may just work)
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 11, 2005, 01:21:00 PM
@dus: so what was your previous nick around here?
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 11, 2005, 03:52:00 PM
QUOTE
OPENREAD listFile date.txt
READFILELN listFile fileline
Set date %fileline%
READFILELN listFile fileline
Set month %fileline%
READFILELN listFile fileline
Set year %fileline%
CLOSEFILE listFile
Add date 1

IF# %date% > 28 GOTO NEWMONTH

:CHECKMONTH
IF# %month% > 12 GOTO NEWYEAR

:SETDATE
OPENWrite listFile date.txt
WRITEFILELN listFile %date%
WRITEFILELN listFile %month%
WRITEFILELN listFile %year%
CLOSEFILE listFile
Date %date% %month% %year%
GOTO DATEDONE

:NEWMONTH
Add month 1
SET date 1
GOTO CHECKMONTH

:NEWYEAR
Add year 1
SET month 1
GOTO SETDATE

:DATEDONE
EXEC "c:\\avalaunch.xbe"


mxm:\date.txt
QUOTE
11
9
5


Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 11, 2005, 09:34:00 PM
QUOTE(dus @ Sep 11 2005, 03:21 PM)
I'm unsure if 1970 is the 'unset' value. According to the SetSystemTime  documentation the base is January 1, 1601 (UTC). Also check the following post by rmenhal that mentions setting the clock to zero!


found out the hard way anything less then 2000 will
set a strange year 8709 and anything more then 2100 will
do the same but nothing will kick it to the clock menu.

it look like the RTC is in MCPX the 32.768 xtal goes stright to it.
and if it's like other RTC there is a status reg that indcates
that there was power down and the clock needs to be set
but when the system call (set time) is made by the fonts it must clear it
so the ms dash never sees it

i do have working code that tests the time and if it was set by the
fonts it will run a .xbe and then you can IGR to dashboard_path

i have zero documentation it's learn as you go...
so what value is January 1, 1601 (UTC)
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 11, 2005, 10:52:00 PM
Perhaps do what unleashx does to set the clock..  We'd need a separate xbe to mimick the ms clock settings..
Title: Clock Setting In Ndure And Nkpatcher?
Post by: PedrosPad on September 12, 2005, 03:17:00 AM
QUOTE(triggernum5 @ Sep 11 2005, 04:03 PM)
Question:  Can you program the time without invoking msdash, with i2c maybe?  Duh, there must be a way since fonts have been doing it for years..smile.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 12, 2005, 09:32:00 AM
blink.gif

QUOTE
The LD_LAUNCH_DASHBOARD structure is used in the XLaunchNewImage function to specify the reason that the Xbox Dashboard is being launched by the title.
dwReason = XLD_LAUNCH_DASHBOARD_SETTINGS,
dwParameter1 = XLD_SETTINGS_CLOCK Adjust the clock.


part of the 007 hack
QUOTE
6800000000 push 00000000 ; param 2 = NULL
8D857F010000 lea eax, dword ptr [ebp+0000017F]   
50 push eax ; param 1 = "D:\UDATA\4541000d\000000000000\default.xbe"
FF95F7000000 call dword ptr [ebp+000000F7] ; call XLaunchNewImage
 
EBFE jmp 000000F5 ; infinite loop


so: ????????
CODE

XLaunchNewImage:   dd   0x80000000 + 247

        push    (unknown value) < dwReason + dwParameter1
        lea      eax, [msdash_path]  
        push    eax
        call    dword [XLaunchNewImage]



Title: Clock Setting In Ndure And Nkpatcher?
Post by: PedrosPad on September 13, 2005, 02:13:00 AM
QUOTE(dus @ Sep 13 2005, 09:39 AM)
We need someone with the XDK that can tell us the values of XLD_LAUNCH_DASHBOARD_SETTINGS and XLD_SETTINGS_CLOCK are, but also the structure of LD_LAUNCH_DASHBOARD.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: triggernum5 on September 13, 2005, 07:53:00 AM
QUOTE
Promoting, Endorsing, and/or encouraging the use of Clone Modchips: Bans will be handed out without warning. XS values the Authentic Modchip market and it’s developers.  The Modchip teams are the ones who have helped to make adding a chip affordable and accessable to the average consumer via quality of parts, support information and innovation, and via sponsorship through their online retailers.
In anycase, XBOXSCENE is fucking pathetic now..  This quote from the rules is a good part of why I'm going to suggest that the fucking hipocrits that run this bullshit maketing site take a flying leap off a tall cliff..  I'm gone forever as of now..  Suck it HSDEMONZ!!!!!!!!!!!
Title: Clock Setting In Ndure And Nkpatcher?
Post by: PedrosPad on September 13, 2005, 09:00:00 AM
QUOTE(triggernum5 @ Sep 13 2005, 04:04 PM)
Ok, I just scoured the rules and I see absolutely no grounds to say that it is against the rules to ask somebody with the xdk to help provide information about a structure.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 13, 2005, 11:57:00 AM
QUOTE(PedrosPad @ Sep 13 2005, 11:11 AM)
My natural urge was to simply cut & paste the information from the XDK's

how about just posting a small .ASM block of code to do this,,,,
from your vast memory of code that you have already done, of course   biggrin.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: PedrosPad on September 22, 2005, 09:00:00 AM
QUOTE(dus @ Sep 22 2005, 04:17 PM)
Ok, so no XDK... why should that stop us? Let's scratch that itch.

View Post

Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 22, 2005, 09:19:00 AM
QUOTE(dus @ Sep 22 2005, 10:17 AM)
To implement, just copy the LDP setup from the fonts (ernie.asm) and do the following:
(Assuming ebx is loaded with the pointer to LDP in memory and the path to xboxdash.xbe is copied into [ebx+8h])
write 1 into dword [ebx+0h]
write 3 into dword [ebx+400h]
write 1 into dword [ebx+408h]

NICE
will give it a shot  beerchug.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 22, 2005, 11:25:00 AM
OK nice find Dus this is what i got and it's works beerchug.gif
CODE
       cld
        mov     edi, ebx
        xor     eax, eax
        mov     ecx, dword 0x00000400+0x010; extra bytes to zero of LDP !!!!
        rep     stosd

        lea     edi, [ebx+8]
        lea     esi, [clk_ph]
        push    byte CLKSZ
   pop     ecx
        rep     movsb     ; move dash path into DP

   mov     [ebx+000h], dword 0x01   ; use parmeters
   mov     [ebx+400h], dword 0x03   ; parameter for settings in dashboard
   mov     [ebx+408h], dword 0x01   ; CLOCK within settings

        push    byte 0x02  ; quick reboot
        call    dword [HalReturnToFirmware]
   jmp   short $
;-----------------------------------------
   align   4
clk_ph: db      '\Device\Harddisk0\Partition2\xboxdash.xbe',0,0
CLKSZ:  equ     $-clk_ph


right now the last thing NKPatcher does is:
test the time and if it's before 9/20/05 it goes stright to the clock settings(in shadowC if enabled) then you IGR to dashboard_path

Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 22, 2005, 12:37:00 PM
awesome work.
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 22, 2005, 12:38:00 PM
QUOTE
That is 400h double words (4 bytes). In total, 1000h bytes are cleared

was not sure but that clears it up thanks
(just wanted the space between 401h and 407h cleared)

will put something together later for anyone interested... smile.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: DaddyJ on September 22, 2005, 01:46:00 PM
QUOTE(xman954 @ Sep 22 2005, 02:49 PM)
was not sure but that clears it up thanks
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 22, 2005, 08:33:00 PM
OK here it is:
http://triggernum5.s...tuff/clock_set/
just replace the xboxaps.asm with this one

the %define CLOCK_CHECK is in the first line of this file
you can comment it out to have no clock check
when shadowC is used it will go to C:\xboxdash.xbe to set the clock
if no shadowC is used it will go to C:\msxboxdash.xbe

try it and post back what you think smile.gif

and if this look like it will be used
maybe DaddyJ will add it to NKP-Config  beerchug.gif
Title: Clock Setting In Ndure And Nkpatcher?
Post by: krayzie on September 22, 2005, 10:13:00 PM
I take it that if no shadow c is found and no msxboxdash.xbe is found it will just boot to the main dash?
great stuff
Title: Clock Setting In Ndure And Nkpatcher?
Post by: xman954 on September 22, 2005, 10:21:00 PM
QUOTE(krayzie @ Sep 23 2005, 12:24 AM)
I take it that if no shadow c is found and no msxboxdash.xbe is found it will just boot to the main dash?
Title: Clock Setting In Ndure And Nkpatcher?
Post by: DaddyJ on September 23, 2005, 07:05:00 AM
QUOTE(xman954)
maybe DaddyJ will add it to NKP-Config  beerchug.gif


of course!
Title: Clock Setting In Ndure And Nkpatcher?
Post by: Ndure protagonist on September 23, 2005, 09:22:00 AM
! Brilliant stuff !

( This might interest you too: http://forums.xbox-s...howtopic=444280 )