Jump to content
Sign in to follow this  
Flightster

How do you enable a "join team of x player"?

Recommended Posts

Hi guys,

I was wondering how I would go about making it possible for players to join the team of another?

I know Xeno's domination has this option, where a player would be able to go to the "show status" option, join a team and then markers would show up on screen indicating the position of all team mates..

I would like to do something like this, but I don't really know how.. I only want people to be able to join teams, not be able to change the settings (grass, view distance, etc).

Share this post


Link to post
Share on other sites

Awesome, thanks a lot :)

---------- Post added at 11:32 AM ---------- Previous post was at 11:31 AM ----------

mmm..

I can't seem to get the team dialog to work properly.. I did everything according to the readme file, but I keep having issues while testing.

Problems:

- Buttons are without text (as in: close, join team, new TL, etc)

- I keep getting errors when I scroll - team status, those errors being: "No entry 'mpmission\__cur_mp.Chernarus\description.ext\ICE_ TeamStatusDialog\TSD9_Col_04_Row_01.ScrollBar' and (in chat) "MISSING STR_TSD9_* STRINGTABLE DATA"

Yes, I'm a noob.. And yes, I have no clue.. Anyone of you have any idea what I might be doing wrong and how to fix it, or is anyone (that knows / uses this) willing to send me a complete and working file? Any help will be greatly appreciated

Edited by Flightster

Share this post


Link to post
Share on other sites

This is what I have been trying, btw:

FOR DESCRIPTION.EXT

//-----------------------------------------------------------------------------

#include "Scripts\TeamStatusDialog\TeamStatusDialog.hpp"

//-----------------------------------------------------------------------------

FOR INIT.SQF

_Action = player addAction [

"Team Status",

"Scripts\TeamStatusDialog\TeamStatusDialog.sqf ",

[

["Page", "Team"], //

"AllowPlayerInvites" //

/*

"HideOpposition", // hide 'opposition' page & button

*/

],

0, false, true, "" ];

FOR STRINGTABLE.CSV (MAIN FOLDER)

// Team Status Dialog strings:

//Language,English,German

#include "Scripts\TeamStatusDialog\stringtable.csv"

FOR STRINGTABLE.CSV (SCRIPTS FOLDER)

//Language,English,German

//-----------------------------------------------------------------------------

// Team Status Dialog strings:

//-----------------------------------------------------------------------------

STR_TSD9_01,Team Status,Team Status

STR_TSD9_02,Close,Schliessen

STR_TSD9_03,My team,Mein Team

STR_TSD9_04,My group,Meine Gruppe

STR_TSD9_05,Vehicle,Fahrzeug

STR_TSD9_06,Opposition,Gegner

STR_TSD9_07,Team,Team

STR_TSD9_09,Group,Gruppe

STR_TSD9_11,+/-,+/-

STR_TSD9_12,#,#

STR_TSD9_13,Name,Name

STR_TSD9_15,Seat,Platz

STR_TSD9_16,Role,Aufgabe

STR_TSD9_17,Gear,Ausruestung

STR_TSD9_18,Score,Punkte

STR_TSD9_19,Command,Befehl

STR_TSD9_20,Requires,Benoetigt

// Pos=Position

STR_TSD9_21,Pos,Pos

// TL=Team Leader

//STR_TSD9_22,TL Prox,TL Prox

// Prox=Proximity

STR_TSD9_23,My Prox,My Prox

STR_TSD9_24,Target,Ziel

STR_TSD9_25,Actions,Aktionen

STR_TSD9_26,Pvt,Pvt

STR_TSD9_27,Cpl,Cpl

STR_TSD9_28,Sgt,Sgt

STR_TSD9_29,Ltn,Ltn

STR_TSD9_30,Cpt,Cpt

STR_TSD9_31,Mjr,Mjr

STR_TSD9_32,Col,Col

STR_TSD9_33,A.I.,K.I.

STR_TSD9_34,Dead,Tot

STR_TSD9_35,Name unknown,Unbekannt

// "some" describes ammo quantity

STR_TSD9_36,some,some

// "TL" = team leader

STR_TSD9_37,TL,GF

STR_TSD9_38,(My group),(Meine Gruppe)

STR_TSD9_39,Vacant Seats,Freie Sitze

STR_TSD9_40,has left your group,hat deine Gruppe verlassen

STR_TSD9_41,has joined your group,ist deiner Gruppe beigetreten

STR_TSD9_42,Your new Team Leader is,Dein neuer GF ist

STR_TSD9_43,has resigned,hat aufgegeben

STR_TSD9_44,Player,Spieler

STR_TSD9_45,was kicked from the group,wurde aus der Gruppe entfernt

STR_TSD9_46,soldier was removed from group,Soldat wurde aus der Gruppe entfernt

// symbol (+) to indicate column uses combo controls

STR_TSD9_47,+,+

STR_TSD9_48,You are the new Team Leader,Du bist jetzt GF

STR_TSD9_49,has been replaced,wurde abgesetzt

STR_TSD9_50,The Team Leader is no longer an AI player,Der GF ist keine KI mehr

STR_TSD9_51,New group,Neue Gruppe

STR_TSD9_52,Join group,Beitreten

STR_TSD9_53,Go TL,Werde GF

STR_TSD9_54,New TL,Neuer GF

STR_TSD9_55,Remove,Entfernen

STR_TSD9_56,Kick,Kicken

STR_TSD9_57,Recruit,Holen

