I just made a forum post on the creators.xna.com regarding the lack of a serializable attribute on the xna framework Color structure. A copy of the post is provided below. You can goto the actual form post by clicking here.
So
I thought I would start a new project called XNAVisies and create a few
simple debug visualizers for the xna framework objects. Hah!
Turns
out I keep getting errors when I place a breakpoint in my code and
bring up my debug visualizer for a xna color structure. I get vcexpress
stating that Microsoft.Xna.Framework.Graphics.Color is not serializable!
A
quick look at the xna assemblies using ildasm shows that almost all
objects are marked as serializable like Viewports, predefined vertex
structures like VertexPositionColor and VertexPositionColorTexture etc,
also Ray, Matrix, Plane, Point, Rectangle, Quaterion, and all vector
structures are marked as serializable EXCEPT for the
Microsoft.Xna.Framework.Graphics.Color structure! Which just so happens
to be the object type I am trying to create a visualizer for! Gargh!
For
all that is still sane in this world please microsoft, add the
serializable attribute to the xna Color structure by the next release
of the xna framework!.
d407fc35-d337-467a-99d9-ea709b602fdd|0|.0
It seems XNA and GSE (Game Studio Express) does not ship with a simple xml importer and/or processors, so you can use xml files as a game asset. So I created the XMLDocContentProcessor library that allows XNA developers to use regular xml files as game assets using the xna content pipeline, and returns a XMLDocument object containing the xml data. A simple example of how to use the library is provided below ...
// declare a XmlDocument that will contain
// the xml data
XmlDocument doc;
// call content.load method and specify the
// XmlDocument as the return type
doc = content.Load‹XmlDocument›("Test");
// set the title of the window to the
// content stored in the root node
this.Window.Title = doc.DocumentElement.InnerText;
96e87258-58e2-4e37-ac01-8983e2c7e528|1|5.0
Garagh
I keep playin ChessTitans that came with windows vista and it keeps
kicking my ass! grrrr, Stupid infernal machine, I'll get the better of
you yet!
a36bf8ca-70ea-4df4-adfb-784a872e4d40|0|.0
Sigh
I hate hardrive crashes. Which is the reason I have not made any blog
posts in the last two weeks or so. Whats worse is that I basically had
files stored in triplicate. I have a loptop, and two desktops and have
been syncronizing files between them but I have not synced them up in a
while and had to painstakingly go through each computer and decide what
I wanted to keep. About 500,000+ files later I have finally gotten it
down to around 30Gb and I'm still not done. Sigh. That'll learn me.
cf3f9588-ffa3-404d-9e6e-f558c0e164d0|0|.0
I
just purchased a wired xbox 360 controller so I can test my code using
the controller! I also just posted updated code for my two xna example projects ...
The examples now support the xbox 360 controller as an input device.
e43498b2-aac6-4a88-8ffc-767cb75609dd|0|.0
Just went to GameDev.net to see if anything new was hapening and all I got was this strange message ...
... seems they are under attack! Oh no!
e777a7e9-63bb-4aa4-8879-4c80724c93de|0|.0
I just added a new full resolution 720x480 video to the media page called Freedom. It was a rendering I had made some time ago and am only now posting on this site. The video is intended to explore reliable, cheap, safe, and alternative means of reaching orbit, and of course get the idea out there in peoples heads.
I also have the low res streaming video hosted on youtube.
0e67a724-70d1-4c36-8086-07b045c98d46|0|.0
Well I just uploaded Release 2 of my Zider game engine. You can download the source code from the Zider page. I have also posted xFripperyXNA Release 1, xGameConsoleXNA Release 1, and AxiomXNAControllers Release 1. These three libraries are used by the zider engine and are included in the Zider Release 2 download.
I have also posted a introductory video for the xGameConsoleXNA library that you can watch here.
Now that the preliminary zider engine is working, I will try to spend
some time making a series of video tutorials that will walk through how
to use the zider engine as well as the related projects that zider
makes use of.
And just to change the subject, a few minutes
before posting this I had started watching the first 20 minutes of
National Lampoon's Pledge This! ... Good god, that series of flicks has
gone down hill. I'm glad I only wasted 20 minutes of my life (that I'll
never get back), rather then watching the whole movie. Wow,... I didn't
think they still made movies that bad.
bf45587e-5f34-47d9-9e07-404e5318c22e|0|.0
I
have not made any blog posts in the last week or so. I have been
working on getting some minor issues worked out of the Zider engine. I
am planning to make availible release 2 some time very soon. I also
have been getting my xFripperyXNA and xGameConsoleXNA projects
converted and up and running so I can post the first releases of each
library.
I am also starting to make a few tutorial videos that
will walk through some of the various aspects of each of these
projects. Stay tuned for more details...
059296ed-59fe-4462-99a3-5686e99830aa|0|.0
I have just made public a new project that I have started called the Zider game engine. The Zider game engine will be a 2D/3D hybrid game engine focusing on 2D side scrolling, and top down game play styles.
Below lists the current status of the various features that are either currently working or on the drawing table.
Working features
- Load/Save Maps in xml format
- Edit map blocks with left and right mouse buttons
- Can pan the map to expose other parts just by moving mouse near edges of screen or use WSAD keys on keyboard
- Supports full screen and windowed modes
- Basic, easy to use GUI system with anchoring support like in windows forms
- Texture selection, and block selection so user can choose specific blocks to use for drawing with
Features on the drawing table
- Layering. Currently Zider only supports one map layer.
- Moving platforms (elevators, falling platforms)
- Particle system using the Mercury Particle Engine
- Ability to erase blocks
- Characters, Actors, Items etc
- Move over all sprite based drawing to full 3D geometry primitives.
- Animation systems
- Implement Farseer Physics Engine for physics, or develop custom phisics implementation. I may have come up with a superfast way of doing 2D Collision detection/response in the works.
- Possibly an in game console. I already have one written but it's in VB.NET and MDX so it will have to be converted to C#.
- Purchase a XNA creators club subscription and get code working on 360.
- Keep all data files in xml format for easy of use and ease to editing. Notepad!
fc19e499-810c-43c4-a4d0-8383602c999d|0|.0