Game Development Community

package projecti wa

by Louis Marchant · in Torque 3D Beginner · 10/31/2012 (5:10 pm) · 35 replies

s wanting to package a project , so i could deploy it on other systems to test various features.

only problem is when i hit package program, in the toolbox, nothing happens, nothing at all, i can click it a million times, and it's as if i never clicked it.
Page«First 1 2 Next»
#21
11/02/2012 (11:13 am)
@Michael and Dave,
Ah, okay, that would explain some things. How I missed the first bullet is beyond me. I must be dodging bullets or something. :)
#22
11/03/2012 (10:01 am)
well no errors in the console relating to /server/gameCore.cs

there is one error on /server/commands.cs , claiming a syntax error on the part of the RTS tutorial code that spawns the barracks, but allt hat works fine, and i cant find it

as for the gmeCore, only changes i can recall from original generated file, are the ones in the RTS tutorial

//RTS tutorial added false
%game.spawnPlayer(%client, %playerSpawnPoint, false);
// RTS tut add - Set camera to Overhead mode
commandToServer('overheadCam');

that's it, seems odd that this file would provide such a radical change when converted, i'll keep digging, if not, guess i'll just keep the s for this one lol
#23
11/03/2012 (10:10 am)
Does the error within command.cs occur before the overheadCam server command? If so, then that explains the problem. Things within that script will all appear to work correctly, until the error, and then nothing else afterwards in the script will work. If it's saying that there is a syntax then that needs to be fixed. The console should be telling you what line the syntax error occurs, post the relevant section for other eyes to take a look if you're having problems seeing it.
#24
11/03/2012 (11:48 am)
well here is the error as it appear in the console, added a comment to show you where it's complaining :

spawnClass     = $Game::DefaultPlayerClass;
            spawnDatablock = $Game::DefaultPlayerDataBlock;
        };
        %point.position = VectorAdd(%obj.getPosition(), "0 5 2");
        Team1SpawnGroup.add(%point);
        MissionCleanup.add(%point);
}

//says the error is here

