Post: [Tutorial] How to test GSC Mods on the PC and get a detailed Error
08-23-2011, 05:34 PM #1
DarKMaGiiC
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey Guys

This Tutorial will show you how you can test your gsc mods quickly on the pc and get a detailed error.


I know that a lot of guys know that there are also some who dont.


Requirements:

-CoD4 for the PC

Before we start i wanted to say that [^] is my console button
Ok lets start!!

At first take your ModWarfare folder from your CoD4 installation folder: Activision\Call of Duty 4 - Modern Warfare\Mods: ( Perhaps you will not have the z_modwarfare.iwd ) at the beginning

You must login or register to view this content.

and copy that to your desktop. Then create a folder called maps in your folder you just copied:

You must login or register to view this content.

in that folder on you create the folder mp and inside this you create an other folder called gametypes. Inside this ordner you can create a new textdocument and name it like your gsc you want to test:

You must login or register to view this content.

Then you can copy the code you want to test into your gsc.

Now you go back to the folder ModWarfare on your Desktop and run the file makeMod.bat. This will pack the gsc(s) into a file called z_modwarfare.iwd

Copy that file now to the ModWarfare folder in your CoD4 installation folder: Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare.

Now you can start the game, run the mod ModWarfare and start a server.
You will notice that you get only a bad syntax or unknown function error ( if your code from your gsc is wrong :P ).

To get a detailed error just press ^ and type in console /developer 1and launch your modwarfare mod and start a server.
Now you will get a detailed error whats wrong with your code.
( Thanks to Newelly for this info i was using a longer way :P

You must login or register to view this content.

If you press [Shift] and [^] the full console will popup and you can see the line number of your mistake or wrong function.

You must login or register to view this content.


To make the copy process quite faster open up your makeMod.bat on your Desktopfolder ModWarfare with the editor and add this line at the end:

copy /Y z_modwarfare.iwd "C:\Programme\Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare"

just replace C:\Programme\Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare with your ModFolder directory. This will automaticly copy the z_modwarfare.iwd after creating it.

If you have any questions just quote me and i will answere or/and update the tutorial.

I hope it helped some of you guys

I am happy about every thanks and +rep :P
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to DarKMaGiiC for this useful post:

Choco,
08-23-2011, 05:38 PM #2
Default Avatar
Newelly
Guest
ahhaa usefull i just use [`] = ` is my console command and i just use /developer 1

The following user thanked Newelly for this useful post:

DarKMaGiiC
08-23-2011, 05:46 PM #3
DarKMaGiiC
Do a barrel roll!
Originally posted by Newelly View Post
ahhaa usefull i just use [`] = ` is my console command and i just use /developer 1



hahaha didnt knew that :P Thanks for that Smile. I knew that its simpler but didnt knew how to do it
08-23-2011, 06:07 PM #4
Default Avatar
Newelly
Guest
Originally posted by DarKMaGiiC View Post
hahaha didnt knew that :P Thanks for that Smile. I knew that its simpler but didnt knew how to do it


just simpler Winky Winky everything helps and the shorter the better Cool Man (aka Tustin)

nice post anyway
08-23-2011, 06:19 PM #5
Correy
I'm the Original
Originally posted by DarKMaGiiC View Post
Hey Guys

This Tutorial will show you how you can test your gsc mods quickly on the pc and get a detailed error.


I know that a lot of guys know that there are also some who dont.


Requirements:

-CoD4 for the PC

Before we start i wanted to say that [^] is my console button
Ok lets start!!

At first take your ModWarfare folder from your CoD4 installation folder: Activision\Call of Duty 4 - Modern Warfare\Mods: ( Perhaps you will not have the z_modwarfare.iwd ) at the beginning

You must login or register to view this content.

and copy that to your desktop. Then create a folder called maps in your folder you just copied:

You must login or register to view this content.

in that folder on you create the folder mp and inside this you create an other folder called gametypes. Inside this ordner you can create a new textdocument and name it like your gsc you want to test:

You must login or register to view this content.

Then you can copy the code you want to test into your gsc.

Now you go back to the folder ModWarfare on your Desktop and run the file makeMod.bat. This will pack the gsc(s) into a file called z_modwarfare.iwd

Copy that file now to the ModWarfare folder in your CoD4 installation folder: Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare.

Now you can start the game, run the mod ModWarfare and start a server.
You will notice that you get only a bad syntax or unknown function error ( if your code from your gsc is wrong :P ).

To get a detailed error just press ^ and type in console /developer 1and launch your modwarfare mod and start a server.
Now you will get a detailed error whats wrong with your code.
( Thanks to Newelly for this info i was using a longer way :P

You must login or register to view this content.

If you press [Shift] and [^] the full console will popup and you can see the line number of your mistake or wrong function.

You must login or register to view this content.


To make the copy process quite faster open up your makeMod.bat on your Desktopfolder ModWarfare with the editor and add this line at the end:

copy /Y z_modwarfare.iwd "C:\Programme\Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare"

just replace C:\Programme\Activision\Call of Duty 4 - Modern Warfare\Mods\ModWarfare with your ModFolder directory. This will automaticly copy the z_modwarfare.iwd after creating it.

If you have any questions just quote me and i will answere or/and update the tutorial.

I hope it helped some of you guys

I am happy about every thanks and +rep :P


even easier, enable console.. then ' set developer 1 Winky Winky
08-23-2011, 06:22 PM #6
Default Avatar
Newelly
Guest
Originally posted by Corrrey View Post
even easier, enable console.. then ' set developer 1 Winky Winky


NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOB!

he has said that read it
08-23-2011, 06:32 PM #7
Thanks for this it's simpler and easier than wat I do Smile
08-23-2011, 06:45 PM #8
Choco
Respect my authoritah!!
Can someone do this to my patch for me?
08-23-2011, 07:35 PM #9
Easieer And Usefuull :y: Thanks.
08-23-2011, 08:35 PM #10
Karoolus
I'm the W@W Menu Guy !
lol, shortest!

open console
developer 2

that's all you need Winky Winky


oh, @ OP:

no need to go through all the trouble with makemod.bat etc..
in your COD4 mods folder, create a folder & name it whatever you want (the name of your mod)
in that folder, create a folder maps
in that one, create a folder mp
in that one, create a folder gametypes (if you need one of course :p)
save your gsc there Smile

i just edit the gsc straight in my mods folder, so i save in notepad++, reload the mods in COD4 & it only takes me 2 seconds :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo