Skip to content

Commit

Permalink
Initial pom and README
Browse files Browse the repository at this point in the history
  • Loading branch information
kellen committed Oct 29, 2015
1 parent 3d4b1fd commit 0f37dc5
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
NonAggression
-------------

For people who think Skyrim is too scary; a SkyProc patcher which makes all NPCs cowardly and unaggressive.

This patch works, but is barely tested.

## Prerequisites

Clone [my fork](/kellen/skyproc-library/) of [DienesToo's skyproc](https://bitbucket.org/DienesToo/skyproc-library) and install the dependencies for skyproc into your local maven and then build and install skyproc into your local maven.

## Build the distributable zip file

```
mvn clean package
```

The `target/NonAggression.zip` file can be installed with Nexus Mod Manager (NMM) and run via SkyProc Unified Manager (SUM).

## Debugging

The SkyProc Unified Manager (SUM) starts a new process in which NonAggression.jar is run, so if you want to debug SUM + NonAggression, you'll need to edit the skyproc source and add debugging options to the command line produced in `SUMprogram#runJarPatcher()`, for example `-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005`.
80 changes: 80 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.cretin.skyrim</groupId>
<artifactId>nonaggression</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>NonAggression</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>net.cretin.skyrim.nonaggression.NonAggression</mainClass>
</manifest>
</archive>
</configuration>
</execution>
<execution>
<id>zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>NonAggression</finalName>
<descriptor>src/assembly/zip.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<!-- skyproc -->
<dependency>
<groupId>skyproc</groupId>
<artifactId>skyproc</artifactId>
<version>2.2.0.7-SNAPSHOT</version>
</dependency>

<!-- normal -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
</dependencies>
</project>

0 comments on commit 0f37dc5

Please sign in to comment.