Game Development Community

yack pack issues

by Eric Thomas Patton · in Torque Game Engine Advanced · 06/17/2009 (1:03 pm) · 6 replies

i've been trying on my own for two days now to figure this out. I am attempting to simply get yack pack to work in the stronghold demo and just can't get anything for it to work. I'm running 1.8.1 and have done all the fixes on here: http://tdn.garagegames.com/wiki/TorqueShaderEngine/Yack_Pack_TGEA_1_7

The engine compiles just fine, but when i load up the game and attempt to talk to the npc, the crosshair stays the same and the character won't talk to me. I've read several threads and tried to implement fixes that they had in them, but nothing seems to be working. I have some strange errors in my console log that I can't figure out the answers to, so here is my log:

--------- Initializing Directory: scriptsAndAssets ---------
sfxStartup...
SFXSystem::createDevice - created XAudio device 'Speakers (Realtek High Definition Audio)'
Provider: XAudio
Device: Speakers (Realtek High Definition Audio)
Hardware: No
Buffers: 16

--------- Initializing Stronghold: Server Scripts ---------

--------- Initializing Stronghold: Client Scripts ---------
--------------
Attempting to set resolution to "800 600 false 32 60 0"
Accepted Mode:
--Resolution : 800 600
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--FSAA Level 0
--------------
Binding server port to default IP
UDP initialized on port 0
% - Initializing common GUIs
% - Initializing Tools
% - Initializing Tools Base
% - Initializing Base Editor
% - Initializing Mission Editor
% - Initializing Gui Builder
% - Initializing Debugger
Engine initialized...
Window focus status changed: focus: 1
*** Load Main Menu
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
Exporting server prefs...

//-----------------------------------------------
Loading light datablocks from: common/lighting/lights/

//-----------------------------------------------
Loading light datablocks from: common/lighting/filters/
Validation required for shape: scriptsAndAssets/data/shapes/player/player.dts
Validation required for shape: scriptsAndAssets/data/shapes/player/player.dts
scriptsAndAssets/server/scripts/yack.cs (0): Unable to instantiate non-conobject class DialogMemoryData.
scriptsAndAssets/server/scripts/sgExamples.cs (8): ::addMaterialMapping - wrong number of arguments.
scriptsAndAssets/server/scripts/sgExamples.cs (8): usage: (string matName) Set up a material to texture mapping.

//-----------------------------------------------
Loading light datablocks from: scriptsAndAssets/server/scripts/sgCustomLights/
*** LOADING MISSION: scriptsAndAssets/data/missions/stronghold.mis
*** Stage 1 load
Warning! You have a duplicate datablock name of MissionInfo. This can cause problems. You should rename one of them.
*** Stage 2 load
CREATING TERRAIN 0xd420020
*** Mission loaded
Connect request from:
Connection established 2417
CADD: 2418 local
*** Sending mission load to client: scriptsAndAssets/data/missions/stronghold.mis
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Mapping string: MsgLoadInfo to index: 2
Mapping string: MsgLoadDescripition to index: 3
Mapping string: MsgLoadInfoDone to index: 4
Mapping string: MsgClientJoin to index: 5
Mapping string: Welcome to a Torque application %1. to index: 6
Mapping string:  Visitor to index: 7
Mapping string: MissionStartPhase1 to index: 8
*** New Mission: scriptsAndAssets/data/missions/stronghold.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/crossbow/clip
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/crossbow/crossbow
Validation required for shape: scriptsAndAssets/data/shapes/player/player.dts
Validation required for shape: scriptsAndAssets/data/shapes/player/player.dts
Mapping string: MissionStartPhase2 to index: 9
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/rocks/rock2
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/Winter/Branch02_512x512
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/Winter/RootsNoSnow
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/Winter/TrunkNoSnow
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/Winter/TrunkNoSnowBase
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/Winter/Unnamed
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/campfires/stone
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/OAK2
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/OAK2_END
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/METAL_STRIP
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/BWOOD
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/MTL
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/MTLPILRBOTTOM
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/GRANITE
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/E7SBRICKFLOOR
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/GRANITE_DARK
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/IK_WOODV256A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/WESTROOF
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/ROOF_TILES02
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/SNAGS2
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/PLANK5
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/IK_WOOD_TRIMH64
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/MOUNT4A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/MOUNT4BUB
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/ONEBOARDNAIL
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/CASTLESTONE1A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/IK_BRICK_12864A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/E7SBRICKFLOORBI
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/BRIDGE02
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/FLOORBOARDS
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/BRIDGE02_DECO
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/ONEBOARDA
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/FLOOR
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/cottage/FLOOR_TRIM
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/dock/MTLPILRFRONT
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/dock/wood1_256
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/dock/tall_original
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/dock/MTLPILRTOP
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/dock/WALL_PANEL01
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/PLANK7
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7BRNMETAL
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7BMTRIM2
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/PLANK5A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/FLOORBOARDS2B
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/CASTLESTONE3
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7BEAM01
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7BEAM02
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/LLOYDMDM2_ROOF1
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7TRIM01
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7PLATE01
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/METAL_TRIM03
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/STEP_BORDER
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/RUST_DARK
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/IK_BRICK_6464A
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/WHEAT
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/MOLD
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/E7PANELWOOD
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/interiors/tower/SNAGS
Allocating a 1024 px clipmap for a 8192px source texture.
- 3 base clipstack entries, + 1 cap.
- Using approximately 21.280001MB of texture memory.
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 10
Client Replication Startup has Happened!
fxFoliageReplicator - replicated client foliage for 0 objects
*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'scriptsAndAssets/data/missions/stronghold_b7f80d55sg.ml'
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
scriptsAndAssets/server/scripts/game.cs (328): Unable to instantiate non-conobject class dialogMemory.
Set::add: Object "0" doesn't exist
scriptsAndAssets/server/scripts/game.cs (331): Unable to find object: '0' attempting to call function 'scopeToClient'
scriptsAndAssets/server/scripts/game.cs (332): Unknown command setDialogMemory.
Object (2618) Player -> ShapeBase -> GameBase -> SceneObject -> NetObject -> SimObject
Mapping string: MissionStart to index: 11
Mapping string: SyncClock to index: 12
[MaterialList::mapMaterials] Creating missing material for texture: scriptsAndAssets/data/shapes/items/smallhealth
*** Initial Control Object
Activating DirectInput...
Mapping string: Kork to index: 13
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
CDROP: 2418 local
*** ENDING MISSION
CREATING TERRAIN 0xd420020 (scriptsAndAssets/data/missions/stronghold.ter)
Exporting server prefs...
Exporting Gui preferences.
Exporting server prefs...
Exporting client prefs
Exporting server prefs
Cur. D3DDevice ref count=2

