Home   Help Search Login Register  

Author Topic: [SOLVED] Change the name of player  (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

Offline snafu

  • Members
  • *
[SOLVED] Change the name of player
« on: 06 Jul 2008, 19:48:53 »
Hi,

I'm currently making a mission with the latest Hellenic Warfare Mod and to give the mission a bit more authenticity and immersion I would like to forcibly change the name of the player and his squad members to Greek names.

How would I do this?

« Last Edit: 06 Jul 2008, 23:40:15 by snafu »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Change the name of player
« Reply #1 on: 06 Jul 2008, 20:13:53 »
Check out the cfgIdentities part of this tutorial by Cheetah.

Offline snafu

  • Members
  • *
Re: Change the name of player
« Reply #2 on: 06 Jul 2008, 21:14:11 »
Thanks Bedges. Never noticed that part of the site before.

I've put all the necessary stuff into the description.ext however I get this error when I start the mission;

Quote
description.ext, line 12:'.player': 's' encountered instead of '='

This my description file;
Quote
showCompass = 1;
showGPS = 1;
showWatch = 1;

// === Titlecut ==============================================>
onLoadMission= GREEK STORM

maxScore = 5000;
avgScore = 2500;
minScore = 1000;



class Weapons
{
   // Add the weapons to the mission gear
   class M4 { count = 3; };
   class HWM_HKG3A3 { count = 5; };
   class HWM_HKG3A4 { count = 5; };
   class HWM_FN_FAL_Para { count = 5;};
};

class Magazines
{
   // Add the magazines to the mission gear
   class 30Rnd_556x45_Stanag { count = 10; };
   class HandGrenade { count = 5; };
   class HWM_HKG3Mag { count = 30; };
   class HWM_FalMag { count = 30; };
   
   

class CfgIdentities
{
class GeorgePapandreou
{
name="George Papandreou";
face="Face10";
glasses="None";
speaker="Dan";
pitch=1.2;
};
class KostasKaramanlis
{
name="Kostas Karamanlis";
face="Face11";
glasses="None";
speaker="Brian";
pitch=1.0;
};
class EleftheriosVenizelos
{
name="Eleftherios Venizelos";
face="Face12";
glasses="None";
speaker="Mathew";
pitch=1.1;
};
class GeorgiosPapadopoulos
{
name="Georgios Papadopoulos";
face="Face13";
glasses="None";
speaker="Robert";
pitch=1.0;
};
class NikolaosZachariadis
{
name="Nikolaos Zachariadis";
face="Face14";
glasses="None";
speaker="Russell";
pitch=1.2;
};
class GeorgeRallis
{
name="George Rallis";
face="Face15";
glasses="None";
speaker="Dusan";
pitch=1.1;
};
class StylianosPattakos
{
name="Stylianos Pattakos";
face="Face16";
glasses="None";
speaker="Ryan";
pitch=1.0;
};
class NicoMastorakis
{
name="Nico Mastorakis";
face="Face17";
glasses="None";
speaker="Howard";
pitch=1.0;
};
class GiorgosSeferis
{
name="Giorgos Seferis";
face="Face18";
glasses="None";
speaker="Mathew";
pitch=1.0;
};

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Change the name of player
« Reply #3 on: 06 Jul 2008, 22:39:57 »
If that's the whole description.ext file then you have not properly 'closed' the class Magazines or the class CfgIdentities sections.

Sould look more like this -

Code: [Select]
class Magazines
{
   // Add the magazines to the mission gear
   class 30Rnd_556x45_Stanag { count = 10; };
   class HandGrenade { count = 5; };
   class HWM_HKG3Mag { count = 30; };
   class HWM_FalMag { count = 30; };
};
   

class CfgIdentities
{
    class GeorgePapandreou
    {
        name="George Papandreou";
        face="Face10";
        glasses="None";
        speaker="Dan";
        pitch=1.2;
    };

    class KostasKaramanlis
    {
        name="Kostas Karamanlis";
        face="Face11";
        glasses="None";
        speaker="Brian";
        pitch=1.0;
    };

    class EleftheriosVenizelos
    {
        name="Eleftherios Venizelos";
        face="Face12";
        glasses="None";
        speaker="Mathew";
        pitch=1.1;
    };

    class GeorgiosPapadopoulos
    {
        name="Georgios Papadopoulos";
        face="Face13";
        glasses="None";
        speaker="Robert";
        pitch=1.0;
    };

    class NikolaosZachariadis
    {
        name="Nikolaos Zachariadis";
        face="Face14";
        glasses="None";
        speaker="Russell";
        pitch=1.2;
    };

    class GeorgeRallis
    {
        name="George Rallis";
        face="Face15";
        glasses="None";
        speaker="Dusan";
        pitch=1.1;
    };

    class StylianosPattakos
    {
        name="Stylianos Pattakos";
        face="Face16";
        glasses="None";
        speaker="Ryan";
        pitch=1.0;
    };

    class NicoMastorakis
    {
        name="Nico Mastorakis";
        face="Face17";
        glasses="None";
        speaker="Howard";
        pitch=1.0;
    };

    class GiorgosSeferis
    {
        name="Giorgos Seferis";
        face="Face18";
        glasses="None";
        speaker="Mathew";
        pitch=1.0;
    };
};

It's good practice to indent your code so that errors like that are easier for you to spot.

Offline snafu

  • Members
  • *
Re: Change the name of player
« Reply #4 on: 06 Jul 2008, 23:39:57 »
Got it. Thanks again.