Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 68 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Script Error: Could not find 'common_spriptsutilty'
D3STY
General Member
Since: Nov 10, 2012
Posts: 2
Last: Nov 10, 2012
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Nov. 10, 2012 02:56 am
im trying to get a tank to move and i need a simple script which is
Code:

#include common_scriptsutility;

#include maps_utility;


main() 
{
 maps_m1a1::main( "vehicle_m1a1_abrams" ); maps_load::main(); 
}


i placed the .gsc file in: C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\raw\maps

and named it exactly as the map is named "tank.gsc"

here are all my zone files on the right:

Code:
ignore,code_post_gfx
ignore,common
col_map_sp,maps/tank.d3dbsp
rawfile,maps/tank.gsc
localize,tank
sound,common,tank,!all_sp
sound,generic,tank,!all_sp
sound,voiceovers,tank,!all_sp
sound,requests,tank,!all_sp
rawfile,common_scriptsutility.gsc
common_scriptsutility.gsc
weapon,sp/mp5
xmodel,weapon_mp5
xmodel,viewmodel_mp5
xanim,abrams_movement_backwards
xanim,abrams_movement
xmodel,vehicle_m1a1_abrams
fx,muzzleflashes/abrams_flash_wv
weapon,sp/m1a1_turret
xmodel,vehicle_m1a1_abrams_dmg
rawfile,shock/tankblast.shock
xmodel,vehicle_m1a1_abrams_PKT_Coaxial_MG
fx,muzzleflashes/mg42hv
material,gfx/icons/hud@mg42.tga
weapon,sp/m1a1_coaxial_mg
xmodel,viewmodel_base_viewhands
fx,distortion/abrams_exhaust
fx,dust/abrams_desk_dust
fx,explosions/large_vehicle_explosion




and on the left it says:
Code:
common_scriptsutility.gsc


When i run build fast file it says:
Code:

WARNING: bad tpye 'common_scriptsutitlity.gsc'.
could not open 'common_scriptsutility.gsc'
failed loading 'common_scriptsutility.gsc' of type raw


Finally when i try to play the map it gives me an error saying


Code:
script compile error
Could not find script 'common_scriptsutility.gsc'
#include common_scriptsutility;
[See console for details]


When i navigate to: C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\raw\common_scripts
The utility.gsc is right there


If you need more detail ask, but if you know whats wrong please help :/


UPDATE: It seems like anytime i try to ues any script it gives me an error another one i'm having is could not find 'mapsmp_load'
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Nov. 10, 2012 08:03 am
A few things I see wrong:
Your script: #include common_scriptsutility;

Should be: #include common_scripts\utility;

#include maps_utility;
Should be: #include maps\_utility;

maps_m1a1::main( "vehicle_m1a1_abrams" );

Should be: maps\_m1a1::main( "vehicle_m1a1_abrams" );


Your Zone File: rawfile,common_scriptsutility.gsc

Should be: rawfile,common_scripts/utility.gsc

not needed: common_scriptsutility.gsc < erase this line




edited on Nov. 10, 2012 01:03 am by MODDER_BC

edited on Nov. 10, 2012 01:06 am by MODDER_BC
Share |
D3STY
General Member
Since: Nov 10, 2012
Posts: 2
Last: Nov 10, 2012
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Nov. 10, 2012 04:05 pm
TVM MODDER_BC for the help!
i simply followed one of the tutorials on modsonline and thats exactly what they had. but thank you for the correction :D

Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»