STR_TSD9_58,Invite,Einladen

// "No", as in "No driver"

STR_TSD9_59,No,Kein

STR_TSD9_60,Passenger,Beifahrer

STR_TSD9_61,was invited into group,wurde eingeladen

STR_TSD9_62,soldier was recruited into group,Soldat wurde aufgenommen

STR_TSD9_63,you have been invited to join group,du wurdest eingeladen

STR_TSD9_64,Collapse all,Keine Details

STR_TSD9_65,Expand all,Alle Details

//-----------------------------------------------------------------------------

Share this post


Link to post
Share on other sites

Did you type each of those sections into the correct file?

As in:

Inside your description.ext file you should have:

#include "Scripts\TeamStatusDialog\TeamStatusDialog.hpp"

Inside your init.sqf you file you should have:

_Action = player addAction ["Team Status", "Scripts\TeamStatusDialog\TeamStatusDialog.sqf ", [["Page", "Team"], "AllowPlayerInvites"], 0, false, true,""];

In the stringtable.csv file in your main folder you need this:

// Team Status Dialog strings:
//Language,English,German
#include "Scripts\TeamStatusDialog\stringtable.csv"

And in the stringtable.csv inside Scripts\TeamStatusDialog folder you need this:

//Language,English,German

//-----------------------------------------------------------------------------
// Team Status Dialog strings:
//-----------------------------------------------------------------------------
STR_TSD9_01,Team Status,Team Status
STR_TSD9_02,Close,Schliessen
STR_TSD9_03,My team,Mein Team
STR_TSD9_04,My group,Meine Gruppe
STR_TSD9_05,Vehicle,Fahrzeug
STR_TSD9_06,Opposition,Gegner
STR_TSD9_07,Team,Team
STR_TSD9_09,Group,Gruppe
STR_TSD9_11,+/-,+/-
STR_TSD9_12,#,#
STR_TSD9_13,Name,Name
STR_TSD9_15,Seat,Platz
STR_TSD9_16,Role,Aufgabe
STR_TSD9_17,Gear,Ausruestung
STR_TSD9_18,Score,Punkte
STR_TSD9_19,Command,Befehl
STR_TSD9_20,Requires,Benoetigt
// Pos=Position
STR_TSD9_21,Pos,Pos
// TL=Team Leader
//STR_TSD9_22,TL Prox,TL Prox
// Prox=Proximity
STR_TSD9_23,My Prox,My Prox
STR_TSD9_24,Target,Ziel
STR_TSD9_25,Actions,Aktionen
STR_TSD9_26,Pvt,Pvt
STR_TSD9_27,Cpl,Cpl
STR_TSD9_28,Sgt,Sgt
STR_TSD9_29,Ltn,Ltn
STR_TSD9_30,Cpt,Cpt
STR_TSD9_31,Mjr,Mjr
STR_TSD9_32,Col,Col
STR_TSD9_33,A.I.,K.I.
STR_TSD9_34,Dead,Tot
STR_TSD9_35,Name unknown,Unbekannt
// "some" describes ammo quantity
STR_TSD9_36,some,some
// "TL" = team leader
STR_TSD9_37,TL,GF
STR_TSD9_38,(My group),(Meine Gruppe)
STR_TSD9_39,Vacant Seats,Freie Sitze
STR_TSD9_40,has left your group,hat deine Gruppe verlassen
STR_TSD9_41,has joined your group,ist deiner Gruppe beigetreten
STR_TSD9_42,Your new Team Leader is,Dein neuer GF ist
STR_TSD9_43,has resigned,hat aufgegeben
STR_TSD9_44,Player,Spieler
STR_TSD9_45,was kicked from the group,wurde aus der Gruppe entfernt
STR_TSD9_46,soldier was removed from group,Soldat wurde aus der Gruppe entfernt
// symbol (+) to indicate column uses combo controls
STR_TSD9_47,+,+
STR_TSD9_48,You are the new Team Leader,Du bist jetzt GF
STR_TSD9_49,has been replaced,wurde abgesetzt
STR_TSD9_50,The Team Leader is no longer an AI player,Der GF ist keine KI mehr
STR_TSD9_51,New group,Neue Gruppe
STR_TSD9_52,Join group,Beitreten
STR_TSD9_53,Go TL,Werde GF
STR_TSD9_54,New TL,Neuer GF
STR_TSD9_55,Remove,Entfernen
STR_TSD9_56,Kick,Kicken
STR_TSD9_57,Recruit,Holen
STR_TSD9_58,Invite,Einladen
// "No", as in "No driver"
STR_TSD9_59,No,Kein
STR_TSD9_60,Passenger,Beifahrer
STR_TSD9_61,was invited into group,wurde eingeladen
STR_TSD9_62,soldier was recruited into group,Soldat wurde aufgenommen
STR_TSD9_63,you have been invited to join group,du wurdest eingeladen
STR_TSD9_64,Collapse all,Keine Details
STR_TSD9_65,Expand all,Alle Details

If you had all of that in some random file, well, no it wouldn't work. But reading the instructions does wonders for getting this installed correctly, knowing what you're doing or not. :)

Share this post


Link to post
Share on other sites

So, I feel like a tool.. I finally got it to work :yay:

I would like to indirectly thank Xeno, because if it's wasn't for unpacking his domination map in search of the answer I would still be sitting here scratching my head.. Truly some good work on making it work :)

Edited by Flightster

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×