Game Development Community

Tile-mapping in the tutorial

by Greg Cutcher · in Torque Game Builder · 07/14/2005 (9:37 pm) · 2 replies

Right now I am working on the beginners tutorial. I have made great progress, but I am stuck on one error that makes no sense, yet it is there. I am trying to get the tiles to show up on the background, but they are not appearing.

The error is:
fxTileLayer2D::setStaticTile() - fxImageMapDatablock2D Datablock is invalid! (bgBlankSkyImageMap)
fxTileMap2D::loadTileMap() - Could not Read from Stream 'T2D/client/maps/scroller.map' for TileMap Load.

This is the datablock from the script:

// Create images for the tilemap
datablock fxImageMapDatablock2D(bgBlankSkyImageMap)
{
mode = full;
textureName = "~/client/images/bg_blank_sky";
};


and this is the log within Torque 2D:

...

Loading compiled script common/ui/defaultProfiles.cs.
Loading compiled script common/ui/GuiEditorGui.gui.
Loading compiled script common/ui/ConsoleDlg.gui.
Loading compiled script common/ui/InspectDlg.gui.
Loading compiled script common/ui/InspectAddFieldDlg.gui.
Loading compiled script common/ui/LoadFileDlg.gui.
Loading compiled script common/ui/SaveFileDlg.gui.
Loading compiled script common/ui/MessageBoxOkDlg.gui.
Loading compiled script common/ui/MessageBoxYesNoDlg.gui.
Loading compiled script common/ui/MessageBoxOKCancelDlg.gui.
Loading compiled script common/ui/MessagePopupDlg.gui.
Loading compiled script common/ui/HelpDlg.gui.
Loading compiled script common/ui/RecordingsDlg.gui.
Loading compiled script common/ui/optionsDlg.gui.
Loading compiled script common/client/metrics.cs.
Loading compiled script common/ui/FrameOverlayGui.gui.
Loading compiled script common/client/messageBox.cs.
Loading compiled script common/client/screenshot.cs.
Loading compiled script common/client/cursor.cs.
Loading compiled script common/client/help.cs.
Loading compiled script common/client/recordings.cs.

OpenAL Driver Init:
OpenAL
Vendor: Creative Labs Inc.
Version: OpenAL 1.0
Renderer: Software
Extensions: EAX 2.0, EAX 3.0, EAX Unified, and EAX-AC3

Loading compiled script T2D/client/demoDatablocks.cs.
Loading compiled script T2D/client/datablocks.cs.
Loading compiled script T2D/client/mainScreenGui.gui.
fxTileLayer2D::setStaticTile() - fxImageMapDatablock2D Datablock is invalid! (bgBlankSkyImageMap)
fxTileMap2D::loadTileMap() - Could not Read from Stream 'T2D/client/maps/scroller.map' for TileMap Load.

--------- Initializing MOD: T2D_TILE_EDITOR ---------
Loading compiled script tileeditor/client/client.cs.
Loading compiled script tileeditor/client/datablocks.cs.
Loading compiled script tileeditor/client/tileScreenGui.gui.
Loading compiled script tileeditor/client/newTileDlg.gui.
Loading compiled script tileeditor/client/newLayerDlg.gui.
Loading compiled script tileeditor/client/viewDlg.gui.
Loading compiled script tileeditor/client/tileHelpDlg.gui.
Loading compiled script tileeditor/client/tileAssignBrushDlg.gui.
Loading compiled script tileeditor/client/resizeLayerDlg.gui.
Loading compiled script tileeditor/client/resizeTilesDlg.gui.
Loading compiled script tileeditor/client/layerBlendDlg.gui.
Loading compiled script tileeditor/client/editTileDlg.gui.
Loading compiled script tileeditor/client/editorScreen.cs.
Loading compiled script tileeditor/client/imageSelection.cs.

...


Thanks for the help :)

#1
07/15/2005 (1:08 am)
Have you copied the .map file and the associated .png files from the space shooter directories to your own directories?
#2
07/16/2005 (12:49 am)
Yes, I have. Also tried to re-install T2D and placed in my previous client.cs and re-copied all of the proper files. Sorry for the slow response, school has just bogged me down for the last few days.