Posted March 29, 20214 yr Hey there, I was just wondering if ANSI is still supported for newer versions of the forge server. I had an RLCraft 1.12.2 Server that supported color within the command prompt window right off the bat with no extra commands, but when I try to run a forge 1.16.5 server, it simply does not output color into the console. I have tried manually enabling ANSI for CMD in my Registry but even that doesn't work. Have you stopped supporting color or is there a way to enable it? Thank you. In the first image, you'll see my 1.16.5 server running without color. The command I used to start it was :start java -Xmx8192M -Xms1024M -jar forge-1.16.5-36.1.0.jar nogui timeout /t 10 /nobreak goto start The second image is a 1.12.2 RLCraft Server. The command used to start that one was @echo off java -Xmx6G -Xms4G -jar forge-1.12.2-14.23.5.2838-universal.jar nogui PAUSE There are no special parameters that are added to the batch file to start that would enable color. I am lost.
March 29, 20214 yr Yes its still supported, it may or may not detect if your console supports it automatically due to weird changes in MC/the console. https://github.com/Minecrell/TerminalConsoleAppender You may be able to enable it yourself with the flags listed there. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
March 30, 20214 yr Author Thank you, I'll try this. I am very confused as to how it would work with RLCraft but not my Server!!
March 30, 20214 yr Author I have zero clue on how to use that program. Is there a more simplified method? Also, did RLCraft do something special with the forge server to make it automatically produce color within command prompt or am I missing something? Edited March 30, 20214 yr by LunarCama explained more and asked question
March 30, 20214 yr Its a library forge uses... That looks for environment variables, as stated in the readme... Just set the environment variables.. No idea what RLCraft is or what it does. But it probably sets those environment variables... As described in the readme... That I linked... I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
March 30, 20223 yr Author It took me a while to respond back to this, but I figured out what the issue was. On Windows, I had to edit a registry key to enable ANSI and only THEN did the flags for color work! I also managed to get it to work on the latest 1.18.2 Forge server as well (The new JVM argument thing is strange, but I kind of like that it's kept in a separate file. What is the reasoning behind that?) BTW, here is the registry key to add/change for other people who want color in their console! [HKEY_CURRENT_USER\Console] "VirtualTerminalLevel"=dword:00000001 After it's enabled, add these flags to your start.bat or user_jvm_args.txt -Dterminal.keepMinecraftFormatting=true -Dterminal.jline=true -Dterminal.ansi=true
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.