calclavia Posted July 30, 2012 Posted July 30, 2012 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? Quote http://calclavia.com/uploads/banner.png[/img]
atrain99 Posted July 30, 2012 Posted July 30, 2012 They do it manually. Quote So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
calclavia Posted July 30, 2012 Author Posted July 30, 2012 They do it manually. You're not supposed to. There is a way to automate this. Quote http://calclavia.com/uploads/banner.png[/img]
Texasjake95 Posted July 30, 2012 Posted July 30, 2012 You're not supposed to. There is a way to automate this. If you can figure this out please let me know! Quote
OvermindDL1 Posted July 30, 2012 Posted July 30, 2012 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). Quote
LexManos Posted July 30, 2012 Posted July 30, 2012 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. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
OvermindDL1 Posted July 30, 2012 Posted July 30, 2012 My method works in everything, not just eclipse, plus no need to copy files around when recompiling/reobfing. Quote
calclavia Posted July 31, 2012 Author Posted July 31, 2012 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... Quote http://calclavia.com/uploads/banner.png[/img]
LexManos Posted July 31, 2012 Posted July 31, 2012 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. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
calclavia Posted July 31, 2012 Author Posted July 31, 2012 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! Quote http://calclavia.com/uploads/banner.png[/img]
Recommended Posts
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.