Results 1 to 8 of 8
  1. #1
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,667
    My Mood
    Breezy

    [FAQ] Modern Warfare 2 GSCs/Modding

    FAQ (Frequently-Asked-Questions)

    Getting started/Common mistakes:
    Q. What exactly is a GSC?
    A. A GSC is a script used by the Call of Duty series to run game functions and peform actions. GSCs are simple text files that have no formatting (Microsoft Word is a big no no!).

    Q. I am new to modding and don't know where to start. What should I do?
    A. You should learn the BASICS of C (don't get too much into the C specific functions). Also, you should have a look in Josephlittle's mini-tutorial here.

    Q. I tried to learn a little bit of C but failed miserably. Can I still make mods?
    A. Of course you can. There is a little guide here written for COD4 but is still VERY helpful. Even I learnt some little things here and there.

    Q. What is the difference between setDvar and setClientDvar?
    A. setDvar is used for server wide settings such as "jump_height" and "g_gravity" while setClientDvar is used for player only settings such as "r_brightness" (Note that when using setClientDvar you add self, player or an entity behind it otherwise you will get an error).

    Q. I have a syntax error. What should I do?
    A. Use a tool such as ffViewer or GSC Fixer 1.0 to help display/fix the error. Make sure you do that BEFORE asking on the forum.

    Tips/Resources:
    Q. Where can I find a list of common MW2 commands?
    A. You can find many here on this site. It may be for COD4 but IW have kept many of those commands and most of them still work in MW2. If it says SP Only then you obviously can't use the command on MP.

    Q. I'm looking for a specific thread from another file but don't know where to look for it. What should I do?
    A. Have a look at this HUGE pastebin link. Credits go to Shikaah! for the list. (May lag Firefox users. Open the link in IE for safety reasons).

    Q. I'm looking for a code/snippet. Where can I find it?
    A. Have a look in Abstracts' GSC code list. You may find something you need in there.

    Also, here are list of snippets/mini-tutorials I've posted on MPGH:
    Teleport turrets to your crosshair
    17 bots vs. 1 player
    Disabling class changing

    Q. How do I display text in the middle of the screen or in the killfeed?
    A. Use self iPrintlnBold("text here") or self iPrintln("text here").

    3rd Party Software:
    Editing GSCs
    Q. What should I use to edit GSCs?
    A. You should use any text editor but I recommend Notepad++ because if you click on an open brace, it highlights in red and will show you the closing brace that's 'linked' to it.

    Q. Can I use Microsoft Word to edit GSCs?
    A. No. Using Microsoft Word is not a good idea because it tends to leave hidden text/extra bytes at the start of the file and screws up your mods.

    MW2 Liberation
    Q. Why can't I find MW2 Liberation here?
    A. MW2 Liberation contains advertising and links to another forum therefore it is not allowed here.

    Q. What hotkeys can I use to do things on Liberation?
    A. Here is a list of what I have gathered:
    Code:
    F1 - Draw FPS
    F2 - Open console
    F3 - Change team
    F4 - Change server settings
    F5 - Force host/Unlimited ammo
    F6 - Switch to opposite team
    Alt+F1 - Change mod
    Alt+F2 - Restart match
    Alt+F5 - God mode
    Alt+F6 - Middle finger spam
    Q. Can I get banned from using it?
    A. All public disablers eventually become detected so it is not safe.

    Mod Loader
    Q. How do I change mods without closing MW2?
    A. Close Mod Loader and edit the config file to the mod you want. Run Mod Loader again and click Auto-Inject. Wait atleast 5 seconds and go back to the MW2 window. Type map_restart into the console and then it should work.

    GSC Fixers/Tools:
    GSC Fixer 1.0 by master131
    Q. I don't see the error displayed in the console?
    A. Look under these lines:
    Code:
    ------- Game Initialization -------
    gamename: IW4
    gamedate: Jun 10 2010
            self iPrintlnBold("MPGH ftw";CL_Disconnect called for local client 0
    Q. Does the tool work when MW2 displays 'Unknown function'?
    A. No. It does not work because sometimes MW2 can't determine what exactly the unknown function was.

    Q. What does it mean if I get an open brace as the mistake?
    A. You may be missing a closing brace or have too many.

    Q. What if a line of code appears as the mistake but nothing is wrong with it?
    A. Look at the code under it because it might be incorrect or not valid.

    ffViewer
    Q. What should I do if ffViewer never comes up after waiting for more than 1 minute?
    A. Run the ffViewer through the original .zip file. For some reason, it works. If WinRAR asks to update the original archive, click Yes.

    Q. How do I check for syntax errors?
    A. Click File > Open and browse to your patch_mp.ff file which can be found inside the zone/english folder of your MW2 directory. Click on the file you are checking (_rank.gsc) and then copy and paste the contents of your edited file into the box on the right. Click Tools > Syntax Checker.

    Q. Why does ffViewer spam me with removeRankHUD errors?
    A. I have absolutely no idea but you should ignore it.

    Q. Why does ffViewer say there is an error on a line but there's nothing wrong with it?
    A. If you begin a thread and the thread name contains an opening brace on the first line, it tends to say that. Example - doDvars() {

    GSC Compiler v1.0 by AcE.bu50t
    Q. What exactly is GSC Compiler v1.0?
    A. GSC Compiler v1.0 is a little alternative to ffViewer and Notepad that allows you check for errors on-the-fly and create GSC mods. A really cool feature is to be able to have a raw backup just in-case something happens.

    Q. Why is it so buggy?
    A. It's buggy because it is in it's beta stages and is not fully complete!

    Download:
    GSC Fixer v1.0
    ffViewer
    GSC Compiler v1.0

    Script Compile Error:
    Q. What does syntax error mean?
    A. Syntax error means that there is a mistake and it cannot continue. Some common mistakes are having too many or too little opening/closing brackets

    Q. What does bad token mean?
    A. Bad token means that you have 1 quotation mark and are missing the other OR have a strange symbol that the game does not recognise such as: .

    Q. What does unknown function mean?
    A. Unknown function means you have something in one of your GSCs that MW2 defines as something that has no value, doesn't exist or hasn't been declared. Example - self getPlayerBirthday(); /

    Q. What does "expression list must have 1 or 3 parameters" mean?
    A. This is an error than some of you QCZM fans may come across. This normally means you are missing a number in one of the create functions. Example - CreateBlocks((773, 1080), (0, 90, 0));
    Last edited by House; 10-02-2010 at 06:05 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  2. The Following 11 Users Say Thank You to master131 For This Useful Post:

    arabking (11-03-2010),Axxe_Man (11-20-2010),Blackaiser (04-07-2011),CoDHacker2010 (10-01-2010),Insane (09-25-2010),mech783000 (12-07-2010),sepehr55 (08-01-2011),sgtbighacks (07-10-2011),SoupX (02-26-2011),SweetLEMONADE (09-25-2010),zxz0O0 (09-26-2010)

  3. #2
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Good Job!

    /Stickied

    Ex Middleman

  4. The Following User Says Thank You to Insane For This Useful Post:

    [MPGH]master131 (09-25-2010)

  5. #3
    SweetLEMONADE's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    East Coast
    Posts
    137
    Reputation
    14
    Thanks
    35
    My Mood
    Stressed
    Well, i've been using notepad this whole time haha,

    Notepad++ FTW!

  6. The Following User Says Thank You to SweetLEMONADE For This Useful Post:

    Yuvalino (10-10-2011)

  7. #4
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    Yeea nice . THis tut will help sum choobs
    I helped you out?
    Press the button

  8. #5
    phantom1151's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    florida
    Posts
    40
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    to edit i have been using ultraedit. i think it is much better then notepad++, much more ability's to make gsc moding easier

  9. #6
    nciswolf's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    thanksssss

  10. #7
    Yuvalino's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    In Love
    Oww, Oww, Oww, Oww, Oww My fucking Good - 1 Post - And this is your first & only + Unverified User ??? GET %@$#ING LOST

  11. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic
    Thats Nice master131 It will help alot of beginners!

Similar Threads

  1. modern warfare 2 mods-hacks-patches?
    By vennum6 in forum Playstation Hacking
    Replies: 2
    Last Post: 03-08-2011, 07:45 PM
  2. Call of Duty Modern Warfare 2 Modding
    By SPA777174 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 06-15-2010, 05:01 AM
  3. [Release] Modern Warfare 2 Complete Mod(REAL!)
    By thepointman13 in forum CrossFire Mods & Rez Modding
    Replies: 5
    Last Post: 01-31-2010, 03:59 AM
  4. [RS.com] CoD4 Modern Warfare Mod Tools
    By icuigorz in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 5
    Last Post: 01-26-2010, 06:42 AM
  5. Replies: 18
    Last Post: 11-12-2009, 07:38 AM