• Willkommen im Geoclub - dem größten deutschsprachigen Geocaching-Forum. Registriere dich kostenlos, um alle Inhalte zu sehen und neue Beiträge zu erstellen.

Lost & Found - Attribute Icon

Kappler

Geowizard
Hi,

ich habe aktuell das Problem, dass ich beim Ulmer Mega-Event im Detail-Panel nichts ändern kann.
Soweit ich das durchprobiert habe, liegt das daran, dass für dieses Event das "Lost & Found" Attribut gesetzt ist, was wohl bisher vom Cachewolf noch nicht unterstützt wird.

Hier wird an folgender Stelle (Attribute.java):
Code:
    private static String getMsg(int cw_Id, int cw_Inc){
		if (cw_Inc==0)
			return MyLocale.getMsg(Integer.parseInt(attRef[cw_Id][MSG_NR])-1,"");
		else
			return MyLocale.getMsg(Integer.parseInt(attRef[cw_Id][MSG_NR]),"");
	}
eine Exception ausgelöst, da cw_Id den Wert -1 hat, was wohl für ein nicht unterstütztes Atribut steht.
An der Stelle, wo die Bilder ermittelt werden (getImage() in Attribute.java), wird dies abgefangen, hier aber nicht...

Es wäre sinnvoll, wenn jemand, der weiß, was er tut :eek:ps: ,
  • - Die Unterstützung für das Lost & Found Attribut mit einbaut
  • - Die obige Funktion um die Fehlerbehandlung (cw_Id = -1) erweitert

Danke...
 

arbor95

Geoguru
ach, da gibt es ein neues Attribut.

(Dafür haben wir im Filter keinen Platz mehr!)


Gib mal die GCxxxx für das Ulmer Event.

Im Prinzip musst du nur die Attributtabelle in attribute.java ( und dazu in den Sprachdateien neue Texte für das Attribut vorhanden / fehlen definieren ) erweitern.
 

MiK

Geoguru
Falls Du die ID noch brauchst:

Code:
      <groundspeak:attributes>
        <groundspeak:attribute id="30" inc="1">Picnic tables nearby</groundspeak:attribute>
        <groundspeak:attribute id="31" inc="1">Camping available</groundspeak:attribute>
        <groundspeak:attribute id="28" inc="1">Public restrooms nearby</groundspeak:attribute>
        <groundspeak:attribute id="6" inc="1">Recommended for kids</groundspeak:attribute>
        <groundspeak:attribute id="25" inc="1">Parking available</groundspeak:attribute>
        <groundspeak:attribute id="45" inc="1">Lost And Found Tour</groundspeak:attribute>
        <groundspeak:attribute id="41" inc="1">Stroller accessible</groundspeak:attribute>
      </groundspeak:attributes>
 
Oben