xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
2 Pages V  1 2 >  
Reply to this topicStart new topic
> Booting N64 Roms Within Xbmc
Bomb Bloke
post Aug 15 2007, 02:54 PM
Post #1


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



XBMC supports shortcuts, and with the "custom" tag in these we can boot ROMs directly - bypassing the menu systems in the Xport emulators that run them.

This works fine for most of the popular systems, but Surreal isn't an Xport release and hence you can't boot its ROMs in this manner. A solution is still tantalisingly close though, because the main Surreal executable is itself a front end (for 1964, Project64, and UltraHLE).

I've crafted up the beginnings of a script to allow XBMC to boot these emulators directly but while testing I ran into a bit of a roadblock. The aim is to integrate the ROMs directly into the Programs menu like a normal ROM shortcut (hence allowing users their choice of view modes etc) but I can't find a way to boot scripts there.

I've tried using shortcuts to link to them or the XBMC.RunScript command (the later being ideal, as it allows me to pass arguements), and while XBMC will list these and allow me to select them it boots the targets as XBE files (ei. Unloads itself from memory and runs them as seperate programs (ei. Doesn't work)).

Well, fair enough, they aren't exactly programs - But how can I boot custom code from the Programs menu without writing XBE files? Is there some sort of "batch file" system I'm missing here, or is it really just XBEs and scripts (with no way to merge the two views)?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shorty
post Aug 15 2007, 04:00 PM
Post #2


X-S Expert
***

Group: Members
Posts: 581
Joined: 16-April 03
From: UK
Member No.: 32658



Yay!

Just a few more systems and all will have the "boot rom from XBMC" functionality, i've often wandered about surreal, it'd be great if it could work like this.

As for your question, have you seen the retro-x and emulauncher scripts?

More specificaly to your question, what you need seems to be coming soon, search XBMC forums for Python Folders.

Shorty

Also in the meantime if you wanted, couldn't you make a script that creats shortcuts in a user defined folder. The user could then just create a source in my programs to that folder.

Shorty
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SC10-E
post Aug 15 2007, 04:13 PM
Post #3


X-S Senior Member
**

Group: Members
Posts: 264
Joined: 12-June 07
From: Fredericksburg, VA
Member No.: 345567
Xbox Version: v1.1
360 version: v3.0 (falcon)



Thanks for trying this Bomb Bloke. I might finally be able to complete that library of mine. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shorty
post Aug 16 2007, 03:44 AM
Post #4


X-S Expert
***

Group: Members
Posts: 581
Joined: 16-April 03
From: UK
Member No.: 32658



Yah, here is a clickable to what i was goinmg on about, sounds interesting right?

Shorty

Edit, forgot link... http://www.xboxmediacenter.com/forum/showthread.php?t=27760

This post has been edited by shorty: Aug 16 2007, 03:45 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bomb Bloke
post Aug 16 2007, 06:19 AM
Post #5


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



QUOTE(shorty @ Aug 16 2007, 01:36 AM) *
As for your question, have you seen the retro-x and emulauncher scripts?

Yes, but I'm looking for transparent integration.

QUOTE(shorty @ Aug 16 2007, 01:36 AM) *
More specificaly to your question, what you need seems to be coming soon, search XBMC forums for Python Folders.

Excellent! It isn't so much aimed at launching things as it is at getting directory listings, but I see no reason why it can't be used for either. I've grabbed the PC patch so I'll mess about with it this afternoon and see what I can do with it. There's no talk that I can see about enabling this in the Programs view, but if I can make this work I doubt it'll be hard to make a convincing request.

QUOTE(shorty @ Aug 16 2007, 01:36 AM) *
Also in the meantime if you wanted, couldn't you make a script that creats shortcuts in a user defined folder. The user could then just create a source in my programs to that folder.

No sorry. When Surreal launches one of its emulators, it writes a couple of INI files that point to the ROM to be loaded (not by ROM name, but by index - and those change whenever you add to your collection). Hence XBMC must write the INI files every time you start a game, and the only way I can think of to do that is via scripts - unless there's a way to make a shortcut perform multiple tasks and copy/write files.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bomb Bloke
post Aug 16 2007, 07:42 AM
Post #6


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



Nah, I'm afraid that's no good. There's no way to display a list of python folders next to normal content (when XBMC is looking for python folders, it ignores all other media, and vice versa).

