Skip to content

Commit

Permalink
Open source Star Ruler 2 source code!
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas7211 committed Jul 17, 2018
0 parents commit cc30772
Show file tree
Hide file tree
Showing 4,342 changed files with 2,365,070 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.obj
*.log
*.pdb
*.tlog
*.log
*.idb
*.user
*.db
*.opendb
*.suo
*.ipch
*.res
*.sdf
*.db-shm
*.db-wal
15 changes: 15 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
All Star Ruler 2 source code is licensed under the MIT open source license. Third party code contained in this repository is subject to their project's license.

Licenses for third party projects are contained in relevant source folders as LICENSE- files.

All contained art assets, images and 3d models are licensed under the Creative Commons CC-BY-NC 2.0 license as found at https://creativecommons.org/licenses/by-nc/2.0/legalcode.

=======

Copyright 2018 Blind Mind Studios

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Star Ruler 2
Star Ruler 2 is a massive scale 4X/RTS set in space. Explore dozens, hundreds,
or even thousands of systems in a galaxy of your choosing, expand across its
planets, exploit the resources you find, and ultimately exterminate any who
stand in your way. The fate of your empire depends on your ability to master
the economy, field a military, influence galactic politics, and learn what you
can about the universe.

Binary file added Star Ruler 2.exe
Binary file not shown.
21 changes: 21 additions & 0 deletions StarRuler2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
#Figure out where the script is located
if [[ -L "$0" ]]; then
script_loc="$(readlink "$0")"
else
script_loc="$0"
fi
cd "$(dirname "$script_loc")"

#Execute the right binary for this architecture
if [ `uname` == "Darwin" ]; then
chmod +x ./bin/osx64/StarRuler2.bin
DYLD_LIBRARY_PATH="./bin/osx64/:$DYLD_LIBRARY_PATH" exec ./bin/osx64/StarRuler2.bin $@
elif [ `uname -m` = "x86_64" ]; then
chmod +x ./bin/lin64/StarRuler2.bin
LD_LIBRARY_PATH="./bin/lin64/:$LD_LIBRARY_PATH" exec ./bin/lin64/StarRuler2.bin $@
else
chmod +x ./bin/lin32/StarRuler2.bin
LD_LIBRARY_PATH="./bin/lin32/:$LD_LIBRARY_PATH" exec ./bin/lin32/StarRuler2.bin $@
fi;
# vim: set ff=unix:
Binary file added bin/win64/OpenAL64.dll
Binary file not shown.
Binary file added bin/win64/glew32.dll
Binary file not shown.
Binary file added bin/win64/libcurl.dll
Binary file not shown.
Binary file added bin/win64/libogg.dll
Binary file not shown.
Binary file added bin/win64/libpng64.dll
Binary file not shown.
Binary file added bin/win64/libvorbis.dll
Binary file not shown.
Binary file added bin/win64/libvorbisfile.dll
Binary file not shown.
Binary file added bin/win64/zlibwapi.dll
Binary file not shown.
18 changes: 18 additions & 0 deletions credits.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
=== BLIND MIND STUDIOS ===
Andrew Ackermann
James Woodall

=== GLACICLE ===
Lucas de Vries

=== WITH HELP FROM ===
Jon Micheelsen - 2D/3D Art
Nicolai Kilstrup - 3D Art
Jason Covenant - Musician, Sound Effects
Daniel Swearingen - Musician, Sound Effects

=== SPECIAL THANKS TO ===
Alarcarr - For tireless gameplay and balance testing!

And a big thank you to all who helped us test and improve the game throughout
the early alpha, beta, and early access periods.
11 changes: 11 additions & 0 deletions data/abilities/artifact/AncientEmbassy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Ability: AncientEmbassy
Name: #ABL_ANCIENT_EMBASSY
Description: #ABL_ANCIENT_EMBASSY_DESC
Icon: GuiOrbitalIcons::0
Activate Sound: generic_activate_2

Energy Cost: 1000

Target: dest = Point

SpawnOrbitalAt(dest, AncientEmbassy)
15 changes: 15 additions & 0 deletions data/abilities/artifact/BustPlanet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Ability: BustPlanet
Name: #ABL_BUST_PLANET
Description: #ABL_BUST_PLANET_DESC
Icon: CardCategoryIcons::5
Activate Sound: graviton_charge

Energy Cost: 1500

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterPlanetLevelBelow(targ, 1)

Trigger(targ, Destroy())

