Author Topic: MY JVS content add-on is overwriting things  (Read 1616 times)

I just copypasted Content_PhydeouxMedieval add-on and did the necessary changes. Yet when I execute it, I get errors. The add-on works but I don't like the stuff it's writing to the console. Help?

Code: [Select]
Loading Add-On: Content_Titanic
Executing Add-Ons/Content_Titanic/server.cs.
Loading Add-On "JVS_Content"
Executing Add-Ons/JVS_Content/server.cs.
Activating package: JVS_Content
Executing Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs.
WARNING: RTBR_ServerControl_Hook.cs has moved. Please alter to use hooks/serverControl.cs
Refreshing JVS Content Restrictions (Adding restriction "Admin")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "BLIDAllow")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "BLIDDeny")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "MiniGame")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "TrustLevel1")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "TrustLevel2")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.
Refreshing JVS Content Restrictions (Adding restriction "TrustLevel3")
registerOutputEvent() - Output event "contentStop" already registered on class fxDTSBrick - overwriting.
registerOutputEvent() - Output event "contentStart" already registered on class fxDTSBrick - overwriting.

The rest executes normally.

maybe add some isFunction checks before you define the functions?

That shouldn't matter; it looks like it's just JVS reregistering it's events.


Not other JVS content add-on I have has this kind of console output.
Code: [Select]
Loading Add-On: Content_PhydeouxMedieval (CRC:191001275)
Executing Add-Ons/Content_PhydeouxMedieval/server.cs.
Executing Add-Ons/content_phydeouxMedieval/types/DoubleWoodenDoors.cs.
Executing Add-Ons/content_phydeouxMedieval/types/WoodenGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/WoodenGateDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/GrateGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/GrateDropGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/CircularGrate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/TrapDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor2.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor3.cs.
Executing Add-Ons/content_phydeouxMedieval/types/FenceGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/FenceGate2.cs.
Executing Add-Ons/content_phydeouxMedieval/types/ShojiDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/PullChainSwitch.cs.
Executing Add-Ons/content_phydeouxMedieval/types/PeggedWheelSwitch.cs.
Executing Add-Ons/content_phydeouxMedieval/types/LargeLeverSwitch.cs.
94 datablocks added.
« Last Edit: July 02, 2012, 04:29:17 AM by Demian »

Not other JVS content add-on I have has this kind of console output.
Code: [Select]
Loading Add-On: Content_PhydeouxMedieval (CRC:191001275)
Executing Add-Ons/Content_PhydeouxMedieval/server.cs.
Executing Add-Ons/content_phydeouxMedieval/types/DoubleWoodenDoors.cs.
Executing Add-Ons/content_phydeouxMedieval/types/WoodenGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/WoodenGateDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/GrateGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/GrateDropGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/CircularGrate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/TrapDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor2.cs.
Executing Add-Ons/content_phydeouxMedieval/types/BookshelfDoor3.cs.
Executing Add-Ons/content_phydeouxMedieval/types/FenceGate.cs.
Executing Add-Ons/content_phydeouxMedieval/types/FenceGate2.cs.
Executing Add-Ons/content_phydeouxMedieval/types/ShojiDoor.cs.
Executing Add-Ons/content_phydeouxMedieval/types/PullChainSwitch.cs.
Executing Add-Ons/content_phydeouxMedieval/types/PeggedWheelSwitch.cs.
Executing Add-Ons/content_phydeouxMedieval/types/LargeLeverSwitch.cs.
94 datablocks added.
Which one is executing first/last?

Why do you register events in your add-on? The JVS-specific events should already be provided from JVS_Content.

This is because your mod loads JVS when it starts. Can you post an entire console log?

Why do you register events in your add-on? The JVS-specific events should already be provided from JVS_Content.
I don't as far as I know. I just copypasted Phydeoux's add-on and changed the names to point to my models and such.

This is because your mod loads JVS when it starts. Can you post an entire console log?
I was going to before I noticed something fascinating. There is nothing wrong with my add-on. What ever is the first JVS add-ons alphabetically has this error/overwrites the events. The very same thing happened with JVS_PlungerSwitch and JVS_TheLegendsDoors. If I had them both enabled at once, only the plunger switch got the error because it was alphabetically the first JVS add-on to load. Come to think of it I faintly remember Trader saying something about this. The first loaded JVS add-on registers the events or something.

The first loaded JVS add-on registers the events or something.
Exactly.