The only real solutions are booting scripts either directly or via shortcuts. If XBMC can't (or should I say won't) do this, then the only way I can see is via an external XBE.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bomb Bloke
post Aug 21 2007, 06:31 AM
Post #7


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



Right, so here we have a script that'll boot a given N64 ROM directly. Along with EGazzz I've worked out how it all runs.

Surreal works by unzipping a ROM to X: (I think it's always X:) and running one of it's emulators. That then runs whatever's on the swap drive.

Hence this script does more or less the same thing (skipping the unzipping step if it isn't required).

The good, the bad, and the ugly:

There are four parameters near the top of the script to set, depending on which ROM it should be loaded.

"ZipName" and "Emulator" speak for themselves.

You'll need to work out what the other two values ("RomName" and "RomCRC") should be by playing the game in the usual way (via Surreal's frontend), then reading "Temp.ini" from the Surreal folder.

The script needs to go in the same directory as Surreal (you can boot it via the File Manager), and the ROMs need to be stored in "<SurrealPath>\Roms".

The ROMs must be in N64 format (little endian). As a quick explanation, all those different extensions you see on your games (Z64, V64, etc) mean they're in different formats: Different emulators load (and/or in rare cases such as Surreal, run) certain formats faster, and some older ones only run certain formats.

Surreal converts ROMs to N64 when you load them (if it has to), but this script can't do that. A converter such as Tool64 can convert your files in bulk permanently.

Furthermore, you need to be using the latest version of Surreal (currently XXX beta 4.95).

That's about it for now: A working script. More or less useless until I work out how to run it from the Programs menu.

This post has been edited by Bomb Bloke: Aug 21 2007, 06:45 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Nick8888
post Aug 21 2007, 11:37 AM
Post #8


X-S Enthusiast


Group: Members
Posts: 26
Joined: 22-July 07
Member No.: 349934



Nice! Although it looks like a lot of setting up im glad you have found a solution to this!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
blittan
post Aug 21 2007, 06:50 PM
Post #9


X-S X-perience
**

Group: Members
Posts: 373
Joined: 29-July 03
From: Sweden
Member No.: 53067
Xbox Version: v1.6
360 version: v1 (xenon)



Bomb Bloke: great findings, looked into it some myself, but not that hands on with C so i gave up. You know the sourcecode for Surreal XXX 4,95 is available for download?



http://surreal64.sourceforge.net/

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mtsaint
post Aug 22 2007, 01:51 AM
Post #10


X-S Senior Member
**

Group: Members
Posts: 205
Joined: 22-October 05
Member No.: 253894



thanks you get an A+ for effort ill try this out later i am very surprised
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shorty
post Aug 22 2007, 03:42 AM
Post #11


X-S Expert
***

Group: Members
Posts: 581
Joined: 16-April 03
From: UK
Member No.: 32658



All hail Bomb Bloke! pop.gif

I know you say it's not much use yet (i have not had a look yet, no time untill the weekend) but it sounds like you've opened a door to something very promising.

Shorty
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bomb Bloke
post Aug 22 2007, 03:53 AM
Post #12


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



@blittan: No, I did not know that. It may come in handy later. smile.gif

Ok, so I've had a report of Surreal caching to Z: instead of X:, so there's the first bug to fix.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SC10-E
post Aug 22 2007, 04:30 PM
Post #13


X-S Senior Member
**

Group: Members
Posts: 264
Joined: 12-June 07
From: Fredericksburg, VA
Member No.: 345567
Xbox Version: v1.1
360 version: v3.0 (falcon)



I hope someone makes a version of surreal with custom launch parameters so all this stuff doesn't have to be done then since the source code is out.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Bomb Bloke
post Aug 27 2007, 04:03 AM
Post #14


X-S Transcendental
**********

Group: Head Moderator
Posts: 6567
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none



Heh, call me blind, but I don't see any source at that link...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Nick8888
post Aug 27 2007, 06:04 AM
Post #15


X-S Enthusiast


Group: Members
Posts: 26
Joined: 22-July 07
Member No.: 349934



http://sourceforge.net/projects/surreal64/

Not sure if this helps. The other link just went to a coming soon page didnt it?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





2 Pages V  1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 23rd May 2013 - 08:00 PM