My latest errors seem to revolve a lot around vertex buffer api changes. There is nice blog post here by Shawn Hargreaves.
Post about Vertex Buffer Changes
simply put though you remove your VertexDeclaration lines of code and just put 'typeof(RoundLineVertex)' the declaration in the second parameter of the VertexBuffer call, like these following two lines of code.
vb = new VertexBuffer(device, typeof(RoundLineVertex), numVertices * bytesPerVertex, BufferUsage.None);
// vdecl = new VertexDeclaration(device, RoundLineVertex.VertexElements);
After going through that it was very easy to change the VertexBuffer setups... Only now i have IndexBuffer to sort out. I did not write this original code and so have no real working knowlegde of the finer points required to make this stuff work. However I hope it wil be fairly straight forward once i under what has changed in the API. I understand what the buffer is for, only not whats changed at the moment.
Laters
Wednesday, December 15, 2010
Tuesday, December 14, 2010
Blooming fixed some more Xna3.1 -> Xna4.0
So i had 28 erros, ALL of them pertaining to the Bloom component. Interesting. I know by experience that this is not the last of the errors. They are just being masked by the current issues. So i was not surprised when i fixed the Bloom to see a new selection of errors, 48 in total.
So fixing the Bloom was easy. I just compared the New 4.0 sample to what i had and copied over the changes. I would have just copied verbatim, but i knew i made several small changes to the Bloom and i did not want to do that again. This process only took about 5 minutes anyway.
So now onto my new Errors which include
does not conatin a definition for 'MinimumVertexShaderProfile'
and
VertexElementMethod does not exist
These are all to do with Roundline which i am actually not using at the moment in this game. I may remove it for now. I will bring it back when i want to use it (gonna be used for the Menu button descriptions I hope!)
So ever forward we go.
Now tomorrow night is my works party, i am sure i will not be posting then :)
G'night
So fixing the Bloom was easy. I just compared the New 4.0 sample to what i had and copied over the changes. I would have just copied verbatim, but i knew i made several small changes to the Bloom and i did not want to do that again. This process only took about 5 minutes anyway.
So now onto my new Errors which include
does not conatin a definition for 'MinimumVertexShaderProfile'
and
VertexElementMethod does not exist
These are all to do with Roundline which i am actually not using at the moment in this game. I may remove it for now. I will bring it back when i want to use it (gonna be used for the Menu button descriptions I hope!)
So ever forward we go.
Now tomorrow night is my works party, i am sure i will not be posting then :)
G'night
Xna3.1 -> Xna 4.0 Solving missing types
So i had 158 errors and the most obvious one was the mising definitions for certain types like..
Vector2
Vector3
Vector4
Rectangle
To solve this issue i created a brand spanking new Solution and opened it up. As the problem appeared to be mising references i started by opening up the referecnes for the new project, then comparing them with the ones in my broken project. Immediatly i saw i was missing a couple of very important reference files.
Microsoft.Xna.Framework
System.Net
Obviously without these there is no way it can compile. You can just right click the References line and say 'Add Reference' then simply browse for these two to add them in.
Onto the next issues later..
Oh, i have about 28 errors left, Yay!
Vector2
Vector3
Vector4
Rectangle
To solve this issue i created a brand spanking new Solution and opened it up. As the problem appeared to be mising references i started by opening up the referecnes for the new project, then comparing them with the ones in my broken project. Immediatly i saw i was missing a couple of very important reference files.
Microsoft.Xna.Framework
System.Net
Obviously without these there is no way it can compile. You can just right click the References line and say 'Add Reference' then simply browse for these two to add them in.
Onto the next issues later..
Oh, i have about 28 errors left, Yay!
Monday, December 13, 2010
My Motivation is Lacking
Or put another way..
I do not yet have enough motivation to trawl through the myriad upgrading problems presented to me by the upgrade of Xna 3.1 to Xna 4.0 game Studio.
Still i feel every day more and more resolve, only not enough yet to actually boot up studio and stare at the current issues. Last night was close but lost out to spending time with my wife.
So the last week or so has still been busy for me. Playing lots of Cataclysm which i have been enjoying rather more than i expected. I have also been Kinect playing with Dance Central a lot. Boy is that my kinda game. In fact for me it is my GOTY. I even parted with 6 stinking dollars to get 2 downloadable dances, bah! I hate you Xbox (well not really). al i need now is to get a few more friends gamertags that actually play this game. Comparing my score to one friend is ok, but not enough darn it! I need to beat or be beaten by more people. It is also great cos my wife, son, and daughter also like to play this game. Truly awesome. I hope one day it will be able to actually play two at the same time (not like the take ya turns as it is now).
Maybe tonight will be the nigth i power up Dev Studio. I feel i have more resolve and also a few more tricky ideas of simple thing to try that i believe will solve my current issues. then onto new ones.
Laters
I do not yet have enough motivation to trawl through the myriad upgrading problems presented to me by the upgrade of Xna 3.1 to Xna 4.0 game Studio.
Still i feel every day more and more resolve, only not enough yet to actually boot up studio and stare at the current issues. Last night was close but lost out to spending time with my wife.
So the last week or so has still been busy for me. Playing lots of Cataclysm which i have been enjoying rather more than i expected. I have also been Kinect playing with Dance Central a lot. Boy is that my kinda game. In fact for me it is my GOTY. I even parted with 6 stinking dollars to get 2 downloadable dances, bah! I hate you Xbox (well not really). al i need now is to get a few more friends gamertags that actually play this game. Comparing my score to one friend is ok, but not enough darn it! I need to beat or be beaten by more people. It is also great cos my wife, son, and daughter also like to play this game. Truly awesome. I hope one day it will be able to actually play two at the same time (not like the take ya turns as it is now).
Maybe tonight will be the nigth i power up Dev Studio. I feel i have more resolve and also a few more tricky ideas of simple thing to try that i believe will solve my current issues. then onto new ones.
Laters
Labels:
dancecentral,
distractions,
kinect,
stuck,
upgrade,
wow,
xna
Thursday, December 9, 2010
Wow has accounted for my last night or two
I do have to say that it seems like an easy choice to play Cataclysm instead of developing games. Though this would not normally be true, IF in fact i could develop my game. However with Berzerkatron being stuck being upgraded to 4.0 Xna, it is hard to get into at all.
So instead of slogging through error after error, i play Wow with my Son and our friends. Easy choice right now.
G'night
So instead of slogging through error after error, i play Wow with my Son and our friends. Easy choice right now.
G'night
Tuesday, December 7, 2010
So i removed the Avatar code (Xna 3.1->4.0)
After all the issues last night i have decided to remove all Avatar code for now. The chnages look just too all encompassing.and i need to get something going, if only for my sanity. Though sanity aside, it is always best to divide and conquer a problem if at all possible, and i am of the beleif that all problems can be broken down in some way.
So what happened after removal of the Avatar code? Well i ended up with 158 Errors, woohoo! Now there is something i can dig into, only i wonder how many more are hiding under these, as is usually the case.
So my next Error is... (unexpected)
"Error 1 The type or namespace name 'Vector2' could not be found (are you missing a using directive or an assembly reference?)"
I also get similar errors for Vector4 and Color (now i knew Color had changed but the Base Vector type declarations?). I guess it's time to see what i should be presenting these as.
After about 25 minutes searching, i have not found an answer. I have a couple of the Samples from the App hub and they seem to work perfectly. So i have no clue at the moment what is wrong with some of my types. I also see the same issue with 'Rectangle', i am sure one cure will fit most of these.
Off to work now. But if anyone knows what is wrong or even a lead, i would love to hear it.
So what happened after removal of the Avatar code? Well i ended up with 158 Errors, woohoo! Now there is something i can dig into, only i wonder how many more are hiding under these, as is usually the case.
So my next Error is... (unexpected)
"Error 1 The type or namespace name 'Vector2' could not be found (are you missing a using directive or an assembly reference?)"
I also get similar errors for Vector4 and Color (now i knew Color had changed but the Base Vector type declarations?). I guess it's time to see what i should be presenting these as.
After about 25 minutes searching, i have not found an answer. I have a couple of the Samples from the App hub and they seem to work perfectly. So i have no clue at the moment what is wrong with some of my types. I also see the same issue with 'Rectangle', i am sure one cure will fit most of these.
Off to work now. But if anyone knows what is wrong or even a lead, i would love to hear it.
Monday, December 6, 2010
3.1 -> 4.0 Xna First Errors
My First Errors... Most likely what you will also see.
So what should i attack first? The component link issues or the Pixelshader. I guess i should go with the component and unleash a real torrent of errors :) It is more fun that way. Fixing the Pixelshader will only solve one problem.
My next issue that appears is becaue i am using Avatars. And as such on the PC it draw a set of polys to show the bones of the Avatar. Great for making sure you can prototype you game on the Pc, but bad cos now i need to fix whatever is wrong. The offending error is....
'XNA Framework HiDef profile supports a maximum of 16 simultaneous vertex elements'. This has caused me to figure out the .FBX animation files for my avatars are not compatible with Xna 4.0. So here is a link to the new ones New Avatar Anims. Yet still i am having issues with the Faint.fbx. the very same error as before. Not sure what to do, maybe i will attack it tomorrow night, so far i am losing this battle. I could just remove Avatars for now and re-introduce them later, but i still need them. I will also have a look at the new Avatar sample program for Xna 4.0 from here. Oddly enough the Avatar sample does not have errors in the same Faint.fbx file, though it does have a lot of warnings as expected. not sure what the solution is at present.
That is all i can do for tonight. I know i am not the most expert at this kind of upgrade, but i am also sure not everyone is great at this.
Time commited so far... 1.5 hours
G'night
So what should i attack first? The component link issues or the Pixelshader. I guess i should go with the component and unleash a real torrent of errors :) It is more fun that way. Fixing the Pixelshader will only solve one problem.
- So i simply right clicked the references in the project and deleted the offending system.xinq.xml.
- Microsoft.Xna.Framework could not be found. So i did the same with that. Not sure what repurcussions this might have later.
My next issue that appears is becaue i am using Avatars. And as such on the PC it draw a set of polys to show the bones of the Avatar. Great for making sure you can prototype you game on the Pc, but bad cos now i need to fix whatever is wrong. The offending error is....
'XNA Framework HiDef profile supports a maximum of 16 simultaneous vertex elements'. This has caused me to figure out the .FBX animation files for my avatars are not compatible with Xna 4.0. So here is a link to the new ones New Avatar Anims. Yet still i am having issues with the Faint.fbx. the very same error as before. Not sure what to do, maybe i will attack it tomorrow night, so far i am losing this battle. I could just remove Avatars for now and re-introduce them later, but i still need them. I will also have a look at the new Avatar sample program for Xna 4.0 from here. Oddly enough the Avatar sample does not have errors in the same Faint.fbx file, though it does have a lot of warnings as expected. not sure what the solution is at present.
That is all i can do for tonight. I know i am not the most expert at this kind of upgrade, but i am also sure not everyone is great at this.
Time commited so far... 1.5 hours
G'night
Labels:
3.1,
4.0,
first errors,
XBLIG,
xna
Subscribe to:
Posts (Atom)