#1
06/17/2009 (1:06 pm)
the parts that make me wonder what is going on are:

scriptsAndAssets/server/scripts/game.cs (328): Unable to instantiate non-conobject class dialogMemory.
Set::add: Object "0" doesn't exist
scriptsAndAssets/server/scripts/game.cs (331): Unable to find object: '0' attempting to call function 'scopeToClient'
scriptsAndAssets/server/scripts/game.cs (332): Unknown command setDialogMemory.


and

scriptsAndAssets/client/scripts/default.bind.cs (526): Unknown command getTarget.
Object CrossHair(1287) CrossHair -> GuiCrossHairHud -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject


i thought i had it when i realized that i had only put the dialogMemory.cc and dialogMemory.h into the directory and had forgotten to actually add them in visual studios to the project. I recompiled, but it still didn't work in the game and I'm getting the same error.
#2
06/20/2009 (9:12 pm)
i may have figured it out. i included the dialogmemory.cpp and .h to my main project, but hadn't included them to the stronghold one.


now when i try to rebuild it, i get some error that i can't figure out:

Error 7 error LNK2019: unresolved external symbol "class ResourceInstance * __cdecl constructAtlasFileResource(class Stream &,class ResourceObject *)" (?constructAtlasFileResource@@YAPAVResourceInstance@@AAVStream@@PAVResourceObject@@@Z) referenced in function "bool __cdecl Init3dSubsystems(void)" (?Init3dSubsystems@@YA_NXZ) gameFunctions.obj Stronghold



i've tried cleaning the solution and rebuilding it, but that doesn't fix it. any suggestions on what to do for this error?
#3
06/20/2009 (9:21 pm)
after you clean the solution/project don't do a rebuild. do a full build.

alternatively you can try cleaning the entire solution and rebuild everything. I have had to do that a few times myself.
#4
06/20/2009 (9:39 pm)
still having the error :(

i even cleaned the solution and built, then cleaned again and rebuilt and still having it


i can't figure out what's going wrong, the only thing that changed from when it was working until now is just including the dialogmemory.cpp and dialogmemory.h which have nothing to do with the error afaik
#5
06/20/2009 (10:02 pm)
i tried removing the 2 files from the project just in case they were the cause, but it still gave the error so i put them back in


this is so frustrating =/ was working not long ago just fine
#6
06/23/2009 (12:05 am)
well, the demo never worked again lol, i think something got corrupted in it. i just went ahead and made a bot in my own program and i ended up getting it to work there.

on a side note, it originally didn't work in mine just like the starter fps, the problem ended up being that when i added the 2 files, for some reason they were given the wrong directory path even tho i browsed to them to add them. i changed their paths and it ended up working perfectly