Jump to content

Recommended Posts

Posted

Hey all! I've finished my mod and its working perfectly in single player.

I went to test it in multiplayer, and its working great there too! Until I go into my custom dimension, then my client + server crash and give this error.

 

2012-10-01 20:07:39 [sEVERE] Encountered an unexpected exception NoSuchMethodError
java.lang.NoSuchMethodError: vp.a(FI)F
at ChunkProviderDeathWorld.initializeNoiseField(ChunkProviderDeathWorld.java:247)
at ChunkProviderDeathWorld.generateTerrain(ChunkProviderDeathWorld.java:65)
at ChunkProviderDeathWorld.d(ChunkProviderDeathWorld.java:213)
at gq.c(ChunkProviderServer.java:106)
at gp.<init>(SourceFile:26)
at go.a(SourceFile:171)
at go.a(SourceFile:202)
at et.a(ServerConfigurationManager.java:127)
at et.c(ServerConfigurationManager.java:176)
at et.a(ServerConfigurationManager.java:88)
at gx.completeConnection(NetLoginHandler.java:164)
at cpw.mods.fml.common.network.FMLNetworkHandler.handleClientConnection(FMLNetworkHandler.java:149)
at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionReceivedFromClient(FMLNetworkHandler.java:109)
at gx.d(NetLoginHandler.java:149)
at gx.c(NetLoginHandler.java:51)
at fy.a(ServerListenThread.java:50)
at fx.b(SourceFile:29)
at ft.q(DedicatedServer.java:256)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)
at ep.run(SourceFile:539)

Its seem to be an error with the landscape generation, I'm using Dimension API 1.6.1 and Forge 4.1.1.297.

Why does it work in SP and not in MP when I installed both the same way.

 

Help, I really need this!

 

EDIT:

This

initializeNoiseField

Seems to be the problem in the server, I dont know why.

Posted

That is because WorldChunkManager.getTemperatureAtHeight(float,int) doesn't exist on the server, and you're trying to call it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

I don't know, is there?

I've removed it, It wasn't needed and the world still looks the same, so thats fixed.

But now it gives THIS error.

[sEVERE] Encountered an unexpected exception NoSuchMethodError
java.lang.NoSuchMethodError: vk.i()F
at ChunkProviderDeathWorld.initializeNoiseField(ChunkProviderDeathWorld.java:247)
at ChunkProviderDeathWorld.generateTerrain(ChunkProviderDeathWorld.java:65)
at ChunkProviderDeathWorld.d(ChunkProviderDeathWorld.java:213)
at gq.c(ChunkProviderServer.java:106)
at gp.<init>(SourceFile:26)
at go.a(SourceFile:171)
at go.a(SourceFile:202)
at et.a(ServerConfigurationManager.java:128)
at et.c(ServerConfigurationManager.java:177)
at et.a(ServerConfigurationManager.java:89)
at gx.completeConnection(NetLoginHandler.java:164)
at cpw.mods.fml.common.network.FMLNetworkHandler.handleClientConnection(FMLNetworkHandler.java:149)
at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionReceivedFromClient(FMLNetworkHandler.java:109)
at gx.d(NetLoginHandler.java:149)
at gx.c(NetLoginHandler.java:51)
at fy.a(ServerListenThread.java:50)
at fx.b(SourceFile:29)
at ft.q(DedicatedServer.java:256)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)
at ep.run(SourceFile:539)

I don't know what to do, I don't recognize these errors!

