Game Development Community

Converting from 1.1.3 to 1.7.2

by Warthog · in Torque Game Builder · 03/20/2008 (4:32 pm) · 4 replies

Hi all,

I want to apologize right away because I am sure this has been covered at some point, but can someone please point me to instructions for converting my project from 1.1.3 to the current system. I have searched the site high and low but not found the discussion on this. It must exist!

We have been focusing on working with the devil we know (1.1.3), but now it is time to enter the modern world.

Thanks so much for any help you can offer.

EDIT: Okay, not completely brain dead, I did manage to find this discussion:

www.garagegames.com/mg/forums/result.thread.php?qt=64563

Is there anything else I will need to know to make this transition? Any tips?

#1
03/20/2008 (9:47 pm)
You should be okay if you follow the post I made in the thread you're pointing to. I made many conversions back and forth between 1.1.3 and 1.7.2.
But beware, 1.7.2 is more sensible to bad scripts habits than 1.1.3, so maybe you will encounter some bugs that require you to recode some scripts.
#2
03/20/2008 (11:38 pm)
Recently I've converted my game from 1.1.3 to 1.7.2.
I think Benjamin's post will be the good point to start (thank you Benjamin)!
There are two isues I would like to note
1. There is no more need to check $runWithEditors variable. The game now started as separate thread.
2. Use
%scene_window.loadLevel(expandFilename(%level_file));
instead
%scene_window.loadLevel(%level_file);

Best regards!
#3
03/27/2008 (3:15 pm)
Thanks so much, that is a big help. I have converted the game (mostly) to 1.7.2 and have it running (mostly) but I have two problems which I could use some advice on.

1. Camera movement is very jittery
2. Built projects don't work, graphics disappear

The camera issue is I'm sure related to how we are using it with onUpdateScene, but this always worked so nice and smooth before. How should we be moving the camera under the new system. The camera must only move in the X axis as this is a side scroller type game.

function t2DSceneGraph::onUpdateScene(%this)
{
// update the camera
	// update the camera by getting the x coordinate of the Player's position and assigning the camera to it (+30)
	%xcam = $player.getPositionX();
	sceneWindow2D.setCurrentCameraPosition( %xcam+30, 0);
}

As to built projects, once they are built, all the graphics/datablocks that are loaded from gamescripts/datablocks.cs simply don't appear. Any graphics/datablocks in managed/datablocks.cs work fine. Oddly the game plays fine when I press play in the editor. It only does this when built.

Very puzzled.

Thanks much for any help!
#4
03/31/2008 (3:42 pm)
1. Camera Jitteryness

Setting the camera position every 32ms is what is causing the jittery camera movement. Luckily, it seems like your camera system is pretty simple, so you could just mount an invisible scene object to your player, offset by 30, and then mount the camera to the invisible scene object.

2. Datablocks disappearing after build

I've had a similar problem. Any gui profiles that I put into the guiProfiles.cs won't be included in a build of the project. I've never had datablocks not work in a build and work in the builder though. Are you sure that you are executing the datablocks.cs?