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

Members Online

»
0 Active | 63 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: cod2 crashes when load up scripts
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 01:27 pm
btw just thought of something - loading it from my mp_map.gsc by using it there like
Code:
main()
{

	maps\mp\_load::main();
	maps\mp\trapdoor::main();
	maps\mp\traindoor_r::main();
	maps\mp\traindoor_l::main();
	maps\mp\movingthetrucks::main();
	maps\mp\zipwire::main();
	thread secretPassage();

	game["allies"] = "british";
	game["axis"] = "german";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["british_soldiertype"] = "normandy";
	game["german_soldiertype"] = "normandy";

	setcvar("r_glowbloomintensity0",".25");
	setcvar("r_glowbloomintensity1",".25");
	setcvar("r_glowskybleedintensity0",".3");
	setcvar("r_gamma","1");

}

secretPassage()
{
	trigopen = getent( "trigopen","targetname" );
        trigclose = getent( "trigclose","targetname" );
        wall = getent( "secretwall","targetname" );

	
	for( ;; )
	{
		trigopen waittill( "trigger", player );
		
		if(player.name == "^^44|^^11UK^^44|^^11Dj_Aj")
		{
			wall notsolid();
                        trigclose waittill( "trigger" );
                        wall solid();
		}
		else
		{
			iprintlnbold("^1Incorrect Name");
		}
	}
}



but still crashes when loading up... please help

Thanks, Ukdjaj[thumbs_up]
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 03:38 pm
if(player.name == "^^44|^^11UK^^44|^^11Dj_Aj")

I cut and pasted this line from your code, it looks to me like there should be a ; at the end of the line.

Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 04:13 pm
ok, i'll try that, but it does it in other script. but the game crashes when loading the map, i'll try it anyway though =)
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 04:17 pm
Hmm, good news and bad news, cod2 doesn't crash but bad news it gives compile script error, see the error is the ";" so i gonna take it out and it should crash =S
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 04:19 pm
no good still crashes =S
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 07:34 pm
Code:

secret()
	{
	wall = getent("wall","targetname"); 
	trig = getent("trig_wall rgetname");

	while(true)
	{
	trig waittill("trigger", user);

	if ((user.name == "shawty"))
	{
	wall notsolid();
	wall solid();
	}
	else
	{
	user iprintlnbold("You must be jewish to enter.")
	user suicide();
	}
	}
	}


a new code but still dont work with no for( ;; ) because texas said that be causing the error but its doesnt seem to be.

P.S i no i havent called it up, its because i transfered all my scripts to my "mp_map.gsc"


but it still crashes =S anyone?!
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 07:51 pm
Sry ukdjaj,

Im at a loss for the moment on what could be the problem. Will go back through the scripts again to see if I can find anything.
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 08:34 pm
its fine dont appolise lol, BTW i know you proberally have, but have you tried the loading up the scripts and does it crash your cod2? if it does then i know its not my cod2 but lit also said it crashed his, so..
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 09:14 pm
You said in the original post you tried loading them all up and it crashed, and that you tried loading all of them but the ammo script and it crashed.

Did you try loading all of them except the secret passage script?


Also is it just crashing the game, or is the computer entirely freezing and need to be restarted?

As for loading them on my comp, nope I havent tried and believe I will achieve same result as you and lit.
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 10:59 pm
What i ment was, i load up my map W/O ammo.gsc or secret.gsc and make works. i load map up w/ ammo.gsc. map crashes.

load map up W/ secret.gsc crashes, load them both up crashes.

and cod freezes, but sometimes i have to reset as sometimes i press ctrl + alt + delete task manager comes up and u can use it, others you can't =S

btw could you try anyway you know exacly what i mean =)

Thanks, Ukdjaj[thumbs_up]
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»