I'm like literally begging you, when this is fixed I'll never have to ask anything again, cause its done then!

 

    private double[] initializeNoiseField(double ad[], int i, int j, int k, int l, int i1, int j1)
    {
        if (ad == null)
        {
            ad = new double[l * i1 * j1];
        }

        double d = 684.41200000000003D;
        double d1 = 684.41200000000003D;
        float f1 = worldObj.getWorldChunkManager().getBiomeGenAt(i, k).getFloatRainfall();
        noise4 = noiseGen6.generateNoiseOctaves(noise4, i, k, l, j1, 1.121D, 1.121D, 0.5D);
        noise5 = noiseGen7.generateNoiseOctaves(noise5, i, k, l, j1, 200D, 200D, 0.5D);
        d *= 2D;
        noise1 = noiseGen3.generateNoiseOctaves(noise1, i, j, k, l, i1, j1, d / 80D, d1 / 160D, d / 80D);
        noise2 = noiseGen1.generateNoiseOctaves(noise2, i, j, k, l, i1, j1, d, d1, d);
        noise3 = noiseGen2.generateNoiseOctaves(noise3, i, j, k, l, i1, j1, d, d1, d);
        int k1 = 0;
        int l1 = 0;
        int i2 = 16 / l;

        for (int j2 = 0; j2 < l; j2++)
        {
            int k2 = j2 * i2 + i2 / 2;

            for (int l2 = 0; l2 < j1; l2++)
            {
                int i3 = l2 * i2 + i2 / 2;
                float f3 = f1;
                double d2 = 1.0D - (double)f3;
                d2 *= d2;
                d2 *= d2;
                d2 = 1.0D - d2;
                double d3 = (noise4[l1] + 256D) / 512D;
                d3 *= d2;

                if (d3 > 1.0D)
                {
                    d3 = 1.0D;
                }

                double d4 = noise5[l1] / 8000D;

                if (d4 < 0.0D)
                {
                    d4 = -d4 * 0.29999999999999999D;
                }

                d4 = d4 * 3D - 2D;

                if (d4 > 1.0D)
                {
                    d4 = 1.0D;
                }

                d4 /= 8D;
                d4 = 0.0D;

                if (d3 < 0.0D)
                {
                    d3 = 0.0D;
                }

                d3 += 0.5D;
                d4 = (d4 * (double)i1) / 16D;
                l1++;
                double d5 = (double)i1 / 2D;

                for (int j3 = 0; j3 < i1; j3++)
                {
                    double d6 = 0.0D;
                    double d7 = (((double)j3 - d5) * 8D) / d3;

                    if (d7 < 0.0D)
                    {
                        d7 *= -1D;
                    }

                    double d8 = noise2[k1] / 512D;
                    double d9 = noise3[k1] / 512D;
                    double d10 = (noise1[k1] / 10D + 1.0D) / 2D;

                    if (d10 < 0.0D)
                    {
                        d6 = d8;
                    }
                    else if (d10 > 1.0D)
                    {
                        d6 = d9;
                    }
                    else
                    {
                        d6 = d8 + (d9 - d8) * d10;
                    }

                    d6 -= 8D;
                    int k3 = 32;

                    if (j3 > i1 - k3)
                    {
                        double d11 = (float)(j3 - (i1 - k3)) / ((float)k3 - 1.0F);
                        d6 = d6 * (1.0D - d11) + -30D * d11;
                    }

                    k3 = 8;

                    if (j3 < k3)
                    {
                        double d12 = (float)(k3 - j3) / ((float)k3 - 1.0F);
                        d6 = d6 * (1.0D - d12) + -30D * d12;
                    }

                    ad[k1] = d6;
                    k1++;
                }
            }
        }

        return ad;
    }

 

This is my initializeNoiseField in my ChunkProvider.

Posted

I don't exactly know, but is this method also available for the server?

.getFloatRainfall()

in:

float f1 = worldObj.getWorldChunkManager().getBiomeGenAt(i, k).getFloatRainfall();

 

Try to outcomment it or use an actual number like 1F or so. If it's working then, you know what's the problem then.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Debug your crap as a dedi server and you'll get more usefull information.

There is no reason you should be getting these errors at the obfed state, you should be catching them before you reobf.

I setup the eclipse workspace with debug configurations for a reason.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Debug your crap as a dedi server and you'll get more usefull information.

There is no reason you should be getting these errors at the obfed state, you should be catching them before you reobf.

I setup the eclipse workspace with debug configurations for a reason.

 

When I debugged my "Crap", It didnt help a thing, same error, giving the same location.

 

I need to find a replacement method, but I can't seem to get one. The method is really needed to generate my world.

Posted

