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

Members Online

»
0 Active | 69 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
Page
Previous Page
subscribe
Author Topic: What is wrong with this .gsc??!
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Tuesday, Nov. 24, 2009 07:25 pm
HELP ANYONE??? Is it so difficult to tell me what is the problem???? I wait like for day and no damn good answer chesus christ
Share |
jeannotvb
General Member
Since: Dec 8, 2007
Posts: 620
Last: Feb 1, 2010
[view latest posts]
Level 6
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Wednesday, Nov. 25, 2009 12:46 am
IvanFilip writes...
Quote:
BAD SYNTAX???

******* script compile error *******
bad syntax: (file 'maps/sptestmap.gsc', line 70)
if( !isDefined( level.sherman ) )
*

omg what the hell is happening with my map...chesus


Post your entire modified script and I'll take a look..
Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 11:16 am
i removed your part, jeannotvb, with (if!), so this is how it looks now

Code:
#include maps\_utility;


main()
{
	setExpFog(0.00015, 0.15, 0.14, 0.13, 0);
	setCullDist (4500);

	maps\_flak88::main("xmodel/german_artillery_flak88_nm");
	maps\_tiger::main("xmodel/vehicle_tiger_woodland_brush");
	maps\_sherman::main("xmodel/vehicle_american_sherman");
	maps\_load::main();
	maps\_mortarteam::main();
	maps\sptestmap_fx::main();
	ambientPlay("ambient_sptestmap");

	//thread firesound();
	thread tank_shoot();

	level.player takeallweapons();
	level.player giveWeapon("colt");

	level.player takeallweapons();
	level.player giveWeapon ("m1garand");
	level.player giveWeapon ("thompson");
	level.player giveWeapon ("fraggrenade");
	level.player switchToWeapon ("m1garand");

maps\_vehicle::scripted_spawn(1);

	// Playername: Multiple tank script
	// Alright, so, since we have more than one entity with the script_noteworthy of "vehicle" we use "getEntArray()"
	level.vehicle = getEntArray("vehicle", "script_noteworthy");

	// Now, level.vehicle is not an "array" of all of the entities, or tanks.
	// What I am going to do is "loop" through all of the tanks to start their paths.
	for(i=0;i<level.vehicle.size;i++)
	{
		vehicle = level.vehicle[i];
		
		path = getvehiclenode(vehicle.target, "targetname");

		vehicle attachPath(path);

		wait .5;

		vehicle startPath();

		vehicle waittill("reached_end_node");
		vehicle notify ("unload");
	}
}

tank_shoot()
{

sherman = getent ("sherman","targetname");

tank_shoot = getent ("tank_shoot","targetname");

sherman setTurretTargetEnt ( tank_shoot );
//i also tryed this with coordinates, not working

sherman waittill ("reached_end_node");

wait(3);

sherman FireTurret();

}

/*firesound()
{
	firesound = getent("bigfire","targetname"); 
	firesound PlayLoopSound("bigfire");
}*\
Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 05:51 pm
so whats the problem??
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 06:51 pm
It has been a long time since I mapped for cod2 and I never did a sp map for it but.....

Im looking at the very last line of your .gsc file and it closes with }*\.

I dont know but I never closed any of my .gsc files like that, mine always closed with just the }.


Dont know if that is causing a problem, suspect it might be, but something to think about.
Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 06:57 pm
i closed it like that beacuse i dont want my firesound in game so i closed it with /* and *\ instead commenting every line with //
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 08:32 pm
Ok, that makes sense but I still dont think that you are closing out the whole .gsc.


Any .gsc that I have made you still need to close out the file with }

Maybe still try it that way by putting the } under your }*\


Also noticed that on the tank_shoot() you dont have a ; at the end of it. Again, I dont know if it needs one but that could be a problem too.

Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 08:56 pm
Code:

/*firesound()
{
	firesound = getent("bigfire","targetname"); 
	firesound PlayLoopSound("bigfire");
}*\


Should be:

Code:

/*
firesound()
{
	firesound = getent("bigfire","targetname"); 
	firesound PlayLoopSound("bigfire");
}
*/
Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Nov. 28, 2009 09:55 pm
ill try out
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»