Game Development Community

RTS/ TGE ver 1.4 build solution

by William Fox · in RTS Starter Kit · 05/11/2006 (7:01 pm) · 85 replies

Thread is complete
I followed the docs 2x tonite complete build
It WORKS
post away flame me whatever I did it
and many thanks to Pat Wilson and special thanks to Matt Fairfax
and posts by Stephen Zepp Employee kept me focused on the end goal
GG support ROCKS!!!
#21
05/25/2006 (10:18 am)
I have been looking forward to seeing this part complete
however aside from 1 email since sending files to GG
I have no idea what they intend to do with the build solution

but I am certain they are doing something perhaps adding
VC6 and VC7 solutions to the package
or giving it a good shake down or just waiting to
see if this thread alone resolves the immediate needs of the RTS community

remember they are very busy right now and this thread resolves any build issues
so it doesn't need immediate action by anyone at this time

I apoligize for not being around much this last week
I went to look at Josh's MoM game and WOW
its a free trial (20 levels no commercials)
I already have purchased 2 premium accts
have a player hosted server up and running
and want to look at this in depth

for anyone thinking that TGE just wont cut it
for release builds
check out Josh's Minions of Mirth game
Get it Here
#22
05/28/2006 (10:55 am)
Thanks William for this great tutorial!

I have a problem that is preventing me from load the missions with RTSkit compiled with TGE 1.4:
Console copy-paste

Exporting server prefs...
starter.RTS/client/ui/startMissionGui.gui (146): Unable to instantiate non-conob
ject class RTSConnection.
Set::add: Object "ServerConnection" doesn't exist
starter.RTS/client/ui/startMissionGui.gui (148): Unable to find object: '0' atte
mpting to call function 'setConnectArgs'
starter.RTS/client/ui/startMissionGui.gui (149): Unable to find object: '0' atte
mpting to call function 'setJoinPassword'
starter.RTS/client/ui/startMissionGui.gui (150): Unable to find object: '0' atte
mpting to call function 'connectLocal'

And the mission (one of the demo missions) doesn't load.

Can someone give me a hint where I could have made the mistake ?
(sorry for my bad english)

Thanks in advance!
#23
05/29/2006 (1:23 am)
The TGE 1.4 and RTS you purchased are DIFFERENT version
if you follow these instructions installing the FREE compiler and SDK
and downloading and using the supplied files
your RTS will work

or you can wait for my full .zip to be released by GG
it was sent some time ago now and emails have indicated
it is going to be released as RTS beta 1

anyways from what I see as your errors your missing the SDK
You need the windows server to establish a game
#24
06/03/2006 (4:12 am)
Glad so see that RTS Starter is hopefully going beta 1.4 - Does this also fix the bug where by you need to use the directory starter.rts - or will we have to rehack it again to use another directory.
#25
06/06/2006 (1:13 pm)
Yay! I helped, even if it was just a little bit :]
Thanks for putting this all together William, I'm sure it is appreciated by all.
(and yes, Minions of Mirth rocks)
#26
06/07/2006 (12:29 am)
Brilliant job :)
#27
06/16/2006 (1:31 am)
Anyone have any news on the Beta?
#28
06/24/2006 (5:50 am)
I was able to follow the code changes and compile using VC7, everything works. Just make sure to create the shortcut with -game starter.FPS -console.
#29
06/26/2006 (3:30 am)
Great tutorial,worked for me first time without any build errors or warnings.

Regarding the errors someone reported:

Exporting server prefs...
starter.RTS/client/ui/startMissionGui.gui (146): Unable to instantiate non-conob
ject class RTSConnection.
Set::add: Object "ServerConnection" doesn't exist
starter.RTS/client/ui/startMissionGui.gui (148): Unable to find object: '0' atte
mpting to call function 'setConnectArgs'
starter.RTS/client/ui/startMissionGui.gui (149): Unable to find object: '0' atte
mpting to call function 'setJoinPassword'
starter.RTS/client/ui/startMissionGui.gui (150): Unable to find object: '0' atte
mpting to call function 'connectLocal'

Make sure you are building/running the right EXE. I had the same error, but realised I'd built the DEBUG executable but was running the RELEASE one.
#30
06/26/2006 (3:56 pm)
Only thing I have to say is WOW just bought the RTS pack today and I was like ver. 1.3 boo and did this and it works.

Only question I have is when game starts I have a dos command prompt running in background is this suppose to be there?

One small problem that I had was it would not start the RTS example but if anyone has this problem go to the example folder open main.cc and change the game name that it starts in the code to the name of the rts example folder "whatever you named it"

Thank you very much!
#31
06/26/2006 (6:19 pm)
Matthew, that is because you are using the -console I believe and also using the shortcut. If you add the "starter.RTS" to main.cs, it should work. Just make sure it is the RTS and *NOT* "starter.rts" or it won't find any missions when you try to play.
#32
06/27/2006 (10:56 pm)
Have a small problem when I go to load a bitmap in terragen editor and it goes to look for the png height map nothing shows up to search for it I get a white box with no folders to choose to open it. It dosent even list any folders for the game in it.

