Modifying oculus

Hey, so I'm trying to modify oculus, but it seems like, forge isn't liking that?
java.lang.IllegalArgumentException: Invalid package name: 'oculus-mc1' is not a Java identifier
java.lang.IllegalArgumentException: Invalid package name: 'oculus-mc1' is not a Java identifier
4 Replies
danny
dannyOP2mo ago
/oculus
YAGPDB.xyz
YAGPDB.xyz2mo ago
Oculus may work, but can produce unexpected results, it is preffered to use Iris on Fabric or Neoforge instead. To use oculus with DH, it is only possible to use minecraft 1.20.1 with forge. Oculus 1.7 is the only officially released version of Oculus that works with DH, and only works with DH 2.1.x. If you are using DH 2.2.x with Oculus 1.7, that is the reason for your crash. For DH 2.2.x, the only option is to use an unreleased version of Oculus found at https://github.com/Asek3/Oculus/actions/runs/11198312573/artifacts/2020008921 (you need to be logged in or it will 404). Unzip the given file, take oculus-mc1.20.1-1.7.0.jar. and put it in your mods folder. For DH 2.3, you need the unreleased version mentioned above, and edit it to make it work with DH 2.3: - unzip the mod .jar - go inside the META folder - edit mods.toml to say it is Oculus 1.8.0 - save the file and zip the mod file back (zip the files and not the folder)
danny
dannyOP2mo ago
am i zipping it back wrong?
modLoader="javafml"
loaderVersion="*"
issueTrackerURL="https://github.com/Asek3/Oculus/issues"
license="LGPL-3.0-only"

[[mods]]
modId="oculus"
version="1.8.0"
displayURL = "https://curseforge.com/minecraft/mc-mods/oculus"
displayName="Oculus"
logoFile="oculus-logo.png"
authors="NanoLive, dima_dencep, coderbot, IMS212, Justsnoopy30, FoundationGames"
description='''
Unofficial Fork of "Iris", made to work with FML
'''
provides = ["iris"]

[mods."sodium:options"]
"mixin.features.render.world.sky"=false
"mixin.features.render.entity"=false
"mixin.features.render.gui.font"=false

[[dependencies.oculus]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20.1]"
ordering = "NONE"
side = "BOTH"

[[dependencies.oculus]]
modId = "embeddium"
mandatory = false
versionRange = "[0.3.1,)"
ordering = "NONE"
side = "CLIENT"
modLoader="javafml"
loaderVersion="*"
issueTrackerURL="https://github.com/Asek3/Oculus/issues"
license="LGPL-3.0-only"

[[mods]]
modId="oculus"
version="1.8.0"
displayURL = "https://curseforge.com/minecraft/mc-mods/oculus"
displayName="Oculus"
logoFile="oculus-logo.png"
authors="NanoLive, dima_dencep, coderbot, IMS212, Justsnoopy30, FoundationGames"
description='''
Unofficial Fork of "Iris", made to work with FML
'''
provides = ["iris"]

[mods."sodium:options"]
"mixin.features.render.world.sky"=false
"mixin.features.render.entity"=false
"mixin.features.render.gui.font"=false

[[dependencies.oculus]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20.1]"
ordering = "NONE"
side = "BOTH"

[[dependencies.oculus]]
modId = "embeddium"
mandatory = false
versionRange = "[0.3.1,)"
ordering = "NONE"
side = "CLIENT"
ahh i was zipping the folder lol
Oxcii
Oxcii2mo ago
its work for you?

Did you find this page helpful?