Author Topic: I need help with my new addon/script  (Read 841 times)

Hi, ive made an addon (my very first), i had finally completed it when i tried to try it while playing on single player. Anyway, I activated it in the addons menu on start a game. It appears in the Addon activation list, but when i try to spawn it I cant find it  :panda: .It is based off the Gun addon that comes with bl. I have changed the names including the ui.I would appreciate it if someone cold help, thank you.

Look in your console for any syntax errors, if there's syntax errors it won't be executed which would prevent the weapon from showing up in the wrench menu.

If there's a syntax error, post it here if you're not sure what's wrong :)

I'm sorry for the bump, but I can't find my Syntax error, and was hoping this thread would still be of use. Console Log follows:

Quote
//-------------------------- 7/29/2008 -- 10:30:20 -----
Processor Init:
   Intel Pentium 4, ~2.95 Ghz
     (timed at roughly 2.97 Ghz)
   FPU detected
   MMX detected
   SSE detected
 
Math Init:
   Installing Standard C extensions
   Installing Assembly extensions
   Installing FPU extensions
   Installing MMX extensions
   Installing SSE extensions
 
Input Init:
   keyboard0 input device created.
   mouse0 input device created.
   DirectInput enabled.

--------- Parsing Arguments ---------
Parsing command line arguments arguments:
--------- Loading Common ---------
Loading compiled script base/main.cs.
Loading compiled script base/client/defaults.cs.
Loading compiled script base/server/defaults.cs.
Executing base/config/client/prefs.cs.
Executing base/config/server/prefs.cs.
--------- Loading MODS ---------
Skipping mod: Add-Ons


--------- Initializing FPS ---------
Loading compiled script base/client/init.cs.
Loading compiled script base/server/init.cs.
Loading compiled script base/data/init.cs.
Loading compiled script base/client/canvas.cs.
Loading compiled script base/client/audio.cs.

--------- Initializing Base: Server ---------
Loading compiled script base/server/mainServer.cs.
Loading compiled script base/server/scripts/game.cs.

--------- Initializing Base: Client ---------
Loading compiled script base/client/message.cs.
Loading compiled script base/client/mission.cs.
Loading compiled script base/client/missionDownload.cs.
Loading compiled script base/client/actionMap.cs.
Video Init:
   Accelerated OpenGL display device detected.
   Voodoo 2 display device not detected.

Activating the OpenGL display device...
Activating the OpenGL display device... (NEW)
Setting screen mode to 1152x864x32@60hz (w)...
Creating a new window...
Acquiring a new device context...
Pixel format set:
  32 color bits, 24 depth bits, 8 stencil bits
Creating a new rendering context...
Making the new rendering context current...
OpenGL driver information:
  Vendor: NVIDIA Corporation
  Renderer: GeForce 8500 GT/PCI/SSE2
  Version: 2.1.1
OpenGL Init: Enabled Extensions
  ARB_multitexture (Max Texture Units: 4)
  EXT_compiled_vertex_array
  NV_vertex_array_range
  EXT_texture_env_combine
  EXT_packed_pixels
  EXT_fog_coord
  ARB_texture_compression
  EXT_texture_compression_s3tc
  (ARB|EXT)_texture_env_add
  EXT_texture_filter_anisotropi c (Max anisotropy: 16.000000)
  WGL_EXT_swap_control
  GL_ARB_vertex_buffer_object
  GL_EXT_multi_draw_arrays
  ARB_occlusion_query
OpenGL Init: Disabled Extensions
  EXT_paletted_texture
  3DFX_texture_compression_FXT1

Loading compiled script base/ui/defaultProfiles.cs.
Loading compiled script base/ui/customProfiles.cs.
Loading compiled script base/ui/ConsoleDlg.gui.
Loading compiled script base/ui/InspectDlg.gui.
Loading compiled script base/ui/InspectAddFieldDlg.gui.
Loading compiled script base/ui/LoadFileDlg.gui.
Loading compiled script base/ui/SaveFileDlg.gui.
Loading compiled script base/ui/MessageBoxOkDlg.gui.
Loading compiled script base/ui/MessageBoxYesNoDlg.gui.
Loading compiled script base/ui/MessageBoxOKCancelDlg.gui.
Loading compiled script base/ui/MessagePopupDlg.gui.
Loading compiled script base/ui/HelpDlg.gui.
Loading compiled script base/ui/RecordingsDlg.gui.
Loading compiled script base/ui/NetGraphGui.gui.
Loading compiled script base/client/metrics.cs.
Loading compiled script base/ui/FrameOverlayGui.gui.
Loading compiled script base/client/messageBox.cs.
Loading compiled script base/client/screenshot.cs.
Loading compiled script base/client/cursor.cs.
Loading compiled script base/client/help.cs.
Loading compiled script base/client/recordings.cs.

