Akushi 75 Posté(e) le 19 mai 2018 Partager Posté(e) le 19 mai 2018 Yop, donc je poste ce sujet car j'ai un problème avec COMET 2.1.2 au moment d'allumer l'émulateur tout s'allume correctement il se connecte bien à la base de données mais à un moment il me sort " GameContext not configured " et le l'ému se ferme l'erreur apparais tout le temps sauf quelque fois qui sont très rare. Donc je sais pas si quelqu'un pourra m'aider Lien à poster Partager sur d’autres sites Plus d'options de partage...
Runyard 70 Posté(e) le 19 mai 2018 Partager Posté(e) le 19 mai 2018 Salut, Screen moi le fichier GameContext. Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
Akushi 75 Posté(e) le 19 mai 2018 Auteur Partager Posté(e) le 19 mai 2018 à l’instant, Runyard a dit : Salut, Screen moi le fichier GameContext. Y'a aucun fichier configuration pour GameContext ^^' Ta juste ça qui et le fichier .java: package com.cometproject.api.game; import com.cometproject.api.game.catalog.ICatalogService; import com.cometproject.api.game.furniture.IFurnitureService; import com.cometproject.api.game.groups.IGroupService; import com.cometproject.api.game.players.IPlayerService; import com.cometproject.api.game.rooms.IRoomService; import com.cometproject.api.game.rooms.models.IRoomModelService; import org.apache.log4j.Logger; public class GameContext { private static GameContext gameContext; private ICatalogService catalogService; private IFurnitureService furnitureService; private IGroupService groupService; private IPlayerService playerService; private IRoomService roomService; private IRoomModelService roomModelService; private final Logger logger = Logger.getLogger(GameContext.class); public ICatalogService getCatalogService() { return catalogService; } public void setCatalogService(ICatalogService catalogService) { logger.info("CatalogService initialisé, " + catalogService.getClass().getName()); this.catalogService = catalogService; } public IFurnitureService getFurnitureService() { return this.furnitureService; } public void setFurnitureService(IFurnitureService furnitureService) { logger.info("FurnitureService initialisé, " + furnitureService.getClass().getName()); this.furnitureService = furnitureService; } public IGroupService getGroupService() { return this.groupService; } public void setGroupService(IGroupService groupService) { logger.info("GroupService initialisé, " + groupService.getClass().getName()); this.groupService = groupService; } public IPlayerService getPlayerService() { return this.playerService; } public void setPlayerService(IPlayerService playerService) { this.playerService = playerService; } public static GameContext getCurrent() { if(gameContext == null) { System.out.println("GameContext non configuré"); System.exit(0); } return gameContext; } public static void setCurrent(GameContext instance) { GameContext.gameContext = instance; } public IRoomService getRoomService() { return roomService; } public void setRoomService(IRoomService roomService) { logger.info("RoomService initialisé, " + roomService.getClass().getName()); this.roomService = roomService; } public IRoomModelService getRoomModelService() { return roomModelService; } public void setRoomModelService(IRoomModelService roomModelService) { logger.info("RoomModelService initialisé, " + roomModelService.getClass().getName()); this.roomModelService = roomModelService; } } Lien à poster Partager sur d’autres sites Plus d'options de partage...
Runyard 70 Posté(e) le 19 mai 2018 Partager Posté(e) le 19 mai 2018 Tout semble être bon, c'est bizarre Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
Administrateur Narzo 760 Posté(e) le 25 mai 2018 Administrateur Partager Posté(e) le 25 mai 2018 Salut Akushi , Ton sujet a été déplacé pour une des deux raisons suivantes : - Ta demande a été résolue. - Ton sujet se trouvait dans la mauvaise catégorie. Ceci est un message automatique. 《⠀⠀Founder of Inshare.fr⠀》 《⠀⠀Baylife moderator⠀》 《⠀⠀Twitch channel moderator⠀》 《⠀⠀French translator Trucksbook.eu⠀》 𝐹𝑒𝑒𝑙 𝑓𝑟𝑒𝑒 𝑡𝑜 𝑤𝑟𝑖𝑡𝑒 𝑎 𝑐𝑜𝑚𝑚𝑒𝑛𝑡 ————————————————— ╱⠀⠀⠀⠀⠀⠀⠀⠀⠀Règlements⠀⠀ //⠀⠀Abonnements⠀⠀ //⠀⠀ Discord ⠀⠀⠀⠀⠀⠀⠀⠀⠀╲ Lien à poster Partager sur d’autres sites Plus d'options de partage...
Messages recommandés