Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Thumbs up [TUT] How to write MW2 Ps3 Script

    This is a tutorial on Basic programming for MW2 GSC, with this you will be able to hopefully understand what's going on in that crazy patch file. I will keep adding stuff to this tutorial so keep checking back.
    The original tutorial gets credits to Winkler
    Program Flow
    First off let's take a look at the order the program executes commands. Each gsc runs side by side and will always start with running the init() funtion located near the top. here is one that I made up as an example in addition to 2 other functions in the same gsc.

    Code:
    init()
    {
            self.variable = 100;
            self thread doCommands();
            self goHere();
    }
     
    doCommands()
    {
            //commands
    }
     
    goHere()
    {
            //commands
    }
    Alright so the program starts by running the init() First it will execute the "self.variable = 100;" line. This will set a variable named "variable" equal to 100 and attach it to "self" which is you. Next it moves to the next line "self thread doCommands();". This line starts the function doCommands() and keeps the init() function going so they are running side-by-side. Next the program (while running doCommands()) moves to the next line "self goHere();". Notice that this line does not have the thread command in the middle. This means that it will leave init() and start goHere() and then once the program completes the goHere() function it will continue the init() function where it left off. Now after going through the init() function we have set self.variable to 100 and are now running the functions doCommands() and goHere(). Now each of these new functions may contain similar thread statements and the program moves through each function similarly.

    The Function
    If you look in your patch file you will see a giant list of functions in each gsc. The general form of a function look like this:
    Code:
    function
    Most of the functions you see in the gsc do not have arguments, but you should know what they are for when you write you own code. An

    0 Not allowed! Not allowed!
    Last edited by Drugs; 11-04-2011 at 02:05 PM. Reason: Credit given to Winkler for original tut
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

  2. #2
    Member
    Join Date
    Oct 2010
    Location
    Somewhere
    Posts
    122
    Points
    379
         User Info     Contact     Gamer ID
    Join Date
    Oct 2010
    Location
    Somewhere
    Posts
    122
    Points
    379

    Contact info:

    Youtube Channel: http://www.youtube.com/user/XaVieRuniversaL?feature=mhee

    Default

    wow. TMI bro. How do you know these? Are you like in your 20's and attending university or college programming or what cause you can't be a teen to know this stuff.

    0 Not allowed! Not allowed!

  3. #3
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Quote Originally Posted by Universe X View Post
    wow. TMI bro. How do you know these? Are you like in your 20's and attending university or college programming or what cause you can't be a teen to know this stuff.
    Actually, its not that hard. He's in highschool. I'm in highschool. We both know how to do this and more, kind of like common knowledge :/

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  4. #4
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Default

    Agreed. Im only 17 lol but this stuff isnt that hard to learn believe it or not
    @xCrimson Im working on a mod menu for Black Ops Wii that has the same setup as a Ps3 or Xbox One with a setup box on the side and a whole bunch of other cool features I will pm you details

    0 Not allowed! Not allowed!
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

  5. #5
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,309
    Points
    10,700
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    nice im working on a modmenu also (only a simple scroller) but between homework and my social life im gonna wait till mw3 comes out to port it/ finish it

    0 Not allowed! Not allowed!

  6. #6
    PSP Coder Mr_Waffle's Avatar
    Join Date
    Sep 2010
    Location
    The Netherlands
    Posts
    182
    Points
    391
         User Info     Contact     Gamer ID
    Join Date
    Sep 2010
    Location
    The Netherlands
    Posts
    182
    Points
    391
    Gamer IDs

    PSN ID: Mr_Waffle

    Default

    Looks easy as hell.

    0 Not allowed! Not allowed!

  7. #7
    Member xRoofyo's Avatar
    Join Date
    Apr 2011
    Location
    Manchester, UK
    Posts
    368
    Points
    2,912
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Manchester, UK
    Posts
    368
    Points
    2,912

    Contact info:

    Youtube Channel: www.youtube.com/swgroofyo

    Default

    Nice! Great Work Bud! Good to see the PS3 section will be coming to life

    0 Not allowed! Not allowed!

    - For Call of Duty: Modern Warfare 3 PC content subscribe to my channel at www.youtube.com/roofyoreppin -
    GamerTag: RoofyoReppin
    SteamAccount: RoofyoReppin
    Twitter: #RoofyoReppin

  8. #8
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Default

    Yep help bring the ps3 section to life

    0 Not allowed! Not allowed!
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

  9. #9
    just 'round the corner PoptartHunter's Avatar
    Join Date
    May 2011
    Posts
    4,589
    Points
    8,734
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    4,589
    Points
    8,734

    Contact info:

    Youtube Channel: http://www.youtube.com/PoptartHunterCL

    Default

    This is actually a pretty good tutorial! I'm sure this will help out a lot of people. Good work, shiift!

    0 Not allowed! Not allowed!

  10. #10
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Default

    Thank you PoptartHunter

    0 Not allowed! Not allowed!
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:51 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.