Game Development Community

Chapter 6 issues

by devans · in Torque Game Engine · 10/13/2004 (5:30 am) · 4 replies

I've been plugging along with chap 6, and have noticed the following issues:

bottom of page 226:
function MasterScreen::Update(%this)

should be (?):
function ServerScreen::Update(%this)

Also, the end of the chapter tells you to run tge.exe and click on the 'Connect to Server' button, which was never created in the book code (or I'm blind, one of the two. Please point out a pg# if that's the case). Jeff Ward points this out in this thread, but he says to add it to 'MasterScreen', which I think should be 'menuScreen' (the one after the splash).

As far as I can tell, the 'MasterScreen' was a previous name for 'ServerScreen'. The CD code has both, but the book calls it 'ServerScreen' (even though it's referred to as 'MasterScreen' on pg 228 - "MasterScreen::QueryLAN"). I've been typing all these in, and am new to all this, so please correct if this doesn't jive.

Anyway, all this is leading to a question... I seem to have the dedicated server part working, but when I just run tge.exe and attempt the newly added 'Connect to Server' button from menuScreen, I get:
"setContent(): Invalid control: ServerScreen"
I've tried both my version and copied the CD code for 'menuScreen' and 'serverScreen', and receive the same error.

As always, any help greatly appreciated.

[edit]
also, Ken lists a reference at the end of Chap6 at cerdipity.no-ip.com/cerdipity, which seems to be dead. From the sounds of Jay Moore's .plan, Ken's probably a busy guy with his new book 'Maxium Torque: Advanced Scripting Reference Guide'. Looking forward to it, just need to absorb all the great info in this one first...
[end edit]

About the author

Recent Threads

  • Empty log file...

  • #1
    10/14/2004 (2:27 pm)
    Devans, do you at least see your dedicated server in the query results?

    I've got the dedicated server successfully contacting a master server here at garage games but my client's query results do not show my dedicated server so I have nothing to try and connect to.
    #2
    11/01/2004 (5:18 pm)
    @devans says:
    Quote:
    also, Ken lists a reference at the end of Chap6 at cerdipity.no-ip.com/cerdipity, which seems to be dead. From the sounds of Jay Moore's .plan, Ken's probably a busy guy with his new book 'Maxium Torque: Advanced Scripting Reference Guide'. Looking forward to it, just need to absorb all the great info in this one first...
    It works fine now -- comes up as 69.192.171.246:800/cerdipity/ . Or you can click on this link to go directly to Ken's 3DGPAi1 page.
    #3
    11/01/2004 (7:13 pm)
    Thanks Ray!
    #4
    07/18/2005 (7:04 pm)
    I'd like to repeat Devans' question about MasterServer vs. ServerScreen. Are the two the same? Should the call at the bottom of p. 226 be ServerScreen:: or MasterServer::

    I noticed that the /control/client/interfaces/MasterScreen.gui file on the CD starts off with these lines:
    //============================================================================
    // control/client/interfaces/serverscreen.gui
    //
    //  Master Server query interface module for 3DGPAI1 emaga6 sample game
    //
    //  Copyright (c) 2003 by Kenneth C.  Finney.
    //============================================================================
    
    new GuiChunkedBitmapCtrl(ServerScreen) {
    so the comment is wrong, at the very least -- should it also be
    new GuiChunkedBitMapCtrl(MasterServer) {

    Thanks for any enlightenment,

    Michael