Tutorial  Updated

How to develop homebrew for the Xbox One (Part 1)

This tutorial will be a multi part series. It will assume no prior knowledge of programming or prior development. It will cover getting all of the necessary tools, Working with C#/XAML and the Visual Designer, Creating APPX Packages that you can distribute over the internet for others to use your software easily, and more. This tutorial is for everyone interested in making their own homebrew software for Xbox One.

homebrew.jpg


In the past few weeks we have witnessed a large amount of homebrew become available for the Xbox One. Yet while there is a growing amount of homebrew becoming available there is very little to no good documentation on how to create homebrew for the Xbox One. This series intends to change that. Buckle up your seatbelt this is gonna be a long ride. :)


Part 1 Section A: Getting Started -

47b1a183c4ccf704ab0b456942a45a4a.jpg


Before you can start making homebrew for the Xbox One you are going to need a few things. You will need an Xbox One (Duh Right?) Windows 10 PC with developer mode activated, and Visual Studio 2017.

First Download Visual Studio 2017 Community Edition here
https://www.visualstudio.com/downloads/

Once you have it downloaded you will see an Installer that looks like this.
cfSH7g8.png


Of course yours won't have anything selected just yet. The only thing you will need is Universal Windows Development at the top left. Feel free to include other workloads as well.

We will now activate developer mode on your Windows 10 PC. You need Developer mode activated in order to deploy homebrew to your Xbox One.

Go to Settings -> Update and Security -> For Developers

You will now see a menu that looks like this

NJ3i3ly.png


Select Developer Mode to enable it. It's that simple :)


Once finished with that we are now going to proceed to the next step. Go ahead and open up Visual Studio. Once opened click

File -> New -> Project

You will now see a menu that looks like this

ZYMzolE.png


Make sure that you choose "Windows Universal" under Visual C#. You will then select to create a blank application.


Part 1 Section B: Commence countdown to fun and awesome times :D

635948897719772651-2089263064_635924533253493445-107854477_6nRSw8M0sKiCu8Fe4gOBjiiU0b-QT66tAwxnoHY03VxDoH3rCHwC5qpz_wkXNnMX-U_E_PYQDpe0hKAZhFatI9ZEOrtGNCIMe_PsumF18p9nTzDMvjkHqCz7IeaBTjyWq4kr-PFO.gif



The first thing you are going to want to is to enable your Computer to talk to your Xbox One. To do this on the top menu select

Debug -> Properties (At the Bottom)

