-
Notifications
You must be signed in to change notification settings - Fork 17
Fix for the Neoforge Error:Solved #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also, there is another problem with this error message Error: could not open `libraries/net/neoforged/forge/1.21.1-21.1.145/unix_args.txt' I'm now fixing this too... |
Also, for Fix below pub async fn get_startup_method(&self, serverjar_name: &str) -> Result<StartupMethod> {
let mcver = self.app.mc_version();
Ok(match &self.app.server.jar {
ServerType::NeoForge { loader } => {
let l = self.app.neoforge().resolve_version(loader).await?;
StartupMethod::Custom {
windows: vec![format!(
"@libraries/net/neoforged/forge/{mcver}-{l}/win_args.txt"
)],
linux: vec![format!(
"@libraries/net/neoforged/forge/{mcver}-{l}/unix_args.txt"
)],
}
} to impl<'a> BuildContext<'a> {
pub async fn get_startup_method(&self, serverjar_name: &str) -> Result<StartupMethod> {
let mcver = self.app.mc_version();
Ok(match &self.app.server.jar {
ServerType::NeoForge { loader } => {
let l = self.app.neoforge().resolve_version(loader).await?;
StartupMethod::Custom {
windows: vec![format!(
"@libraries/net/neoforged/neoforge/{l}/win_args.txt"
)],
linux: vec![format!(
"@libraries/net/neoforged/neoforge/{l}/unix_args.txt"
)],
}
} |
At a specific version, they changed the package name from forge to neoforge, first versions still use that I think, so adding a way to detect that would be a good idea. Also, It would be nice if you could submit a Pull Request! |
Okay, thank you for the comment. |
Hello, it seems that
mcman
cannot fetch the latest version of Neoforge properly.I resolved the issue with the modifications below, but if there’s a better solution, please update it accordingly.
Here is the modified code I used.
I changed
src/source/neoforge.rs
with the following:Also, I changed the contents of
Cargo.toml
file at the top level.The line
mcapi = { git = "https://github.com/ParadigmMC/mcapi.git"}
to
mcapi = { git = "https://github.com/ParadigmMC/mcapi.git", branch = "main"}
With this change, it works correctly for the latest version.
However, I didn't test this with lower version. ;)
The text was updated successfully, but these errors were encountered: