Bug customBlockBehaviorConfig merge throws an exception

    Joined
    Nov 28, 2015
    Messages
    5
    Reaction score
    6
    • Community Content - Bronze 1
    Hi,

    In this latest update, after using the customBlockBehaviorConfig merge feature, my server continually throws exceptions due to:

    a) ./data/config/revertBlockBehaviorConfig.xml is no such file or dir

    b) HpConditionTriggerList has a negative or NaN <Amount> for one of the items during the merge, possibly on OVERHEATING/etc.

    No one is able to login during this / server is not up.
    Moving the customBlockBehaviorConfig.xml back to ./data/config/blockBehaviorConfig.xml seems to either avoid this issue during merging, and / or avoid merging period.

    Hope this helps,
    Thanks!

    A.P. :)
     
    Joined
    Feb 10, 2014
    Messages
    1
    Reaction score
    0
    • Legacy Citizen
    I get this (ConfigParserExcepion: HPConditionTriggerList -> Item; trigger amount must be a positive value in <Amount>)
    Now I know Im not the only one, I think the new merging system is broken. i HOPE theirs A hot fix soon.
     
    Joined
    Jun 27, 2013
    Messages
    896
    Reaction score
    166
    I've just tried merging a fresh customBlockBehaviorConfig.xml on a fresh install, with the same result.
    As soon as the first player connects, the server log gets spammed with this
    Code:
    20151211T142317UTC: java.io.FileNotFoundException: /home/starmade/StarMade/StarMade-0.19522/./data/config/revertBlockBehaviorConfig.xml (No such file or directory)
    20151211T142317UTC: at java.io.FileInputStream.open(Native Method)
    20151211T142317UTC: at java.io.FileInputStream.<init>(FileInputStream.java:146)
    20151211T142317UTC: at java.io.FileInputStream.<init>(FileInputStream.java:101)
    20151211T142317UTC: at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    20151211T142317UTC: at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:619)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
    20151211T142317UTC: at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
    20151211T142317UTC: at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
    20151211T142317UTC: at obfuscated.e.a(SourceFile:39)
    20151211T142317UTC: at org.schema.game.server.controller.GameServerController.c(SourceFile:2766)
    20151211T142317UTC: at org.schema.game.common.controller.elements.ManagerContainer.reparseBlockBehavior(SourceFile:255)
    20151211T142317UTC: at org.schema.game.common.controller.elements.ManagerContainer.<init>(SourceFile:155)
    20151211T142317UTC: at org.schema.game.common.controller.elements.StationaryManagerContainer.<init>(SourceFile:214)
    20151211T142317UTC: at org.schema.game.common.controller.elements.SpaceStationManagerContainer.<init>(SourceFile:9)
    20151211T142317UTC: at obfuscated.Qa.<init>(SourceFile:82)
    20151211T142317UTC: at obfuscated.anD.a(SourceFile:135)
    20151211T142317UTC: at obfuscated.aot.a(SourceFile:47)
    20151211T142317UTC: at obfuscated.aot.a(SourceFile:28)
    20151211T142317UTC: at org.schema.game.server.controller.GameServerController.update(SourceFile:1124)
    20151211T142317UTC: at org.schema.schine.network.server.ServerController.run(SourceFile:256)
    20151211T142317UTC: at java.lang.Thread.run(Thread.java:745)
    20151211T142317UTC: ON CLIENT: false
    20151211T142317UTC: java.lang.NullPointerException
    20151211T142317UTC: at org.schema.game.common.controller.elements.UsableElementManager.parse(SourceFile:149)
    20151211T142317UTC: at org.schema.game.common.controller.elements.ManagerContainer.reparseBlockBehavior(SourceFile:245)
    20151211T142317UTC: at org.schema.game.common.controller.elements.ManagerContainer.<init>(SourceFile:155)
    20151211T142317UTC: at org.schema.game.common.controller.elements.StationaryManagerContainer.<init>(SourceFile:214)
    20151211T142317UTC: at org.schema.game.common.controller.elements.SpaceStationManagerContainer.<init>(SourceFile:9)
    20151211T142317UTC: at obfuscated.Qa.<init>(SourceFile:82)
    20151211T142317UTC: at obfuscated.anD.a(SourceFile:135)
    20151211T142317UTC: at obfuscated.aot.a(SourceFile:47)
    20151211T142317UTC: at obfuscated.aot.a(SourceFile:28)
    20151211T142317UTC: at org.schema.game.server.controller.GameServerController.update(SourceFile:1124)
    20151211T142317UTC: at org.schema.schine.network.server.ServerController.run(SourceFile:256)
    20151211T142317UTC: at java.lang.Thread.run(Thread.java:745)
    repeated over and over again, until I manually kill the server process.
     

    Lancake

    Head of Testing
    Joined
    Aug 20, 2013
    Messages
    794
    Reaction score
    560
    • Schine
    • Tester
    Hm odd, I only picked out about 10 random values to change, and all of them merged fine.

    Just to clear things up first...
    Do NOT change the config in:
    - ./StarMade/data/config

    You're supposed to change the config name of
    customBlockBehaviorConfigTemplate.xml
    into
    customBlockBehaviorConfig.xml
    located in ./Starmade/customBlockBehaviorConfig

    Any changes you want to apply need to be put in that renamed file​

    However, could you upload and share your customBlockBehaviorConfig.xml with me?
     
    Joined
    Jun 27, 2013
    Messages
    896
    Reaction score
    166
    Hm odd, I only picked out about 10 random values to change, and all of them merged fine.

    Just to clear things up first...
    Do NOT change the config in:
    - ./StarMade/data/config

    You're supposed to change the config name of
    customBlockBehaviorConfigTemplate.xml
    into
    customBlockBehaviorConfig.xml
    located in ./Starmade/customBlockBehaviorConfig

    Any changes you want to apply need to be put in that renamed file​

    However, could you upload and share your customBlockBehaviorConfig.xml with me?
    starmadedock.net said:
    The following error occurred:
    The uploaded file does not have an allowed extension
    seriously?

    Anyway, here you are. I don't think I did any of the don'ts you posted, but I'll give it another go later, in another clean install...




    EDIT:
    Also, did you actually try to log in as a player? The server seems to start fine and appears to be well until the first login attempt.
     

    Attachments

    Last edited:

    Lancake

    Head of Testing
    Joined
    Aug 20, 2013
    Messages
    794
    Reaction score
    560
    • Schine
    • Tester
    seriously?

    Anyway, here you are. I don't think I did any of the don'ts you posted, but I'll give it another go later, in another clean install...




    EDIT:
    Also, did you actually try to log in as a player? The server seems to start fine and appears to be well until the first login attempt.
    Yeah i tried as player, it's the only way to confirm if the changes I did were applied in game ;)
    [DOUBLEPOST=1449862933,1449862581][/DOUBLEPOST]I just tried your customblockbehaviorconfig

    Works fine for my SP, probably your install is broken? Try removing all the configs and redownload it:

    the exceptions you get are related to the data/config/bockbehaviorconfig.xml. Do a force download all & overwrite
     
    Joined
    Nov 28, 2015
    Messages
    5
    Reaction score
    6
    • Community Content - Bronze 1
    Hm odd, I only picked out about 10 random values to change, and all of them merged fine.

    Just to clear things up first...
    Do NOT change the config in:
    - ./StarMade/data/config

    You're supposed to change the config name of
    customBlockBehaviorConfigTemplate.xml
    into
    customBlockBehaviorConfig.xml
    located in ./Starmade/customBlockBehaviorConfig

    Any changes you want to apply need to be put in that renamed file​

    However, could you upload and share your customBlockBehaviorConfig.xml with me?
    DOH! -- of course the file in data/config has to be the original copy, or there's no telling what kind of madness will occur during the merge.
    That makes complete sense, I'm a dork.