Make sure that your Xbox One is in developer mode. (If you need info on setting that up just look here
https://gbatemp.net/threads/how-to-activate-and-share-dev-mode-on-xbox-one-up-to-3-devices.468161/

Take Note of the I.P. Address at the top of your screen on the Xbox One. It will look something like 192.168.3.44

Once you are at the Properties Menu it should look like this

qzuQPqC.png


Enter in your Xbox One I.P. Address in the "Remote Machine" Field.
Once done make sure "Universal Unencrypted Protocol" is selected on Authentication Mode.
Go ahead and close out of the properties window.

You are now ready to build and deploy your very first homebrew application to the Xbox One
Congrats you have made it this far. :toot:

On the right hand side you should see a file called mainpage.xaml go ahead and double click it.
Visual Studio will now load the designer. It should look like this

cBpVKI2.png


For now don't worry about all of the code in the middle. That's all XAML stuff and we'll get to it later on.
First at the top where it says "Phone" and scale go ahead and click that and navigate down the list to "Xbox" 1920x1080.

Note: If you need to zoom in there is a tiny box on the middle of the screen towards the left that will say 7.25%. Change that to 25 or 33% for a better view

Once done go to the left hand side where it says "All XAML Controls" and you will see a drop down list of all the various Widgets and Items that you can place into your Homebrew Application.
You are looking for the one that says "Textblock" go ahead and drag and drop that into the application.

It should now look like this

3jt9DzV.png


Remember how a moment ago I said just ignore the code stuff in the middle we will get to it later. Well now is later.

If you examine the XAML Code you will notice that when you dragged and dropped the Textblock into the designer you had code in XAML that got created automatically for you. There now exists a Textblock segement of code in XAML. Upon Closer examination you can see all of the atrributes of that textblock listed just like this.

p2Ng2h8.png


Notice we have the height and the width defined as well as the Text that is contained within. Go ahead and change the Text= " " to whatever you like.

You are now ready to launch your very first Xbox One homebrew Application. Once finished go ahead and save your project. Now go up to the top and set it to x64 and Release/Debug (Up to you on that one but either will do) Now select Debug and start with or without debugging.

If you have followed all of the steps correctly you will now see your project build and deploy on your Xbox One Console. Congrats on building your first homebrew for the Xbox. :D


That's the end of Part 1. There is still much more to come. In Part 2 we will be covering how to apply Backgrounds, Colors, Fonts, we will be going over XAML more and we may even get into C# a little. If you have any questions at all comment below or message me.

 
Last edited by wiired24,

dominater01

Well-Known Member
Member
Joined
Mar 13, 2009
Messages
1,278
Trophies
1
Age
33
XP
2,909
Country
United States
I'd have to look over the games code myself to understand the design. Also just by looking at your error it seems like your having a definition error. You may be missing a necessary file for the appx conversion. Generally speaking when you have a definition error it means your missing something as a method or function gets used but there is no declaration of what it is so the compiler gives a definition error.
i think it stopped working because of me actually

i re extracted it and now im getting a certificate error saying it expired?

gonna try something
 
Last edited by dominater01,

kingtut

Well-Known Member
Member
Joined
May 3, 2017
Messages
1,067
Trophies
0
Age
29
XP
1,354
Country
United States
i think it stopped working because of me actually

i re extracted it and now im getting a certificate error saying it expired?

gonna try something

Hey dominator01, If you are not busy, can you help me with an app. I got the solution from a developer, and I am trying to compile it first then port it to uwp.
 

dominater01

Well-Known Member
Member
Joined
Mar 13, 2009
Messages
1,278
Trophies
1
Age
33
XP
2,909
Country
United States
Hey dominator01, If you are not busy, can you help me with an app. I got the solution from a developer, and I am trying to compile it first then port it to uwp.
im no developer i dont know a single thing when it comes to this i tried to learn but got nowhere,
the only thing i found out how to do is compile an appx file and thats it

edit: i can help compile it if thats what you mean

sometimes tho visual studio has errors and i dont know a single thing to fix it
 
Last edited by dominater01,

kingtut

Well-Known Member
Member
Joined
May 3, 2017
Messages
1,067
Trophies
0
Age
29
XP
1,354
Country
United States
im no developer i dont know a single thing when it comes to this i tried to learn but got nowhere,
the only thing i found out how to do is compile an appx file and thats it

what exactly are you asking for anyway? maybe someone here can help you

I already asked wiired24 but he is really busy (I do not blame him as he is doing a really good job here). So I managed to get a solution file from GitHub, and I am trying to make an appx out of it since I know I could run it on visual studio. The problem is I do not know how to do that. Most of the tutorials I saw here talk about porting existing uwp apps to xbox one. They do not talk about how to port visual studio to uwp (maybe there will be a tutorial about that later on).

Also, I have an error when I try to compile the code that says "cannot open d3dx9.lib", what can I do to fix that?
 
  • Like
Reactions: wiired24

dominater01

Well-Known Member
Member
Joined
Mar 13, 2009
Messages
1,278
Trophies
1
Age
33
XP
2,909
Country
United States
I already asked wiired24 but he is really busy (I do not blame him as he is doing a really good job here). So I managed to get a solution file from GitHub, and I am trying to make an appx out of it since I know I could run it on visual studio. The problem is I do not know how to do that. Most of the tutorials I saw here talk about porting existing uwp apps to xbox one. They do not talk about how to port visual studio to uwp (maybe there will be a tutorial about that later on).

Also, I have an error when I try to compile the code that says "cannot open d3dx9.lib", what can I do to fix that?
no idea i only know how to compile uwp apps over and thats when it doesnt give me errors
 

kingtut

Well-Known Member
Member
Joined
May 3, 2017
Messages
1,067
Trophies
0
Age
29
XP
1,354
Country
United States
Alright guys, without going into details. I have finally managed to compile the code of a really useful program ( I do not want to spoil the surprise, and wiired24 already knows about it). Now, If I have a regular win32 program compiled correctly in visual studio. how do I convert it to uwp, and then make an appx out of it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Lol