novoline.wtf 3.0
This commit is contained in:
commit
84eb5303aa
6741 files changed
+739533
No files matched your search
+115
@@ -0,0 +1,115 @@
|
||||
plugins {
|
||||
id 'application'
|
||||
id 'idea'
|
||||
}
|
||||
|
||||
group = 'novoline'
|
||||
version = '3.0'
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'net.minecraft.client.main.Main'
|
||||
}
|
||||
|
||||
idea {
|
||||
module {
|
||||
excludeDirs += file('run')
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation files('libs/novoline-support.jar', 'libs/discord-game-sdk4j-0.5.4.jar')
|
||||
implementation files(
|
||||
'libs/authlib-1.5.21.jar',
|
||||
'libs/codecjorbis-20101023.jar',
|
||||
'libs/codecwav-20101023.jar',
|
||||
'libs/commons-codec-1.9.jar',
|
||||
'libs/commons-compress-1.8.1.jar',
|
||||
'libs/commons-io-2.4.jar',
|
||||
'libs/commons-lang3-3.3.2.jar',
|
||||
'libs/commons-logging-1.1.3.jar',
|
||||
'libs/gson-2.2.4.jar',
|
||||
'libs/guava-17.0.jar',
|
||||
'libs/httpclient-4.3.3.jar',
|
||||
'libs/httpcore-4.3.2.jar',
|
||||
'libs/icu4j-core-mojang-51.2.jar',
|
||||
'libs/jinput-2.0.5.jar',
|
||||
'libs/jna-3.4.0.jar',
|
||||
'libs/jopt-simple-4.6.jar',
|
||||
'libs/jutils-1.0.0.jar',
|
||||
'libs/libraryjavasound-20101123.jar',
|
||||
'libs/librarylwjglopenal-20100824.jar',
|
||||
'libs/log4j-api-2.0-beta9.jar',
|
||||
'libs/log4j-core-2.0-beta9.jar',
|
||||
'libs/netty-1.6.jar',
|
||||
'libs/netty-all-4.0.23.Final.jar',
|
||||
'libs/oshi-core-1.1.jar',
|
||||
'libs/platform-3.4.0.jar',
|
||||
'libs/soundsystem-20120107.jar',
|
||||
'libs/twitch-6.5.jar',
|
||||
'libs/lwjgl-util-vector.jar',
|
||||
'libs/lwjgl-2.9.4.jar',
|
||||
'libs/lwjgl_util-2.9.4-nightly-20150209.jar'
|
||||
)
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8'
|
||||
options.fork = true
|
||||
options.forkOptions.memoryMaximumSize = '6g'
|
||||
options.compilerArgs += ['-proc:none', '-implicit:none', '-XDshould-stop.ifError=FLOW']
|
||||
}
|
||||
|
||||
tasks.named('jar', Jar) {
|
||||
archiveFileName = 'opennovoline-wtf.jar'
|
||||
manifest.attributes('Main-Class': application.mainClass.get())
|
||||
}
|
||||
|
||||
def gameDir = layout.projectDirectory.dir('run')
|
||||
def nativesDir = gameDir.dir('natives')
|
||||
def defaultAssets = providers.environmentVariable('APPDATA')
|
||||
.map { new File(it, '.minecraft/assets').absolutePath }
|
||||
.orElse(gameDir.dir('assets').asFile.absolutePath)
|
||||
def assetsPath = providers.gradleProperty('assetsDir').orElse(defaultAssets)
|
||||
def username = providers.gradleProperty('username').orElse('Player')
|
||||
def uuid = providers.gradleProperty('uuid').orElse(username)
|
||||
def accessToken = providers.environmentVariable('NOVOLINE_ACCESS_TOKEN').orElse('0')
|
||||
def userType = providers.gradleProperty('userType').orElse('legacy')
|
||||
|
||||
tasks.named('run', JavaExec) {
|
||||
workingDir = gameDir.asFile
|
||||
maxHeapSize = '4g'
|
||||
jvmArgs '-Djava.library.path=' + nativesDir.asFile.absolutePath,
|
||||
'-Dfile.encoding=UTF-8',
|
||||
'--enable-native-access=ALL-UNNAMED',
|
||||
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
||||
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED',
|
||||
'--add-opens=java.base/java.util=ALL-UNNAMED',
|
||||
'--add-opens=java.base/java.net=ALL-UNNAMED',
|
||||
'--add-opens=java.base/java.nio=ALL-UNNAMED',
|
||||
'--add-opens=java.base/sun.nio.ch=ALL-UNNAMED'
|
||||
|
||||
doFirst {
|
||||
def assets = file(assetsPath.get())
|
||||
if (!new File(assets, 'indexes/1.8.json').isFile()) {
|
||||
throw new GradleException("Minecraft 1.8 assets index missing in " + assets + ". Use -PassetsDir=<path>.")
|
||||
}
|
||||
if (!nativesDir.file('lwjgl64.dll').asFile.isFile()) {
|
||||
throw new GradleException("Windows x64 LWJGL natives missing in " + nativesDir.asFile)
|
||||
}
|
||||
args '--username', username.get(),
|
||||
'--version', '1.8.9',
|
||||
'--gameDir', gameDir.asFile.absolutePath,
|
||||
'--assetsDir', assets.absolutePath,
|
||||
'--assetIndex', '1.8',
|
||||
'--uuid', uuid.get(),
|
||||
'--accessToken', accessToken.get(),
|
||||
'--userProperties', '{}',
|
||||
'--userType', userType.get()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user