Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: cod2 libcod problems

  1. #11
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply, Where is the gametype.gsc located?

  2. #12
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Moolster View Post
    Thanks for the reply, Where is the gametype.gsc located?
    You can add it in maps\mp\gametypes\[gametype].gsc or maps\mp\gametypes\_callbacksetup.gsc.

  3. #13
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had no maps folder so i created the folders required in main and made a _callbacksetup.gsc in there with the command disableGlobalPlayerCollision();. But its not working im afraid.

  4. #14
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Moolster View Post
    I had no maps folder so i created the folders required in main and made a _callbacksetup.gsc in there with the command disableGlobalPlayerCollision();. But its not working im afraid.
    Copy it from iw_07.iwd > \maps\mp\gametypes\.
    Also restart your server after adding the code. If you want to enable collision again remove the function and restart your server.

  5. #15
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by Moolster View Post
    I had no maps folder so i created the folders required in main and made a _callbacksetup.gsc in there with the command disableGlobalPlayerCollision();. But its not working im afraid.
    First off, stop using the main folder to put your mods.

    Go to the CoD2 directory, create a new folder (Name it mymod for now).

    Go inside the newly created mymod folder, create another 3-4 folders (mymod/maps/mp/gametypes).

    Go to your main folder, find and open iw_07.iwd with winrar.

    Go to maps/mp/gametypes and look for _callbacksetup.gsc.

    Copy that file into the gametypes folder you created in the mymod folder.

    Then open your freshly copied _callbacksetup.gsc, find

    Code:
    [[level.callbackStartGameType]]();
    and place

    Code:
    disableGlobalPlayerCollision();
    just before it such as;

    Code:
    CodeCallback_StartGameType()
    {
    	// If the gametype has not beed started, run the startup
    	if(!isDefined(level.gametypestarted) || !level.gametypestarted)
    	{
    		disableGlobalPlayerCollision();
    	
    		[[level.callbackStartGameType]]();
    
    		level.gametypestarted = true; // so we know that the gametype has been started up
    	}
    }
    Now all you need to do it edit your old launch configuration and set fs_game to mymod

    Code:
    LD_LIBRARY_PATH=. LD_PRELOAD=libcod2_1_3_nomysql.so ./cod2_lnxded +set fs_game mymod +set net_ip .....

  6. #16
    ... connecting
    Join Date
    May 2014
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you all for the help now working fully and now know what im doing lol

  7. #17
    ... connecting
    Join Date
    Jan 2014
    Posts
    8
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Is there anyway to find these same files in Cod4? These files are not in any of the "iw_xx.iwd" files

  8. #18
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by PureTryOut View Post
    Is there anyway to find these same files in Cod4? These files are not in any of the "iw_xx.iwd" files
    Download cod4 mod tools and go to cod4/raw/.

    http://callofduty.filefront.com/file...od_Tools;85947 (v1)
    http://callofduty.filefront.com/file/;86101 (v1.1 update)

    Mirror #2
    http://www.gamershell.com/download_22849.shtml (v1)
    http://www.gamershell.com/download_22930.shtml (v1.1 update)

  9. #19
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Download the mod tools, look in raw folder. Look for the globallogic file (iirc), as the scripts moved from the gametype gscs into one big obfuscated-ish file.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  10. #20
    ... connecting
    Join Date
    Jan 2014
    Posts
    8
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Aah thanks! I could have known that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •