Raw rebuild issues for Isometric Kit - 3D-Iso-Kit_v1-0
by Jonathan Wood · in 3D Isometric Kit · 06/08/2009 (10:32 am) · 13 replies
Opened VS 2008 Professional
Found and opened the iskDemo project and performed upgrade, no problems at this point
Ran the code, froze
Did a clean project
Performed rebuild with the following list of errors:
Warning 1 warning LNK4221: no public symbols found; archive member will be inaccessible lookup.obj libvorbis
Warning 2 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Picking.obj opcode
Warning 3 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Common.obj opcode
Error 4 error C2065: 'WM_MOUSEWHEEL' : undeclared identifier k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 289 iskDemo
Error 5 error C2051: case expression not constant k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 289 iskDemo
Error 6 error C3861: 'GET_WHEEL_DELTA_WPARAM': identifier not found k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 291 iskDemo
Error 7 fatal error C1189: #error : incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler. k:\downloads\garagegames\3d-iso-kit_v1-0\engine\lib\msplatformsdk\include\rpcndr.h 33 iskDemo
Warning 8 warning C4505: 'yyunput' : unreferenced local function has been removed k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\cmdscan.cpp iskDemo
Warning 9 warning C4005: 'alloca' : macro redefinition k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\cmdgram.y iskDemo
Warning 10 warning C4701: potentially uninitialized local variable 'yyval' used k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\bison.simple iskDemo
Warning 11 warning C4305: '-=' : truncation from 'double' to 'F32' k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\player.cpp 1779 iskDemo
Warning 12 warning C4305: '-=' : truncation from 'double' to 'F32' k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\player.cpp 1784 iskDemo
Warning 13 warning C4701: potentially uninitialized local variable 'returnShape' used k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\shapebase.cpp 4463 iskDemo
Error 14 error BK1506 : cannot open file '..\..\Link\Vc2k5.Debug.Win32\iskDemo\wmiVideoInfo.sbr': No such file or directory BSCMAKE iskDemo
Kit also freezes when just trying to run the demo from just unzipping the project from the iskDemo in the game folder.
Found and opened the iskDemo project and performed upgrade, no problems at this point
Ran the code, froze
Did a clean project
Performed rebuild with the following list of errors:
Warning 1 warning LNK4221: no public symbols found; archive member will be inaccessible lookup.obj libvorbis
Warning 2 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Picking.obj opcode
Warning 3 warning LNK4221: no public symbols found; archive member will be inaccessible OPC_Common.obj opcode
Error 4 error C2065: 'WM_MOUSEWHEEL' : undeclared identifier k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 289 iskDemo
Error 5 error C2051: case expression not constant k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 289 iskDemo
Error 6 error C3861: 'GET_WHEEL_DELTA_WPARAM': identifier not found k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\windowmanager\win32\windispatch.cpp 291 iskDemo
Error 7 fatal error C1189: #error : incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler. k:\downloads\garagegames\3d-iso-kit_v1-0\engine\lib\msplatformsdk\include\rpcndr.h 33 iskDemo
Warning 8 warning C4505: 'yyunput' : unreferenced local function has been removed k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\cmdscan.cpp iskDemo
Warning 9 warning C4005: 'alloca' : macro redefinition k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\cmdgram.y iskDemo
Warning 10 warning C4701: potentially uninitialized local variable 'yyval' used k:\downloads\garagegames\3d-iso-kit_v1-0\gameexamples\isk\buildfiles\visualstudio 2005\projects\bison.simple iskDemo
Warning 11 warning C4305: '-=' : truncation from 'double' to 'F32' k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\player.cpp 1779 iskDemo
Warning 12 warning C4305: '-=' : truncation from 'double' to 'F32' k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\player.cpp 1784 iskDemo
Warning 13 warning C4701: potentially uninitialized local variable 'returnShape' used k:\downloads\garagegames\3d-iso-kit_v1-0\engine\source\t3d\shapebase.cpp 4463 iskDemo
Error 14 error BK1506 : cannot open file '..\..\Link\Vc2k5.Debug.Win32\iskDemo\wmiVideoInfo.sbr': No such file or directory BSCMAKE iskDemo
Kit also freezes when just trying to run the demo from just unzipping the project from the iskDemo in the game folder.
#2
My new version with my changes to make it build without errors.
WinUser.h
Changed the code to the following, remarking out the version check
Now moving on in winDispatch.cpp after the static bool sgDoubleByteEnabled line, added
Because winDispatch was complaining about get_wheel_delta_wparam not defined, that fixed that problem.
I then went to Microsoft website and downloaded the Windows SDK for Vista version 6.0 (since for some GOOFY reason v6.1 will not install), and from it copied the file:
C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\RpcNdr.h
Renamed the one in
K:\downloads\GarageGames\3D-Iso-Kit_v1-0\engine\lib\MSPlatformSDK\Include\RpcNdr.h to RpcNdr1.h
Placed the new one into that folder.
I had to make other slight modifications to the code in header files and in cpp files but like a complete moron I worked way to fast to resolve the problems and didn't keep track of them all, but the list of fixes I have posted here will resolve like 95% of the problems for sure.
I have told my machine to do a clean then a build on release to see if it throws me any more errors, if it does, I'll post them and try to do a better job at documenting the changes. Not caring to much about the warnings at the moment, will take care of them later.
06/09/2009 (10:24 am)
Well, I have spent the last few days working on this issue since I am using Vista Ultimate and VS2008, the hex values don't return the same result as XP SP2 for instance. So some of the changes (will have to track them all down to post I guess)My new version with my changes to make it build without errors.
WinUser.h
Changed the code to the following, remarking out the version check
//#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) #define WM_MOUSEWHEEL 0x020A //#endif //#if (_WIN32_WINNT >= 0x0500) #define WM_XBUTTONDOWN 0x020B #define WM_XBUTTONUP 0x020C #define WM_XBUTTONDBLCLK 0x020D //#endif
Now moving on in winDispatch.cpp after the static bool sgDoubleByteEnabled line, added
#ifndef GET_WHEEL_DELTA_WPARAM #define GET_WHEEL_DELTA_WPARAM(wParam) ((short) HIWORD(wParam)) #endif
Because winDispatch was complaining about get_wheel_delta_wparam not defined, that fixed that problem.
I then went to Microsoft website and downloaded the Windows SDK for Vista version 6.0 (since for some GOOFY reason v6.1 will not install), and from it copied the file:
C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\RpcNdr.h
Renamed the one in
K:\downloads\GarageGames\3D-Iso-Kit_v1-0\engine\lib\MSPlatformSDK\Include\RpcNdr.h to RpcNdr1.h
Placed the new one into that folder.
I had to make other slight modifications to the code in header files and in cpp files but like a complete moron I worked way to fast to resolve the problems and didn't keep track of them all, but the list of fixes I have posted here will resolve like 95% of the problems for sure.
I have told my machine to do a clean then a build on release to see if it throws me any more errors, if it does, I'll post them and try to do a better job at documenting the changes. Not caring to much about the warnings at the moment, will take care of them later.
#3
Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
Results Build log was saved at "file://k:DownloadsGarageGames3D-Iso-Kit_v1-0GameExamplesISKbuildFilesLinkVC2k5.Release.Win32iskDemoBuildLog.htm"
iskDemo - 0 error(s), 6 warning(s)
06/09/2009 (1:15 pm)
I have it building now with only 6 warnings, I will track those down and try to get those cleaned up to 0 warnings later tonight:Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
Results Build log was saved at "file://k:DownloadsGarageGames3D-Iso-Kit_v1-0GameExamplesISKbuildFilesLinkVC2k5.Release.Win32iskDemoBuildLog.htm"
iskDemo - 0 error(s), 6 warning(s)
#4
06/10/2009 (7:51 am)
i will take a look at these on my vista machine as soon as i get a chance.
#5
06/10/2009 (1:17 pm)
Any chance you will be adding this same kit torque 3d? Let me know what results you got on Vista when you get the chance to test it.
#6
06/10/2009 (2:45 pm)
most likely the kit will not be ported to t3d until after jeff faust has his afx at a final release. That being said, Jeff mentioned that there was a chance that afx might not make it to t3d for quite a while if at all. So we will see how he does.
#7
06/10/2009 (3:19 pm)
Well the "presto orc change" crashed the program. This is an interesting kit main reason I got it was to see how you did the UI and the inventory system, going to go through the docs more.
#8
06/10/2009 (5:57 pm)
i'll take a look at the presto orc change crash. It most likely has something to do with the camera
#9
06/10/2009 (9:57 pm)
Let me know what you come up with on that problem, I can't track down why it keeps crashing. Also, if you pickup the crossbow, with no ammo, the thing makes a click noise like it is trying to fire but says no ammo, but keeps doing the click noise over and over and shows the arrow loading animation. Now this is not that important, not as important as the individual spell graphic fixes.
#10
06/12/2009 (7:02 am)
i look into the no ammo bug as well.
#11
in default.bind.cs - function mouse_btn0
comment out the if(%val) around teh mvtrigger0++
the if %val statement is what makes auto attack happen. just comment it out and you will get a single shot.
I'm still working on the presto orc crash, its a tricky lil bugger...
06/17/2009 (6:00 pm)
the ammo bug fix.in default.bind.cs - function mouse_btn0
comment out the if(%val) around teh mvtrigger0++
//if(%val)
//{
%sel = ServerConnection.getSelectedObj();
//if (isObject(%sel) && (%sel.getType() & $TypeMasks::PlayerObjectType)){ //uncomment to force a player object is selected before attacking
//clientCmdDisplayScreenMessage("Auto-Attack On.");
$mvTriggerCount0++;
//}
//}the if %val statement is what makes auto attack happen. just comment it out and you will get a single shot.
I'm still working on the presto orc crash, its a tricky lil bugger...
#12
08/24/2009 (11:21 pm)
It has been a while, how is this coming along? Should I look to see an update for my download of this thing soon? Best regards, me :)
#13
I do know that this crashes when you try switching the player object on the camera. will be doing some more digging the next couple weeks to see if i can fix it or have to re-write it.
08/25/2009 (1:40 pm)
it's coming along pretty slow actually. I think i may have to do a pretty hefty overhaul on the way the camera works to get this working correctly.I do know that this crashes when you try switching the player object on the camera. will be doing some more digging the next couple weeks to see if i can fix it or have to re-write it.
Torque Owner Timothy Castagna
TK Games LLC