//end RTS tut code
//RTS tut Code
function serverCmdmovePlayer(%client, %pos, %start, %ray)
{
    //echo(" -- " @ %client @ ":" @ %client.player @ " moving");

    // Get access to the AI player we control
    %ai = findTeam1Leader();

    %ray = VectorScale(%ray, 1000);

i'll also include a full paste of both function either side, those who have been using the RTS tutorial should noticed all this section is a straight copy from that.

//RTS tut code
function serverCmdcreateBuilding(%client, %pos, %start, %ray)
{
    // find end of search vector
    %ray = VectorScale(%ray, 2000);
    %end = VectorAdd(%start, %ray);

    %searchMasks = $TypeMasks::TerrainObjectType;

    // search!
    %scanTarg = ContainerRayCast( %start, %end, %searchMasks);

    // If the terrain object was found in the scan
    if( %scanTarg )
            %obj = getWord(%scanTarg, 0);

        %pos = getWords(%scanTarg, 1, 3);

        // spawn a new object at the intersection point
        %obj = new TSStatic()
        {
            position = %pos;
            shapeName = "art/shapes/building/orcburrow.dts";
            class = "barracks";
            collisionType = "Visible Mesh";
            scale = "0.5 0.5 0.5";
        };

        // Add the new object to the MissionCleanup group
        MissionCleanup.add(%obj);
        
        // Set up a spawn point for new troops to arrive at.
        if (!isObject(Team1SpawnGroup))
        {
            new SimGroup(Team1SpawnGroup)
            {
                canSave = "1";
                canSaveDynamicFields = "1";
                    enabled = "1";
            };

            MissionGroup.add(Team1SpawnGroup);
        }
        
        %spawnName = "team1Spawn" @ %obj.getId();
        %point = new SpawnSphere(%spawnName)
        {
            radius = "1";
            dataBlock      = "SpawnSphereMarker";
            spawnClass     = $Game::DefaultPlayerClass;
            spawnDatablock = $Game::DefaultPlayerDataBlock;
        };
        %point.position = VectorAdd(%obj.getPosition(), "0 5 2");
        Team1SpawnGroup.add(%point);
        MissionCleanup.add(%point);
}
//end RTS tut code
//RTS tut Code
function serverCmdmovePlayer(%client, %pos, %start, %ray)
{
    //echo(" -- " @ %client @ ":" @ %client.player @ " moving");

    // Get access to the AI player we control
    %ai = findTeam1Leader();

    %ray = VectorScale(%ray, 1000);
    %end = VectorAdd(%start, %ray);

    // only care about terrain objects
    %searchMasks = $TypeMasks::TerrainObjectType | $TypeMasks::StaticTSObjectType | 
    $TypeMasks::InteriorObjectType | $TypeMasks::ShapeBaseObjectType | 
    $TypeMasks::StaticObjectType;

    // search!
    %scanTarg = ContainerRayCast( %start, %end, %searchMasks);

    // If the terrain object was found in the scan
    if( %scanTarg )
    {
        %pos = getWords(%scanTarg, 1, 3);
        // Get the normal of the location we clicked on
        %norm = getWords(%scanTarg, 4, 6);

        // Set the destination for the AI player to
        // make him move
        if (isObject(Team1List))
        {
            %c = 0;
            %end = Team1List.getCount();
            %unit = Team1List.getObject(0);
            while (isObject(%unit))
            {
                if (%unit.isSelected)
                {
                    %dest = VectorSub(%pos, %unit.destOffset);
                    %unit.setMoveDestination( %dest );
                }
                %c++;
                if (%c < %end)
                    %unit = Team1List.getObject(%c);
                else
                    %unit = 0;
            }
        }
        else
            %ai.setMoveDestination( %pos );
    }
}

//end RTS tut
#25
11/20/2012 (11:22 am)
incredible issue, make comercial games without compile is weird, i migrate from unity to torque and after two weeks with many problems i migrate to monogame.
#26
11/20/2012 (11:30 am)
Enjoy MonoGame. It's a nice C# framework.
#27
11/20/2012 (2:21 pm)
ok, I have gone threw all the RTS prototype & sucessfully converted all but the banlist.cs file (as this was empty anyway)

so am not sure what your error is, any chance of a screenshot of your console error?

what version of Torque3D are you using? I used the latest MIT build.

#28
11/20/2012 (3:56 pm)
Yea latest MiT at time I posted that, and although I've made a number of changes and improvements to RTS tutorial Boone near that area. I'm away couple o days, when get home I will get that screenshot for you . Thanks for taking the time to take a look.

fxtgaming.com/tmppics/tserror.jpg
there you go one screenshot as requested, and again thank for taking the time to look
#29
11/25/2012 (2:15 pm)
you appear to have ## and then ## again in your command.cs file
'##' is an error in Torquescript and not a comment like c++

also there appears to be another } just before the ##'s
#30
11/25/2012 (2:40 pm)
Actually the ## is placed in the console to help mark the location of the possible error.
Quote:
>>>Some error context, with ## on sides of error halt:
Since the error appears to occur in-between two functions, you are likely missing a closing brace somewhere. Do a count and double check that all braces, brackets, and parentheses are matching pairs, as well as making sure that no statement or line terminators are missing.
#31
11/25/2012 (4:31 pm)
Check line 14 of the script file you posted above. There's an if statement with a single-line block after it, but everything below is indented as if there are supposed to be curly braces around it. However, in your console screenshot, there is an additional closing brace. Check if there's an opening brace after that if statement.
#32
11/25/2012 (6:58 pm)
@Michael, didn't know about the ##'s in the console, I'll have to watch for that, I debug in Torsion so don't usually watch my console :-)

@Daniel, yup that's what I thought when I saw the additional } before the ##'s

@louis, does removing the } help?
#33
11/26/2012 (4:45 pm)
Just double checked code to make sure before replying, that its still same code as I posted above, it is, and as you can see there is no curly bracket!
However I think you are onto something with line 14, think there should be a { there, and likewise at the end a } (where it shows in console and doesn't. Atually exist)
That should fix it hopefully thanks
Interesting that that code all works when they are *.cs files, just not as converted files, and even then its a different file that solves it, anyway this should solve all that hopefully.
For those interested I think the error came about because the same one features in the RTS tutirial in the section 8 code snippets
#34
11/26/2012 (5:51 pm)
Perhaps your editor is putting garbage characters in the file. Like something from hitting enter, or a strange tab. I know sometimes I get grave markers instead of quote markers when copying from web pages. So, perhaps seeing if there are stupid characters in there using a text only editor might help.

If anyone has any better ideas for filtering text that would be awesome to hear about it. I cannot see anything that stands out in the code that was posted.
#35
11/27/2012 (5:58 am)
If that's the case it'd be the first time I've ever heard of such or simlar issues with notepad++
Page«First 1 2 Next»