Game Development Community

Learn for selcet team and player..

by CIMO · in General Discussion · 09/11/2006 (7:03 am) · 5 replies

Hi i use a team resource and i create a select type of player....but have a question...
If select a player all ok...but if select a team the my window "select a player" return....Why?
i use this for see a window playr select:
In client/scripts/serverConnection.cs
function GameConnection::initialControlSet(%this)
{
   echo ("*** Initial Control Object");

   // The first control object has been set by the server
   // and we are now ready to go.

   // first check if the editor is active
   if (!Editor::checkActiveLoadDone())
   {
      if (Canvas.getContent() != PlayGui.getId())
		Canvas.setContent(PlayGui);
   }
	if ($SinglePlayerMap == False)
		Canvas.pushDialog(KitSelectDlg);
}
Why my creen when select a team ... recompare?

#1
09/27/2006 (6:15 pm)
What resources have you been tryign to implement? can you provide links?
#2
09/28/2006 (3:10 am)
Never resource....This implement I have created
I would a metod for see the KitSelectDlg only once for mission....In server and client...
If I leave this script the KitSelectDlg see only once and the next mission not see...
You say how resolve this?
#3
09/28/2006 (9:30 am)
Well, what "I" would do might not nescicarily be the "right" way of doing it but i would add alot of echo("I'm here1"),echo("I'm here2"),echo("I'm here3") statements so you can see where the pointer is returning to after you select your team, it sounds like its looping back to the point where you call your kit select dlg for some reason, I havnt seen your code so its hard to say, but maybe you should try adding a closing bracket after Canvas.pushDialog(KitSelectDlg); the next line add another '}' try that...

here's what my initial control set looks like,

function GameConnection::initialControlSet(%this)
{
echo ("*** Initial Control Object");

// The first control object has been set by the server
// and we are now ready to go.

// first check if the editor is active
if (!Editor::checkActiveLoadDone())
{
if (Canvas.getContent() != PlayGui.getId())
Canvas.setContent(PlayGui);
Canvas.pushDialog(TeamSelectDlg);
}
}
#4
09/28/2006 (9:36 am)
Another thought, in your KitSelectDlg function, do you remove the window after selection?

Canvas.popDialog(KitSelectDlg)
#5
09/28/2006 (10:38 am)
Yes now i resolve =) thanks =)