Changeset 087498f062c5030bbd246e42f13a11c90f15e810

Show
Ignore:
Timestamp:
09/09/07 16:40:08 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1189348808 +0200
git-parent:

[637194c57b175f8db11274472536bb99e6bd86e0]

git-author:
Christopher Jung <bktheg@web.de> 1189348808 +0200
Message:

Weitere Konsistenzpruefungen bei Items ergaenzt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/config/IEModule.java

    rd499c3e r087498f  
    7676                NodeList nodes = XMLUtils.getNodesByXPath(effectNode, "slot"); 
    7777                for( int i=0, length=nodes.getLength(); i < length; i++ ) { 
    78                         slots.add(XMLUtils.getStringAttribute(nodes.item(i), "id")); 
     78                        final String slot = XMLUtils.getStringAttribute(nodes.item(i), "id"); 
     79                        if( ModuleSlots.get().slot(slot) == null ) { 
     80                                throw new Exception("Item-Effekt Modul: Ungueltige Slot-ID '"+slot+"'"); 
     81                        } 
     82                        slots.add(slot); 
    7983                } 
    8084                 
  • src/net/driftingsouls/ds2/server/ships/ShipTypeChangeset.java

    rc62d407 r087498f  
    7979        public ShipTypeChangeset(Node node) { 
    8080                final String NAMESPACE = "http://www.drifting-souls.net/ds2/shipdata/2006"; 
     81                boolean found = false; 
    8182                 
    8283                NodeList nodes = node.getChildNodes(); 
     
    9192                                continue; 
    9293                        } 
     94                         
     95                        found = true; 
    9396                         
    9497                        String name = item.getLocalName(); 
     
    216219                                throw new RuntimeException("Unbekannte Changeset-Eigenschaft '"+name+"'"); 
    217220                        } 
     221                } 
     222                 
     223                if( !found ) { 
     224                        throw new RuntimeException("Keine Shiptype-Changeset-Informationen vorhanden"); 
    218225                } 
    219226        } 
  • web/WEB-INF/cfg/boot.xml

    r47c6b21 r087498f  
    2222        <boot class="net.driftingsouls.ds2.server.config.Systems" type="static" /> 
    2323        <boot class="net.driftingsouls.ds2.server.config.ResourceConfig" type="static" /> 
     24        <boot class="net.driftingsouls.ds2.server.config.ModuleSlots" type="static" /> 
    2425        <boot class="net.driftingsouls.ds2.server.config.Items" type="static" /> 
    2526        <boot class="net.driftingsouls.ds2.server.config.Weapons" type="static" /> 
    26         <boot class="net.driftingsouls.ds2.server.config.ModuleSlots" type="static" /> 
    2727        <boot class="net.driftingsouls.ds2.server.config.Medals" type="static" /> 
    2828        <boot class="net.driftingsouls.ds2.server.config.Faction" type="static" />