Jump to content

Recommended Posts

Posted

Hello everyone, I know this is a question that has been asked lots of times, but I couldn't find anything that could help me. I know how to make a Git repository and syncing that with eclipse. If I try that with my mod, instead of copying the files and then pushing them to git, eclipse moves them to the local repo folder, so that I can't access them anymore and I don't see anything in my git repository.

 

I'm on Mac, version 10.7.5 (can't update, my Mac is too old)

 

I would really love to be able to access my mod on git. Thanks.

 

P.S.: I have never used Github before, so I don't really know much about it.

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted

I strongly recommend using SourceTree.  It is a free client that helps manage git on either Windows or Mac.  You should choose to use the "embedded" version of git (meaning it will set up git for you).

 

A lot of people, and I expect someone here will answer the same, will say "git isn't so hard, just do it from command line" but honestly it can be a bit tricky figuring it out.  Why not use a graphical client that handles it for you?

 

Anyway, I use it on Windows and like it a lot and recommend it to anyone who is a casual coder.  I haven't tried it on Mac, but it seems to be available.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

I use source tree on a mac, and its great :D I use in conjunction with bit u bitbucket though l, so I am not sure of there are any different quirks with github. I highly doubt its different.

Aside from that, its great!

@jabelar I personally use command line on my wondow

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Posted

Hi

 

Using GitHub is really easy, the site has some excellent tutorials and set-by-step instructions.  The harder part is getting your git to synchronise the local repository with the remote (i.e. GitHub), it took me a while to figure it out.

 

I did it using IntelliJ instead of Eclipse, so if Jabelar recommends SourceTree, I'd so go for that.

 

-TGG

Posted

To be honest, once you used Github for a month, it's extremely easy. However like a some here said, it can be tricky. I do not know if you are just making an example/test mod right now or if you already started and want to share your code with a friend. However I recommend you creating a testmod or at least a test git repo for the first time. (Just in case you weren't planning on doing this).

 

Now I found that this might be interresting for you: try.github.com/. I know this is a tutorial for using the commandline, but the idea is the same, and I think it would be nice for you to know the basics.

 

I myself have used both commandline git and their git app for mac (not source tree like the guys above, but I have heard some good feedback about it, as other apps around that share the same purpose). I like the git app for mac (and I guess it looks some what the same on Windows/Linux), though it can be confusing since some buttons do not share their name with the commandline counterparts. (For example syncing, because its multiple commands in one button)

 

I think that's all I have to say about it.

 

EDIT: Typo :|

Posted

Thanks to everybody for your answers

 

@jabelar @Kwibble I'll try using Source tree, I hope it will help me out

 

@Meastroman I'll build a basic mod, just to try it out on git, I'll tell you if I have any problems.

 

Thanks again.

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted

