Posted July 30, 201213 yr I seen a lot of open source mods on GitHub (such as EE3 and BC) have 3 folders. Client, Server and Common. This is a very nice way to sort out their mods, but how can I easily and not manually have to move all the common source files into the common folder? How did they have their Eclipse to set up to work with these things? http://calclavia.com/uploads/banner.png[/img]
July 30, 201213 yr They do it manually. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
July 30, 201213 yr Author They do it manually. You're not supposed to. There is a way to automate this. http://calclavia.com/uploads/banner.png[/img]
July 30, 201213 yr You're not supposed to. There is a way to automate this. If you can figure this out please let me know!
July 30, 201213 yr Actually I just use a very simple script. I have all my files in a subdirectory of the MCP install (like forge does), then run an install script to set it up. This sets up my mods whole structure (bash script): #!/bin/bash # Setup variables SELF="`pwd`" cd .. BASE="`pwd`" cd "$SELF" # Make directory and symlinks mkdir -p $BASE/src/minecraft/com/overminddl1/minecraft/mods/overgreenetics/ mkdir -p $BASE/src/minecraft_server/com/overminddl1/minecraft/mods/overgreenetics/ mkdir -p $BASE/src/minecraft/com/overminddl1/minecraft/libs/ ln -sf "$SELF/src/com/overminddl1/minecraft/mods/overgreenetics/client" "$BASE/src/minecraft/com/overminddl1/minecraft/mods/overgreenetics/client" ln -sf "$SELF/src/com/overminddl1/minecraft/mods/overgreenetics/common" "$BASE/src/minecraft/com/overminddl1/minecraft/mods/overgreenetics/common" ln -sf "$SELF/src/com/overminddl1/minecraft/mods/overgreenetics/server" "$BASE/src/minecraft_server/com/overminddl1/minecraft/mods/overgreenetics/server" ln -sf "$SELF/src/com/overminddl1/minecraft/mods/overgreenetics/common" "$BASE/src/minecraft_server/com/overminddl1/minecraft/mods/overgreenetics/common" ln -sf "$SELF/src/com/overminddl1/minecraft/libs/NMT" "$BASE/src/minecraft/com/overminddl1/minecraft/libs/NMT" Shared common directory between client/server, always synced, with a dedicated client and dedicated server area as well. It could be pretty easily ported to windows too (yes, windows 2000 and higher, including xp/vista/7/8 have a concept of symlinks like linux).
July 30, 201213 yr Note, for the most part it takes about 10 seconds to create a linked source folder in eclipse. You only need to copy files around when you recompile/reobf. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
July 30, 201213 yr My method works in everything, not just eclipse, plus no need to copy files around when recompiling/reobfing.
July 31, 201213 yr Author Note, for the most part it takes about 10 seconds to create a linked source folder in eclipse. You only need to copy files around when you recompile/reobf. How do you create a linked source folder? I can create a source folder but I don't know what's a linked src folder... http://calclavia.com/uploads/banner.png[/img]
July 31, 201213 yr Oh crap, you do system links, I did not see that That works, but ya, google is your friend if you dont know how to make linked folders in eclipse. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
July 31, 201213 yr Author Oh crap, you do system links, I did not see that That works, but ya, google is your friend if you dont know how to make linked folders in eclipse. Thanks for the info! http://calclavia.com/uploads/banner.png[/img]
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.