mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
@@ -32,7 +32,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.sentry</groupId>
|
<groupId>io.sentry</groupId>
|
||||||
<artifactId>sentry-logback</artifactId>
|
<artifactId>sentry-logback</artifactId>
|
||||||
<version>5.7.0</version>
|
<version>7.14.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ public class ManaEffect extends SpellAbilityEffect {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("SA", sa.toString());
|
bread.setData("SA", sa.toString());
|
||||||
Sentry.addBreadcrumb(bread, sa);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2613,7 +2613,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", this.getName());
|
bread.setData("Card", this.getName());
|
||||||
bread.setData("Keyword", keyword);
|
bread.setData("Keyword", keyword);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
||||||
}
|
}
|
||||||
@@ -3184,7 +3184,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", this.getName());
|
bread.setData("Card", this.getName());
|
||||||
bread.setData("Keyword", keyword);
|
bread.setData("Keyword", keyword);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ public class CardCopyService {
|
|||||||
bread.setData("Card", copyFrom.getName());
|
bread.setData("Card", copyFrom.getName());
|
||||||
bread.setData("CardState", copyFrom.getCurrentStateName().toString());
|
bread.setData("CardState", copyFrom.getCurrentStateName().toString());
|
||||||
bread.setData("Player", copyFrom.getController().getName());
|
bread.setData("Player", copyFrom.getController().getName());
|
||||||
Sentry.addBreadcrumb(bread, copyFrom);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
final Card newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
final Card newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
||||||
cachedMap.put(copyFrom.getId(), newCopy);
|
cachedMap.put(copyFrom.getId(), newCopy);
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ public class CardFactoryUtil {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("Ability", rawAbility);
|
bread.setData("Ability", rawAbility);
|
||||||
Sentry.addBreadcrumb(bread, card);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
// rethrow the exception with card Name for the user
|
// rethrow the exception with card Name for the user
|
||||||
throw new RuntimeException("crash in raw Ability, check card script of " + card.getName(), e);
|
throw new RuntimeException("crash in raw Ability, check card script of " + card.getName(), e);
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ public class CardState extends GameObject implements IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("Keyword", s);
|
bread.setData("Keyword", s);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + s + " for card " + card.getName(), e);
|
throw new RuntimeException("Error in Keyword " + s + " for card " + card.getName(), e);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
// add Extra for debugging
|
// add Extra for debugging
|
||||||
Sentry.setExtra("Card", host.getName());
|
Sentry.setExtra("Card", host.getName());
|
||||||
@@ -122,7 +122,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + this.original + " for card " + host.getName(), e);
|
throw new RuntimeException("Error in Keyword " + this.original + " for card " + host.getName(), e);
|
||||||
@@ -157,7 +157,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Player", player.getName());
|
bread.setData("Player", player.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
// add Extra for debugging
|
// add Extra for debugging
|
||||||
Sentry.setExtra("Player", player.getName());
|
Sentry.setExtra("Player", player.getName());
|
||||||
@@ -173,7 +173,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Player", player.getName());
|
bread.setData("Player", player.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Sentry.addBreadcrumb(bread, this);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + this.original + " for player " + player.getName(), e);
|
throw new RuntimeException("Error in Keyword " + this.original + " for player " + player.getName(), e);
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class TriggerHandler {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Trigger", trigParse);
|
bread.setData("Trigger", trigParse);
|
||||||
Sentry.addBreadcrumb(bread, host);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
||||||
@@ -163,7 +163,7 @@ public class TriggerHandler {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Params", mapParams.toString());
|
bread.setData("Params", mapParams.toString());
|
||||||
Sentry.addBreadcrumb(bread, host);
|
Sentry.addBreadcrumb(bread);
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.sentry</groupId>
|
<groupId>io.sentry</groupId>
|
||||||
<artifactId>sentry-android</artifactId>
|
<artifactId>sentry-android</artifactId>
|
||||||
<version>5.7.0</version>
|
<version>7.14.0</version>
|
||||||
<type>aar</type>
|
<type>aar</type>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.sentry</groupId>
|
<groupId>io.sentry</groupId>
|
||||||
<artifactId>sentry-android-core</artifactId>
|
<artifactId>sentry-android-core</artifactId>
|
||||||
<version>5.7.0</version>
|
<version>7.14.0</version>
|
||||||
<type>aar</type>
|
<type>aar</type>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.sentry</groupId>
|
<groupId>io.sentry</groupId>
|
||||||
<artifactId>sentry-android-ndk</artifactId>
|
<artifactId>sentry-android-ndk</artifactId>
|
||||||
<version>5.7.0</version>
|
<version>7.14.0</version>
|
||||||
<type>aar</type>
|
<type>aar</type>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
@@ -191,12 +191,6 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- runtime dependency of sentry -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.gson</groupId>
|
|
||||||
<artifactId>gson</artifactId>
|
|
||||||
<version>2.9.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.badlogicgames.gdx-controllers</groupId>
|
<groupId>com.badlogicgames.gdx-controllers</groupId>
|
||||||
<artifactId>gdx-controllers-android</artifactId>
|
<artifactId>gdx-controllers-android</artifactId>
|
||||||
|
|||||||
@@ -110,8 +110,7 @@ public final class FModel {
|
|||||||
if (GuiBase.isAndroid()) //todo get device on other mobile platforms
|
if (GuiBase.isAndroid()) //todo get device on other mobile platforms
|
||||||
System.out.println(GuiBase.getDeviceName() + " (RAM: " + GuiBase.getDeviceRAM() + "MB, Android " + GuiBase.getAndroidRelease() + " API Level " + GuiBase.getAndroidAPILevel() + ")");
|
System.out.println(GuiBase.getDeviceName() + " (RAM: " + GuiBase.getDeviceRAM() + "MB, Android " + GuiBase.getAndroidRelease() + " API Level " + GuiBase.getAndroidAPILevel() + ")");
|
||||||
else {
|
else {
|
||||||
System.out.println(System.getProperty("os.name") + " (" + System.getProperty("os.version") + " " + System.getProperty("os.arch") + ")");
|
System.out.println(System.getProperty("os.name") + " (" + System.getProperty("os.version") + " " + System.getProperty("os.arch") + ")\n" + System.getProperty("java.vendor") + " (Java " + System.getProperty("java.runtime.version") + ", " + System.getProperty("java.vm.name") + ")");
|
||||||
System.out.println("Java Version - " + RuntimeVersion.of(System.getProperty("java.version")).toString());
|
|
||||||
}
|
}
|
||||||
ImageKeys.initializeDirs(
|
ImageKeys.initializeDirs(
|
||||||
ForgeConstants.CACHE_CARD_PICS_DIR, ForgeConstants.CACHE_CARD_PICS_SUBDIR,
|
ForgeConstants.CACHE_CARD_PICS_DIR, ForgeConstants.CACHE_CARD_PICS_SUBDIR,
|
||||||
|
|||||||
Reference in New Issue
Block a user