-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix evolution progress bar not showing progress * Fix accumulator name and enable by default in no-handcrafting * Remove game log for player mined * Add multiple item support for included chests in spawn area * Add local build script to copy files to factorio scenario folder * Update Readme * Update Screenshots * Add common lua commands reference
- Loading branch information
1 parent
649782a
commit 424f322
Showing
12 changed files
with
254 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
FACTORIO_DIR="$APPDATA/Factorio/scenarios" | ||
RELEASE_FILE_NAME="dddgamer-softmod-pack" | ||
|
||
echo "===== Current dir:" | ||
pwd # your-path-to-this-repository/factorio-softmod-pack | ||
# ls -al | ||
|
||
echo "Remove previous contents" | ||
rm -rfv "$FACTORIO_DIR/$RELEASE_FILE_NAME" | ||
|
||
# echo "===== Copy Repo folder..." | ||
# Copies everything including dot files/folders | ||
# cp -rfv "./" "$FACTORIO_DIR/$RELEASE_FILE_NAME" | ||
|
||
echo "===== Copy Repo folder..." | ||
# Make dir and tar/untar to copy contents without the dot file/folders | ||
# https://stackoverflow.com/questions/2193584/copy-folder-recursively-excluding-some-folders | ||
mkdir -p "$FACTORIO_DIR/$RELEASE_FILE_NAME" | ||
tar cfv - --exclude=".[^/]*" . | (cd "$FACTORIO_DIR/$RELEASE_FILE_NAME" && tar xvf - ) | ||
|
||
echo "===== Copied folder contents:" | ||
ls -al "$FACTORIO_DIR/$RELEASE_FILE_NAME" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Build Scripts | ||
Some scripts to automate testing code locally and packaging | ||
|
||
## Local | ||
* Copies code to Factorio scenarios folder so it can be tested | ||
* Run `bash .build-scripts/build-local.sh` | ||
|
||
## Build a Release | ||
* Creates a zip of the code for user to extract into the Factorio scenario folder | ||
* Run `bash .build-scripts/build-release.sh` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
-- Reveal Map | ||
/c | ||
game.players[1].force.chart( | ||
game.players[1].surface, | ||
{ | ||
{game.players[1].position.x - 300, game.players[1].position.y - 300}, | ||
{game.players[1].position.x + 300, game.players[1].position.y + 300} | ||
} | ||
) | ||
|
||
-- Set enemy evolution | ||
/c | ||
game.forces["enemy"].evolution_factor=0.5 | ||
|
||
-- Print technologies | ||
/c | ||
for i, tech in pairs(game.players[1].force.technologies) do | ||
game.print(tech) | ||
end | ||
|
||
-- Write techs to a file | ||
/c local list = {} | ||
for _, tech in pairs(game.player.force.technologies) do | ||
if tech.research_unit_count_formula then | ||
list[#list+1] = tech.name .. '\t|\t' .. tech.level .. '\t|\t' .. tech.research_unit_count .. '\t|\t' .. tech.research_unit_count_formula .. '\t|\t' .. tech.research_unit_energy | ||
end | ||
end | ||
game.write_file("techs.lua", serpent.block(list) .. "\n", true) | ||
|
||
-- Unclock tech research | ||
/c | ||
game.players[1].force.technologies['mining-productivity-16'].researched=true | ||
|
||
-- Print research ingredients | ||
/c | ||
game.print(serpent.block(game.players[1].force.technologies['mining-productivity-16'].research_unit_ingredients)) | ||
|
||
|
||
-- Set current research | ||
/c game.players[1].force.current_research = "mining-productivity-16" | ||
|
||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.