npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Option to include this plugin as submodule/downloadable plugin in git #114

Closed JernejHabjan closed 4 years ago

JernejHabjan commented 4 years ago

Hey,

Is there an option, to include this plugin in git repository as submodule? I cannot declare submodule, because this whole repository includes also other files, which are not related to plugin itself

npruehs commented 4 years ago

Hey @JernejHabjan!

I'm not aware of any options for including just subfolders in Git as submodules. I did some digging, and there's workarounds such as including the whole repo and using symlinks to the plugin folder, which isn't great but should work in your case.

JernejHabjan commented 4 years ago

Can I maybe initialize whole repository as a submodule and set RTS plugin path in build script?

JernejHabjan commented 4 years ago

Is there a possibility that RTSProject/Plugins/RealTimeStrategy folder gets pushed to another repository and is used in this one as a git submodule? This would make it so much easier as I could then also initialize a git submodule of my own?

npruehs commented 4 years ago

Hey @JernejHabjan ,

yeah, that should work. It would require some re-thinking of where to put what in terms of documentation.

"Unfortunately", I've just become a father and I don't have the time to do that right now, but I'll definitely keep that in mind!

JernejHabjan commented 4 years ago

Hey @npruehs congratulations!

Oh and I managed to get it to work with symlink as you recommended (still a proper submodule would be welcome as well).

Thanks and have a good one.