hey guys, I downloaded source tree, how can I use it? I have no idea :( Sorry if it sounds stupid, I just have no clue about git and anything related to it, exception made for EGit (Eclipse plugin, I can't use it, it won't work...)

 

Thanks in advance

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted
  On 7/25/2014 at 6:00 PM, _gjkf_ said:

If I try that with my mod, instead of copying the files and then pushing them to git, eclipse moves them to the local repo folder, so that I can't access them anymore and I don't see anything in my git repository.

 

I have no problems using eclipse only. You can setup multiple local repositories pretty easily (google "eclipse git local repository"). So you just set that repo to the same location as the forgeinstallation (the .git folder should be besides the src folder) and BAM there you go. Eclipse won't move any files whatsoever

Posted
  On 7/26/2014 at 6:03 PM, WorldsEnder said:

I have no problems using eclipse only. You can setup multiple local repositories pretty easily (google "eclipse git local repository"). So you just set that repo to the same location as the forgeinstallation (the .git folder should be besides the src folder) and BAM there you go. Eclipse won't move any files whatsoever

 

Thanks, I'll try it tomorrow, thanks

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted

I'm away from my computer at the moment but will try to give some instructions in a couple hours.

 

But for now you should install it with the option for embedded git otherwise you'll have to do a separate git install.

 

You should sign up for a github account if you don't have one already.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted
  On 7/27/2014 at 5:32 AM, jabelar said:

Sorry for the delay, but I realized that there was a lot to write and so went ahead and wrote it up as a tutorial.

 

Please check out the tutorial, and let me know if you have any trouble (I just wrote it, so probably could be improved): http://jabelarminecraft.blogspot.com/p/minecraft-forge-publishing-to-github.html

 

I crash the app when I try to make a new remote repository... I tried many times, I just can't do it.

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted

LexManos points out in his tutorial for forge that you should include gradlew, gradlew.bat and gradle/ in your github repo so that anyone can build your project just by checking out your master branch.

Posted
  On 7/27/2014 at 2:58 PM, jabelar said:

You mean SourceTree app crashes?

 

At what point exactly?  What kind of computer are you using (what OS and is it good performance)?

 

SourceTree App crashes, no crash report. It crashes when I press the "Create Repository" Button on the "Show Hosted Repositories" view. I have a Mac Book Pro 13'', 5 years old. I'm using 10.7.5 as OS

 

Specs:

 

Processor: 2,53 Ghz Intel Core 2 Duo

Ram: 4 GB 1067 MHz DDR3

Software: Mac OS X Lion 10.7.5 (11G63b)

Graphic: NVIDIA GeForce 9400M 256 MB

 

I hope this helps

"I an atom in the universe, a universe of atoms"-- Richard P. Feynman

Posted

That would have to be a problem either with the application or with your computer (although frankly creating the remote repository shouldn't tax most computers).  I would search web for similar crashes.  Maybe some other Mac users here have some suggestions.  Sorry, but the app crashing isn't something I can really help with.

 

The one thing I know is that in the release notes in previous fixes there were similar such issues.

 

Possible work-around: I think you might want to try doing it the other way around.  In my tutorial I have the hosted repository get created from SourceTree, but you can actually create it directly on github website first.  So just go to the github web site and create a new repository (use name of your project folder).  Then skip the step in my tutorial about creating the hosted repository and just add the repository as a remote (later step) to your local repository.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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

    • The specific issue is that items in my inventory wont stack properly. For instance, if I punch a tree down to collect wood, the first block I collected goes to my hand. So when I punch the second block of wood to collect it, it drops, but instead of stacking with the piece of wood already in my hand, it goes to the second slot in my hotbar instead. Another example is that I'll get some dirt, and then when I'm placing it down later I'll accidentally place a block where I don't want it. When I harvest it again, it doesn't go back to the stack that it came from on my hotbar, where it should have gone, but rather into my inventory. That means that if my inventory is full, then the dirt wont be picked up even though there should be space available in the stack I'm holding. The forge version I'm using is 40.3.0, for java 1.18.2. I'll leave the mods I'm using here, and I'd appreciate it if anybody can point me in the right direction in regards to figuring out how to fix this. I forgot to mention that I think it only happens on my server but I'm not entirely sure. PLEASE HELP ME! LIST OF THE MODS. aaa_particles Adorn AdvancementPlaques AI-Improvements AkashicTome alexsdelight alexsmobs AmbientSounds amwplushies Animalistic another_furniture AppleSkin Aquaculture aquamirae architectury artifacts Atlas-Lib AutoLeveling AutoRegLib auudio balm betterfpsdist biggerstacks biomancy BiomesOPlenty blockui blueprint Bookshelf born_in_chaos Botania braincell BrassAmberBattleTowers brutalbosses camera CasinoCraft cfm (MrCrayfish’s Furniture Mod) chat_heads citadel cloth-config Clumps CMDCam CNB cobweb collective comforts convenientcurioscontainer cookingforblockheads coroutil CosmeticArmorReworked CozyHome CrabbersDelight crashexploitfixer crashutilities Create CreativeCore creeperoverhaul cristellib crittersandcompanions Croptopia CroptopiaAdditions CullLessLeaves curios curiouslanterns curiouslights Curses' Naturals CustomNPCs CyclopsCore dannys_expansion decocraft Decoration Mod DecorationDelightRefurbished Decorative Blocks Disenchanting DistantHorizons doubledoors DramaticDoors drippyloadingscreen durabilitytooltip dynamic-fps dynamiclights DynamicTrees DynamicTreesBOP DynamicTreesPlus Easy Dungeons EasyAnvils EasyMagic easy_npc eatinganimation ecologics effective_fg elevatorid embeddium emotecraft enchantlimiter EnchantmentDescriptions EnderMail engineersdecor entityculling entity_model_features entity_texture_features epicfight EvilCraft exlinefurniture expandability explosiveenhancement factory-blocks fairylights fancymenu FancyVideo FarmersDelight fast-ip-ping FastSuite ferritecore finsandtails FixMySpawnR Forge Middle Ages fossil FpsReducer2 furnish GamingDeco geckolib goblintraders goldenfood goodall H.e.b habitat harvest-with-ease hexerei hole_filler huge-structure-blocks HunterIllager iammusicplayer Iceberg illuminations immersive_paintings incubation infinitybuttons inventoryhud InventoryProfilesNext invocore ItemBorders itemzoom Jade jei (Just Enough Items) JetAndEliasArmors journeymap JRFTL justzoom kiwiboi Kobolds konkrete kotlinforforge lazydfu LegendaryTooltips libIPN lightspeed lmft lodestone LongNbtKiller LuckPerms Lucky77 MagmaMonsters malum ManyIdeasCore ManyIdeasDoors marbledsarsenal marg mcw-furniture mcw-lights mcw-paths mcw-stairs mcw-trapdoors mcw-windows meetyourfight melody memoryleakfix Mimic minecraft-comes-alive MineTraps minibosses MmmMmmMmmMmm MOAdecor (ART, BATH, COOKERY, GARDEN, HOLIDAYS, LIGHTS, SCIENCE) MobCatcher modonomicon mods_optimizer morehitboxes mowziesmobs MutantMonsters mysticalworld naturalist NaturesAura neapolitan NekosEnchantedBooks neoncraft2 nerb nifty NightConfigFixes nightlights nocube's_villagers_sell_animals NoSeeNoTick notenoughanimations obscure_api oculus oresabovediamonds otyacraftengine Paraglider Patchouli physics-mod Pillagers Gun PizzaCraft placeableitems Placebo player-animation-lib pneumaticcraft-repressurized polymorph PrettyPipes Prism projectbrazier Psychadelic-Chemistry PuzzlesLib realmrpg_imps_and_demons RecipesLibrary reeves-furniture RegionsUnexplored restrictedportals revive-me Scary_Mobs_And_Bosses selene shetiphiancore ShoulderSurfing smoothboot
    • Hi everyone, I'm currently developing a Forge 1.21 mod for Minecraft and I want to display a custom HUD overlay for a minigame. My goal: When the game starts, all players should see an item/block icon (from the base game, not a custom texture) plus its name/text in the HUD – similar to how the bossbar overlay works. The HUD should appear centered above the hotbar (or at a similar prominent spot), and update dynamically (icon and name change as the target item changes). What I've tried: I looked at many online tutorials and several GitHub repos (e.g. SeasonHUD, MiniHUD), but most of them use NeoForge or Forge versions <1.20 that provide the IGuiOverlay API (e.g. implements IGuiOverlay, RegisterGuiOverlaysEvent). In Forge 1.21, it seems that neither IGuiOverlay nor RegisterGuiOverlaysEvent exist anymore – at least, I can't import them and they are missing from the docs and code completion. I tried using RenderLevelStageEvent as a workaround but it is probably not intended for custom HUDs. I am not using NeoForge, and switching the project to NeoForge is currently not an option for me. I tried to look at the original minecraft source code to see how elements like hearts, hotbar etc are drawn on the screen but I am too new to Minecraft modding to understand. What I'm looking for: What is the correct way to add a custom HUD element (icon + text) in Forge 1.21, given that the previous overlay API is missing? Is there a new recommended event, callback, or method in Forge 1.21 for custom HUD overlays, or is everyone just using a workaround? Is there a minimal open-source example repo for Forge 1.21 that demonstrates a working HUD overlay without relying on NeoForge or deprecated Forge APIs? My ideal solution: Centered HUD element with an in-game item/block icon (from the base game's assets, e.g. a diamond or any ItemStack / Item) and its name as text, with a transparent background rectangle. It should be visible to the players when the mini game is running. Easy to update the item (e.g. static variable or other method), so it can change dynamically during the game. Any help, code snippets, or up-to-date references would be really appreciated! If this is simply not possible right now in Forge 1.21, it would also help to know that for sure. Thank you very much in advance!
    • The simple answer is there is not an easy way. You would need to know how to program in Java, as well as at least some familiarity with how Forge works so you could port the differences. You would also need the sourcecode for the original mod, and permission from the author to modify it, if they did not use some sort of open source license. So it's not impossible, but it would take some effort, but doing so would open up a whole new world of possibilities for you!
    • Does it still crash if you remove holdmyitems? Looks like that mod doesn't work on a server as far as I can tell from the error.  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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