ItsMods

Full Version: Custom Medals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
also what about rawfile,mp\_medalTable.csv
(08-17-2011, 09:34)Se7en Wrote: [ -> ]You can find _medalTable.csv in raw 1.3.1 FULL Version
I have redownloaded the mod tools through steam but it still isn't there. Is there something you did to make more files show?

Edit: Nevermind, have it now, for others who got the same issues download the files here(instead of through steam): http://wiki.modsrepository.com/index.php...files_Rips
Great tutorial bro.
(08-16-2011, 21:39)Se7en Wrote: [ -> ]Hey again! This is my 'fast-stupid' tutoral. I will show and tell how to make custom medals or 'custom popup'
Medal - this thing like wager, or messages as "Tripple kill!" etc [Image: screenshot.c9d03f5a90b1421c29d602c59f437...320692.jpg]

You need thoose files:
  • raw\mp\_medalTable.csv
  • raw\maps\mp\_medals.gsc
  • mod.csv
  • Localized Strings knowledge
  • Mod tools
  • OMA

I will use my string: MODMEDAL_TESTTEXT

1. Copy raw\mp\_medalTable.csv to mods\mp_YOURMOD\mp\_medalTable.csv

2. Create in mp_TESTMOD folders (with using AkelPad etc):
Quote:english\localizedstrings\modmedal.str

3. Open this file and put following lines:
Quote:VERSION "1"
CONFIG "C:\projects\cod\t5\bin\StringEd.cfg"
FILENOTES ""

4. Now Open your _medalTable.csv file and make custom medal following default medals as example:
- FOLLOW THIS:
Quote:NUMBER OF MEDAL,MEDAL TYPE (NAME),MEDAL TEXT,MEDAL DESC,XP,XP2,0

5. Go in end of file and find last line, you will see number:
Quote:62,MEDAL_AIRCRAFT_ASSIST,MEDAL_AIRCRAFT_ASSIST,MEDAL_AIRCRAFT_ASSIST_DESC,0,0,0

6. Create custom (following 4th msg):
Quote:63,MEDAL_CUSTOMTEST,MODMEDAL_TESTTEXT,MODMEDALTESTTEXT_DESC,100,100,0

7. Now go to
Quote:mp_YOURMOD\english\localizedstrings\modmedal.str
and open it

8. Add thoose lines:
Quote:REFERENCE TESTTEXT
LANG_ENGLISH "Test medal"

REFERENCE TESTTEXT_DESC
LANG_ENGLISH "Test medal description! This is works!"

9. Save files.

NOTE: Do not use 'self processMedal( );' function! You can be banned, because this Stats Modifer! Read 11th msg for call medal

10. Find
Quote:raw\maps\mp\_medals.gsc
and move to
Quote:mp_YOURMOD\maps\mp\_medals.gsc


11. Copy this functions ( fixed by me )
Quote:processModMedal(medalName)
{
self thread giveModMedal( medalName );
}

giveModMedal( medalName )
{
self endon("disconnect");

if ( level.teambased )
xp = level.medalInfo[medalName]["xp"].team;
else
xp = level.medalInfo[medalName]["xp"].player;

self.score += xp;

addMedalToQueue( level.medalInfo[medalName]["index"] );

}

and put in
Quote:mp_YOURMOD\maps\mp\_medals.gsc
in end of file...
NOTE: Only in _medals.gsc !

12. Now for call medal use:
Quote:self maps\mp\_medals::processModMedal( MEDAL TYPE (NAME)! );
Ex.
Quote:self maps\mp\_medals::processModMedal( "MEDAL_CUSTOMTEST" );

13. Build your mod and test!

Thanks for this tutorial Smile
now working xD thanks to Se7en


make sure _medalTable is renamed to medalTable

and
Code:
63,MEDAL_CUSTOMTEST,MODMEDAL_TESTTEXT,MODMEDALTESTTEXT_DESC,100,100,0
becomes
Code:
63,MEDAL_CUSTOMTEST,MODMEDAL_TESTTEXT,MODMEDAL_TESTTEXT_DESC,100,100,0
I can't find medalTable.csv Fuu
DL from the modrepisotary gsc files rip. Sth like that.
Code:
//get_csvtable("mp\medalTable.csv","50","50");
get_csvtable(table, rows, columns)
{
   for(i=0;i< rows;i++)
   {
      rowdata = "";
      for(j=0;j<columns;j++)
      {

         dataelement = tableLookupColumnForRow(table,i,j);

         rowdata = rowdata + dataelement + ",";
      }
      rowdata = rowdata + "\n";
      logprint(rowdata);
  
   }
}
(09-06-2011, 14:08)Pozzuh Wrote: [ -> ]
Code:
//get_csvtable("mp\medalTable.csv","50","50");
get_csvtable(table, rows, columns)
{
   for(i=0;i< rows;i++)
   {
      rowdata = "";
      for(j=0;j<columns;j++)
      {

         dataelement = tableLookupColumnForRow(table,i,j);

         rowdata = rowdata + dataelement + ",";
      }
      rowdata = rowdata + "\n";
      logprint(rowdata);
  
   }
}

what it does :?
Got it off google will proceed to tutorial.
Pages: 1 2 3 4 5