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

Members Online

»
0 Active | 88 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 subscribe
Author Topic: rotate script error
Jednite
General Member
Since: Jul 16, 2007
Posts: 226
Last: Jul 26, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Jul. 24, 2007 01:17 am
Ok, I tried using that rotating script that was used by someone else here, I don't remember who:

anyway, apparently this worked for them, but it won't work for me.

here is my error:
Code:
CoD2 MP 1.2 build win-x86 Mar 30 2006
----- FS_Startup -----
Current language: english
Current search path:
C:\Program Files\Activision\Call of Duty 2\main\pst_snipe_town_v2.iwd (16 files)
C:\Program Files\Activision\Call of Duty 2\main\mtl_the_rock.iwd (25 files)
C:\Program Files\Activision\Call of Duty 2\main\mtl_hobbiton.iwd (35 files)
C:\Program Files\Activision\Call of Duty 2\main\mp_map2.iwd (20 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_15.iwd (84 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_14.iwd (4038 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_13.iwd (22624 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_12.iwd (1016 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_11.iwd (1462 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_10.iwd (1936 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_09.iwd (2142 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_08.iwd (2723 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_07.iwd (3384 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_06.iwd (990 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_05.iwd (928 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_04.iwd (698 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_03.iwd (26 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_02.iwd (40 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_01.iwd (16 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_00.iwd (102 files)
C:\Program Files\Activision\Call of Duty 2/main
C:\Program Files\Activision\Call of Duty 2/raw
C:\Program Files\Activision\Call of Duty 2/raw_shared
C:\Program Files\Activision\Call of Duty 2/devraw
C:\Program Files\Activision\Call of Duty 2/devraw_shared
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw11.iwd (1 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw10.iwd (414 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw09.iwd (98 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw08.iwd (8 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw07.iwd (1014 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw06.iwd (3110 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw05.iwd (5310 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw04.iwd (6240 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw03.iwd (6580 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw02.iwd (6404 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw01.iwd (5510 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw00.iwd (4764 files)
    localized assets iwd file for english

File Handles:
----------------------
81758 files in iwd files
logfile opened on Mon Jul 23 20:16:39 2007

execing default_mp.cfg
couldn't exec language.cfg
execing players/Statitistic/config_mp.cfg
Measured CPU speed is 2.21 GHz
System memory is 1023 MB (capped at 1 GB)
Video card is "NVIDIA GeForce 7900 GT/GTO"
Streaming SIMD Extensions (SSE) supported

Winsock Initialized
Opening IP socket: localhost:28960
Hostname: kyle
IP: 172.16.0.1
IP: 192.168.1.100
Resolving AutoUpdate Server... 63.146.124.11:28960
----- Initializing Renderer ----
-------------------------------
----- Client Initialization -----
----- Client Initialization Complete -----
----- R_Init -----
Getting Direct3D 9 interface...
Pixel shader version is 3.0
Vertex shader version is 3.0
Direct3D 7 code path is available.
Direct3D 9 code path is available.
Using Direct3D 9 code path because it is the best available path on this hardware.
Attempting 1024 x 768 fullscreen with 32 bpp at 100 hz
Game window successfully created.
Creating Direct3D device...
Com_TouchMemory: 0 msec. Using sum: 0
Initializing render targets...
Requested frame buffer to be 24-bit color with 8-bit alpha
DirectX returned a frame buffer that is 24-bit color with 8-bit alpha
Initializing static model cache...
Initializing dynamic buffers...
Initializing particle cloud buffer...
Creating Direct3D queries...
Setting initial state...
DirectX reports 256 MB of video memory and 545 MB of available texture memory.
Using video memory size to cap used texture memory at 240 MB.
Texture detail is set automatically.
Using picmip 0 on most textures, 0 on normal maps, and 1 on specular maps

------- sound system initialization -------
Attempting 22 kHz 16 bit stereo sound
available 3D providers:
  Aureal A3D Interactive (TM)
  Aureal A3D 2.0 (TM)
  DirectSound3D Software Emulation
  DirectSound3D Hardware Support
  DirectSound3D 7+ Software - Pan and Volume
  DirectSound3D 7+ Software - Light HRTF
  DirectSound3D 7+ Software - Full HRTF
  Creative Labs EAX 3 (TM)
  Creative Labs EAX 2 (TM)
  Creative Labs EAX (TM)
  RAD Game Tools RSX 3D Audio
  Dolby Surround
  Miles Fast 2D Positional Audio
using 3D provider 'Miles Fast 2D Positional Audio'
32 max 3D channels
------- sound system successfully initialized -------
--- Common Initialization Complete ---
ERROR: Couldn't find material 'sequence'
WARNING: Could not find material 'sequence'
ERROR: Couldn't find material 'vol_min'
WARNING: Could not find material 'vol_min'
ERROR: Couldn't find material 'pitch_min'
WARNING: Could not find material 'pitch_min'
ERROR: Couldn't find material 'dist_min'
WARNING: Could not find material 'dist_min'
ERROR: Couldn't find material 'channel'
WARNING: Could not find material 'channel'
------ Server Initialization ------
Server: mp_map3
----- FS_Startup -----
Current language: english
Current search path:
C:\Program Files\Activision\Call of Duty 2\main\pst_snipe_town_v2.iwd (16 files)
C:\Program Files\Activision\Call of Duty 2\main\mtl_the_rock.iwd (25 files)
C:\Program Files\Activision\Call of Duty 2\main\mtl_hobbiton.iwd (35 files)
C:\Program Files\Activision\Call of Duty 2\main\mp_map2.iwd (20 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_15.iwd (84 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_14.iwd (4038 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_13.iwd (22624 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_12.iwd (1016 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_11.iwd (1462 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_10.iwd (1936 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_09.iwd (2142 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_08.iwd (2723 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_07.iwd (3384 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_06.iwd (990 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_05.iwd (928 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_04.iwd (698 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_03.iwd (26 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_02.iwd (40 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_01.iwd (16 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_00.iwd (102 files)
C:\Program Files\Activision\Call of Duty 2/main
C:\Program Files\Activision\Call of Duty 2/raw
C:\Program Files\Activision\Call of Duty 2/raw_shared
C:\Program Files\Activision\Call of Duty 2/devraw
C:\Program Files\Activision\Call of Duty 2/devraw_shared
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw11.iwd (1 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw10.iwd (414 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw09.iwd (98 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw08.iwd (8 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw07.iwd (1014 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw06.iwd (3110 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw05.iwd (5310 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw04.iwd (6240 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw03.iwd (6580 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw02.iwd (6404 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw01.iwd (5510 files)
    localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw00.iwd (4764 files)
    localized assets iwd file for english

File Handles:
handle 1: console_mp.log
----------------------
163516 files in iwd files
----- R_Init -----
DirectX reports 256 MB of video memory and 545 MB of available texture memory.
Using video memory size to cap used texture memory at 240 MB.
Texture detail is set automatically.
Using picmip 0 on most textures, 0 on normal maps, and 1 on specular maps
ERROR: Couldn't find material 'loadscreen_mp_map2'
WARNING: Could not find material 'loadscreen_mp_map2'
	Loading 'ui_mp/main.menu'...
ERROR: Couldn't find material 'ui/assets/gradientbar2.tga'
WARNING: Could not find material 'ui/assets/gradientbar2.tga'
Error: file ui_mp/main.menu, line 919: can't read token
	Loading 'ui_mp/options.menu'...
	Loading 'ui/options_look.menu'...
	Loading 'ui/options_move.menu'...
	Loading 'ui/options_shoot.menu'...
	Loading 'ui/options_misc.menu'...
	Loading 'ui/options_graphics.menu'...
	Loading 'ui/options_game.menu'...
	Loading 'ui/options_sound.menu'...
	Loading 'ui/options_view.menu'...
	Loading 'ui_mp/options_voice.menu'...
	Loading 'ui/options_defaults.menu'...
	Loading 'ui/options_credits.menu'...
	Loading 'ui/options_control_defaults.menu'...
	Loading 'ui/options_graphics_defaults.menu'...
	Loading 'ui_mp/options_multi.menu'...
	Loading 'ui/playerprofile.menu'...
	Loading 'ui_mp/vid_restart.menu'...
	Loading 'ui/language_restart.menu'...
	Loading 'ui/snd_restart.menu'...
	Loading 'ui/rec_restart.menu'...
	Loading 'ui/quit.menu'...
	Loading 'ui/error.menu'...
	Loading 'ui_mp/multi.menu'...
ERROR: Couldn't find material 'ui/assets/fadebox.tga'
WARNING: Could not find material 'ui/assets/fadebox.tga'
	Loading 'ui_mp/joinserver.menu'...
	Loading 'ui_mp/createserver.menu'...
	Loading 'ui_mp/pb_popmenus.menu'...
	Loading 'ui_mp/cdkey.menu'...
	Loading 'ui_mp/mods.menu'...
	Loading 'ui_mp/connect.menu'...
WARNING: Could not find material '$levelbriefing'
	Loading 'ui_mp/password.menu'...
	Loading 'ui_mp/single_player.menu'...
	Loading 'ui_mp/serverinfo.menu'...
	Loading 'ui_mp/createfavorite.menu'...
	Loading 'ui_mp/filter.menu'...
	Loading 'ui_mp/in_rec_restart.menu'...
	Loading 'ui_mp/auto_update.menu'...
	Loading 'ui_mp/settings_dm.menu'...
Menu load error: ui_mp/settings_dm.menu, line 83: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 84: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 105: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 106: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_tdm.menu'...
Menu load error: ui_mp/settings_tdm.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_ctf.menu'...
Menu load error: ui_mp/settings_ctf.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_hq.menu'...
Menu load error: ui_mp/settings_hq.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_sd.menu'...
	Loading 'ui_mp/settings_sw.menu'...
	Loading 'ui_mp/background.menu'...
ERROR: Couldn't find material 'sequence'
WARNING: Could not find material 'sequence'
ERROR: Couldn't find material 'vol_min'
WARNING: Could not find material 'vol_min'
ERROR: Couldn't find material 'pitch_min'
WARNING: Could not find material 'pitch_min'
ERROR: Couldn't find material 'dist_min'
WARNING: Could not find material 'dist_min'
ERROR: Couldn't find material 'channel'
WARNING: Could not find material 'channel'
	Loading 'ui_mp/ingame.menu'...
	Loading 'ui_mp/ingame_controls.menu'...
	Loading 'ui_mp/ingame_options.menu'...
	Loading 'ui_mp/ingame_system.menu'...
	Loading 'ui_mp/ingame_leave.menu'...
	Loading 'ui_mp/ingame_callvote.menu'...
	Loading 'ui_mp/wm_quickmessage.menu'...
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Mar 30 2006
----------------------
Game: G_SetupWeaponDef
----------------------
-----------------------------------

******* script runtime error *******
undefined is not an entity: (file 'maps/mp/rotate.gsc', line 11)
   door1 rotateYaw(360,speed);
   *
called from:
(file 'maps/mp/rotate.gsc', line 2)
 thread door1_rotate();
        *
called from:
(file 'maps/mp/mp_map3.gsc', line 6)
maps\mp\rotate::main();   //this calls up the rotate.gsc
*
started from:
(file 'maps/mp/mp_map3.gsc', line 1)
main()
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_map3.gsc', line 1)




and here is my gsc:
Code:
main()
{
maps\mp\_load::main();
maps\mp\teleportenter::main();   //this calls up the teleportenter.gsc
maps\mp\elevator::main();   //this calls up the elevator.gsc
maps\mp\rotate::main();   //this calls up the rotate.gsc

setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");

game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

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

}


and here is my rotate.gsc:
Code:
main() {
 thread door1_rotate();
}

door1_rotate()
{
speed = 5; //change this value for rotation speed
door1 = getent("lift", "targetname");
 while (1)
 {
   door1 rotateYaw(360,speed);
   wait ((speed)-0.1);
   //removes the hesitation that waittill("rotatedone"); gives.
 }
}
Share |
-Ghost-
General Member
Since: Jun 21, 2006
Posts: 36
Last: Oct 31, 2007
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Tuesday, Jul. 24, 2007 02:44 am
Code:
main()
{
rotate_obj = getentarray("rotate","targetname");
if(isdefined(rotate_obj))
{
 for(i=0;i<rotate_obj.size;i++)
 {
  rotate_obj[i] thread ra_rotate();
 }
}
}

ra_rotate()
{
if (!isdefined(self.speed))
 self.speed = 5;
if (!isdefined(self.script_noteworthy))
 self.script_noteworthy = "x";

while(true)
{
 // rotateYaw(float rot, float time, <float acceleration_time>, <float deceleration_time>);
 if (self.script_noteworthy == "x")
  self rotateYaw(360,self.speed);
 wait ((self.speed)-0.1); // removes the slight hesitation that waittill("rotatedone"); gives.
 // self waittill("rotatedone");
}
}


this is what i used, and it works great if everything is named correctly in and out of game

edited on Jul. 23, 2007 10:45 pm by -Ghost-
Share |
Jednite
General Member
Since: Jul 16, 2007
Posts: 226
Last: Jul 26, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Tuesday, Jul. 24, 2007 02:59 am
what was your objects name? so I know what to edit.
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Tuesday, Jul. 24, 2007 03:33 am
Quote:
undefined is not an entity:


Means yor script cant find the entity named "lift" in the map
Share |
Restricted Access Topic is Locked 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

»