Debug your crap as a dedi server and you'll get more usefull information.

There is no reason you should be getting these errors at the obfed state, you should be catching them before you reobf.

I setup the eclipse workspace with debug configurations for a reason.

 

When I debugged my "Crap", It didnt help a thing, same error, giving the same location.

 

I need to find a replacement method, but I can't seem to get one. The method is really needed to generate my world.

 

Did you try my response?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Debug your crap as a dedi server and you'll get more usefull information.

There is no reason you should be getting these errors at the obfed state, you should be catching them before you reobf.

I setup the eclipse workspace with debug configurations for a reason.

 

When I debugged my "Crap", It didnt help a thing, same error, giving the same location.

 

I need to find a replacement method, but I can't seem to get one. The method is really needed to generate my world.

 

Did you try my response?

 

I tried that, but then F3 gave errors because F1 was undifined, and when commenting F3 other vars would get errors and so on.

Can I replace this with something else, not the same function but something must give the same outcome?

Posted

Debug your crap as a dedi server and you'll get more usefull information.

There is no reason you should be getting these errors at the obfed state, you should be catching them before you reobf.

I setup the eclipse workspace with debug configurations for a reason.

 

When I debugged my "Crap", It didnt help a thing, same error, giving the same location.

 

I need to find a replacement method, but I can't seem to get one. The method is really needed to generate my world.

 

Did you try my response?

 

I tried that, but then F3 gave errors because F1 was undifined, and when commenting F3 other vars would get errors and so on.

Can I replace this with something else, not the same function but something must give the same outcome?

 

Give F1 an actual number like 1F or so and try that.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Give F1 an actual number like 1F or so and try that.

 

2 Errors:

 

at  float 1F = worldObj.getWorldChunkManager().getBiomeGenAt(i, k).getFloatRainfall();

Syntax error on token "1F", invalid VariableDecloratorID

 

at  float f3 = f1;

F1 cannot be resolved as a variable
Posted

Give F1 an actual number like 1F or so and try that.

 

2 Errors:

 

at  float 1F = worldObj.getWorldChunkManager().getBiomeGenAt(i, k).getFloatRainfall();

Syntax error on token "1F", invalid VariableDecloratorID

 

at  float f3 = f1;

F1 cannot be resolved as a variable

 

You don't call the variable 1f, but you assign the value 1f to it, like = 1f;

You can't have variables starting with a number...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • When I first heard about Bitcoin back in 2018, I was skeptical. The idea of a decentralized, digital currency seemed too good to be true. But I was intrigued as I learned more about the technology behind it and its potential. I started small, investing just a few hundred dollars, dipping my toes into the cryptocurrency waters. At first, it was exhilarating to watch the value of my investment grow exponentially. I felt like I was part of the future, an early adopter of this revolutionary new asset. But that euphoria was short-lived. One day, I logged into my digital wallet only to find it empty - my Bitcoin had vanished without a trace. It turned out that the online exchange I had trusted had been hacked, and my funds were stolen. I was devastated, both financially and emotionally. All the potential I had seen in Bitcoin was tainted by the harsh reality that with decentralization came a lack of regulation and oversight. My hard-earned money was gone, lost to the ether of the digital world. This experience taught me a painful lesson about the price of trust in the uncharted territory of cryptocurrency. While the technology holds incredible promise, the risks can be catastrophic if you don't approach it with extreme caution. My Bitcoin investment gamble had failed, and I was left to pick up the pieces, wiser but poorer for having placed my faith in the wrong hands. My sincere appreciation goes to MUYERN TRUST HACKER. You are my hero in recovering my lost funds. Send a direct m a i l ( muyerntrusted ( @ ) mail-me ( . )c o m ) or message on whats app : + 1 ( 4-4-0 ) ( 3 -3 -5 ) ( 0-2-0-5 )
    • You could try posting a log (if there is no log at all, it may be the launcher you are using, the FAQ may have info on how to enable the log) as described in the FAQ, however this will probably need to be reported to/remedied by the mod author.
    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • It is 1.12.2 - I have no idea if there is a 1.12 pack
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.