Posts: 199
Joined: Oct 2003
Reputation:
0
febs
Senior Member
Posts: 199
using xbmc as dash:
if the xboxmediacenter.xml is broken in some way, the dashboard does not start. well, it should pheraps be *strongly* broken, but it's quite boring when it happens.
so can it be possible to create a default.xbe who runs a minimal dash (ftp server) if does not finds xboxmediacenter.xml nor others files, folders or settings?
it can make usage and experimenting with xbmc as a dashboard safer.
thanx
Posts: 10,520
Joined: Sep 2003
Reputation:
10
Gamester17
Team-XBMC Forum Moderator
Posts: 10,520
2004-03-11, 16:26
good idea, maybe simply a holding down a button combination during boot/start-up to enable the ftp-server + web-server and be the 'safe mode'?
Posts: 508
Joined: Sep 2003
Reputation:
0
i'll look into it, but it will need the skin/font files
for it 2 show anything
frodo
XBMC Project Founder (Retired), now head programmer of
MediaPortal
Posts: 761
Joined: Dec 2003
Reputation:
0
Butcher
Retired Developer
Posts: 761
need a font file to render text (unless we embed a graphic for "safe mode" in the xbe.)
Posts: 199
Joined: Oct 2003
Reputation:
0
febs
Senior Member
Posts: 199
will be that difficult to implement, or increasing the xbe size by.. too much?
Posts: 761
Joined: Dec 2003
Reputation:
0
Butcher
Retired Developer
Posts: 761
depends on the res of the text. we could fit some hard-coded 8 pixel high text in a few bytes though (could be scaled up when rendered).
Posts: 136
Joined: Oct 2003
Reputation:
0
would it also be an idea to autoreplace xboxmediacenter.xml with a default version or load hardcoded values when errors occur? then send a message to the screen? i'm sorry if i'm suggesting something realy stupid here.
safe mode would also be realy great!
zilvershadow
greets,
zilvershadow
designer of the kmlbrowser script.
Posts: 10,520
Joined: Sep 2003
Reputation:
10
Gamester17
Team-XBMC Forum Moderator
Posts: 10,520
2004-03-12, 15:21
if a font going to be included in the xbe anyway then there might be a good idea to output the xbmc logfile (if available) to the tv?
Posts: 508
Joined: Sep 2003
Reputation:
0
ok, i did some tests with todays cvs version (12-3):
no settings.xml or no calibration.xml:
xbmc starts fine. missing files are created
ftp server will start if the user has choosen for it in the setup
no xboxmediacenter.xml:
xbmc runs and starts the ftp server automaticly
dashboardmode:
it will try to load the mediacenter skin from the same directory as the .xbe is in.
this will most likely fail as skins are placed in another drive/directory. so this will result in a black screen
ftp server gets started. the ip adres/netmask of the xbox are not set by xbmc. meaning we dont know which ip adres the xbox has now
no-dashboardmode:
it will try to load the mediacenter skin from the same directory as the .xbe is in,so this will probably work unless the user removed the default mediacenter skin
ftp server gets started. the ip adres/netmask of the xbox are not set by xbmc, meaning it will use the existing values set by avalaunch, evox or whatever dashboard you use
things to improve:
1. use default ip adres/netmask (192.168.0.1 / 255.255.255.0) if xboxmediacenter.xml is missing
2. avoid black screen by embedding a small font in the .xbe
that way we can display whats wrong , and show the ipadres/netmask
frodo
XBMC Project Founder (Retired), now head programmer of
MediaPortal
Posts: 761
Joined: Dec 2003
Reputation:
0
Butcher
Retired Developer
Posts: 761
frodo: you can call xfont_opendefaultfont for a default font (saves the bother of setting one up and embedding it ourselves).