PhilippvK / playforia-minigolf

Client & Server for Minigolf Game known from Playforia/Playray/Appeli. Written in Java.
85 stars 31 forks source link

Add Categories into track files #68

Closed pehala closed 3 years ago

pehala commented 4 years ago

TODO:

Closes #64.

pehala commented 4 years ago

I might do a little polishing but it is definitely review ready

PhilippvK commented 4 years ago

@pehala The Server Check failed in the GitHub CI Run.

pehala commented 4 years ago

Yep, based on my investigation it is caused by mocking and testing CLI with subcommands. It is a failure in tests not in the funcionality (at least from what I tested :D)

PhilippvK commented 4 years ago

Dump question, but are the converted track still in the repo? Can't find them at the moment.

pehala commented 4 years ago

They are supposed to be but seems like I forgot to add them. Good catch, Thanks!

PhilippvK commented 4 years ago

@pehala How to compile the server.jar with Maven with the failing tests?

pehala commented 4 years ago

mvn install -DskipTests

pehala commented 4 years ago

Tracks added now

PhilippvK commented 4 years ago

Okay. Here is my first impression:

  1. GREAT WORK
  2. The Championships are intentionally broken, right?
  3. Was there ever a Skip track button in the solo-mode?
  4. When testing the multiplayer the clients crashed when both players pressed Skip:
2020-10-19 11:23:51.105 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
2020-10-19 11:24:03.385 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
2020-10-19 11:24:09.004 java[59218:7494793] -[AWTView javaRole]: unrecognized selector sent to instance 0x7ff57b5ea500
java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:460)
    at agolf.TrackCollection.addTrack(TrackCollection.java:12)
    at agolf.game.GamePanel.method333(GamePanel.java:288)
    at agolf.Conn.handlePacket(Conn.java:184)
    at agolf.Conn.dataReceived(Conn.java:24)
    at com.aapeli.connection.GamePacketQueue.run(GamePacketQueue.java:32)
    at java.lang.Thread.run(Thread.java:748)
pehala commented 4 years ago
pehala commented 4 years ago
PhilippvK commented 4 years ago

Impressive contributions!

PhilippvK commented 4 years ago

@pehala ready for merge? How about Documentation updates? Does the README already contain information on the Tracks migration?

pehala commented 4 years ago

Nope, I still need to fix the testa and add the documentation. I will add the checkboxes into the description.

Btw: What would you like to see in the docs? I could write there the whole structure of the track file and how it is processed but that would be in the separate file

PhilippvK commented 4 years ago

@pehala Regarding the docs: I only thought about the essentials on how to get a server running. But I just realized that as all the files are already converted the exact process of migration is not really needed.

Details in the File structure are definitely optional, they also don't have to be in markdown format if you prefer to define them as comments inside the implementation only.

pehala commented 3 years ago

I created issue for the mockito/picocli bug remkop/picocli#1243

PhilippvK commented 3 years ago

Many thanks!

pehala commented 3 years ago

Tests and documentation are now done.