Jump to content

Recommended Posts

Posted (edited)

Hi yesterday and days before i usually started server and played with friends. Suddenly today i want to start server and the cmd open and immediately closed i tried this on 1.15.2 forge also on 1.12.2 and nothing i using this code or what is it called

REM Don't edit these values unless you know what you are doing.
set INSTALL_JAR=forge-1.15.2-31.1.19-installer.jar
set SERVER_JAR=forge-1.15.2-31.1.19.jar

REM You can edit these values if you wish.
set MIN_RAM=2048M
set MAX_RAM=8192M
set JAVA_PARAMETERS=-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.readTimeout=180

It worked yesterday please help i reinstaled already java but nothing happend :(

Edit it says 

"no main manifest attribute"

Edited by perecnicek
Posted (edited)
  On 4/11/2020 at 6:32 PM, Ugdhar said:

That code you pasted only sets some environment variables, it doesn't actually execute anything.

Expand  

but it worked i downloaded it from sky factory server pack. And today it started saying this ---> "no main manifest attribute" i runed 4 server on this code and plaied 2 weeks on server

this is the first file:

@echo off

call settings.bat

:start_server
echo Starting 1.15.2 Server...
java -server -Xms%MIN_RAM% -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %SERVER_JAR% nogui
exit /B

goto start_server
and the second is this:

REM Don't edit these values unless you know what you are doing.
set INSTALL_JAR=forge-1.15.2-31.1.19-installer.jar
set SERVER_JAR=forge-1.15.2-31.1.19.jar

REM You can edit these values if you wish.
set MIN_RAM=2048M
set MAX_RAM=8192M
set JAVA_PARAMETERS=-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.readTimeout=180

Edited by perecnicek
Posted

Ok, so what you will probably want to do is open a command prompt or powershell window and run that "first file" from the commandline, and it will theoretically not just close on you so you can see what the actual error is saying.

Hold shift and right-click in a blank spot in the folder that bat file is in, and you should get the option to open the powershell or command window there.

Posted
  On 4/11/2020 at 6:41 PM, Ugdhar said:

Ok, so what you will probably want to do is open a command prompt or powershell window and run that "first file" from the commandline, and it will theoretically not just close on you so you can see what the actual error is saying.

Hold shift and right-click in a blank spot in the folder that bat file is in, and you should get the option to open the powershell or command window there.

Expand  

I have opned power shell how can i run that file ? i mean the command for that

Posted (edited)
  On 4/11/2020 at 6:52 PM, Ugdhar said:

what is the filename of your "first file" you pasted above? If it is called startserver.bat then you would type .\startserver.bat

Expand  

I got this

image.thumb.png.4d89a8e649c9733258442ff6667ef9f1.png

But this server is old few week how could this happend ?

Edited by perecnicek
Posted
  On 4/11/2020 at 6:54 PM, perecnicek said:

But this server is old few week how could this happend ?

Expand  

I have no idea, unless things were moved into a new folder or files were removed. Those would be the only 2 things I would thing would do that. Sorry. :(

Posted

It's sounding like you grabbed a couple scripts out of a modpack's server zip and are using them globally as server management scripts. which is not recommended.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

The intended use is to run Forge's installer manually and then start the server with a command or a script.

I know this might sound like the same procedure you're already doing, but the scripts you have now have a couple extra bells and whistles that try to automate things for you and might actually make it worse when things go wrong.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 4/11/2020 at 7:16 PM, DaemonUmbra said:

The intended use is to run Forge's installer manually and then start the server with a command or a script.

I know this might sound like the same procedure you're already doing, but the scripts you have now have a couple extra bells and whistles that try to automate things for you and might actually make it worse when things go wrong.

Expand  

Okay i try that way but why i cant run older server ? which worked for 2-3 weeks

Posted
  On 4/11/2020 at 7:16 PM, DaemonUmbra said:

The intended use is to run Forge's installer manually and then start the server with a command or a script.

I know this might sound like the same procedure you're already doing, but the scripts you have now have a couple extra bells and whistles that try to automate things for you and might actually make it worse when things go wrong.

Expand  

I dit it like you said and now i using this code from wiki java -jar forge-1.12.2-14.23.5.2852-installer.jar --installServer and dont work

Posted

Saying it "dont work" is the equivalent of telling the Doctor "It hurts".

In addition, 1.12.2 isn't supported here anymore.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Yes, however I'm not going to help you fix a server that's out of support

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

No entiendo por qué dicen "1.12.2 ya no es compatible aquí" si han lanzado nuevas versiones de forge hace menos de una semana, ¿qué razón hay para actualizar? ¿Puedes proporcionar una lista de cambios? ¿Qué error soluciona?

Screenshot_8.thumb.png.6ae313a5ab20db3316447ab602d36b07.png

Edited by HeberonYT
Posted

Please keep this forum in English.

 

Those updates actually have no changes from a Player's perspective, they have been updated to the same toolset used by the more modern branches so mod devs who ignore our advice about updating will stop complaining when the old toolset breaks.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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

    • Managed to solve the issue myself. Solved by a fresh modpack instance.
    • Hello, so straight to the problem. Today i wanted to startup Enigmatica as usual and it just wont startup. Last night everything worked fine, i didnt even turn off my pc. Crash log: https://mclo.gs/GJ6Kcy1
    • Rubidium and Embeddium are versions of the same mod, you can only have one. I believe Embeddium is the one that's actively maintained.
    • Hello, New to modding, but have a solid CS foundation. I've created multiple custom BlockEntities that all have the same issue, which is that the inventory only updates on right click (overriding the useItemOn method). I've seen multiple posts on here outlining a similar issue to mine, but I've already implemented the solution of: overriding the correct methods in the BlockEntity class and calling setChanged(). I've tried every different place for setChanged() to no success. I'm wondering if I'm missing something else or if there was some change to sending data to the client in 1.21.5? Or will I have to use a custom packet sender? Here is the code for one of my BlockEntity classes with a single inventory slot: public class MyCustomBlockEntity extends BlockEntity { public final ItemStackHandler inventory = new ItemStackHandler(1) { @Override protected int getStackLimit(int slot, @NotNull ItemStack stack) { return 1; } @Override protected void onContentsChanged(int slot) { setChanged(); if (!level.isClientSide()) { level.setBlockAndUpdate(getBlockPos(), getBlockState()); } } }; public MyCustomBlockEntity(BlockPos pPos, BlockState pBlockState) { super(ModBlockEntities.MY_CUSTOM_BE.get(), pPos, pBlockState); } public void clearContents() { inventory.setStackInSlot(0, ItemStack.EMPTY); } public void dropItem() { SimpleContainer inv = new SimpleContainer(inventory.getSlots()); inv.setItem(0, inventory.getStackInSlot(0)); Containers.dropContents(this.level, this.worldPosition, inv); } @Override public void setRemoved() { dropItem(); super.setRemoved(); } @Override protected void saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) { super.saveAdditional(pTag, pRegistries); pTag.put("inventory", inventory.serializeNBT(pRegistries)); } @Override protected void loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) { super.loadAdditional(pTag, pRegistries); inventory.deserializeNBT(pRegistries, pTag.getCompound("inventory").get()); } @Override public Packet<ClientGamePacketListener> getUpdatePacket() { return ClientboundBlockEntityDataPacket.create(this); } @Override public CompoundTag getUpdateTag(HolderLookup.Provider pRegistries) { return saveWithoutMetadata(pRegistries); } } Mostly encountering the issue when calling the clearContents() method anywhere outside of useItemOn() in the Block class. I've also tried overriding both the handleUpdateTag() and onDataPacket() methods, calling their super along with loadAdditional(), but neither changed the outcome. Thanks in advance for any replies.
    • Hi all! I’m working on a Jurassic Park-themed mod for Minecraft 1.20.1, aiming to include dinosaurs, fossils, DNA extraction, and cool machines. This is a free project, mainly passion-driven, and I’ll give full credit to everyone involved. this is the perfect opportunity for beginners of modeling and coding. This project will give you experience and a creative freedom If you love dinosaurs and Minecraft modding, hit me up! Thanks! Add Me ogfrost. <--- Discord
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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