Trigger(targ, NotifyAll(#NOTIFY_BUST_PLANET, Icon = CardCategoryIcons::5))
10 changes: 10 additions & 0 deletions data/abilities/artifact/BusterMachine.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Ability: BusterMachine
Name: #ABL_BUSTER_MACHINE
Description: #ABL_BUSTER_MACHINE_DESC
Icon: HexagonSubsystems::6 * #e900ff
Activate Sound: generic_activate_2

Energy Cost: 1500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

SpawnShip(Buster Machine, Creeps)
13 changes: 13 additions & 0 deletions data/abilities/artifact/ConstructOrbitalFrame.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Ability: ConstructOrbitalFrame
Name: #ABL_ORBITAL_FRAME
Description: #ABL_ORBITAL_FRAME_DESC
Icon: GuiOrbitalIcons::0
Activate Sound: generic_activate_2

Energy Cost: 500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: dest = Point
TargetFilterInSystem(dest)

SpawnOrbitalAt(dest, Frame)
14 changes: 14 additions & 0 deletions data/abilities/artifact/DevelopPlanet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Ability: DevelopPlanet
Name: #ABL_DEVELOP_PLANET
Description: #ABL_DEVELOP_PLANET_DESC
Icon: ResourceIcon::8
Activate Sound: planetgen_activate

Energy Cost: 1500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterOwned(targ)

TriggerEffectOnce(targ, AddMaxPopulation(10))
16 changes: 16 additions & 0 deletions data/abilities/artifact/EquipIonCannon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Ability: EquipIonCannon
Name: #ABL_EQUIP_ION_CANNON
Description: #ABL_EQUIP_ION_CANNON_DESC
Icon: HexagonSubsystems::6 * #ff8d00
Activate Sound: generic_activate_1

Energy Cost: 500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterFlagship(targ)
TargetFilterOwned(targ)
TargetFilterSameTerritory(targ)
TargetFilterNotStatus(targ, IonCannon)

Trigger(targ, AddStatus(IonCannon))
16 changes: 16 additions & 0 deletions data/abilities/artifact/EquipSkipDrive.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Ability: EquipSkipDrive
Name: #ABL_EQUIP_SKIP_DRIVE
Description: #ABL_EQUIP_SKIP_DRIVE_DESC
Icon: GuiOrbitalIcons::2 * #ff0000
Activate Sound: generic_activate_1

Energy Cost: 500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterFlagship(targ)
TargetFilterOwned(targ)
TargetFilterSameTerritory(targ)
TargetFilterNotStatus(targ, SkipDrive)

Trigger(targ, AddStatus(SkipDrive))
16 changes: 16 additions & 0 deletions data/abilities/artifact/ExpandFleet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Ability: ExpandFleet
Name: #ABL_EXPAND_FLEET
Description: #ABL_EXPAND_FLEET_DESC
Icon: HexagonSubsystems::4
Activate Sound: command_activate

Energy Cost: 500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterFlagship(targ)
TargetFilterOwned(targ)
TargetFilterSameTerritory(targ)
TargetFilterNotStatus(targ, CommandComputer)

Trigger(targ, AddStatus(CommandComputer))
34 changes: 34 additions & 0 deletions data/abilities/artifact/FloatingContinent.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Ability: AddFloatingContinent
Name: #ABL_ADD_FLOATING_CONTINENT
Description: #ABL_ADD_FLOATING_CONTINENT_DESC
Icon: PlanetType::3
Activate Sound: generic_activate_2

Energy Cost: 800
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterOwned(targ)
TargetFilterNotStatus(targ, FloatingContinent)

Trigger(targ, AddStatus(FloatingContinent))
Trigger(targ, AddSurfaceArea(Forest, (12, 4), Vertical = True))

Ability: TransferFloatingContinent
Name: #ABL_TRANSFER_FLOATING_CONTINENT
Description: #ABL_TRANSFER_FLOATING_CONTINENT_DESC
Icon: PlanetType::3

Energy Cost: 300
DistanceEnergyCost(targ, 0, Sqrt Cost = 3)

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterOwned(targ)
TargetFilterNotStatus(targ, FloatingContinent)
RequireNotUnderSiege()

MoveFinalSurfaceRowsTo(targ, 5)
RemoveStatusInstance(FloatingContinent)
Trigger(targ, AddStatus(FloatingContinent))
13 changes: 13 additions & 0 deletions data/abilities/artifact/GainLeverage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Ability: GainLeverage
Name: #ABL_GAIN_LEVERAGE
Description: #ABL_GAIN_LEVERAGE_DESC
Icon: CardIcons::5

Energy Cost: 300

Target: targ = Object
TargetFilterRegion(targ)
TargetRequireVision(targ)
TargetFilterOtherEmpire(targ)

Trigger(targ, GainLeverageInSystem(9.0))
13 changes: 13 additions & 0 deletions data/abilities/artifact/GeneratePlanet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Ability: GeneratePlanet
Name: #ABL_GENERATE_PLANET
Description: #ABL_GENERATE_PLANET_DESC
Icon: PlanetType::2
Activate Sound: planetgen_activate

Energy Cost: 1400
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: dest = Point
TargetFilterInSystem(dest)

SpawnPlanetAt(dest)
15 changes: 15 additions & 0 deletions data/abilities/artifact/GenerateStar.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Ability: GenerateStar
Name: #ABL_GENERATE_STAR
Description: #ABL_GENERATE_STAR_DESC
Icon: SystemUnderAttack * #80ff80
Activate Sound: genesis_activate

Energy Cost: 2000
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: dest = Point
TargetFilterInUniverseBounds(dest, 2000)
TargetFilterNotInSystem(dest, 2000)

SpawnStarAt(dest)
Repeat(3:6, SpawnArtifactAround(dest, 400:1000, ProtoPlanet))
14 changes: 14 additions & 0 deletions data/abilities/artifact/GenerateWater.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Ability: GenerateWater
Name: #ABL_GENERATE_WATER
Description: #ABL_GENERATE_WATER_DESC
Icon: ResourceIcons::0
Activate Sound: comet_activate

Energy Cost: 500
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterOwned(targ)

TriggerEffectOnce(targ, AddPlanetResource(StellarWater))
18 changes: 18 additions & 0 deletions data/abilities/artifact/GenesisDevice.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Ability: GenesisDevice
Name: #ABL_GENESIS_DEVICE
Description: #ABL_GENESIS_DEVICE_DESC
Icon: ResourceClassIcons::1
Activate Sound: genesis_activate

Energy Cost: 1000
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterType(targ, Planet)
TargetFilterOwned(targ)
TargetFilterCanTerraform(targ)

Trigger(targ, TerraformToLevel(2))
TriggerEffectOnce(targ, PlayParticles(GenesisDevice, 1.03))

GiveAchievement(ACH_TERRAFORM)
14 changes: 14 additions & 0 deletions data/abilities/artifact/OverchargeFleet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Ability: OverchargeFleet
Name: #ABL_OVERCHARGE_FLEET
Description: #ABL_OVERCHARGE_FLEET_DESC
Icon: ResourceIcon::2

Energy Cost: 500

Target: targ = Object
TargetFilterFlagship(targ)
TargetFilterOwned(targ)
TargetFilterSameTerritory(targ)
TargetFilterNotStatus(targ, PowerCell)

Trigger(targ, AddStatus(PowerCell))
29 changes: 29 additions & 0 deletions data/abilities/artifact/ProtoLevels.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Ability: ProtoLevel0
Name: #ABL_PROTO_LEVEL0
Description: #ABL_PROTO_LEVEL0_DESC
Icon: PlanetType::5
Activate Sound: genesis_activate

Energy Cost: 900

SpawnPlanet(RandomLevel:0)

Ability: ProtoLevel1
Name: #ABL_PROTO_LEVEL1
Description: #ABL_PROTO_LEVEL1_DESC
Icon: ResourceClassIcons::0
Activate Sound: genesis_activate

Energy Cost: 1100

SpawnPlanet(RandomLevel:1)

Ability: ProtoLevel2
Name: #ABL_PROTO_LEVEL2
Description: #ABL_PROTO_LEVEL2_DESC
Icon: ResourceClassIcons::1
Activate Sound: genesis_activate

Energy Cost: 1300

SpawnPlanet(RandomLevel:2)
14 changes: 14 additions & 0 deletions data/abilities/artifact/SpawnSpyProbe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Ability: SpawnSpyProbe
Name: #ABL_SPAWN_SPY_PROBE
Description: #ABL_SPAWN_SPY_PROBE_DESC
Icon: VoteIcons::3 * #ff0000
Activate Sound: espionage_activate

Energy Cost: 750
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: targ = Object
TargetFilterRegion(targ)
TargetFilterRegionOtherEmpire(targ)

SpawnCreepShipFor(targ, Spy Probe, Status = SpyProbe)
13 changes: 13 additions & 0 deletions data/abilities/artifact/SpawnSupportStation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Ability: SpawnSupportStation
Name: #ABL_SPAWN_SUPPORT_STATION
Description: #ABL_SPAWN_SUPPORT_STATION_DESC
Icon: GuiOrbitalIcons::7
Activate Sound: generic_activate_2

Energy Cost: 750
ReduceEnergyCostSystemFlag(0.75, CheapArtifacts)

Target: dest = Point
TargetFilterInSystem(dest)

SpawnOrbitalAt(dest, SupportStation, Add Status = ConstructOrbital)
Loading

0 comments on commit cc30772

Please sign in to comment.