schrum2 / MM-NEAT

Modular Multiobjective (Hyper) Neuro-Evolution of Augmenting Topologies + MAP-Elites: Java code for evolving intelligent agents in Ms. Pac-Man, Tetris, and more, as well as code for Procedural Content Generation in Mario, Zelda, Minecraft, and more!
http://people.southwestern.edu/~schrum2/re/mm-neat.php
Other
50 stars 20 forks source link

Can't run WFC or Zentangle #953

Closed schrum2 closed 1 year ago

schrum2 commented 1 year ago

I get this exception from a Zentangle run:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serializer/OutputPropertiesFactory

This is in the branch where I am deleting a lot of POM/Maven stuff, so I should see if it is a general problem or just in that branch.

schrum2 commented 1 year ago

The problem seems to be the xalan library, where the org.apache.xml.serializer package is totally empty. I looked at the original WFC code and it doesn't use this library at all. It looks like this code was added by Anna or Sarah to create adjacency rules for WFC to read, but the particular library does not work any more.

I might need to re-write the code in the writeAdjacencyRules method of SimpleTiledZentangleWFCModel. A comment above the method says the inspiration for the XML approach comes from: https://crunchify.com/java-simple-way-to-write-xml-dom-file-in-java/

schrum2 commented 1 year ago

Don't merge PR https://github.com/schrum2/MM-NEAT/pull/857/commits/e245194972300abc9f5e817b376425a3a1aea7fb

It was the cause of the error. Dependabot wants to change the xalan version and break this code.