the_dungeon_project issueshttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues2015-11-24T18:34:30+01:00https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/1FInish the entities subclasses2015-11-24T18:34:30+01:00Arnaud GuerquinFInish the entities subclassesAll is in the title. Also, finish the Item / Event / Zone interface and implements the subclasses. All is in the title. Also, finish the Item / Event / Zone interface and implements the subclasses. Arnaud GuerquinArnaud Guerquinhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/2Build fails because of files encoded in ISO-8859-12015-11-17T13:30:52+01:00David BaeldeBuild fails because of files encoded in ISO-8859-1I am using java 1.8 (from the Java 8 openjdk in Debian) and make fails because of encoding issues:
```
src/artificial_intelligence/AI.java:43: error: unmappable character for encoding UTF8
// d�terminer la fen�tre de calcul autoris�...I am using java 1.8 (from the Java 8 openjdk in Debian) and make fails because of encoding issues:
```
src/artificial_intelligence/AI.java:43: error: unmappable character for encoding UTF8
// d�terminer la fen�tre de calcul autoris�e en fonction des positions et du game opt
```
Java expects UTF-8 by default (which is sensible) and this file is in ISO-8859-1 aka latin-1. A simple fix, if you agree that this is the way to go:
```
iconv -f iso-8859-1 -t utf-8 src/artificial_intelligence/AI.java -o src/artificial_intelligence/AI.java
```
Note that the file CaseComparator.java also causes the same problem. By the way, shouldn't it be called TileComparator? I don't want to be a purist but in that case the bad translation is confusing because Case means something else in English.https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/3Project Not Compiling2015-11-21T14:21:14+01:00ChouasneProject Not CompilingVersion 47112716cedb37f28f4883f9db77e38c8582819d
```
$ make
javac -g -d bin/ -cp src/ -target 1.8 src/core/Bearer.java
javac: invalid target release: 1.8
Usage: javac <options> <source files>
use -help for a list of possible opti...Version 47112716cedb37f28f4883f9db77e38c8582819d
```
$ make
javac -g -d bin/ -cp src/ -target 1.8 src/core/Bearer.java
javac: invalid target release: 1.8
Usage: javac <options> <source files>
use -help for a list of possible options
make: *** [bin/core/Bearer.class] Error 2
$ javac -version
javac 1.7.0_85
```
I cannot install java 8 on the computer in room 411FardaleFardalehttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/4Symmetry 2015-11-19T08:16:22+01:00Arnaud GuerquinSymmetry Key are inversed. Map and Entity have the same coordinate system ( positive X goes down, positive Y goes right)Key are inversed. Map and Entity have the same coordinate system ( positive X goes down, positive Y goes right)https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/5TileSprite2015-12-04T22:23:34+01:00Arnaud GuerquinTileSpriteWhen I load Igniter_Main, I have warning that tile sprite are not of the same size as TileSpriteWidth/TileSpriteHeightWhen I load Igniter_Main, I have warning that tile sprite are not of the same size as TileSpriteWidth/TileSpriteHeighthttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/6Project not compiling - Game Loop directory.2015-11-21T14:58:59+01:00Yann RamusatProject not compiling - Game Loop directory.Impossible de compiler en ligne de commande. Je ne peux pas tester si ce que je fais compile...
C'est un problème d'encodage, je vous invite à voir l'issue que D. Baelde avait créé, je pense que c'est le même problème.
Voici l'erre...Impossible de compiler en ligne de commande. Je ne peux pas tester si ce que je fais compile...
C'est un problème d'encodage, je vous invite à voir l'issue que D. Baelde avait créé, je pense que c'est le même problème.
Voici l'erreur que la commande make me sort :
yann@yann-K72Jr:~/Bureau/the_dungeon_project$ make
javac -g -d bin/ -cp src/ -target 1.8 src/graphics/Affichable.java
javac -g -d bin/ -cp src/ -target 1.8 src/network/ClientConnection.java
javac -g -d bin/ -cp src/ -target 1.8 src/network/ClientOutputThread.java
javac -g -d bin/ -cp src/ -target 1.8 src/network/LocalTransmitter.java
src/gameloop/TimeEvent.java:62: error: unmappable character for encoding UTF8
//CompareTo rend l'�lement Comparable pour la PriorityQueue
^
src/gameloop/GameLoop.java:48: error: unmappable character for encoding UTF8
* Ce qui est ex�cut� � chaque frame.
^
src/gameloop/GameLoop.java:48: error: unmappable character for encoding UTF8
* Ce qui est ex�cut� � chaque frame.
^
src/gameloop/GameLoop.java:48: error: unmappable character for encoding UTF8
* Ce qui est ex�cut� � chaque frame.
^
4 errors
Clement RingeadeClement Ringeadehttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/7Move problem2015-11-24T22:14:11+01:00Thomas DupriezMove problemWhen playing, the first time an arrowkey is pressed, doty moves a bit in the designated direction, but the next presses of this arrow key generates bigger moves.When playing, the first time an arrowkey is pressed, doty moves a bit in the designated direction, but the next presses of this arrow key generates bigger moves.https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/8AI Hashmap2015-11-23T19:32:07+01:00Arnaud GuerquinAI Hashmapimport com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable; doesn't work.
Why not using the standard HashMap ? import com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable; doesn't work.
Why not using the standard HashMap ? https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/9Orientation/Direction2015-11-23T19:30:44+01:00Thomas DupriezOrientation/DirectionAs we are making a remake of Binding of Isaac, Entities are able to move in one direction and to attack in another. So we need both of these directions. For convenience, I suggest to call the direction in which an entity is moving its "D...As we are making a remake of Binding of Isaac, Entities are able to move in one direction and to attack in another. So we need both of these directions. For convenience, I suggest to call the direction in which an entity is moving its "Direction", and the direction in which it is looking/attacking its "Orientation".
Could someone in the Core update the Entity class with these 2 variables, and provide getter and setters for them ?https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/10exit doen't not exit the game2015-11-23T15:11:51+01:00Fardaleexit doen't not exit the gameOn the first screen of the game. If you click on exit it does not close the game. The windows close but the process keep running.On the first screen of the game. If you click on exit it does not close the game. The windows close but the process keep running.Première version fonctionnellehttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/11Game crash2015-11-24T20:59:12+01:00FardaleGame crashHere what I have when I try the game after I select "play".
```
Exception in thread "AWT-EventQueue-1" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1388)
at graphics.guiSkeleton.Dumm...Here what I have when I try the game after I select "play".
```
Exception in thread "AWT-EventQueue-1" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1388)
at graphics.guiSkeleton.DummyForTest.DotyEntityDisplayer.<init>(DotyEntityDisplayer.java:29)
at graphics.guiSkeleton.DummyForTest.DotyEntity.<init>(DotyEntity.java:17)
at graphics.guiSkeleton.DummyForTest.DummyLocalCore.startGame(DummyLocalCore.java:55)
at graphics.guiSkeleton.GamePanel.initialise(GamePanel.java:53)
at graphics.guiSkeleton.GraphicsMaster.setGUIStateTo(GraphicsMaster.java:139)
at graphics.guiSkeleton.GraphicsMaster.changeGUIStateTo(GraphicsMaster.java:126)
at graphics.guiSkeleton.MainMenuPanel$1.actionPerformed(MainMenuPanel.java:213)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:697)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
```Première version fonctionnellehttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/12Project not compiling2015-11-24T15:43:05+01:00ChouasneProject not compilingHi,
I can't compile the project, I get the following error:
Error:(8, 17) java: package org.junit does not exist
Error:(9, 17) java: package org.junit does not exist
Error:(10, 24) java: package org.junit does not exist
Error:(24...Hi,
I can't compile the project, I get the following error:
Error:(8, 17) java: package org.junit does not exist
Error:(9, 17) java: package org.junit does not exist
Error:(10, 24) java: package org.junit does not exist
Error:(24, 6) java: cannot find symbol
symbol: class Before
location: class artificial_intelligence.unitTest.AI_EntityTest
Warning:(39, 11) java: stop() in java.lang.Thread has been deprecated
Error:(33, 6) java: cannot find symbol
symbol: class Test
location: class artificial_intelligence.unitTest.AI_EntityTest
Error:(37, 9) java: cannot find symbol
symbol: method assertEquals(boolean,boolean)
location: class artificial_intelligence.unitTest.AI_EntityTest
Should I get the package org.junit? Is it not included in java 8?
Yann RamusatYann Ramusathttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/13Standardize direction2015-11-25T01:28:12+01:00Yann RamusatStandardize directionAll is in the title.
An please, use explicit enumeration instead of integers...
All is in the title.
An please, use explicit enumeration instead of integers...
Arnaud GuerquinArnaud Guerquinhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/14Multiplayer Broken - Buffered Image Is not Serializable2015-12-02T07:52:42+01:00BogdanMultiplayer Broken - Buffered Image Is not SerializableThis is especially important for the GUI team. In order for an object to be transmitted through the network, it needs to be Serializable, which is not the case for BufferedImages, like sprites. Maybe the people from the GUI team could ta...This is especially important for the GUI team. In order for an object to be transmitted through the network, it needs to be Serializable, which is not the case for BufferedImages, like sprites. Maybe the people from the GUI team could take a look at how Thomas did it in IntegrationAttempt2?
Thomas DupriezThomas Dupriezhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/15Dummy Entities are Superfluous.2015-11-25T01:28:13+01:00BogdanDummy Entities are Superfluous.One of the main design issues (it was a nice idea in the multiplatform case) is that we are not attaching the information related to the GUI to the Entity class. This is problematic because the GUI needs this information when working wit...One of the main design issues (it was a nice idea in the multiplatform case) is that we are not attaching the information related to the GUI to the Entity class. This is problematic because the GUI needs this information when working with Entities, while using only the GameState.
More explicitly, in order to create a gamestate which is usable by the GUI we need to perform casting in a most horrible way (and this is not the only place where we do it). Another potential solution will be to create something similar to a GUI GameState, but I believe that as we will be dealing with many types of Entities this adds unnecessary complexity.
Proposal: Combine the DummyEntity class with the Entity one.
Arnaud GuerquinArnaud Guerquinhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/16Some commit dissapeared.2015-11-30T23:16:34+01:00Arnaud GuerquinSome commit dissapeared.Hi. I just saw that one of my commit that was on the gitlab disappeared on master (in fact, it's still in the list but the modification aren't applied). Has someone done some reset of the repository ? I committed my change again but I fi...Hi. I just saw that one of my commit that was on the gitlab disappeared on master (in fact, it's still in the list but the modification aren't applied). Has someone done some reset of the repository ? I committed my change again but I find it weird.https://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/17Active wait in GameLoop2015-12-02T20:44:21+01:00Arnaud GuerquinActive wait in GameLoopThe current gameLoop is a pretty much like a while(1) { if(ready) computation} when it should wait if nothing have to be done. Active waiting like this is really bad. I suggest that you use the function "Thread.sleep(long milisec)" at so...The current gameLoop is a pretty much like a while(1) { if(ready) computation} when it should wait if nothing have to be done. Active waiting like this is really bad. I suggest that you use the function "Thread.sleep(long milisec)" at some point. Theodore LopezTheodore Lopezhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/19Entity-Being-Bearer-Character2015-12-01T21:26:02+01:00Thomas DupriezEntity-Being-Bearer-Character* Since the gameState only contains entities, how can all the other classes of the "Entity's hierarchy" (Being-Bearer-Character) be used ?
* Entity need a Species object to be instanciated. Species contains fields like baseHP and the ...* Since the gameState only contains entities, how can all the other classes of the "Entity's hierarchy" (Being-Bearer-Character) be used ?
* Entity need a Species object to be instanciated. Species contains fields like baseHP and the like. I thought pure Entities (ie. not Being, Bearer, Character) weren't, by design, supposed to have such statistics. Am I correct ?
* I'm beginning to think that the Entity's hierarchy should be collapsed. Removing Being, Bearer and Character and putting everything in the Entity class. Of course, I don't mean that Entity should get all the fields and methods from Being-Bearer-Character (the file would become messy), but instead, in the spirit of Species, I think we should create objects containing all the fields and methods linked to a given "feature" of Entities. Example: Instead of the Bearer class, we create an "Inventory" class containing the fields and methods from Bearer, and we add an field in Entity storing an object of type "Inventory". What do you think of this ?
Arnaud GuerquinArnaud Guerquinhttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/20Entities are not moving2015-11-26T13:56:49+01:00Yann RamusatEntities are not movingNeither the entities or the AI can move when I play the game.
In this commit it was working perfectly :
commit 6ed013aff99cb62747fc022bc2cd32b1862ff7f9
Author: Arnaud Guerquin <guerquin@crans.org>
Date: Wed Nov 25 01:29:46 201...Neither the entities or the AI can move when I play the game.
In this commit it was working perfectly :
commit 6ed013aff99cb62747fc022bc2cd32b1862ff7f9
Author: Arnaud Guerquin <guerquin@crans.org>
Date: Wed Nov 25 01:29:46 2015 +0100
Resolved issues #13 and #15
But at the next commit :
commit f88f5a5e11c6d3e736fa1a9298fe88ea1f03846e
Author: Mathieu Huot <mathieu.huot@crans.org>
Date: Wed Nov 25 01:40:53 2015 +0100
improved input and start of configpanel
it doesn't work anymore.
Huot Mathieumathieu.huot@crans.orgHuot Mathieumathieu.huot@crans.orghttps://gitlab.crans.org/genie_logiciel_2015/the_dungeon_project/-/issues/21Delete Species Class and use an Object Factory to instantiate concrete Entities.2015-12-15T16:34:36+01:00BogdanDelete Species Class and use an Object Factory to instantiate concrete Entities.It is quite strange that we are implementing our own way of agenerating Entities when there is a pattern for that https://en.wikipedia.org/wiki/Factory_method_pattern.
It is quite strange that we are implementing our own way of agenerating Entities when there is a pattern for that https://en.wikipedia.org/wiki/Factory_method_pattern.
Arnaud GuerquinArnaud Guerquin