OpenAL Driver Init:
OpenAL
   Vendor: Creative Labs Inc.
   Version: OpenAL 1.0
   Renderer: Software
   Extensions: EAX 2.0, EAX 3.0, EAX Unified, and EAX-AC3

Loading compiled script base/client/scripts/allClientScripts.cs.
Loading compiled script base/client/ui/PlayGui.gui.
Loading compiled script base/client/ui/newPlayerListGui.gui.
Loading compiled script base/client/ui/trustInviteGui.gui.
Loading compiled script base/client/ui/miniGameInviteGui.gui.
Loading compiled script base/client/ui/JoinMiniGameGui.gui.
Loading compiled script base/client/ui/CreateMiniGameGui.gui.
Loading compiled script base/client/ui/mainMenuGui.gui.
Loading compiled script base/client/ui/aboutDlg.gui.
Loading compiled script base/client/ui/startMissionGui.gui.
Loading compiled script base/client/ui/joinServerGui.gui.
Loading compiled script base/client/ui/joinServerPassGui.gui.
Loading compiled script base/client/ui/connectingGui.gui.
Loading compiled script base/client/ui/loadingGui.gui.
Loading compiled script base/client/ui/optionsDlg.gui.
Loading compiled script base/client/ui/remapDlg.gui.
Loading compiled script base/client/ui/manualJoin.gui.
Loading compiled script base/client/ui/filtersGui.gui.
Loading compiled script base/client/ui/changeMapGui.gui.
Loading compiled script base/client/ui/noHudGui.gui.
Loading compiled script base/client/ui/ServerConfigGui.gui.
Loading compiled script base/client/scripts/default.bind.cs.
Executing base/config/client/config.cs.
Loading compiled script base/client/ui/adminGui.gui.
Loading compiled script base/client/ui/addBanGui.gui.
Loading compiled script base/client/ui/unBanGui.gui.
Loading compiled script base/client/ui/brickManGui.gui.
Loading compiled script base/client/ui/escapeMenu.gui.
Loading compiled script base/client/ui/adminLoginGui.gui.
Loading compiled script base/client/ui/printSelectorDlg.gui.
Loading compiled script base/client/ui/brickSelectorDlg.gui.
Loading compiled script base/client/ui/saveBricksGui.gui.
Loading compiled script base/client/ui/loadBricksGui.gui.
Loading compiled script base/client/ui/loadBricksColorGui.gui.
Loading compiled script base/client/ui/saveBricksWarningGui.gui.
Loading compiled script base/client/ui/AvatarGui.gui.
Loading compiled script base/client/ui/autoUpdateGui.gui.
Loading compiled script base/client/ui/newMessageHud.gui.
Loading compiled script base/client/ui/newChatHud.gui.
Loading compiled script base/client/ui/SelectNetworkGui.gui.
Loading compiled script base/client/ui/ProgressGui.gui.
Loading compiled script base/client/ui/fastLoadWarningGui.gui.
Loading compiled script base/client/ui/defaultControlsGui.gui.
Loading compiled script base/client/ui/savingGui.gui.
Loading compiled script base/client/ui/wrenchDlg.gui.
Loading compiled script base/client/ui/wrenchSoundDlg.gui.
Loading compiled script base/client/ui/wrenchVehicleSpawnDlg.gui.
Loading compiled script base/client/ui/keyGui.gui.
Loading compiled script base/client/ui/regNameGui.gui.
Loading compiled script base/client/ui/colorGui.gui.
Loading compiled script base/client/ui/colorSetGui.gui.
Loading compiled script base/client/ui/musicFilesGui.gui.
Loading compiled script base/client/ui/AddOnsGui.gui.
Loading compiled script base/client/ui/PortForwardInfoGui.gui.
Loading compiled script base/client/ui/demoBrickLimitGui.gui.
Loading compiled script base/client/scripts/clientAddOns.cs.
Executing Add-Ons/Client/WrenchEventsGUI.cs.
Executing Add-Ons/Client/wrencheventdlg.gui.
Executing Add-Ons/Client/wrencheventsetdlg.gui.
Executing Add-Ons/Client/ToolWand/ToolWand.cs.
Executing Add-Ons/Client/ToolWand/ToolWandGUI.gui.
Executing Add-Ons/Client/TeamsGUI.cs.
Executing Add-Ons/Client/Mod_JVS_Client.cs.
Executing add-ons/ADD_ON_LIST.cs.
JVS Mod :: Client :: Mods Init
Executing add-ons/jvs/clientmods.code.
JVS Mod :: Doors :: Client Init
Executing add-ons/jvs/doors/client.code.
JVS Mod :: Portals :: Client Init
Executing add-ons/jvs/portals/client.code.
Binding server port to default IP
UDP initialized on port 0
Executing base/config/client/prefs-trustList.cs.
Engine initialized...
Authentication: SUCCESS
Executing add-ons/ADD_ON_LIST.cs.
Add-Ons/Weapon_Sword.cs
Weapon_Sword
Add-Ons/Weapon_Spear.cs
Weapon_Spear
Add-Ons/Weapon_SniperRifle.cs
Weapon_SniperRifle
Add-Ons/Weapon_Shield.cs
Weapon_Shield
Add-Ons/Weapon_RPG Launcher.cs
Weapon_RPG Launcher
Add-Ons/Weapon_Rocket Launcher.cs
Weapon_Rocket Launcher
Add-Ons/Weapon_Push Broom.cs
Weapon_Push Broom
Add-Ons/Weapon_P90S.cs
Weapon_P90S
Add-Ons/Weapon_P90.cs
Weapon_P90
Add-Ons/Weapon_Minigun.cs
Weapon_Minigun
Add-Ons/Weapon_HEGrenade.cs
Weapon_HEGrenade
Add-Ons/Weapon_Gun.cs
Weapon_Gun
Add-Ons/Weapon_DualGun.cs
Weapon_DualGun
Add-Ons/Weapon_Chainsaw.cs
Weapon_Chainsaw
Add-Ons/Weapon_Bow.cs
Weapon_Bow
Add-Ons/Weapon_bomb1test.cs
Weapon_bomb1test
Add-Ons/Weapon_BarrettM82.cs
Weapon_BarrettM82
Add-Ons/Vehicle_U1.cs
Vehicle_U1
Add-Ons/Vehicle_StuntPlane.cs
Vehicle_StuntPlane
Add-Ons/Vehicle_Scooter.cs
Vehicle_Scooter
Add-Ons/Vehicle_MagicCarpet.cs
Vehicle_MagicCarpet
Add-Ons/Vehicle_Jeep.cs
Vehicle_Jeep
Add-Ons/Vehicle_Horse.cs
Vehicle_Horse
Add-Ons/Vehicle_FlyingWheeledJeep.cs
Vehicle_FlyingWheeledJeep
Add-Ons/Vehicle_CoveredWagon.cs
Vehicle_CoveredWagon
Add-Ons/Vehicle_BoxTruck.cs
Vehicle_BoxTruck
Add-Ons/Vehicle_Blockocar.cs
Vehicle_Blockocar
Add-Ons/Vehicle_Biplane.cs
Vehicle_Biplane
Add-Ons/Vehicle_Barrel.cs
Vehicle_Barrel
Add-Ons/Vehicle_Ball.cs
Vehicle_Ball
Add-Ons/Tool_WrenchRemote.cs
Tool_WrenchRemote
Add-Ons/tool_splitter.cs
tool_splitter
Add-Ons/Tool_Duplicator.cs
Tool_Duplicator
Add-Ons/ToolWand/Tool_ToolWand.cs
Tool_ToolWand
Add-Ons/TeamDMv4/GameMode_TeamDM_Base.cs
GameMode_TeamDM_Base
Add-Ons/Support_Scooter.cs
Support_Scooter
Add-Ons/Support_Jeep.cs
Support_Jeep
Add-Ons/Player_Quake.cs
Player_Quake
Add-Ons/Player_NoJet.cs
Player_NoJet
Add-Ons/Player_LeapJet.cs
Player_LeapJet
Add-Ons/Player_JumpJet.cs
Player_JumpJet
Add-Ons/Player_FuelJet.cs
Player_FuelJet
Add-Ons/Particle_Player.cs
Particle_Player
Add-Ons/Particle_FX Cans.cs
Particle_FX Cans
Add-Ons/Particle_Basic.cs
Particle_Basic
Add-Ons/Light_Basic.cs
Light_Basic
Add-Ons/Light_Animated.cs
Light_Animated
Add-Ons/JVS/Mod_JVS_Server.cs
Mod_JVS_Server
Add-Ons/Item_Skis.cs
Item_Skis
Add-Ons/Item_Pill.cs
Item_Pill
Add-Ons/Emote_Love.cs
Emote_Love
Add-Ons/Emote_Hate.cs
Emote_Hate
Add-Ons/Emote_Confusion.cs
Emote_Confusion
Add-Ons/Emote_Alarm.cs
Emote_Alarm
Add-Ons/Client/WrenchEventsGUI.cs
WrenchEventsGUI
Add-Ons/Client/ToolWand/ToolWand.cs
ToolWand
Add-Ons/Client/TeamsGUI.cs
TeamsGUI
Add-Ons/Client/Mod_JVS_Client.cs
Mod_JVS_Client
Add-Ons/ADD_ON_LIST.cs
Add-Ons/AddOn_WrenchEvents.cs
AddOn_WrenchEvents
Add-Ons/AddOn_TrapBricks.cs
AddOn_TrapBricks
Destroying NET Server
Exporting server prefs...
Starting Internet Server
Binding server port to default IP
UDP initialized on port 28000
Loading compiled script base/server/scripts/DamageTypes.cs.
Loading compiled script base/server/scripts/allGameScripts.cs.
... Shape with old version.
Loading compiled script base/data/shapes/player/player.cs.
Executing add-ons/ADD_ON_LIST.cs.
Executing Add-Ons/Weapon_bomb1test.cs.
Executing Add-Ons/Vehicle_U1.cs.
Executing Add-Ons/Support_Jeep.cs.
Executing Add-Ons/weapon_gun.cs.
Object 'HeliDebris' is not a member of the 'DebrisData' data block class
Executing Add-Ons/Vehicle_StuntPlane.cs.
Object 'stuntplaneTireEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneFoamDropletsEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneFoamEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneBurnEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneBurnEmitter' is not a member of the 'ParticleEmitterData' data block class
Executing Add-Ons/Vehicle_Jeep.cs.
Executing Add-Ons/Vehicle_Horse.cs.
Executing Add-Ons/Vehicle_CoveredWagon.cs.
Executing Add-Ons/Vehicle_BoxTruck.cs.
Object 'boxtruckExplosion' is not a member of the 'ExplosionData' data block class
Object 'boxtruckTireDebris' is not a member of the 'DebrisData' data block class
Executing Add-Ons/Vehicle_Blockocar.cs.
Executing Add-Ons/Vehicle_Biplane.cs.
Executing Add-Ons/Vehicle_Barrel.cs.
Executing Add-Ons/Vehicle_Ball.cs.
Executing Add-Ons/Tool_WrenchRemote.cs.
Executing Add-Ons/Tool_Duplicator.cs.
Executing Add-Ons/ToolWand/Tool_ToolWand.cs.
Loading Tool : Add-Ons/ToolWand/Tools/Default.e
Executing Add-Ons/ToolWand/Tools/Default.e.
Done
Executing Add-Ons/Support_Scooter.cs.
Executing Add-Ons/Support_Jeep.cs.
Executing Add-Ons/Player_Quake.cs.
Executing Add-Ons/Player_NoJet.cs.
Executing Add-Ons/Player_LeapJet.cs.
Executing Add-Ons/Player_JumpJet.cs.
Executing Add-Ons/Player_FuelJet.cs.
Executing Add-Ons/Particle_Player.cs.
Executing Add-Ons/Particle_FX Cans.cs.
Executing Add-Ons/Particle_Basic.cs.
Executing Add-Ons/Light_Basic.cs.
Executing Add-Ons/Light_Animated.cs.
Executing Add-Ons/JVS/Mod_JVS_Server.cs.
Executing add-ons/ADD_ON_LIST.cs.
JVS Mod :: Server :: Mods Init
Executing add-ons/jvs/servermods.code.
JVS Mod :: Doors :: Server Init
Executing add-ons/jvs/doors/server.code.
JVS Mod :: Portals :: Server Init
Executing add-ons/jvs/portals/server.code.
JVS Mod :: Server :: Preferences Init
Executing add-ons/jvs/serverprefs.code.
Executing Add-Ons/Item_Skis.cs.
Executing Add-Ons/Item_Pill.cs.
Executing Add-Ons/Emote_Love.cs.
Executing Add-Ons/Emote_Hate.cs.
Executing Add-Ons/Emote_Confusion.cs.
Executing Add-Ons/Emote_Alarm.cs.
Executing Add-Ons/Client/WrenchEventsGUI.cs.
Executing Add-Ons/Client/ToolWand/ToolWand.cs.
Executing Add-Ons/Client/ToolWand/ToolWandGUI.gui.
Executing Add-Ons/Client/Mod_JVS_Client.cs.
Executing add-ons/ADD_ON_LIST.cs.
JVS Mod :: Client :: Mods Init
Executing add-ons/jvs/clientmods.code.
JVS Mod :: Doors :: Client Init
Executing add-ons/jvs/doors/client.code.
JVS Mod :: Portals :: Client Init
Executing add-ons/jvs/portals/client.code.
Executing Add-Ons/AddOn_WrenchEvents.cs.
Executing Add-Ons/Weapon_Bow.cs.
Executing Add-Ons/Support_SpaceTick.cs.noexec.
Executing Add-Ons/AddOn_TrapBricks.cs.
Object 'color28paintexplosion' is not a member of the 'ExplosionData' data block class
Executing Base/config/server/musicList.cs.
*** LOADING MISSION: base/data/missions/bedroom.mis
*** Stage 1 load
Mission Name: Bedroom
Mission SaveName: Bedroom
Mission Description:
   Name: Bedroom
   Author: Eric Hartman
*** Stage 2 load
Executing base/data/missions/bedroom.mis.
*** Mission loaded
Posting to master server
Connect request from: IPX:54CDCC00:000000000000:0
  lan name = Blockhead
  net name = Yuki
Connection established 4751
AUTHCHECK: 4752
    LAN client connecting to internet server, authenticating with server ip
Auth Init Successfull: Yuki
CADD: 4752 local
 +- bl_id = 260
Syntax error in input.
 +- AUTO SUPER ADMIN
*** Sending mission load to client: base/data/missions/bedroom.mis
Posting to master server
*** New Mission: base/data/missions/bedroom.mis
*** Phase 1: Download Datablocks & Targets
Could not locate texture: Add-Ons/Shapes/black.blank (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/planeblue (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/white2 (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/*Ambient (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/boxtrucksidedecal (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/JVS/doors/shapes/blank (download failed, using default texture)
  +- using blank texture
*** Phase 2: Download Ghost Objects
Ghost Always objects received.
Client Replication Startup has Happened!
*** Phase 3: Mission Lighting
 Successfully loaded mission lighting file: 'base/data/missions/bedroom_c256c183.ml'
Mission lighting done
Executing base/config/client/Favorites.cs.
Activating DirectInput...
keyboard0 input device acquired.
keyboard0 input device unacquired.
keyboard0 input device acquired.
Exporting JVS Server Prefs...
Exporting server prefs
Exporting client prefs
Exporting client config
base/server/scripts/game.cs (453): Unable to find object: 'MissionCleanup' attempting to call function 'getCount'
CDROP: 4752 IPX:54CDCC00:000000000000:0
Shutting down the OpenGL display device...
Making the GL rendering context not current...
Deleting the GL rendering context...
Releasing the device context...
keyboard0 input device unacquired.

Code: [Select]


Object 'HeliDebris' is not a member of the 'DebrisData' data block class
Executing Add-Ons/Vehicle_StuntPlane.cs.
Object 'stuntplaneTireEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneFoamDropletsEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneFoamEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneBurnEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'stuntplaneBurnEmitter' is not a member of the 'ParticleEmitterData' data block class

Object 'boxtruckExplosion' is not a member of the 'ExplosionData' data block class
Object 'boxtruckTireDebris' is not a member of the 'DebrisData' data block class

Object 'color28paintexplosion' is not a member of the 'ExplosionData' data block class

Could not locate texture: Add-Ons/Shapes/black.blank (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/planeblue (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/white2 (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/*Ambient (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/Shapes/boxtrucksidedecal (download failed, using default texture)
  +- using blank texture
Could not locate texture: Add-Ons/JVS/doors/shapes/blank (download failed, using default texture)
  +- using blank texture

base/server/scripts/game.cs (453): Unable to find object: 'MissionCleanup' attempting to call function 'getCount'

In order of appearance...

None are relevent to my error, but never mind it anyway, I figured it out.