Is this because i'm trying to edit the RTS demo? It keeps saying read only but I switch all the folders to no be read only. What is the problem why can I see any folders even when I go to save the game it dosent even show were i'm saving it but wont let me save keeps saying read only but I switch the read only.

Been working with it but everytime i switch the folder from read only it just makes it read only again.
#33
07/02/2006 (8:03 pm)
Hey William or GG,

Microsoft has a new version of the Platform SDK called Platform SDK for Windows Server 2003 R2 and I was able to use it with a minor alter to the WinNT.h file. As I am a C#/Java not a C++ programmer, I am not sure this fix was the correct thing to do, but the RTS v1.4 will build with no errors now. If you are about to release the RTS v1.4 you might want to add this new Microsoft SDK support.

I followed the instructions found on the TDN for the upgrade (http://tdn.garagegames.com/wiki/RTS/Compiling) and then found this thread. I have added to the TDN tutorial to show the changes for the new SDK.

Please feel free to include me in the beta if I can be of any help.
#34
07/02/2006 (8:39 pm)
Hey William or GG,

Microsoft has a new version of the Platform SDK called Platform SDK for Windows Server 2003 R2 and I was able to use it with a minor alter to the WinNT.h file. As I am a C#/Java not a C++ programmer, I am not sure this fix was the correct thing to do, but the RTS v1.4 will build with no errors now. If you are about to release the RTS v1.4 you might want to add this new Microsoft SDK support.

I followed the instructions found on the TDN for the upgrade (http://tdn.garagegames.com/wiki/RTS/Compiling) and then found this thread. I have added to the TDN tutorial to show the changes for the new SDK.

Please feel free to include me in the beta if I can be of any help.
#35
07/13/2006 (11:31 pm)
Good thread,
I even got TLK integration working using this thread as basis.

Problem with hardcoded path to starter.rts is also fixed(white_ring.png moved to common)
Limitations:ONLY Visual Studio 2005 project files were updated(no EclipseCDT projects,no VS2002/2003,no linux makefiles)

Now 46mb rar archive is slowly uploading to my VPS.
p.s.Becouse not all RTS Kit owners also own TLK I will not reveal location and password here but will send them to GG instead.
p.p.s.If anybody knows - TO WHOM EXACTLY I should sent it?
#36
07/14/2006 (4:29 am)
I updated the Xcode version for Mac and it workd worked just fine by following your instructions!
Thanks William and Co. for putting this together.

Now if I can get TLK to compile properly...
#37
07/16/2006 (11:36 am)
I am having trouble with this... I think I followed all of the instructions correctly, but this was my output when trying to build:

Linking...
LINK : ../example/torqueDemo_DEBUG.exe not found or not built by the last incremental link; performing full link
terrRender.obj : error LNK2019: unresolved external symbol "public: static struct SelectionField __cdecl TerrainRender::TestSquareSelections(struct GridSquare *,int,class Point2I,struct SelectionField)" (?TestSquareSelections@TerrainRender@@SA?AUSelectionField@@PAUGridSquare@@HVPoint2I@@U2@@Z) referenced in function "public: static void __cdecl TerrainRender::processCurrentBlock(class SceneState *,struct EdgeParent *,struct EdgeParent *,struct EdgeParent *,struct EdgeParent *)" (?processCurrentBlock@TerrainRender@@SAXPAVSceneState@@PAUEdgeParent@@111@Z)
terrRender.obj : error LNK2001: unresolved external symbol "public: static unsigned int TerrainRender::mDynamicSelectionCount" (?mDynamicSelectionCount@TerrainRender@@2IA)
terrRender.obj : error LNK2001: unresolved external symbol "public: static struct TerrSelectionInfo * TerrainRender::mTerrainSelections" (?mTerrainSelections@TerrainRender@@2PAUTerrSelectionInfo@@A)
terrRender.obj : error LNK2019: unresolved external symbol "public: static void __cdecl TerrainRender::buildSelectionArray(void)" (?buildSelectionArray@TerrainRender@@SAXXZ) referenced in function "public: static void __cdecl TerrainRender::renderBlock(class TerrainBlock *,class SceneState *)" (?renderBlock@TerrainRender@@SAXPAVTerrainBlock@@PAVSceneState@@@Z)
../example/torqueDemo_DEBUG.exe : fatal error LNK1120: 4 unresolved externals
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://c:\Torque-RTS\SDK\engine\out.VC8.DEBUG\BuildLog.htm"
Torque Demo - 5 error(s), 8 warning(s)
========== Build: 6 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Can anyone help me out??

And thanks for the great guide, hopefully I will get it to work.. I see it has already worked for others!
#38
07/16/2006 (12:38 pm)
Quote:select from solution list
glu2d3d
right click select last "properties"
under configuration properties +linker
change Enable Incremental Linking from
No(/Incremental) to Yes(Incremental) from text box
Hit Apply then hit OK
re do it you didnt follow all the directions
#39
07/16/2006 (10:49 pm)
I did do that step... I just checked and that property was in fact already set, so it must be something else... I will try again in the morning and let you know if I have any problems.
#40
07/17/2006 (10:25 am)
OK it worked. I must have just missed something stupid =/

Thanks a lot for the great guide!