Author Topic: Entry does not agree with original entry type  (Read 1910 times)

0 Members and 1 Guest are viewing this topic.

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Entry does not agree with original entry type
Got a weapons table problem, IRC couldn't solve... so here I be.

Weapon for a Tachyon mod:

Code: [Select]
; Plasma Rocket
;
$Name:                                 @Plasma Rocket
$Subtype: Secondary
+Title:                                XSTR("Plasma Rocket", -1)
+Description:
XSTR("Plasma Rocket", 3382)
$end_multi_text
+Tech Title:    XSTR("Plasma Rocket", -1)
+Tech Anim:    Tech_Cyclops
+Tech Description:
XSTR("This rocket's warhead consists of plasma contained within a ripstar-generated gravity field. Sensors in the rocket detect when it is within a target's energy field at which time a detonation command is sent to the warhead. When the warhead explodes the plasma reacts violently with the target's energy field causing major damage to the ship's shields and moderate damage to the ship's hull. Depending on the ship hit the, damage to the shields can range from 50% to 80% of the ship's maximum shield energy. ", -1)
$end_multi_text
$Model File: belial.pof
$Mass: 0.1
$Velocity: 212.68
$Fire Wait: 0.6                                          ;; note, damage toned down until ai and turrets start shooting at bombs.
$Damage:                                8000                                                    ;; damage applied when within inner radius
$Blast Force: 0.2
$Inner Radius: 10.0 ;; radius at which damage is full (0 for impact only)
$Outer Radius: 20.0 ;; max radius for attenuated damage (0 for impact only)
$Shockwave Speed: 0                                          ;; velocity of shockwave.  0 for none.
$Armor Factor: 1.0
$Shield Factor: 1.0
$Subsystem Factor: 0.3
$Lifetime: 9.8974985 ;; temporary fix for problem locking onto big ships.
$Energy Consumed: 0.0
$Cargo Size: 1.0
$Homing: NO
$LaunchSnd: 165
$ImpactSnd: 88
$FlyBySnd: -1
$Rearm Rate: 1.0
$Flags: ( "in tech database" "player allowed" "cycle" "Particle Spew" )
$Trail:                                                                          ;; Trail cannot be set if Exhaust is set
+Start Width: 0.025                                       ;; Width of trail nearest missile
+End Width: 0.05                                      ;; Width of trail before it "evaporates"
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life:                          1.5                                       ;; how many seconds before trail disappears
+Bitmap: newmiss3 ;; Bitmap used to draw trail
$Icon:                                 PLASRCKT
$Anim:                                 belial
$Impact Explosion:                     ExpMissileHit1
$Impact Explosion Radius: 15.0
$Pspew:
+Count:           7
+Time:            100
+Vel:             0
+Radius:          0.2
+Life:            0.2
+Scale:           0.2
+Bitmap: ParticleSmoke01

Error -

Code: [Select]
Warning: Type of weapon Plasma Rocket entry does not agree with original entry type.
File: weapons.cpp
Line: 2111


Call stack:
------------------------------------------------------------------
    fs2_open_3_6_10d.exe 00920adc()
    fs2_open_3_6_10d.exe 0098c2c1()
    fs2_open_3_6_10d.exe 00923025()
    fs2_open_3_6_10d.exe 007334bc()
    fs2_open_3_6_10d.exe 0073fed9()
    fs2_open_3_6_10d.exe 0074024e()
    fs2_open_3_6_10d.exe 00c97bd6()
    fs2_open_3_6_10d.exe 00c97a5f()
    kernel32.dll 7c816fe7()
------------------------------------------------------------------


Ideas folks?
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Entry does not agree with original entry type
It means you're defining a secondary in the middle of the primaries list, probably. Or you're using a TBM to override one type with the other. Or something similar.

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
No TBMs. The primaries are in the first section of the tbl and secondaries separated into the second section.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Entry does not agree with original entry type
Are you sure you have #Primary Weapons and #Secondary Weapons defined in your weapons.tbl and that the Plasma Rocket is under #Secondary Weapons?

If yes, comment out $Subtype: Secondary, just a hunch.

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
Under secondary section...

Code: [Select]
#End

;=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
#Secondary Weapons

