Jump to content

Is there a way to use Visual Studio 2015 to develop for forge?


Recommended Posts

Posted

I know Visual Studio doesn't offer Java support natively, but some people wrote what seem to be good extensions (like this: https://marketplace.visualstudio.com/items?itemName=SamHarwell.JavaLanguageSupport ). Given that the extension can launch a debugger, maybe it would be configurable to launch a Minecraft client, like Eclipse does. Has anyone already done this? Is it possible at all? In the end, everything could be done via shell commands, and, theoretically, all the building and launching part are easy: just tell VS which command with which parameters it needs to feed the shell to queue the task (like building using this and that lib, and launching the test client). In my ignorance, I may be oversimplifying the problem.

Posted

I don't know how to make it work. I would need hard directions on what is needed to make this work. I like Eclipse. Well, I don't hate it. But seeing there are 2 main alternatives, one being Eclipse, the other being IntelliJ, I thought a third wouldn't hurt.

Posted
  On 8/16/2017 at 2:27 AM, Is.M.L said:

I don't know how to make it work.

Expand  

And likely, neither does anyone else.

 

Personally I'd rather use Eclipse for C# instead of Visual Studio, but that's not going to happen any time soon.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 8/16/2017 at 2:11 AM, Is.M.L said:
Expand  

This extension isn't up-to-date at all, so I'm not so sure how well it will work, but it doesn't work with the newest versions of Visual Studio (like 2017).

Thought I know there are some extensions available for VS Code which are up-to-date: Java Extendsion, Gradle Extension

 

For Gradle related things, it seems like you have to change the build.gradle file a bit: 

https://docs.gradle.org/current/dsl/org.gradle.ide.visualstudio.VisualStudioProject.html

https://www.visualstudio.com/en-us/docs/build/steps/build/gradle

https://stackoverflow.com/questions/32592066/how-to-build-visual-studio-project-under-gradle

 

Thougt it seems to be that you can build Android Apps using VS, so maybe looking into the documentation on how to build Android Apps for VS might help as Android Apps are build using Gradle and Java.

Developer of Primeval Forest.

Posted
  On 8/16/2017 at 1:02 PM, Bektor said:

This extension isn't up-to-date at all, so I'm not so sure how well it will work, but it doesn't work with the newest versions of Visual Studio (like 2017).

Thought I know there are some extensions available for VS Code which are up-to-date: Java Extendsion, Gradle Extension

 

For Gradle related things, it seems like you have to change the build.gradle file a bit: 

https://docs.gradle.org/current/dsl/org.gradle.ide.visualstudio.VisualStudioProject.html

https://www.visualstudio.com/en-us/docs/build/steps/build/gradle

https://stackoverflow.com/questions/32592066/how-to-build-visual-studio-project-under-gradle

 

Thougt it seems to be that you can build Android Apps using VS, so maybe looking into the documentation on how to build Android Apps for VS might help as Android Apps are build using Gradle and Java.

Expand  

This looks extremely promising! The latest build is failing at the moment, so I'll give it a couple days before installing, but this might be perfect. People from Forge should take a look at this, and maybe create one of those scripts, like .\gradlew vs, if this really is as good as it looks!

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

    • Hi everyone, I’m working on a Minecraft mod and encountering an issue with a custom sound not playing when triggered. Here’s the setup: Problem: * A custom sound (killstreak_music) should play when a milestone (5 kills) is reached, but it doesn’t trigger in-game. * The .ogg file is in the correct directory (assets/killstreaksword/sounds/) and registered in sounds.json. sounds.json: {   "killstreak_music": {     "sounds": ["Finale.ogg"]   } } The .ogg file plays fine in other media players, but the /playsound command doesn’t detect it. What I’ve Tried: * Confirmed file path and name match exactly. * Reloaded resources (F3 + T) and re-exported the file using Audacity. * Added debug logs to my code to verify if the sound event is being retrieved. Here’s the relevant part of my code where I attempt to play the sound:   private static final ResourceLocation SOUND_LOCATION = ResourceLocation.fromNamespaceAndPath("killstreaksword", "killstreak_music"); private void playKillstreakMusic(Level world, Player player) {     SoundEvent soundEvent = ForgeRegistries.SOUND_EVENTS.getValue(SOUND_LOCATION);     if (soundEvent == null) {         System.out.println("Sound event not found: " + SOUND_LOCATION);     } else {         world.playSound(null, player.getX(), player.getY(), player.getZ(), soundEvent, SoundSource.PLAYERS, 1.0F, 1.0F);     } }   Could this be a file encoding or registration issue? Are there additional steps I’m missing to ensure Minecraft detects the sound? Any guidance or suggestions would be greatly appreciated. Thanks in advance!
    • Hello everyone, friends and family, I hope this message finds you well. I’m writing to you from Alberton, Canada, and I feel it’s important to share my story with you, not just as a cautionary tale, but as a message of hope. As many of you know, I’m a doctor, and in 2024, I decided to try my hand at cryptocurrency trading. I had heard so much about how profitable it could be, and with a background in analytics and understanding of markets, I thought I could navigate the space safely. Unfortunately, things didn’t go as planned. I was targeted by scammers who posed as legitimate trading platforms, and I ended up losing a significant amount of money. It was a devastating experience, and at one point, I felt like there was no way to recover my funds. But by God’s grace, I was referred to Hackerzed Nemesis Recovery, who are among the best bitcoin recovery specialists in the world. Through their expertise, they used advanced forensic techniques to track down the fraudulent transactions and recover every penny I had lost. I can’t tell you how grateful I am for their help without them, I would still be in the dark, feeling helpless and defeated. This experience has taught me a valuable lesson that I want to pass on to you all: Be extremely cautious when it comes to investing in cryptocurrency, especially online. While the industry itself can offer opportunities, there are countless scams out there designed to prey on people’s hopes and investments. If you have already fallen victim to such schemes, whether in forex, cryptocurrency, or Ponzi schemes, I strongly urge you to seek professional help. That brings me to another point I want to highlight: if you've been defrauded, do not lose hope. There are dedicated recovery services, like Hackerzed Nemesis Recovery, who can assist you in reclaiming your lost funds. cryptocurrency is a complex and volatile market, and while it can be rewarding, it's essential to proceed with caution. I hope my experience serves as a reminder to stay vigilant and do thorough research before making any investment. Wishing you all safety and success in your financial endeavors!  
    • Yes it was the full log. I didnt remove or add anything and did just what you recommended me with AT launcher and it doesnt work still. It has the same problem. I attatched the log.  
    • Yes, I agree. Downloading bods         
    • When I open a world, it works fine. It only crashes when I place a create block down. It also crashes when I try to reopen the world that crashes. I already tried to reset the graphics drivers.
  • Topics

×
×
  • Create New...

Important Information

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