skeletonxf / star-ruler-2-mod-ce Goto Github PK
View Code? Open in Web Editor NEWColonisation Expansion - Star Ruler 2 mod
License: MIT License
Colonisation Expansion - Star Ruler 2 mod
License: MIT License
To summarize DaloLorn/Rising-Stars#20 and the SR2MM documentation:
Most modern SR2 mods use a special file structure for two reasons:
The following migration guide is a mildly edited form of the Git preparation guide in the SR2MM readme (themselves a modification of Darloth's instructions at the bottom of the linked RS issue), adjusted to hopefully fit your use case a little more closely:
- Create a folder to keep the repository in. For example,
C:\Projects\SourceControl\SR2-Colonization-Expansion
- Move all SR2 mod data (modinfo, logo, and the
data
,locales
andscripts
folders) into a subfolder of that folder - for example,Colonization Expansion
.- Move everything else (Git data, license, readme,
screenshots
folder) from your mod folder into the root folder. (In the example, that would beSR2-Colonization-Expansion
.)- Open a command prompt, preferably an admin command prompt (just in case either the source or destination folder are in Program Files). Navigate to your Star Ruler 2 mods directory. Example:
cd "C:\Program Files (x86)\Steam\SteamApps\common\Star Ruler 2\mods"
Create a symbolic link (specifically, a directory junction) from the mod folder in your Git repository to your SR2 mods directory. Example:
mklink /J "CE" "C:\Projects\SourceControl\SR2-Colonization-Expansion\Colonization Expansion"
After all of these steps have been performed, both SR2 and your Git client should see the mod exactly the way they're meant to see it, and the mod manager will be capable of cleanly downloading, installing, and updating it from GitHub.
On a tangentially related note, I can create a discussion channel for your mod in the SR2 Discord server, if you'd like one - and help you set up a webhook like the one used in #rs-dev-feed. (I can also list your repo in #mods-and-tools whenever you feel it's ready for people to play around with it.)
Upon starting Star Ruler 2 with the latest version of the Mod enabled the following Warning gets printed in the console and the log.txt
(even before starting a new game). Not sure if just unused dead code or wip.
scripts\server\map_generation.as:
Compiling void MapGeneration::generateRougeObjects()
Warning (1140:3): Unreachable code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.