;;<<<<<<<<<<<<< BORA SECONDARY WEAPONS >>>>>>>>>>>>>>

;; ---------------------------------------------------------------------------------------------------
; Swarm
;
$Name: @Swarm
+Title: XSTR("Swarm Missile", 3333)
+Description:
XSTR(
"Prototype
Advanced Swarm Type
All-Purpose Missile
", 3334)
$end_multi_text
+Tech Title:    XSTR("Swarm Missile", 3335)
+Tech Anim:    Tech_Tornado
+Tech Description:
XSTR(
"Fired in salvos of four, the Swarm Missile is guided to its target by a sophisticated guidance system developed by Lorian Industrial Technologies. The Swarm Missile is more difficult for countermeasures to defeat as they rapidly close on their locked target. Each contains sufficient hydrazine to provide minor damage to shield and hull, but together in a salvo they result in a massively potent punch.", 3336)
$end_multi_text
$Model File: bombardier.pof
$Mass: 0.1
$Velocity: 173.825
$Fire Wait: 0.6
$Damage: 5500 ;; damage applied when within inner radius
$Blast Force: 0.2
$Inner Radius: 10.0 ;; radius at which damage is full (0 for impact only)
$Outer Radius: 20.0 ;; max radius for attenuated damage (0 for impact only)
$Shockwave Speed: 0                                          ;; velocity of shockwave.  0 for none.
$Armor Factor: 1.0
$Shield Factor: 1.0
$Subsystem Factor: 0.3
$Lifetime: 19.847547
$Energy Consumed: 0.0 ;; Energy used when fired
$Cargo Size: 1.0 ;; Amount of space taken up in weapon cargo
$Homing: YES
    ;; the following indented fields are only required when $Homing is YES
+Type: ASPECT ;; Legal: HEAT, ASPECT
+Turn Time: .50
+Min Lock Time: 2.0 ;; Minimum lock time (in seconds)
+Lock Pixels/Sec: 63              ;; Pixels moved per sec while locking
+Catch-up Pixels/Sec: 100 ;; Pixels moved per sec while catching up
+Catch-up Penalty: 30 ;; Extra pixels to move after catching up
$LaunchSnd: 172                                        ;; The sound it makes when fired
$ImpactSnd: 88                                        ;; The sound it makes when it hits something
$FlyBySnd: -1
$Rearm Rate: 1.0 ;; number of missiles/sec that are rearmed
$Flags: ( "Corkscrew" "cycle" "in tech database" "player allowed" "lockarm" )              ;;
$Trail:
+Start Width:          0.25                                      ;; Width of trail nearest missile
+End Width:            0.25                                        ;; Width of trail before it "evaporates"
+Start Alpha: 1.0 ;; The opacity of the trail head.
+End Alpha: 0.0 ;; The opacity of the trail tail.
+Max Life:              1.0                                      ;; how many seconds before trail disappears
+Bitmap: swarm1 ;; Bitmap used to draw trail
$Icon: MSLSWARM
$Anim: tornado
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 5.0
$Corkscrew:
+Num Fired: 4
+Radius: 1.25
+Fire Delay: 0
+Counter rotate: 1
+Twist: 3

;; ---------------------------------------------------------------------------------------------------
; Plasma Rocket
;
$Name:                                 @Plasma Rocket
$Subtype: Secondary ;; secondary mode - no one knows
+Title:                                XSTR("Plasma Rocket", -1)
+Description:
XSTR("Plasma Rocket", 3382)
$end_multi_text
+Tech Title:    XSTR("Plasma Rocket", -1)
+Tech Anim:    Tech_Cyclops
+Tech Description:
XSTR("This rocket's warhead consists of plasma contained within a ripstar-generated gravity field. Sensors in the rocket detect when it is within a target's energy field at which time a detonation command is sent to the warhead. When the warhead explodes the plasma reacts violently with the target's energy field causing major damage to the ship's shields and moderate damage to the ship's hull. Depending on the ship hit the, damage to the shields can range from 50% to 80% of the ship's maximum shield energy. ", -1)
$end_multi_text
$Model File: belial.pof
$Mass: 0.1
$Velocity: 212.68
$Fire Wait: 0.6                                          ;; note, damage toned down until ai and turrets start shooting at bombs.
$Damage:                                8000                                                    ;; damage applied when within inner radius
$Blast Force: 0.2
$Inner Radius: 10.0 ;; radius at which damage is full (0 for impact only)
$Outer Radius: 20.0 ;; max radius for attenuated damage (0 for impact only)
$Shockwave Speed: 0                                          ;; velocity of shockwave.  0 for none.
$Armor Factor: 1.0
$Shield Factor: 1.0
$Subsystem Factor: 0.3
$Lifetime: 9.8974985 ;; temporary fix for problem locking onto big ships.
$Energy Consumed: 0.0
$Cargo Size: 1.0
$Homing: NO
$LaunchSnd: 165
$ImpactSnd: 88
$FlyBySnd: -1
$Rearm Rate: 1.0
$Flags: ( "in tech database" "player allowed" "cycle" "Particle Spew" )
$Trail:                                                                          ;; Trail cannot be set if Exhaust is set
+Start Width: 0.025                                       ;; Width of trail nearest missile
+End Width: 0.05                                      ;; Width of trail before it "evaporates"
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life:                          1.5                                       ;; how many seconds before trail disappears
+Bitmap: newmiss3 ;; Bitmap used to draw trail
$Icon:                                 PLASRCKT
$Anim:                                 belial
$Impact Explosion:                     ExpMissileHit1
$Impact Explosion Radius: 15.0
$Pspew:
+Count:           7
+Time:            100
+Vel:             0
+Radius:          0.2
+Life:            0.2
+Scale:           0.2
+Bitmap: ParticleSmoke01

;; ---------------------------------------------------------------------------------------------------

Adding the comment didn't change the error.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Entry does not agree with original entry type
Hmmm... that warning should never pop up unless you have tbms in use.
Code: [Select]
else if(wip->subtype != WP_UNUSED && !first_time)
{
if(wip->subtype != subtype) {
Warning(LOCATION, "Type of weapon %s entry does not agree with original entry type.", wip->name);
}
}

Search for your active mod directories with wep.tbm files.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
Only TBM's I have on my whole drive are:
gate-shp.tbm
wepicons-wep.tbm
tractor-wep.tbm
shpicons-shp.tbm

The only one having a reference to the Plasma Rocket is in the icons file, nothing
odd about it there.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

  

Offline Qent

  • 29
Re: Entry does not agree with original entry type
I apologize if I'm being thick skulled here, but it appears from the second table you posted that you added a comment after the $Subtype line. "Comment out" essentially means to delete the line. The other thing that bugs me is the "cycle" flag. AFAIK it doesn't work for secondaries (since they cycle anyway).

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
Well when we had this in IRC, it was suggested to add the

$Subtype:  Secondary

Line, which so far hasn't shown to do anything. Also tried values of 1 and 0 on suggestion
and evidently it doesn't accept those.

So I've already tried it with and without the $Subtype line.

I can remove the cycle flag, although the problem existed before that was added.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Entry does not agree with original entry type
Create an empty text file names 'debug_filter.cfg' to the /freespace2/data/ (same where the log file is generated to) and then run a debug build. After you hit the issue upload the newly updated log file somewhere and lets have a look.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
debug_filter.cfg's contents after the error:

Quote
+General
+Parse
+BmpMan
+Paging
+Network
+Error
+BmpFastLoad
+Sound
+SEXP


fs2_open.log for kicks

http://pastebin.com/d752469c5

I would note that what is has to say about VPs, probably isn't entirely accurate.
I butchered the main VPs some time ago, combining them down to one VP and removing files
that were not needed since we're trying to shift to TC standalone. I don't play FS2 or it's mods.

Starting to think even though it saves a lot of file space for staff updates, I may be better off just replacing the VPs
until such time as things are more under control.
« Last Edit: August 18, 2009, 12:46:35 pm by JGZinv »
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Entry does not agree with original entry type
This is causing the issue... wepicons-wep.tbm

Make sure the weapon is not in wrong type (primary / secondary) in that tbm file
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Entry does not agree with original entry type
Ah ha, you got it.  :)

There was no secondaries section in that tbm, which you'd have thought
the other 4-5 rockets/missiles would have popped up the same message.

All fixed now, thanks a bunch, that was annoying.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod