2
Vote

Krypton for xbox 360

description

Hi,

First of: Krypton for PC works perfect and looks awesome!

Second: I am trying to port the example to the xbox 360 but I am getting a lot of errors. Is there any specific action required to succesfully port krypton to the xbox?

Greetings,
Aggror

file attachments

comments

Aggror wrote Oct 12, 2011 at 8:49 AM

I use the latest version of Krypton. (The one downloaded from the mainpage via the download button).
I have got it working in the mean time. There were a few things that needed fixing, but nothing to fancy. Mainly code like below:
public BoundingRect(float x, float y, float width, float height)
    {
        this.Min.X = x;
        this.Min.Y = y;
        this.Max.X = x + width;
        this.Max.Y = y + height;
    }
Changed it to the following and it works:

public BoundingRect(float x, float y, float width, float height)
    {
        this.Min = new Vector2();
        this.Max = new Vector2();
        this.Min.X = x;
        this.Min.Y = y;
        this.Max.X = x + width;
        this.Max.Y = y + height;
    }
Like many errors for an xbox project, some variables are not initialised inside the methods. I have added a zip file with the 2 files that have changes in them and an image containing some errors.

I've you want the entire working project for the xbox, you can mail me. (it looks great on xbox!)

djdindak wrote Oct 12, 2011 at 3:13 PM

Hi Aggror,

Thanks for the pointer! The xbox specific development is definitely not in my area of expertise, so I would love to check out some of the changes you made to Krypton to get a working project running :) I'll do some testing with your code and introduce the changes with some WP7 updates as well.

-Dindak

xixonia wrote Dec 11, 2011 at 9:57 PM

I have also run into this issue, and I will ensure that Krypton 3.0 compiles and runs on Xbox 360.

djdindak wrote May 22, 2012 at 7:26 PM

adman made a comment about how "result = new BoundingRect()" might be missing in the latest build. I'll check on it.


[discussion:353311]

cdhanna wrote Aug 12, 2012 at 7:54 PM

I think maybe I am missing something, but when I tried to use krypton the xbox, nothing worked. In Visual studio, I rightclicked on my win7 project and clicked the "make xbox copy" button. When I tried to deploy it, visual studio told me that it was missing references to krypton, but krypton was clearly in my references section.

Aggror wrote Aug 12, 2012 at 9:10 PM

I has been a while and I can't find the source but I do have the zip file containing the dll for xbox.

cdhanna wrote Oct 24, 2012 at 12:40 AM

Cool. Using the XKrypton.dll makes me compiler errors go away, but when I launch the project on the xbox, the program breaks at the start, and gives an errorcode 4. Any ideas?

cdhanna wrote Oct 24, 2012 at 12:59 AM

Nevermind. I fixed my problem. I built the krytontestbed project for the 360, and that worked after replacing the class files. Then in my project, for the xbox360 copy, I added the reference generated for the xbox release by the testbed. And that seemed to work great!