Author |
Topic: Script errors |
Torq2 |
General Member Since: Dec 28, 2012 Posts: 50 Last: May 23, 2015 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Saturday, May. 25, 2013 08:06 pm |
|
Hi,
Could someone please help me with these script errors. after battling uphill for the last few months with a map, I am now getting near completion. My map has compiled and run lots of times and works fine.
However, I decided to add a minimap and put the origin things in the corners. I then compiled and ticked the "enable developer script" box. First problem it says it can't find the create_fx/mp_mymap_fx file. So I deleted the origin things and recompiled, still the same problem. I then unticked the box and recompiled. Everything should have been back to normal, but no. Now it can't find the teleport file. So I disabled teleports thinking it would now run. But nooooo, now it can't find the rotate file. It seems that as I disable each thing it finds something else it doesn't like. Funny thing, it liked them before.
How anyone gets a map finished and running is beyond me. Actually why anyone wants to build a map is beyond me. Every single thing about making a map is an uphill struggle. When you finally get something working it finds something else to screw you with.
Radiant was not made to make maps with, it is a plot to increase the suicide rate amongst the male population...rant over.
Does anyone know what the problem is....pleeeeeeease...
|
|
|
|
BlindSniper |
General Member Since: Aug 22, 2008 Posts: 45 Last: May 29, 2013 [view latest posts] |
|
|
|
Torq2 |
General Member Since: Dec 28, 2012 Posts: 50 Last: May 23, 2015 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 26, 2013 04:38 pm |
|
I don't think that it is a script error as such, the scripts were running fine until I started the minimap thing.
However, just in case here thiey are....
GSC...
main()
{
maps\mp\mp_tower4_fx::main();
//maps\createart\mp_tower4_art::main();
maps\mp\_load::main();
maps\mp\_teleport::main();
maps\mp\mp_tower4_rotate::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_tower4");
setExpFog(200, 1200, 0.36, 0.56, 0.74, 0.7);
//VisionSetNaked( "mp_tower4" );
ambientPlay("ambient_middleeast_ext");
game["allies"] = "marines";
game["axis"] = "opfor";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "desert";
game["axis_soldiertype"] = "desert";
setdvar( "r_specularcolorscale", "1" );
setdvar("r_glowbloomintensity0",".1");
setdvar("r_glowbloomintensity1",".1");
setdvar("r_glowskybleedintensity0",".1");
setdvar("compassmaxrange","1400");
}
FX,,
main()
{
level._effect["bird_seagull_flock_large"] = loadfx ("misc/bird_seagull_flock_large");
level._effect[ "cloud_bank_near" ] = loadfx ( "weather/jeepride_cloud_bank_far" );
level._effect["fog_bog_a"] = loadfx ("weather/fog_bog_a");
level._effect["smoke"] = loadfx ("smoke/steam_large_vent");
/#
if ( getdvar( "clientSideEffects" ) != "1" )
maps\createfx\mp_tower4_fx::main();
maps\mp\_fx::loopfx("smoke", (35.7, -1128.8, -392.8), 3);
#/
}
Rotate...
main()
{
rotate_obj = getentarray("rotate","targetname");
if(isdefined(rotate_obj))
for(i=0;i
rotate_obj thread ra_rotate();
}
ra_rotate()
{
if (!isdefined(self.speed))
self.speed = 10;
if (!isdefined(self.script_noteworthy))
self.script_noteworthy = "z";
for(;;)
{
// rotateYaw(float rot, float time, , );
if (self.script_noteworthy == "z")
self rotateYaw(360,self.speed);
else if (self.script_noteworthy == "x")
self rotateRoll(360,self.speed);
else if (self.script_noteworthy == "y")
self rotatePitch(360,self.speed);
wait (self.speed-0.1); // removes the slight hesitation that waittill("rotatedone"); gives.
// self waittill("rotatedone");
}
} |
|
|
|
3st0nian |
|
General Member Since: Jan 14, 2008 Posts: 291 Last: Dec 4, 2017 [view latest posts] |
|
|
|
|
Torq2 |
General Member Since: Dec 28, 2012 Posts: 50 Last: May 23, 2015 [view latest posts] |
|
|
|
BlindSniper |
General Member Since: Aug 22, 2008 Posts: 45 Last: May 29, 2013 [view latest posts] |
|
|
|
DeekCiti |
|
General Member Since: Mar 13, 2008 Posts: 1293 Last: Jul 9, 2016 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Monday, May. 27, 2013 03:11 am |
|
Torq2 writes...Quote: Yes they are in there a half dozen times...makes no difference.
When I tick enable developer script box, I get the cannot find create_fx etc. When I untick box I get teleport error. If I comment these it then goes to cannot find rotate.
All of this was working fine yesterday before I put the origins in.
Is there a reason you need to tick Enable developer script?
The create fx error is a common error and should be ignored. It is simply Radiant being stupid. It happens because it is looking for a line that does not exist, something such as //CREATE FX GENERATED DO NOT TOUCH. Like I said, just simply ignore this error.
As for the "teleport" or "rotate", how would any of us know what that even is if you didn't post it. Also, you should keep your scripts separate from your main maps GSC file that has all your main map data/settings in it, such as, setting the teams and calling global scripts. You should have a separate script that houses your FX, and your teleport, which the script is called from inside the file you posted. just like you are calling your teleport scrip separately. These are simple ways too keep errors confined and easier to manage, along with simple file management. If you need help getting this organised or one on one solvent, just PM me and we can gather a time and day. |
|
|
|
3st0nian |
|
General Member Since: Jan 14, 2008 Posts: 291 Last: Dec 4, 2017 [view latest posts] |
|
|
|
|
Torq2 |
General Member Since: Dec 28, 2012 Posts: 50 Last: May 23, 2015 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Monday, May. 27, 2013 03:55 pm |
|
Thanks Sniper, I'm not sure why that is different, the things were rotating ok with this file. I have changed it now so maybe it might fix the problem.
Deek, in the tut I was using for the minimap, it said to tick that box.
http://modsonline.com/Tutorials-read-483.html
It was after I did that the problems started. I can't ignore the create_fx because it is now stopping my map from running. I get the error when I try to start the game. If I untick it I get the other fx files as errors, and the game won't start. The scripts are in different files, I just posted them togther on here.
I think that I do need help to finish this map,I have read different tuts and I am still confused as to how to do it. I will pm you.
|
|
|
|
Torq2 |
General Member Since: Dec 28, 2012 Posts: 50 Last: May 23, 2015 [view latest posts] |
|
|
|