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

Members Online

»
0 Active | 66 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: mapname.gsc File Help Needed! (Script Error)
Zaphax
General Member
Since: Jun 17, 2008
Posts: 251
Last: Dec 29, 2013
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 17, 2011 06:25 pm
Any idea why i get this cant find anything wrong with my script!? [duh][read] Thanks to everyone who will try to help me solve it.



Code:

#include maps\_utility;

#include maps\_anim;

#using_animtree("generic_human");

main()
{

////LOAD MAIN FILES////

	maps_load::main();
	mapsMAPNAME_fx::main();
ambientPlay("ambient_mapname");


////ENVIRONMENT////

setExpFog(.00028, .60, .60 , .61, 0);


////INTRO SCREEN////

maps\_introscreen::introscreen_delay
(&"MAPNAME_INTRO_1",
&"MAPNAME_INTRO_2",
&"MAPNAME_INTRO_3",
&"MAPNAME_INTRO_4");


////PRECACHING////

precachestring(&"MAPNAME_INTRO_1");
precachestring(&"MAPNAME_INTRO_2");
precachestring(&"MAPNAME_INTRO_3");
precachestring(&"MAPNAME_INTRO_4");


////PLAYER SETUP////

		level.player setViewmodel("xmodel/viewmodel_hands_german" );

		level.player takeallweapons(); 
		level.player giveWeapon("kar98k"); 
		level.player giveWeapon("luger");
		level.player giveWeapon("Stielhandgranate");
		level.player giveWeapon("smoke_grenade_american");

		level.player switchToWeapon("kar98k");
		level.player switchToOffhand("Stielhandgranate");


////////////////////////**** OBJECTIVES ****////////////////////////



objective_1()
{

objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
objective_current (1);
a = getent("start_music","targetname");
a playsound( "soviet_tension_fragment01" );
level.officer waittill("death");
wait(1);
objective_state(1, "done");
maps\_utility::levelStartSave();
wait(2);
thread objective_2();

}



Any ideas?
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 17, 2011 06:38 pm
Quote:
level.player switchToOffhand("Stielhandgranate");


////////////////////////**** OBJECTIVES ****////////////////////////



objective_1()
{


you see whats missing?
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 17, 2011 06:40 pm
Zaphax writes...
Quote:
Any idea why i get this cant find anything wrong with my script!? [duh][read] Thanks to everyone who will try to help me solve it.



Code:

#include maps\_utility;

#include maps\_anim;

#using_animtree("generic_human");

main()
{

////LOAD MAIN FILES////

	maps_load::main();
	mapsMAPNAME_fx::main();
ambientPlay("ambient_mapname");


////ENVIRONMENT////

setExpFog(.00028, .60, .60 , .61, 0);


////INTRO SCREEN////

maps\_introscreen::introscreen_delay
(&"MAPNAME_INTRO_1",
&"MAPNAME_INTRO_2",
&"MAPNAME_INTRO_3",
&"MAPNAME_INTRO_4");


////PRECACHING////

precachestring(&"MAPNAME_INTRO_1");
precachestring(&"MAPNAME_INTRO_2");
precachestring(&"MAPNAME_INTRO_3");
precachestring(&"MAPNAME_INTRO_4");


////PLAYER SETUP////

		level.player setViewmodel("xmodel/viewmodel_hands_german" );

		level.player takeallweapons(); 
		level.player giveWeapon("kar98k"); 
		level.player giveWeapon("luger");
		level.player giveWeapon("Stielhandgranate");
		level.player giveWeapon("smoke_grenade_american");

		level.player switchToWeapon("kar98k");
		level.player switchToOffhand("Stielhandgranate");


////////////////////////**** OBJECTIVES ****////////////////////////



objective_1()
{

objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
objective_current (1);
a = getent("start_music","targetname");
a playsound( "soviet_tension_fragment01" );
level.officer waittill("death");
wait(1);
objective_state(1, "done");
maps\_utility::levelStartSave();
wait(2);
thread objective_2();

}



Any ideas?


Code:
#include maps\_utility;


#include maps\_anim;


#using_animtree("generic_human");

main()
{

	////LOAD MAIN FILES////
	maps_load::main();
	mapsMAPNAME_fx::main();
	ambientPlay("ambient_mapname");


	////ENVIRONMENT////

	setExpFog(.00028, .60, .60 , .61, 0);


	////INTRO SCREEN////

	maps\_introscreen::introscreen_delay
	(&"MAPNAME_INTRO_1",
	&"MAPNAME_INTRO_2",
	&"MAPNAME_INTRO_3",
	&"MAPNAME_INTRO_4");


	////PRECACHING////

	precachestring(&"MAPNAME_INTRO_1");
	precachestring(&"MAPNAME_INTRO_2");
	precachestring(&"MAPNAME_INTRO_3");
	precachestring(&"MAPNAME_INTRO_4");


	////PLAYER SETUP////

	level.player setViewmodel("xmodel/viewmodel_hands_german" );

	level.player takeallweapons(); 
	level.player giveWeapon("kar98k"); 
	level.player giveWeapon("luger");
	level.player giveWeapon("Stielhandgranate");
	level.player giveWeapon("smoke_grenade_american");

	level.player switchToWeapon("kar98k");
	level.player switchToOffhand("Stielhandgranate");


	////////////////////////**** OBJECTIVES ****////////////////////////
}



objective_1()
{

	objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
	objective_current (1);
	a = getent("start_music","targetname");
	a playsound( "soviet_tension_fragment01" );
	level.officer waittill("death");
	wait(1);
	objective_state(1, "done");
	maps\_utility::levelStartSave();
	wait(2);
	thread objective_2();

}
Share |
Zaphax
General Member
Since: Jun 17, 2008
Posts: 251
Last: Dec 29, 2013
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 18, 2011 11:49 am
It solved my problem but now i got this one

Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 18, 2011 01:46 pm
maps\_load::main();
maps\_yourMapName_fx::main();
Share |
Zaphax
General Member
Since: Jun 17, 2008
Posts: 251
Last: Dec 29, 2013
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 18, 2011 09:04 pm
Thanks

I dont get what i did wrong i did the hard part of the script but cant get the easy part to work i had this part working before when i used to make my older maps, [confused]

Share |
Zaphax
General Member
Since: Jun 17, 2008
Posts: 251
Last: Dec 29, 2013
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 18, 2011 09:05 pm
There aren't any SP .gsc or any .IWD file explanation for SP hard to find it...

SP is easier then MP i can say
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 18, 2011 09:53 pm
xD

iw_07.iwd maps, there are all sp/mp gsc files..

and btw:
why the hell you always use maps_mp maps_utility
it is maps\mp and maps\_utility

and in the error messages there is always the explanation why it is wrong

in the last one you posted there is "could not find maps_utility"
because you included #include maps_utility;
but do you have a gsc out of any folder called maps_utility? i dont think so

but these are only smaller and simple errors
so good luck
Share |
cskiller86
General Member
Since: Nov 23, 2009
Posts: 528
Last: Oct 25, 2011
[view latest posts]
Level 6
Category: CoD2 SP Mapping
Posted: Friday, Aug. 19, 2011 03:53 pm
There was an error in the forum and sometimes the slash did not appear. He probably copied the code without the slashes.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

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

»