Torque X CEV 4.0 for Absolute Beginners
by Bob Dobbs · in Torque X 2D · 02/22/2011 (9:26 pm) · 18 replies
Hey Guys I have put up a detailed list and video tutorial for any of you struggling or especially to new TX CEV users
www.garagegames.com/community/resources/view/20870
Have a look see and see if it helps.
www.garagegames.com/community/resources/view/20870
Have a look see and see if it helps.
#2
02/27/2011 (5:41 am)
Read through this, didn't notice it before starting my own thread, does anyone who's contacted Giuseppe before know how long it usually takes for a response ?
#3
02/27/2011 (5:50 am)
Think Pinot is a bit snowed under at the mo, as long as you have the source code version of TorqueX (ie recently purchased or the old "pro" version ) he will get back to you soon enough. Mind and remove the "null" from the his mail address on profile (best not copy n paste)
#4
02/27/2011 (5:57 am)
Alright, good to hear, didn't want to seem impatient, I was just curious, he seems like a really active member, and I'm sure that's an understatement, so I wasn't really sure what to expect as far as how busy he might be.
#5
http://www.nelxon.com/blog/xna-3-1-to-xna-4-0-cheatsheet/
02/28/2011 (3:21 pm)
Hoddie, I wanted to Thank You for creating the video. I have been working on a project for 6mths (new to programming) and after the update I tryed several things to get it all updated but was getting many errors after. Your tutorial helped me get my errors to a min. (10) lol. Again very well done and Thank You. I also wanted to add a link for some of the extra errors some may get with the conversion.http://www.nelxon.com/blog/xna-3-1-to-xna-4-0-cheatsheet/
#6
02/28/2011 (4:00 pm)
Holy cows Jester that is a brilliant list ! I will update this tutorial and post a new tutorial on http://torquecev.com/ as well. I think there's been a big influx of new users and old returnee's to TX so I feel its best to get everyone settled in rather than be put off with complexities when starting.What are your remaining 10 errors and let me see if I can assist =)
#7
Error 3
The type 'Microsoft.Xna.Framework.Game' is defined in an assembly that is not referenced. You must add a reference to assembly
'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=51c3bfb2db46012c'.
C:\Users\Owner\Documents\My Dropbox\ThisGameSukz\Main Project Folder\Projects 4.0\Project 4.0\Projects\ThisGameSukz\ThisGameSukz\Game\Game.cs 38 18 Xbox 360 Copy (3) of Game
I think this is coming from the fact that in my references System.Data can not be found. Could I simply copy the Reference from the x86 and move to Xbox360?
When I run a release other errors that deal with storage container for keeping our "highscores" appear only in the Xbox version and not the x86 version of the game cs file.
03/01/2011 (11:46 am)
Thank You. I was able to fix these errors with the Link I just gave you but now I am getting errors when porting to the Xbox360. I am not sure what has happen to it in the process but everything loads fine through x86 but not in Xbox360 copy of game. Here is the main error I get.Error 3
The type 'Microsoft.Xna.Framework.Game' is defined in an assembly that is not referenced. You must add a reference to assembly
'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=51c3bfb2db46012c'.
C:\Users\Owner\Documents\My Dropbox\ThisGameSukz\Main Project Folder\Projects 4.0\Project 4.0\Projects\ThisGameSukz\ThisGameSukz\Game\Game.cs 38 18 Xbox 360 Copy (3) of Game
I think this is coming from the fact that in my references System.Data can not be found. Could I simply copy the Reference from the x86 and move to Xbox360?
When I run a release other errors that deal with storage container for keeping our "highscores" appear only in the Xbox version and not the x86 version of the game cs file.
#8
Still have the System.Data Warning.
By the way have I ever said FML? lol
I get these errors:
Error 25 No overload for method 'Combine' takes 1 arguments C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 152 45 Xbox 360 Copy (3) of Game
Error 26 The type or namespace name 'XmlSerializer' could not be found (are you missing a using directive or an assembly reference?) C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 158 29 Xbox 360 Copy (3) of Game
Error 27 The type or namespace name 'XmlSerializer' could not be found (are you missing a using directive or an assembly reference?) C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 159 37 Xbox 360 Copy (3) of Game
03/01/2011 (1:26 pm)
The error 3 was just a cover-up. I still had a torqueX 3.1.5 reference in the build. After I removed it I now get 7 errors. lmao. Still have the System.Data Warning.
By the way have I ever said FML? lol
private static void LoadHighScoresCallback(IAsyncResult result)
{
if ((result != null) && result.IsCompleted)
{
StorageDevice = StorageDevice.EndShowSelector(result);
}
if ((StorageDevice != null) &&
StorageDevice.IsConnected)
{
using (StorageContainer storageContainer =
OpenContainer(StorageDevice, "Sukz"))
{
string highscoresPath = Path.Combine("highscores.xml");
if (File.Exists(highscoresPath))
{
using (FileStream file =
File.Open(highscoresPath, FileMode.Open))
{
XmlSerializer serializer =
new XmlSerializer(typeof(List<int>));
HighScores = (List<int>)serializer.Deserialize(file);
}
}
}
} I get these errors:
Error 25 No overload for method 'Combine' takes 1 arguments C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 152 45 Xbox 360 Copy (3) of Game
Error 26 The type or namespace name 'XmlSerializer' could not be found (are you missing a using directive or an assembly reference?) C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 158 29 Xbox 360 Copy (3) of Game
Error 27 The type or namespace name 'XmlSerializer' could not be found (are you missing a using directive or an assembly reference?) C:UsersOwnerDocumentsMy DropboxThisGameSukzMain Project FolderProjects 4.0Project 4.0ProjectsThisGameSukzThisGameSukzGameGame.cs 159 37 Xbox 360 Copy (3) of Game
#9
03/04/2011 (12:59 am)
Hey Jester, let me have a little look over this and trawl the old CEV3.1 to 4 forums n mail threads. I recall there were issues with the XMLSerializer that alot of people came across serializer related issues. Let me have a look at the weekend.Or alternatively if you've already fixed let me know.
#10
03/04/2011 (10:29 am)
Thank You very much. Our Game is almost finished. Once I can get this up and running I will be able to put on the test site. Just trying to figure out a few details. For 1 my power-ups only work when placed on the scene not when spawned by an enemy death. 2nd problem I am having is getting my options on my pause screen, (ex. Exit,High Score...)everywhere I try to put the input commands I get multiple errors. I only want these buttons to be active when in Pause. As it sits when paused we call on an image that overlays the scene and pauses all animations through process timescale. I can show my code for it if you would like.void Pause()
{
T2DSceneObject paused = TorqueObjectDatabase.Instance.FindObject<T2DSceneObject>("Paused");
if (!_isPaused)
Game.Instance.Engine.GameTimeScale = 0f;
else
Game.Instance.Engine.GameTimeScale = 1f;
_isPaused = !_isPaused;
if (!_isPaused)
paused.Visible = false;
else
paused.Visible = true;
}public void onPDown()
{
T2DSceneObject paused = TorqueObjectDatabase.Instance.FindObject<T2DSceneObject>("Paused");
if (!_isPaused) Game.Instance.Engine.GameTimeScale = 0f;
else Game.Instance.Engine.GameTimeScale = 1f;
_isPaused = !_isPaused;
if (!_isPaused)
paused.Visible = false;
else
paused.Visible = true;
}
public void onPUp()
{
}This is currently how we call on the pause options.
#11
03/07/2011 (9:44 am)
I found the errors that were involved with XmlSerializer. You have to manually add reference System.Xml.Serialization.dll from C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Xbox360. I am still getting errors from string highscoresPath = Path.Combine("highscores.xml");
if (File.Exists(highscoresPath))No overload for method 'Combine' takes 1 arguments
#12
04/28/2011 (6:31 am)
Great!
#13
I've finally gotten around to installing CEV 4.0. I've been following hoodie's Absolute Beginners video, a brilliant job by the way!
I'm getting a little error. I'm not 100% how I change the project to refrence XNA 4.0. I don't have 3.1 installed, only 4.0 and I'm using VS2010 ultimate.
Error 1 The type 'Microsoft.Xna.Framework.Game' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'
cheers
05/28/2011 (4:34 am)
Hey folks,I've finally gotten around to installing CEV 4.0. I've been following hoodie's Absolute Beginners video, a brilliant job by the way!
I'm getting a little error. I'm not 100% how I change the project to refrence XNA 4.0. I don't have 3.1 installed, only 4.0 and I'm using VS2010 ultimate.
Error 1 The type 'Microsoft.Xna.Framework.Game' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'
cheers
#14
Even after getting it working I still get a warning that says "The referenced component 'Engine data (data)' could not be found." but everything seems to work, I just hope this wont lead to an issue down the road.
I also noticed there's a few different versions of VS2010 (one says "for windows phone 7", and the others don't), not sure if this bug relates to one of the versions or not.
For your Error, I do know that the version should be saying 4.0.0.0 and not 3.1.0.0 and this relates to a dll file
Good Luck
06/06/2011 (2:22 pm)
Hey Tim, I had a lot of issue with this myself. Not 100% sure, but it seems to be a VS2010 bug? Kid me not, I found that each and every time I tried this using the same exact steps I would have different outcomes, things would get compiled differently (WTF right?) :-). Sometimes the debug/release folders would be missing the fonts, then the next time it would be missing the effects files, I got your error allot too, etc. I think it was my 5th or 6th try that finally worked.Even after getting it working I still get a warning that says "The referenced component 'Engine data (data)' could not be found." but everything seems to work, I just hope this wont lead to an issue down the road.
I also noticed there's a few different versions of VS2010 (one says "for windows phone 7", and the others don't), not sure if this bug relates to one of the versions or not.
For your Error, I do know that the version should be saying 4.0.0.0 and not 3.1.0.0 and this relates to a dll file
Good Luck
#15
06/11/2011 (5:13 pm)
I just tried this again with the non "for windows phone 7" version and it worked during my first attempt, however I still get the warning "The referenced component 'Engine data (data)' could not be found.", not sure if this is an issue.
#16
Is going to help alot for someone just getting started!
08/20/2011 (10:17 pm)
Thanks for this tutorial!Is going to help alot for someone just getting started!
#17
Anyone know why that occurs?
08/22/2011 (8:30 am)
I get the warning "The referenced component 'Engine data (data)' could not be found as well.Anyone know why that occurs?
#18
The issue is located in the Xbox360TorqueCore -> Content References. I think you could just remove the bad reference to remove the warning (make a backup first, haven't tested).
08/29/2011 (1:15 pm)
@David: We have a game in Peer Review that has this warning and have experienced no problems with it being there. The issue is located in the Xbox360TorqueCore -> Content References. I think you could just remove the bad reference to remove the warning (make a backup first, haven't tested).
Torque 3D Owner Aaron Scovel