Compare commits
71 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1f5982a85 | ||
|
|
3c688d3fec | ||
|
|
889a9a7a05 | ||
|
|
ce6c39b7aa | ||
|
|
2a1fdded72 | ||
|
|
2b757fe107 | ||
|
|
a8d78453ff | ||
|
|
2b88396aac | ||
|
|
f856ad16ba | ||
|
|
f36d47c13f | ||
|
|
4f98bc95a2 | ||
|
|
ec3dc867c1 | ||
|
|
7fea7e91aa | ||
|
|
1ea545ccb2 | ||
|
|
e5e2d0ab03 | ||
|
|
c94e7aa031 | ||
|
|
5d1af6fb76 | ||
|
|
3b400ac3f3 | ||
|
|
308176ee81 | ||
|
|
8a84ebb58d | ||
|
|
158d11d3ba | ||
|
|
beec1eeaba | ||
|
|
63a1f4e2de | ||
|
|
7d845951e9 | ||
|
|
48d9ea6aa1 | ||
|
|
ae83e604ba | ||
|
|
c156968be6 | ||
|
|
effe2312e0 | ||
|
|
1c389dc7f8 | ||
|
|
972ca71978 | ||
|
|
fb35adb494 | ||
|
|
22813b71ff | ||
|
|
02243d1f5c | ||
|
|
e2b2e8fb4e | ||
|
|
390ceb8887 | ||
|
|
2167a3d7fe | ||
|
|
6f2033a455 | ||
|
|
2ae7863cae | ||
|
|
02b42c51da | ||
|
|
0ba26b22c0 | ||
|
|
017552f573 | ||
|
|
01a3c772e7 | ||
|
|
5693605f31 | ||
|
|
481881aa8b | ||
|
|
544660c4bb | ||
|
|
3d8d84177b | ||
|
|
789e354400 | ||
|
|
4fdb817d4a | ||
|
|
4055361501 | ||
|
|
416007593f | ||
|
|
4ed9f10c1b | ||
|
|
178cb12f85 | ||
|
|
c0582cd527 | ||
|
|
39e47db8c7 | ||
|
|
ed4156850b | ||
|
|
5364522a5a | ||
|
|
3382d56590 | ||
|
|
1e30c46322 | ||
|
|
3eb72d6d86 | ||
|
|
2d01c41159 | ||
|
|
0b3dddcc9e | ||
|
|
bc7085826e | ||
|
|
f78ee66049 | ||
|
|
fecaf768ab | ||
|
|
ec59cb602c | ||
|
|
2ea1671739 | ||
|
|
f7e4936445 | ||
|
|
d37e8c2e75 | ||
|
|
fb8dcc5f86 | ||
|
|
4c4c361093 | ||
|
|
9c29706297 |
3
.github/workflows/deployment.yml
vendored
@@ -47,7 +47,8 @@ jobs:
|
|||||||
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
||||||
cd ../MindustryBuilds
|
cd ../MindustryBuilds
|
||||||
echo "Updating version to ${RELEASE_VERSION:1}"
|
echo "Updating version to ${RELEASE_VERSION:1}"
|
||||||
echo versionName=7-fdroid-${RELEASE_VERSION:1}$'\n'versionCode=${GITHUB_RUN_NUMBER} > version_fdroid.txt
|
BNUM=$(($GITHUB_RUN_NUMBER + 1000))
|
||||||
|
echo versionName=7-fdroid-${RELEASE_VERSION:1}$'\n'versionCode=${BNUM} > version_fdroid.txt
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Updating to build ${RELEASE_VERSION:1}"
|
git commit -m "Updating to build ${RELEASE_VERSION:1}"
|
||||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds
|
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds
|
||||||
|
|||||||
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
logs/
|
logs/
|
||||||
|
/fastlane/metadata/android/en-US/changelogs/
|
||||||
/core/assets/mindustry-saves/
|
/core/assets/mindustry-saves/
|
||||||
/core/assets/mindustry-maps/
|
/core/assets/mindustry-maps/
|
||||||
/core/assets/bundles/output/
|
/core/assets/bundles/output/
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:isGame="true"
|
android:isGame="true"
|
||||||
|
android:theme="@style/ArcTheme"
|
||||||
android:usesCleartextTraffic="true"
|
android:usesCleartextTraffic="true"
|
||||||
android:appCategory="game"
|
android:appCategory="game"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
|||||||
@@ -100,6 +100,9 @@ android{
|
|||||||
all{
|
all{
|
||||||
minifyEnabled = true
|
minifyEnabled = true
|
||||||
shrinkResources = true
|
shrinkResources = true
|
||||||
|
//this is the ONLY WAY I could find to force r8 to keep its filthy hands off of my default interfaces.
|
||||||
|
//may have undesirable side effects
|
||||||
|
debuggable = true
|
||||||
proguardFiles("proguard-rules.pro")
|
proguardFiles("proguard-rules.pro")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
android/res/values-v21/styles.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<style name="ArcTheme" parent="android:Theme.Material.NoActionBar">
|
||||||
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
|
<item name="android:windowAnimationStyle">@android:style/Animation</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
|
<item name="android:windowFullscreen">true</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
10
android/res/values/styles.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<resources>
|
||||||
|
<style name="ArcTheme" parent="android:Theme">
|
||||||
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
|
<item name="android:windowAnimationStyle">@android:style/Animation</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
|
<item name="android:windowFullscreen">true</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
@@ -87,18 +87,18 @@ public class AssetsProcess extends BaseProcessor{
|
|||||||
filename = filename.substring(0, filename.indexOf("."));
|
filename = filename.substring(0, filename.indexOf("."));
|
||||||
|
|
||||||
String sfilen = filename;
|
String sfilen = filename;
|
||||||
String dtype = p.name().endsWith(".9.png") ? "arc.scene.style.NinePatchDrawable" : "arc.scene.style.TextureRegionDrawable";
|
String dtype = "arc.scene.style.Drawable";
|
||||||
|
|
||||||
String varname = capitalize(sfilen);
|
String varname = capitalize(sfilen);
|
||||||
|
|
||||||
if(SourceVersion.isKeyword(varname)) varname += "s";
|
if(SourceVersion.isKeyword(varname)) varname += "s";
|
||||||
|
|
||||||
type.addField(ClassName.bestGuess(dtype), varname, Modifier.STATIC, Modifier.PUBLIC);
|
type.addField(ClassName.bestGuess(dtype), varname, Modifier.STATIC, Modifier.PUBLIC);
|
||||||
load.addStatement(varname + " = (" + dtype + ")arc.Core.atlas.drawable($S)", sfilen);
|
load.addStatement(varname + " = arc.Core.atlas.drawable($S)", sfilen);
|
||||||
});
|
});
|
||||||
|
|
||||||
for(Element elem : elements){
|
for(Element elem : elements){
|
||||||
Seq.with(((TypeElement)elem).getEnclosedElements()).each(e -> e.getKind() == ElementKind.FIELD, field -> {
|
Seq.with(elem.getEnclosedElements()).each(e -> e.getKind() == ElementKind.FIELD, field -> {
|
||||||
String fname = field.getSimpleName().toString();
|
String fname = field.getSimpleName().toString();
|
||||||
if(fname.startsWith("default")){
|
if(fname.startsWith("default")){
|
||||||
loadStyles.addStatement("arc.Core.scene.addStyle(" + field.asType().toString() + ".class, mindustry.ui.Styles." + fname + ")");
|
loadStyles.addStatement("arc.Core.scene.addStyle(" + field.asType().toString() + ".class, mindustry.ui.Styles." + fname + ")");
|
||||||
@@ -124,7 +124,7 @@ public class AssetsProcess extends BaseProcessor{
|
|||||||
String name = p.nameWithoutExtension();
|
String name = p.nameWithoutExtension();
|
||||||
|
|
||||||
if(names.contains(name)){
|
if(names.contains(name)){
|
||||||
BaseProcessor.err("Duplicate file name: " + p.toString() + "!");
|
BaseProcessor.err("Duplicate file name: " + p + "!");
|
||||||
}else{
|
}else{
|
||||||
names.add(name);
|
names.add(name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:collided,type:arc.struct.IntSeq},{name:damage,type:float},{name:data,type:java.lang.Object},{name:fdata,type:float},{name:lifetime,type:float},{name:owner,type:mindustry.gen.Entityc},{name:rotation,type:float},{name:team,type:mindustry.game.Team},{name:time,type:float},{name:type,type:mindustry.entities.bullet.BulletType},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/alpha/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/arkyid/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/beta/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/block/6.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:6,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/corvus/6.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:6,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/flare/6.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:6,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/gamma/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/mace/6.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:6,fields:[{name:ammo,type:float},{name:baseRotation,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/mega/4.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:4,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:payloads,type:arc.struct.Seq<mindustry.world.blocks.payloads.Payload>},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/mono/5.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:5,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/nova/4.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:4,fields:[{name:ammo,type:float},{name:baseRotation,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/oct/4.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:4,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:payloads,type:arc.struct.Seq<mindustry.world.blocks.payloads.Payload>},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/poly/4.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:4,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/pulsar/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:baseRotation,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/quad/5.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:5,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:payloads,type:arc.struct.Seq<mindustry.world.blocks.payloads.Payload>},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/quasar/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:baseRotation,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/risso/6.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:6,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/spiroct/5.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:5,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
1
annotations/src/main/resources/revisions/toxopid/2.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{version:2,fields:[{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}
|
||||||
@@ -501,9 +501,11 @@ task deployAll{
|
|||||||
dependsOn "desktop:packrWindows64"
|
dependsOn "desktop:packrWindows64"
|
||||||
dependsOn "desktop:packrWindows32"
|
dependsOn "desktop:packrWindows32"
|
||||||
dependsOn "desktop:packrMacOS"
|
dependsOn "desktop:packrMacOS"
|
||||||
|
if(versionModifier != "steam"){
|
||||||
dependsOn "server:deploy"
|
dependsOn "server:deploy"
|
||||||
dependsOn "android:deploy"
|
dependsOn "android:deploy"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task resolveDependencies{
|
task resolveDependencies{
|
||||||
doLast{
|
doLast{
|
||||||
|
|||||||
BIN
core/assets-raw/sprites/blocks/defense/force-projector-team.png
Normal file
|
After Width: | Height: | Size: 751 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
core/assets-raw/sprites/ui/slider-back.9.png
Normal file
|
After Width: | Height: | Size: 197 B |
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 117 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 72 B |
@@ -806,6 +806,7 @@ bullet.reload = [stat]{0}[lightgray]x fire rate
|
|||||||
unit.blocks = blocks
|
unit.blocks = blocks
|
||||||
unit.blockssquared = blocks²
|
unit.blockssquared = blocks²
|
||||||
unit.powersecond = power units/second
|
unit.powersecond = power units/second
|
||||||
|
unit.tilessecond = tiles/second
|
||||||
unit.liquidsecond = liquid units/second
|
unit.liquidsecond = liquid units/second
|
||||||
unit.itemssecond = items/second
|
unit.itemssecond = items/second
|
||||||
unit.liquidunits = liquid units
|
unit.liquidunits = liquid units
|
||||||
@@ -1592,7 +1593,7 @@ lst.set = Set a variable.
|
|||||||
lst.operation = Perform an operation on 1-2 variables.
|
lst.operation = Perform an operation on 1-2 variables.
|
||||||
lst.end = Jump to the top of the instruction stack.
|
lst.end = Jump to the top of the instruction stack.
|
||||||
lst.wait = Wait a certain number of seconds.
|
lst.wait = Wait a certain number of seconds.
|
||||||
lst.lookup = Look up a item/liquid/unit/block type by ID.\nTotal counts of each type can be accessed with:\n[accent]@unitCount[] / [accent]@itemCount[] / [accent]@liquidCount[] / [accent]@blockCount[]
|
lst.lookup = Look up an item/liquid/unit/block type by ID.\nTotal counts of each type can be accessed with:\n[accent]@unitCount[] / [accent]@itemCount[] / [accent]@liquidCount[] / [accent]@blockCount[]
|
||||||
lst.jump = Conditionally jump to another statement.
|
lst.jump = Conditionally jump to another statement.
|
||||||
lst.unitbind = Bind to the next unit of a type, and store it in [accent]@unit[].
|
lst.unitbind = Bind to the next unit of a type, and store it in [accent]@unit[].
|
||||||
lst.unitcontrol = Control the currently bound unit.
|
lst.unitcontrol = Control the currently bound unit.
|
||||||
|
|||||||
@@ -41,11 +41,13 @@ be.ignore = Ignorar
|
|||||||
be.noupdates = No se encontraron actualizaciones.
|
be.noupdates = No se encontraron actualizaciones.
|
||||||
be.check = Buscar actualizaciones
|
be.check = Buscar actualizaciones
|
||||||
|
|
||||||
mod.featured.title = Explorador de mods
|
mods.browser = Explorador de Mods
|
||||||
mod.featured.dialog.title = Explorador de Mods
|
|
||||||
mods.browser.selected = Mod seleccionado
|
mods.browser.selected = Mod seleccionado
|
||||||
mods.browser.add = Installar Mod
|
mods.browser.add = Instalar
|
||||||
mods.github.open = Abrir en Github
|
mods.browser.reinstall = Reinstalar
|
||||||
|
mods.github.open = Repositorio
|
||||||
|
mods.browser.sortdate = Más recientes
|
||||||
|
mods.browser.sortstars = Mejor valorados
|
||||||
|
|
||||||
schematic = Plantilla
|
schematic = Plantilla
|
||||||
schematic.add = Guardar plantilla...
|
schematic.add = Guardar plantilla...
|
||||||
@@ -55,16 +57,24 @@ schematic.exists = Ya existe una plantilla con ese nombre.
|
|||||||
schematic.import = Importar plantilla...
|
schematic.import = Importar plantilla...
|
||||||
schematic.exportfile = Exportar archivo
|
schematic.exportfile = Exportar archivo
|
||||||
schematic.importfile = Importar archivo
|
schematic.importfile = Importar archivo
|
||||||
schematic.browseworkshop = Buscar en el Steam Workshop
|
schematic.browseworkshop = Buscar en Steam Workshop
|
||||||
schematic.copy = Copiar al portapapeles.
|
schematic.copy = Copiar al portapapeles.
|
||||||
schematic.copy.import = Importar desde el portapapeles.
|
schematic.copy.import = Importar desde el portapapeles.
|
||||||
schematic.shareworkshop = Compartir en el Steam Workshop
|
schematic.shareworkshop = Compartir en Steam Workshop
|
||||||
schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Girar plantilla
|
schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Girar plantilla
|
||||||
schematic.saved = Plantilla guardada.
|
schematic.saved = Plantilla guardada.
|
||||||
schematic.delete.confirm = Se borrará ésta plantilla.
|
schematic.delete.confirm = Se borrará ésta plantilla.
|
||||||
schematic.rename = Renombrar plantilla
|
schematic.rename = Renombrar plantilla
|
||||||
schematic.info = {0}x{1}, {2} bloques
|
schematic.info = {0}x{1}, {2} bloques
|
||||||
schematic.disabled = [scarlet]Plantillas desactivadas.[]\nNo puedes usar plantillas en este [accent]mapa[] o [accent]servidor.
|
schematic.disabled = [scarlet]Plantillas desactivadas.[]\nNo puedes usar plantillas en este [accent]mapa[] o [accent]servidor.
|
||||||
|
schematic.tags = Etiquetas:
|
||||||
|
schematic.edittags = Editar Etiquetas
|
||||||
|
schematic.addtag = Añadir Etiqueta
|
||||||
|
schematic.texttag = Texto de Etiqueta
|
||||||
|
schematic.icontag = Icono de Etiqueta
|
||||||
|
schematic.renametag = Renombrar Etiqueta
|
||||||
|
schematic.tagdelconfirm = ¿Eliminar ésta etiqueta?
|
||||||
|
schematic.tagexists = Esa etiqueta ya existe.
|
||||||
|
|
||||||
stats = Estadísticas
|
stats = Estadísticas
|
||||||
stat.wave = Oleadas Derrotadas:[accent] {0}
|
stat.wave = Oleadas Derrotadas:[accent] {0}
|
||||||
@@ -77,12 +87,12 @@ stat.playtime = Tiempo jugado:[accent] {0}
|
|||||||
stat.rank = Rango final: [accent]{0}
|
stat.rank = Rango final: [accent]{0}
|
||||||
|
|
||||||
globalitems = [accent]Recursos Totales
|
globalitems = [accent]Recursos Totales
|
||||||
map.delete = ¿Estás seguro de que quieres borrar el mapa "[accent]{0}[]"?
|
map.delete = ¿Quieres borrar el mapa "[accent]{0}[]"?
|
||||||
level.highscore = Puntuación más alta: [accent]{0}
|
level.highscore = Puntuación más alta: [accent]{0}
|
||||||
level.select = Selección de nivel
|
level.select = Selección de Nivel
|
||||||
level.mode = Modo de juego:
|
level.mode = Modo de juego:
|
||||||
coreattack = < ¡El núcleo está bajo ataque! >
|
coreattack = < ¡El núcleo está bajo ataque! >
|
||||||
nearpoint = [[ [scarlet]ABANDONA EL PUNTO DE APARICIÓN INMEDIATAMENTE[] ]\nRiesgo de aniquilación inminente
|
nearpoint = [[ [scarlet]ABANDONA EL PUNTO DE ATERRIZAJE INMEDIATAMENTE[] ]\nRiesgo de aniquilación inminente
|
||||||
database = Base de datos
|
database = Base de datos
|
||||||
savegame = Guardar Partida
|
savegame = Guardar Partida
|
||||||
loadgame = Cargar Partida
|
loadgame = Cargar Partida
|
||||||
@@ -90,6 +100,7 @@ joingame = Unirse a Partida
|
|||||||
customgame = Crear Partida
|
customgame = Crear Partida
|
||||||
newgame = Nueva Partida
|
newgame = Nueva Partida
|
||||||
none = <no hay>
|
none = <no hay>
|
||||||
|
none.found = [lightgray]<no hay coincidencias>
|
||||||
minimap = Minimapa
|
minimap = Minimapa
|
||||||
position = Posición
|
position = Posición
|
||||||
close = Cerrar
|
close = Cerrar
|
||||||
@@ -110,17 +121,20 @@ committingchanges = Confirmando Cambios
|
|||||||
done = Hecho
|
done = Hecho
|
||||||
feature.unsupported = Tu dispositivo no es compatible con esta función.
|
feature.unsupported = Tu dispositivo no es compatible con esta función.
|
||||||
|
|
||||||
mods.alphainfo = Ten en cuenta que los mods estan en fase Alpha, y[scarlet] pueden tener varios errores[].\nReporta cualquier error que encuentres en la página de GitHub de Mindustry.
|
mods.initfailed = [red]⚠[] La anterior ejecución de Mindustry encontró un fallo al inicializarse. Seguramente fue causado por algún mod erróneo.\n\nPara evitar un bucle de erroes al iniciar el juego, [red]se han desactivado todos los mods.[]\n\nPuedes desactivar ésta medida de seguridad desde [accent]Opciones->Juego->Desactivar mods si el juego encuentra un error al iniciarse.[].
|
||||||
mods = Mods
|
mods = Mods
|
||||||
mods.none = [lightgray]¡No se encontraron Mods!
|
mods.none = [lightgray]¡No se encontraron Mods!
|
||||||
mods.guide = Guía de Modding
|
mods.guide = Guía sobre Mods
|
||||||
mods.report = Reportar Error
|
mods.report = Reportar Error
|
||||||
mods.openfolder = Abrir carpeta de mods
|
mods.openfolder = Abrir carpeta de mods
|
||||||
|
mods.viewcontent = Ver Contenido
|
||||||
mods.reload = Recargar
|
mods.reload = Recargar
|
||||||
mods.reloadexit = A continuación se cerrará el juego para recargar los mods.
|
mods.reloadexit = A continuación se cerrará el juego para recargar los mods.
|
||||||
|
mod.installed = [[Instalado]
|
||||||
mod.display = [gray]Mod:[orange] {0}
|
mod.display = [gray]Mod:[orange] {0}
|
||||||
mod.enabled = [lightgray]Activado
|
mod.enabled = [lightgray]Activado
|
||||||
mod.disabled = [scarlet]Desactivado
|
mod.disabled = [scarlet]Desactivado
|
||||||
|
mod.multiplayer.compatible = [gray]Compatible con Multijugador
|
||||||
mod.disable = Desactivar
|
mod.disable = Desactivar
|
||||||
mod.content = Contenido:
|
mod.content = Contenido:
|
||||||
mod.delete.error = No se pudo elminar el mod. Tal vez esté en uso por el juego.
|
mod.delete.error = No se pudo elminar el mod. Tal vez esté en uso por el juego.
|
||||||
@@ -130,20 +144,20 @@ mod.missingdependencies = [scarlet]Dependencias faltantes: {0}
|
|||||||
mod.erroredcontent = [scarlet]Contenido erróneo
|
mod.erroredcontent = [scarlet]Contenido erróneo
|
||||||
mod.errors = Ha ocurrido un fallo al cargar el contenido.
|
mod.errors = Ha ocurrido un fallo al cargar el contenido.
|
||||||
mod.noerrorplay = [scarlet]Se están ejecutando algunos mods con fallos.[]Deshabilítalos o arregla los errores antes de jugar.
|
mod.noerrorplay = [scarlet]Se están ejecutando algunos mods con fallos.[]Deshabilítalos o arregla los errores antes de jugar.
|
||||||
mod.nowdisabled = [scarlet]Al/Los Mod/s '{0}'le esta/n faltando dependencias:[accent] {1}\n[lightgray]Estos mods necesitan descargarse primero.\nEste mod será automaticamente desactivado.
|
mod.nowdisabled = [scarlet]El mod '{0}' necesita ejecutarse junto a otros mods de los que depende:[accent] {1}\n[lightgray]Es necesario descargar primero estos mods.\nEste mod será automaticamente desactivado.
|
||||||
mod.enable = Activar
|
mod.enable = Activar
|
||||||
mod.requiresrestart = El juego se cerrará para aplicar los mods.
|
mod.requiresrestart = El juego se cerrará para aplicar los mods.
|
||||||
mod.reloadrequired = [scarlet]Se requiere volver a cargar
|
mod.reloadrequired = [scarlet]Es necesario Reiniciar
|
||||||
mod.import = Importar mod
|
mod.import = Importar mod
|
||||||
mod.import.file = Importar archivo
|
mod.import.file = Importar archivo
|
||||||
mod.import.github = Importar Mod de Github
|
mod.import.github = Importar desde Github
|
||||||
mod.jarwarn = [scarlet]Los mods JAR pueden no ser seguros.[]\n¡Asegúrate de haberlos descargado de una fuente en la que confíes!
|
mod.jarwarn = [scarlet]Los mods JAR pueden no ser seguros.[]\n¡Asegúrate de haberlos descargado de una fuente en la que confíes!
|
||||||
mod.item.remove = Este objeto es parte del[accent] '{0}'[] mod. Para eliminarlo, desinstala ese mod.
|
mod.item.remove = Este objeto es parte del[accent] '{0}'[] mod. Para eliminarlo, desinstala ese mod.
|
||||||
mod.remove.confirm = Este mod va a ser eliminado.\n¿Quieres continuar?
|
mod.remove.confirm = Este mod va a ser eliminado.\n¿Quieres continuar?
|
||||||
mod.author = [lightgray]Autor:[] {0}
|
mod.author = [lightgray]Autor:[] {0}
|
||||||
mod.missing = Esta partida guardada usa mods que has actualizado recientemente o que no tienes instalados. Se puede corromper la partida guardada. ¿Quieres cargarla a pesar de ello?\n[lightgray]Mods:\n{0}
|
mod.missing = Esta partida guardada usa mods que has actualizado recientemente o que no tienes instalados. Se puede corromper la partida guardada. ¿Quieres cargarla a pesar de ello?\n[lightgray]Mods:\n{0}
|
||||||
mod.preview.missing = Antes de publicar este mod en el Steam Workshop, debe añadir una imagen de vista previa.\nAñada una imagen con nombre[accent] preview.png[] en la carpeta del mod e intente nuevamente.
|
mod.preview.missing = Antes de publicar este mod en Steam Workshop, debes añadir una imagen de vista previa.\nAñade una imagen llamada[accent] preview.png[] en la carpeta del mod e inténtalo de nuevo.
|
||||||
mod.folder.missing = Solo los mods en forma de carpeta se pueden publicar en el Steam Workshop.\nPara convertir cualquier mod en una carpeta, simplemente descomprima su archivo a una carpeta y elimine el zip anterior, luego reinicie su juego o vuelva a cargar sus mods.
|
mod.folder.missing = Sólo los mods en forma de carpeta se pueden publicar en Steam Workshop.\nPara convertir cualquier mod en una carpeta, descomprime su archivo a una carpeta y elimina el zip anterior, luego reinicia el juego o vuelve a cargar tus mods.
|
||||||
mod.scripts.disable = Tu dispositivo no es compatible con mods con scripts. Debes deshabilitar esos mods para jugar.
|
mod.scripts.disable = Tu dispositivo no es compatible con mods con scripts. Debes deshabilitar esos mods para jugar.
|
||||||
|
|
||||||
about.button = Acerca de...
|
about.button = Acerca de...
|
||||||
@@ -214,6 +228,8 @@ trace.ip = IP: [accent]{0}
|
|||||||
trace.id = ID Única: [accent]{0}
|
trace.id = ID Única: [accent]{0}
|
||||||
trace.mobile = Cliente de móvil: [accent]{0}
|
trace.mobile = Cliente de móvil: [accent]{0}
|
||||||
trace.modclient = Cliente Personalizado: [accent]{0}
|
trace.modclient = Cliente Personalizado: [accent]{0}
|
||||||
|
trace.times.joined = Se ha unido [accent]{0} []veces
|
||||||
|
trace.times.kicked = Fue expulsado [accent]{0} []veces
|
||||||
invalidid = ¡ID de cliente inválida! Por favor, envía un informe del error.
|
invalidid = ¡ID de cliente inválida! Por favor, envía un informe del error.
|
||||||
server.bans = Expulsiones
|
server.bans = Expulsiones
|
||||||
server.bans.none = No se ha baneado a ningún usuario aún
|
server.bans.none = No se ha baneado a ningún usuario aún
|
||||||
@@ -222,16 +238,16 @@ server.admins.none = ¡No hay ningún administrador!
|
|||||||
server.add = Agregar Servidor
|
server.add = Agregar Servidor
|
||||||
server.delete = ¿Estás seguro de querer borrar este servidor?
|
server.delete = ¿Estás seguro de querer borrar este servidor?
|
||||||
server.edit = Editar Servidor
|
server.edit = Editar Servidor
|
||||||
server.outdated = [crimson]¡Servidor desactualizado![]
|
server.outdated = [scarlet]¡Servidor Desactualizado![]
|
||||||
server.outdated.client = [crimson]¡Cliente desactualizado![]
|
server.outdated.client = [scarlet]¡Cliente Desactualizado![]
|
||||||
server.version = [lightgray]Versión: {0}
|
server.version = [gray]v{0} {1}
|
||||||
server.custombuild = [accent]Versión personalizada
|
server.custombuild = [accent]Versión Personalizada
|
||||||
confirmban = ¿Quieres banear a este jugador?
|
confirmban = ¿Quieres banear a "{0}[white]"?
|
||||||
confirmkick = ¿Estás seguro de querer expulsar este jugador?
|
confirmkick = ¿Quieres expulsar a "{0}[white]"?
|
||||||
confirmvotekick = ¿Estás de acuerdo en expulsar este jugador?
|
confirmvotekick = ¿Estás a favor de expulsar a "{0}[white]"?
|
||||||
confirmunban = ¿Quieres desbanear a este jugador?
|
confirmunban = ¿Quieres desbanear a este jugador?
|
||||||
confirmadmin = ¿Quieres hacer administrador a este jugador?
|
confirmadmin = ¿Quieres hacer administrador a "{0}[white]"?
|
||||||
confirmunadmin = ¿Quieres quitar los permisos de administrador a este jugador?
|
confirmunadmin = ¿Quieres quitarle los permisos de administrador a "{0}[white]"?
|
||||||
joingame.title = Unirse a Partida
|
joingame.title = Unirse a Partida
|
||||||
joingame.ip = IP:
|
joingame.ip = IP:
|
||||||
disconnect = Desconectado.
|
disconnect = Desconectado.
|
||||||
@@ -287,6 +303,7 @@ cancel = Cancelar
|
|||||||
openlink = Abrir Enlace
|
openlink = Abrir Enlace
|
||||||
copylink = Copiar Enlace
|
copylink = Copiar Enlace
|
||||||
back = Atrás
|
back = Atrás
|
||||||
|
max = Máximo
|
||||||
crash.export = Exportar Registros de errores
|
crash.export = Exportar Registros de errores
|
||||||
crash.none = No se encontraron Registros de errores.
|
crash.none = No se encontraron Registros de errores.
|
||||||
crash.exported = Registros de errores exportados.
|
crash.exported = Registros de errores exportados.
|
||||||
@@ -361,7 +378,6 @@ editor.center = Centrar
|
|||||||
workshop = Steam Workshop
|
workshop = Steam Workshop
|
||||||
waves.title = Oleadas
|
waves.title = Oleadas
|
||||||
waves.remove = Borrar
|
waves.remove = Borrar
|
||||||
waves.never = <nunca>
|
|
||||||
waves.every = cada
|
waves.every = cada
|
||||||
waves.waves = oleada(s)
|
waves.waves = oleada(s)
|
||||||
waves.perspawn = por lugar de aparición
|
waves.perspawn = por lugar de aparición
|
||||||
@@ -444,6 +460,7 @@ toolmode.drawteams = Dibujar Equipos
|
|||||||
toolmode.drawteams.description = Dibuja equipos en lugar de bloques.
|
toolmode.drawteams.description = Dibuja equipos en lugar de bloques.
|
||||||
|
|
||||||
filters.empty = [lightgray]¡No hay filtros! Añade uno con el botón de abajo.
|
filters.empty = [lightgray]¡No hay filtros! Añade uno con el botón de abajo.
|
||||||
|
|
||||||
filter.distort = Distorsionar
|
filter.distort = Distorsionar
|
||||||
filter.noise = Ruido
|
filter.noise = Ruido
|
||||||
filter.enemyspawn = Punto de aparición enemigo
|
filter.enemyspawn = Punto de aparición enemigo
|
||||||
@@ -460,19 +477,22 @@ filter.clear = Despejar
|
|||||||
filter.option.ignore = Ignorar
|
filter.option.ignore = Ignorar
|
||||||
filter.scatter = Dispersar
|
filter.scatter = Dispersar
|
||||||
filter.terrain = Terreno
|
filter.terrain = Terreno
|
||||||
|
|
||||||
filter.option.scale = Escala
|
filter.option.scale = Escala
|
||||||
filter.option.chance = Probabilidad
|
filter.option.chance = Probabilidad
|
||||||
filter.option.mag = Magnitud
|
filter.option.mag = Magnitud
|
||||||
filter.option.threshold = Umbral
|
filter.option.threshold = Umbral
|
||||||
filter.option.circle-scale = Escala del círculo
|
filter.option.circle-scale = Escala del círculo
|
||||||
filter.option.octaves = Continuidad
|
filter.option.octaves = Continuidad
|
||||||
filter.option.falloff = Aterrizaje
|
filter.option.falloff = Caída
|
||||||
filter.option.angle = Ángulo
|
filter.option.angle = Ángulo
|
||||||
|
filter.option.rotate = Rotación
|
||||||
filter.option.amount = Cantidad
|
filter.option.amount = Cantidad
|
||||||
filter.option.block = Bloque
|
filter.option.block = Bloque
|
||||||
filter.option.floor = Suelo
|
filter.option.floor = Suelo
|
||||||
filter.option.flooronto = Suelo objetivo
|
filter.option.flooronto = Suelo objetivo
|
||||||
filter.option.target = Target
|
filter.option.target = Objetivo
|
||||||
|
filter.option.replacement = Reemplazo
|
||||||
filter.option.wall = Muro
|
filter.option.wall = Muro
|
||||||
filter.option.ore = Veta
|
filter.option.ore = Veta
|
||||||
filter.option.floor2 = Terreno secundario
|
filter.option.floor2 = Terreno secundario
|
||||||
@@ -484,11 +504,12 @@ width = Ancho:
|
|||||||
height = Alto:
|
height = Alto:
|
||||||
menu = Menú
|
menu = Menú
|
||||||
play = Jugar
|
play = Jugar
|
||||||
campaign = Continuar Campaña
|
campaign = Campaña
|
||||||
load = Cargar
|
load = Cargar
|
||||||
save = Guardar
|
save = Guardar
|
||||||
fps = FPS: {0}
|
fps = FPS: {0}
|
||||||
ping = Ping: {0}ms
|
ping = Ping: {0}ms
|
||||||
|
tps = TPS: {0}
|
||||||
memory = Mem: {0}mb
|
memory = Mem: {0}mb
|
||||||
memory2 = Mem:\n {0}mb +\n {1}mb
|
memory2 = Mem:\n {0}mb +\n {1}mb
|
||||||
language.restart = Reinicia el juego para que los cambios en el idioma tengan efecto.
|
language.restart = Reinicia el juego para que los cambios en el idioma tengan efecto.
|
||||||
@@ -565,6 +586,7 @@ sector.attacked = Sector [accent]{0}[white] bajo ataque[]!
|
|||||||
sector.lost = ¡Sector [accent]{0}[white] perdido[]!
|
sector.lost = ¡Sector [accent]{0}[white] perdido[]!
|
||||||
#nota: el espacio en blanco en la línea siguiente es intencionado
|
#nota: el espacio en blanco en la línea siguiente es intencionado
|
||||||
sector.captured = ¡Sector [accent]{0}[white] capturado[]!
|
sector.captured = ¡Sector [accent]{0}[white] capturado[]!
|
||||||
|
sector.changeicon = Cambiar Icono
|
||||||
|
|
||||||
threat.low = Baja
|
threat.low = Baja
|
||||||
threat.medium = Media
|
threat.medium = Media
|
||||||
@@ -611,6 +633,20 @@ sector.extractionOutpost.description = Una base remota, construida por el enemig
|
|||||||
sector.impact0078.description = Aquí yacen las ruinas de la primera estación de transporte interestelar en estar operativa del sistema.\n\nRecupera todo lo posible de los escombros. Investiga cualquier tecnología intacta.
|
sector.impact0078.description = Aquí yacen las ruinas de la primera estación de transporte interestelar en estar operativa del sistema.\n\nRecupera todo lo posible de los escombros. Investiga cualquier tecnología intacta.
|
||||||
sector.planetaryTerminal.description = El objetivo final.\n\nÉsta base costera alberga una estructura capaz de lanzar Núcleos a planeteas locales. Está extremadamente bien protegida.\n\nProduce unidades navales. Acaba con el enemigo lo antes posible. Analiza la estructura de lanzamiento.
|
sector.planetaryTerminal.description = El objetivo final.\n\nÉsta base costera alberga una estructura capaz de lanzar Núcleos a planeteas locales. Está extremadamente bien protegida.\n\nProduce unidades navales. Acaba con el enemigo lo antes posible. Analiza la estructura de lanzamiento.
|
||||||
|
|
||||||
|
status.burning.name = En llamas
|
||||||
|
status.freezing.name = Congelado
|
||||||
|
status.wet.name = Húmedo
|
||||||
|
status.muddy.name = Fangoso
|
||||||
|
status.melting.name = Fundido
|
||||||
|
status.sapped.name = Debilitado
|
||||||
|
status.electrified.name = Electrificado
|
||||||
|
status.spore-slowed.name = Ralentizado
|
||||||
|
status.tarred.name = Alquitranado
|
||||||
|
status.overclock.name = Sobrecargado
|
||||||
|
status.shocked.name = Aturdido
|
||||||
|
status.blasted.name = Explotado
|
||||||
|
status.unmoving.name = Inmóvil
|
||||||
|
|
||||||
settings.language = Idioma
|
settings.language = Idioma
|
||||||
settings.data = Datos del Juego
|
settings.data = Datos del Juego
|
||||||
settings.reset = Reiniciar a los valores por defecto
|
settings.reset = Reiniciar a los valores por defecto
|
||||||
@@ -632,6 +668,7 @@ settings.clearcampaignsaves.confirm = ¿Quieres borrar tus partidas guardadas en
|
|||||||
paused = [accent] < Pausado >
|
paused = [accent] < Pausado >
|
||||||
clear = Vaciar
|
clear = Vaciar
|
||||||
banned = [scarlet]Baneado
|
banned = [scarlet]Baneado
|
||||||
|
unsupported.environment = [scarlet]Entorno no válido
|
||||||
yes = Sí
|
yes = Sí
|
||||||
no = No
|
no = No
|
||||||
info.title = Información
|
info.title = Información
|
||||||
@@ -641,12 +678,14 @@ unit.nobuild = [scarlet]Esta unidad no puede construir
|
|||||||
lastaccessed = [lightgray]Último usado: {0}
|
lastaccessed = [lightgray]Último usado: {0}
|
||||||
block.unknown = [lightgray]???
|
block.unknown = [lightgray]???
|
||||||
|
|
||||||
|
stat.showinmap = <cargar mapa para mostrar>
|
||||||
stat.description = Objetivo
|
stat.description = Objetivo
|
||||||
stat.input = Entrada
|
stat.input = Entrada
|
||||||
stat.output = Salida
|
stat.output = Salida
|
||||||
stat.booster = Potenciador
|
stat.booster = Potenciador
|
||||||
stat.tiles = Terreno requerido
|
stat.tiles = Terreno requerido
|
||||||
stat.affinities = Afinidades
|
stat.affinities = Afinidades
|
||||||
|
stat.opposites = Opuestos
|
||||||
stat.powercapacity = Capacidad de Energía
|
stat.powercapacity = Capacidad de Energía
|
||||||
stat.powershot = Energía/Disparo
|
stat.powershot = Energía/Disparo
|
||||||
stat.damage = Daño
|
stat.damage = Daño
|
||||||
@@ -669,6 +708,7 @@ stat.memorycapacity = Capacidad de memoria
|
|||||||
stat.basepowergeneration = Generación de energía
|
stat.basepowergeneration = Generación de energía
|
||||||
stat.productiontime = Tiempo de producción
|
stat.productiontime = Tiempo de producción
|
||||||
stat.repairtime = Tiempo para Reparar Bloque Completamente
|
stat.repairtime = Tiempo para Reparar Bloque Completamente
|
||||||
|
stat.repairspeed = Velocidad de Reparación
|
||||||
stat.weapons = Armas
|
stat.weapons = Armas
|
||||||
stat.bullet = Proyectil
|
stat.bullet = Proyectil
|
||||||
stat.speedincrease = Aumento de Velocidad
|
stat.speedincrease = Aumento de Velocidad
|
||||||
@@ -705,15 +745,24 @@ stat.minetier = Nivel de taladro
|
|||||||
stat.payloadcapacity = Capacidad de carga
|
stat.payloadcapacity = Capacidad de carga
|
||||||
stat.commandlimit = Límite de comando
|
stat.commandlimit = Límite de comando
|
||||||
stat.abilities = Habilidades
|
stat.abilities = Habilidades
|
||||||
stat.canboost = Tiene Propulsores
|
stat.canboost = Potenciador
|
||||||
stat.flying = Aéreo
|
stat.flying = Aéreo
|
||||||
|
stat.ammouse = Usa Munición
|
||||||
|
stat.damagemultiplier = Multiplicador de Daño
|
||||||
|
stat.healthmultiplier = Multiplicador de Vida
|
||||||
|
stat.speedmultiplier = Multiplicador de Velocidad
|
||||||
|
stat.reloadmultiplier = Multiplicador de Recarga
|
||||||
|
stat.buildspeedmultiplier = Multiplicador de Velocidad de Construcción
|
||||||
|
stat.reactive = Reacciona
|
||||||
|
stat.healing = Sanador
|
||||||
|
|
||||||
ability.forcefield = Campo de Fuerza
|
ability.forcefield = Campo de Escudo
|
||||||
ability.repairfield = Campo de Reparación
|
ability.repairfield = Campo de Reparación
|
||||||
ability.statusfield = Campo de Estado
|
ability.statusfield = {0} Campo de aceleración
|
||||||
ability.unitspawn = {0} Fábrica de Drones
|
ability.unitspawn = {0} Fábrica
|
||||||
ability.shieldregenfield = Campo de Regeneración de Escudos
|
ability.shieldregenfield = Regeneración de Armaduras
|
||||||
ability.movelightning = Movimiento Relámpago
|
ability.movelightning = Movimiento Relámpago
|
||||||
|
ability.energyfield = Campo de Energía: [accent]{0}[] daño ~ [accent]{1}[] bloques / [accent]{2}[] objetivos
|
||||||
|
|
||||||
bar.drilltierreq = Requiere un taladro mejor
|
bar.drilltierreq = Requiere un taladro mejor
|
||||||
bar.noresources = Recursos insuficientes
|
bar.noresources = Recursos insuficientes
|
||||||
@@ -736,29 +785,28 @@ bar.power = Energía
|
|||||||
bar.progress = Progreso de construcción
|
bar.progress = Progreso de construcción
|
||||||
bar.input = Entrada
|
bar.input = Entrada
|
||||||
bar.output = Salida
|
bar.output = Salida
|
||||||
|
bar.strength = [stat]{0}[lightgray]x fuerza
|
||||||
|
|
||||||
units.processorcontrol = [lightgray]Controlado por Procesador
|
units.processorcontrol = [lightgray]Controlado por Procesador
|
||||||
|
|
||||||
bullet.damage = [stat]{0}[lightgray] Daño
|
bullet.damage = [stat]{0}[lightgray] Daño
|
||||||
bullet.splashdamage = [stat]{0}[lightgray] daño de área ~[stat] {1}[lightgray] casillas
|
bullet.splashdamage = [stat]{0}[lightgray] área daño ~[stat] {1}[lightgray] bloques
|
||||||
bullet.incendiary = [stat]Incendiaria
|
bullet.incendiary = [stat]Incendiaria
|
||||||
bullet.sapping = [stat]Oxidante
|
|
||||||
bullet.homing = [stat]Rastreadora
|
bullet.homing = [stat]Rastreadora
|
||||||
bullet.shock = [stat]Electrizante
|
|
||||||
bullet.frag = [stat]De fragmentación
|
bullet.frag = [stat]De fragmentación
|
||||||
|
bullet.lightning = [stat]{0}[lightgray]x rayo ~ [stat]{1}[lightgray] daño
|
||||||
bullet.buildingdamage = [stat]{0}%[lightgray] daño a estructuras
|
bullet.buildingdamage = [stat]{0}%[lightgray] daño a estructuras
|
||||||
bullet.knockback = [stat]{0}[lightgray] Empuje
|
bullet.knockback = [stat]{0}[lightgray] empuje
|
||||||
bullet.pierce = [stat]{0}[lightgray]x penetración
|
bullet.pierce = [stat]{0}[lightgray]x perforación
|
||||||
bullet.infinitepierce = [stat]Penetrante
|
bullet.infinitepierce = [stat]Perforante
|
||||||
bullet.healpercent = [stat]{0}[lightgray]% reparación
|
bullet.healpercent = [stat]{0}[lightgray]% reparación
|
||||||
bullet.freezing = [stat]Congelación
|
|
||||||
bullet.tarred = [stat]Ralentizado
|
|
||||||
bullet.multiplier = [stat]{0}[lightgray]x multiplicador de munición
|
bullet.multiplier = [stat]{0}[lightgray]x multiplicador de munición
|
||||||
bullet.reload = [stat]{0}[lightgray]x cadencia de fuego
|
bullet.reload = [stat]{0}[lightgray]x cadencia de fuego
|
||||||
|
|
||||||
unit.blocks = bloques
|
unit.blocks = bloques
|
||||||
unit.blockssquared = bloques²
|
unit.blockssquared = bloques²
|
||||||
unit.powersecond = unidades de energía/segundo
|
unit.powersecond = unidades de energía/segundo
|
||||||
|
unit.tilessecond = bloques/segundo
|
||||||
unit.liquidsecond = unidades de líquido/segundo
|
unit.liquidsecond = unidades de líquido/segundo
|
||||||
unit.itemssecond = objetos/segundo
|
unit.itemssecond = objetos/segundo
|
||||||
unit.liquidunits = unidades de líquido
|
unit.liquidunits = unidades de líquido
|
||||||
@@ -775,6 +823,7 @@ unit.items = objetos
|
|||||||
unit.thousands = k
|
unit.thousands = k
|
||||||
unit.millions = M
|
unit.millions = M
|
||||||
unit.billions = b
|
unit.billions = b
|
||||||
|
unit.pershot = /disparo
|
||||||
category.purpose = Objetivo
|
category.purpose = Objetivo
|
||||||
category.general = General
|
category.general = General
|
||||||
category.power = Energía
|
category.power = Energía
|
||||||
@@ -788,10 +837,13 @@ setting.shadows.name = Sombras
|
|||||||
setting.blockreplace.name = Sugerir bloques al construir
|
setting.blockreplace.name = Sugerir bloques al construir
|
||||||
setting.linear.name = Filtrado Lineal
|
setting.linear.name = Filtrado Lineal
|
||||||
setting.hints.name = Consejos
|
setting.hints.name = Consejos
|
||||||
|
setting.logichints.name = Consejos sobre "Bloques Lógicos"
|
||||||
setting.flow.name = Mostrar tasa de flujo de recursos
|
setting.flow.name = Mostrar tasa de flujo de recursos
|
||||||
setting.backgroundpause.name = Pausar en segundo plano
|
setting.backgroundpause.name = Pausar en segundo plano
|
||||||
setting.buildautopause.name = Auto-pausar construcción
|
setting.buildautopause.name = Auto-pausar construcción
|
||||||
setting.animatedwater.name = Animaciones de Terreno
|
setting.doubletapmine.name = Doble-Click para Extraer minerales
|
||||||
|
setting.modcrashdisable.name = Desactivar Mods si se cuelga el juego
|
||||||
|
setting.animatedwater.name = Animación de Terreno
|
||||||
setting.animatedshields.name = Animación de Escudos
|
setting.animatedshields.name = Animación de Escudos
|
||||||
setting.antialias.name = Antialias[lightgray] (necesita un reinicio)[]
|
setting.antialias.name = Antialias[lightgray] (necesita un reinicio)[]
|
||||||
setting.playerindicators.name = Indicadores de Jugadores
|
setting.playerindicators.name = Indicadores de Jugadores
|
||||||
@@ -844,6 +896,7 @@ setting.bridgeopacity.name = Opacidad de Puentes Transportadores
|
|||||||
setting.playerchat.name = Mostrar el chat de burbuja
|
setting.playerchat.name = Mostrar el chat de burbuja
|
||||||
setting.showweather.name = Efectos visuales climáticos
|
setting.showweather.name = Efectos visuales climáticos
|
||||||
public.confirm = ¿Quieres hacer pública tu partida?\n[lightgray]Esto se puede cambiar más tarde en "Configuración->Juego->Visibilidad pública de la partida".
|
public.confirm = ¿Quieres hacer pública tu partida?\n[lightgray]Esto se puede cambiar más tarde en "Configuración->Juego->Visibilidad pública de la partida".
|
||||||
|
public.confirm.really = ¡Si quieres jugar con amigos, usa [green]Invitar a Amigos[] en lugar de un [scarlet]Servidor Público[]!\n¿De verdad quieres hacer [scarlet]pública[] tu partida?
|
||||||
public.beta = Recuerda que no puedes crear partidas públicas en las versiones beta del juego.
|
public.beta = Recuerda que no puedes crear partidas públicas en las versiones beta del juego.
|
||||||
uiscale.reset = La escala de la interfaz ha sido modificada.\nPulsa "OK" para conservar esta escala.\n[scarlet]Se desharán los cambios automáticamente en [accent] {0}[] segundos...
|
uiscale.reset = La escala de la interfaz ha sido modificada.\nPulsa "OK" para conservar esta escala.\n[scarlet]Se desharán los cambios automáticamente en [accent] {0}[] segundos...
|
||||||
uiscale.cancel = Cancelar y Salir
|
uiscale.cancel = Cancelar y Salir
|
||||||
@@ -908,7 +961,8 @@ keybind.pause.name = Pausa
|
|||||||
keybind.pause_building.name = Pausar/Reanudar construcción
|
keybind.pause_building.name = Pausar/Reanudar construcción
|
||||||
keybind.minimap.name = Minimapa
|
keybind.minimap.name = Minimapa
|
||||||
keybind.planet_map.name = Mapa del Planeta
|
keybind.planet_map.name = Mapa del Planeta
|
||||||
keybind.research.name = Investigaciones
|
keybind.research.name = Investigar
|
||||||
|
keybind.block_info.name = Información del Bloque
|
||||||
keybind.chat.name = Chat
|
keybind.chat.name = Chat
|
||||||
keybind.player_list.name = Lista de jugadores
|
keybind.player_list.name = Lista de jugadores
|
||||||
keybind.console.name = Consola
|
keybind.console.name = Consola
|
||||||
@@ -935,18 +989,23 @@ mode.custom = Normas personalizadas
|
|||||||
|
|
||||||
rules.infiniteresources = Recursos infinitos
|
rules.infiniteresources = Recursos infinitos
|
||||||
rules.reactorexplosions = Los reactores pueden explotar
|
rules.reactorexplosions = Los reactores pueden explotar
|
||||||
|
rules.coreincinerates = Núcleos inceran exceso de recursos
|
||||||
rules.schematic = Permitir Plantillas
|
rules.schematic = Permitir Plantillas
|
||||||
rules.wavetimer = Temporizador de Oleadas
|
rules.wavetimer = Temporizador de Oleadas
|
||||||
rules.waves = Oleadas
|
rules.waves = Oleadas
|
||||||
rules.attack = Ataque
|
rules.attack = Asalto
|
||||||
rules.buildai = La IA enemiga puede construir
|
rules.buildai = Contrucción de IA
|
||||||
rules.enemyCheat = La IA enemiga tiene recursos infinitos
|
rules.corecapture = Capturar Núcleo al Destruirlo
|
||||||
rules.blockhealthmultiplier = Multiplicador de salud de bloque
|
rules.polygoncoreprotection = Protección de Núcleo Poligonal
|
||||||
rules.blockdamagemultiplier = Multiplicador de daño de bloque
|
rules.enemyCheat = La IA (Equipo Rojo) tiene recursos infinitos
|
||||||
|
rules.blockhealthmultiplier = Multiplicador de Salud de Bloque
|
||||||
|
rules.blockdamagemultiplier = Multiplicador de Daño de Bloque
|
||||||
rules.unitbuildspeedmultiplier = Multiplicador de velocidad de creación de unidades
|
rules.unitbuildspeedmultiplier = Multiplicador de velocidad de creación de unidades
|
||||||
rules.unithealthmultiplier = Multiplicador de la vida de las unidades
|
rules.unithealthmultiplier = Multiplicador de Vida de Unidades
|
||||||
rules.unitdamagemultiplier = Multiplicador del daño de unidades
|
rules.unitdamagemultiplier = Multiplicador de Daño de Unidades
|
||||||
rules.enemycorebuildradius = Radio de No-Construcción del Núcleo Enemigo:[lightgray] (casillas)
|
rules.unitcapvariable = Núcleos alteran el Límite de Unidades
|
||||||
|
rules.unitcap = Límite Base de Unidades
|
||||||
|
rules.enemycorebuildradius = Radio de No-Construcción del Núcleo Enemigo:[lightgray] (bloques)
|
||||||
rules.wavespacing = Tiempo entre oleadas:[lightgray] (seg)
|
rules.wavespacing = Tiempo entre oleadas:[lightgray] (seg)
|
||||||
rules.buildcostmultiplier = Multiplicador de coste de construcción
|
rules.buildcostmultiplier = Multiplicador de coste de construcción
|
||||||
rules.buildspeedmultiplier = Multiplicador de velocidad de construcción
|
rules.buildspeedmultiplier = Multiplicador de velocidad de construcción
|
||||||
@@ -967,12 +1026,14 @@ rules.explosions = Daño de explosiones de Bloques/Unidades
|
|||||||
rules.ambientlight = Iluminación ambiental
|
rules.ambientlight = Iluminación ambiental
|
||||||
rules.weather = Clima
|
rules.weather = Clima
|
||||||
rules.weather.frequency = Frequencia:
|
rules.weather.frequency = Frequencia:
|
||||||
|
rules.weather.always = Siempre
|
||||||
rules.weather.duration = Duracion:
|
rules.weather.duration = Duracion:
|
||||||
|
|
||||||
content.item.name = Objetos
|
content.item.name = Objetos
|
||||||
content.liquid.name = Líquidos
|
content.liquid.name = Líquidos
|
||||||
content.unit.name = Unidades
|
content.unit.name = Unidades
|
||||||
content.block.name = Bloques
|
content.block.name = Bloques
|
||||||
|
content.status.name = Alteraciones de Estado
|
||||||
content.sector.name = Sectores
|
content.sector.name = Sectores
|
||||||
|
|
||||||
item.copper.name = Cobre
|
item.copper.name = Cobre
|
||||||
@@ -983,7 +1044,7 @@ item.titanium.name = Titanio
|
|||||||
item.thorium.name = Torio
|
item.thorium.name = Torio
|
||||||
item.silicon.name = Silicio
|
item.silicon.name = Silicio
|
||||||
item.plastanium.name = Plastanio
|
item.plastanium.name = Plastanio
|
||||||
item.phase-fabric.name = Tejido de fase
|
item.phase-fabric.name = Tejido de Fase
|
||||||
item.surge-alloy.name = Aleación Eléctrica
|
item.surge-alloy.name = Aleación Eléctrica
|
||||||
item.spore-pod.name = Vaina de Esporas
|
item.spore-pod.name = Vaina de Esporas
|
||||||
item.sand.name = Arena
|
item.sand.name = Arena
|
||||||
@@ -991,11 +1052,12 @@ item.blast-compound.name = Compuesto Explosivo
|
|||||||
item.pyratite.name = Pirotita
|
item.pyratite.name = Pirotita
|
||||||
item.metaglass.name = Metacristal
|
item.metaglass.name = Metacristal
|
||||||
item.scrap.name = Chatarra
|
item.scrap.name = Chatarra
|
||||||
|
|
||||||
liquid.water.name = Agua
|
liquid.water.name = Agua
|
||||||
liquid.slag.name = Magma
|
liquid.slag.name = Magma
|
||||||
liquid.oil.name = Petróleo
|
liquid.oil.name = Petróleo
|
||||||
liquid.cryofluid.name = Líquido criogénico
|
liquid.cryofluid.name = Líquido criogénico
|
||||||
#Names of Units and Turrets look better untranslated, since they are propper/own names
|
#Names of Units and Turrets looks better untranslated, since they are propper/own names
|
||||||
unit.dagger.name = Dagger
|
unit.dagger.name = Dagger
|
||||||
unit.mace.name = Mace
|
unit.mace.name = Mace
|
||||||
unit.fortress.name = Fortress
|
unit.fortress.name = Fortress
|
||||||
@@ -1022,6 +1084,11 @@ unit.minke.name = Minke
|
|||||||
unit.bryde.name = Bryde
|
unit.bryde.name = Bryde
|
||||||
unit.sei.name = Sei
|
unit.sei.name = Sei
|
||||||
unit.omura.name = Omura
|
unit.omura.name = Omura
|
||||||
|
unit.retusa.name = Retusa
|
||||||
|
unit.oxynoe.name = Oxynoe
|
||||||
|
unit.cyerce.name = Cyerce
|
||||||
|
unit.aegires.name = Aegires
|
||||||
|
unit.navanax.name = Navanax
|
||||||
unit.alpha.name = Alpha
|
unit.alpha.name = Alpha
|
||||||
unit.beta.name = Beta
|
unit.beta.name = Beta
|
||||||
unit.gamma.name = Gamma
|
unit.gamma.name = Gamma
|
||||||
@@ -1082,23 +1149,25 @@ block.sand-water.name = Agua con arena
|
|||||||
block.darksand-water.name = Agua con arena oscura
|
block.darksand-water.name = Agua con arena oscura
|
||||||
block.char.name = Cenizas
|
block.char.name = Cenizas
|
||||||
block.dacite.name = Dacita
|
block.dacite.name = Dacita
|
||||||
block.dacite-wall.name = Bloque de dacita
|
block.rhyolite.name = Riolita
|
||||||
block.dacite-boulder.name = Roca de dacita
|
block.dacite-wall.name = Bloque de Dacita
|
||||||
|
block.dacite-boulder.name = Roca de Dacita
|
||||||
block.ice-snow.name = Hielo-Nieve
|
block.ice-snow.name = Hielo-Nieve
|
||||||
block.stone-wall.name = Bloque de piedra
|
block.stone-wall.name = Bloque de Piedra
|
||||||
block.ice-wall.name = Bloque de hielo
|
block.ice-wall.name = Bloque de Hielo
|
||||||
block.snow-wall.name = Bloque de nieve
|
block.snow-wall.name = Bloque de Nieve
|
||||||
block.dune-wall.name = Bloque de arena
|
block.dune-wall.name = Bloque de Arena
|
||||||
block.pine.name = Pino
|
block.pine.name = Pino
|
||||||
block.dirt.name = Tierra
|
block.dirt.name = Tierra
|
||||||
block.dirt-wall.name = Bloque de tierra
|
block.dirt-wall.name = Bloque de tierra
|
||||||
block.mud.name = Lodo
|
block.mud.name = Lodo
|
||||||
block.white-tree-dead.name = Árbol Blanco Muerto
|
block.white-tree-dead.name = Árbol Blanco Muerto
|
||||||
block.white-tree.name = Árbol Blanco
|
block.white-tree.name = Árbol Blanco
|
||||||
block.spore-cluster.name = Concentración de Esporas
|
block.spore-cluster.name = Esporas
|
||||||
block.metal-floor.name = Suelo de Metal
|
block.metal-floor.name = Suelo de Metal 1
|
||||||
block.metal-floor-2.name = Suelo de Metal 2
|
block.metal-floor-2.name = Suelo de Metal 2
|
||||||
block.metal-floor-3.name = Suelo de Metal 3
|
block.metal-floor-3.name = Suelo de Metal 3
|
||||||
|
block.metal-floor-4.name = Suelo de Metal 4
|
||||||
block.metal-floor-5.name = Suelo de Metal 5
|
block.metal-floor-5.name = Suelo de Metal 5
|
||||||
block.metal-floor-damaged.name = Suelo de Metal dañado
|
block.metal-floor-damaged.name = Suelo de Metal dañado
|
||||||
block.dark-panel-1.name = Panel Oscuro 1
|
block.dark-panel-1.name = Panel Oscuro 1
|
||||||
@@ -1189,6 +1258,7 @@ block.solar-panel.name = Panel Solar
|
|||||||
block.solar-panel-large.name = Panel Solar Grande
|
block.solar-panel-large.name = Panel Solar Grande
|
||||||
block.oil-extractor.name = Extractor de Petróleo
|
block.oil-extractor.name = Extractor de Petróleo
|
||||||
block.repair-point.name = Punto de Reparación de Unidades
|
block.repair-point.name = Punto de Reparación de Unidades
|
||||||
|
block.repair-turret.name = Torreta Reparadora
|
||||||
block.pulse-conduit.name = Conducto de Pulso
|
block.pulse-conduit.name = Conducto de Pulso
|
||||||
block.plated-conduit.name = Conducto Acorazado
|
block.plated-conduit.name = Conducto Acorazado
|
||||||
block.phase-conduit.name = Conducto de Fase
|
block.phase-conduit.name = Conducto de Fase
|
||||||
@@ -1221,16 +1291,22 @@ block.container.name = Contenedor
|
|||||||
block.launch-pad.name = Plataforma de Lanzamiento
|
block.launch-pad.name = Plataforma de Lanzamiento
|
||||||
block.launch-pad-large.name = Plataforma de Lanzamiento Grande
|
block.launch-pad-large.name = Plataforma de Lanzamiento Grande
|
||||||
block.segment.name = Segment
|
block.segment.name = Segment
|
||||||
block.command-center.name = Centro de comando
|
block.command-center.name = Centro de Comando
|
||||||
block.ground-factory.name = Fábrica terrestre
|
block.ground-factory.name = Fábrica Terrestre
|
||||||
block.air-factory.name = Fábrica aérea
|
block.air-factory.name = Fábrica Aérea
|
||||||
block.naval-factory.name = Fábrica naval
|
block.naval-factory.name = Fábrica naval
|
||||||
block.additive-reconstructor.name = Reconstructor aditivo
|
block.additive-reconstructor.name = Reconstructor Aditivo
|
||||||
block.multiplicative-reconstructor.name = Reconstructor multiplicativo
|
block.multiplicative-reconstructor.name = Reconstructor Multiplicativo
|
||||||
block.exponential-reconstructor.name = Reconstructor exponencial
|
block.exponential-reconstructor.name = Reconstructor Exponencial
|
||||||
block.tetrative-reconstructor.name = Reconstructor tetrativo
|
block.tetrative-reconstructor.name = Reconstructor Tetrativo
|
||||||
block.payload-conveyor.name = Transportador de carga
|
block.payload-conveyor.name = Cinta Transportadora de Carga
|
||||||
block.payload-router.name = Enrutador de carga
|
block.payload-router.name = Enrutador de Carga
|
||||||
|
block.duct.name = Túnel
|
||||||
|
block.duct-router.name = Túnel Enrutador
|
||||||
|
block.duct-bridge.name = Túnel Puente
|
||||||
|
block.payload-propulsion-tower.name = Torre de Propulsión de Bloques
|
||||||
|
block.payload-void.name = Vacío de Bloques
|
||||||
|
block.payload-source.name = Fuente de Bloques
|
||||||
block.disassembler.name = Desensamblador
|
block.disassembler.name = Desensamblador
|
||||||
block.silicon-crucible.name = Crisol de silicio
|
block.silicon-crucible.name = Crisol de silicio
|
||||||
block.overdrive-dome.name = Campo de Aceleración
|
block.overdrive-dome.name = Campo de Aceleración
|
||||||
@@ -1252,7 +1328,6 @@ block.memory-bank.name = Servidor de memoria
|
|||||||
team.blue.name = azul
|
team.blue.name = azul
|
||||||
team.crux.name = crux
|
team.crux.name = crux
|
||||||
team.sharded.name = sharded
|
team.sharded.name = sharded
|
||||||
team.orange.name = naranja
|
|
||||||
team.derelict.name = delerict
|
team.derelict.name = delerict
|
||||||
team.green.name = verde
|
team.green.name = verde
|
||||||
team.purple.name = morado
|
team.purple.name = morado
|
||||||
@@ -1273,6 +1348,7 @@ hint.placeConveyor.mobile = Las cintas transportadoras pueden mover objetos de l
|
|||||||
hint.placeTurret = Construye \uf861 [accent]Torretas[] para defender tu base de los enemigos.\n\nLas torretas necesitan munición - en este caso, \uf838cobre.\nUsa cintas transportadoras y taladros para abastecerlas con cobre.
|
hint.placeTurret = Construye \uf861 [accent]Torretas[] para defender tu base de los enemigos.\n\nLas torretas necesitan munición - en este caso, \uf838cobre.\nUsa cintas transportadoras y taladros para abastecerlas con cobre.
|
||||||
hint.breaking = Pulsa [accent]Clic-derecho[] y arrastra para destruir bloques.
|
hint.breaking = Pulsa [accent]Clic-derecho[] y arrastra para destruir bloques.
|
||||||
hint.breaking.mobile = Activa el botón con el \ue817 [accent]martillo[] situado abajo a la derecha y selecciona bloques para eliminarlos.\n\nMantén el dedo un segundo y arrastra para eliminar bloques directamente en esa selección.
|
hint.breaking.mobile = Activa el botón con el \ue817 [accent]martillo[] situado abajo a la derecha y selecciona bloques para eliminarlos.\n\nMantén el dedo un segundo y arrastra para eliminar bloques directamente en esa selección.
|
||||||
|
hint.blockInfo = Puedes visualizar información de un bloque seleccionándolo en el [accent]menú de construcción[], mediante el botón [accent][[?][] en la derecha.
|
||||||
hint.research = Usa el botón \ue875 [accent]Investigación[] para acceder al menú de descubrimientos tecnológicos.
|
hint.research = Usa el botón \ue875 [accent]Investigación[] para acceder al menú de descubrimientos tecnológicos.
|
||||||
hint.research.mobile = Usa el botón \ue875 [accent]Investigación[] para acceder al menú de descubrimientos tecnológicos.
|
hint.research.mobile = Usa el botón \ue875 [accent]Investigación[] para acceder al menú de descubrimientos tecnológicos.
|
||||||
hint.unitControl = Mantén [accent][[L-ctrl][] y [accent]haz clic[] sobre unidades o torretas aliadas para controlarlas manualmente.
|
hint.unitControl = Mantén [accent][[L-ctrl][] y [accent]haz clic[] sobre unidades o torretas aliadas para controlarlas manualmente.
|
||||||
@@ -1319,7 +1395,7 @@ item.spore-pod.details = Esporas. Es algo parecido a una forma de vida sintétic
|
|||||||
item.blast-compound.description = Usado en bombas y munición explosiva.
|
item.blast-compound.description = Usado en bombas y munición explosiva.
|
||||||
item.pyratite.description = Usado en armas incendiarias y generadores de combustión.
|
item.pyratite.description = Usado en armas incendiarias y generadores de combustión.
|
||||||
|
|
||||||
liquid.water.description = Usada comúnmente para enfriar máquinas y para procesar residuos.
|
liquid.water.description = Usada para enfriar máquinas y para procesar residuos.
|
||||||
liquid.slag.description = Diferentes tipos de metales fundidos mezclados. Puede ser separado en sus minerales constituyentes, o disparado a unidades enemigas como arma.
|
liquid.slag.description = Diferentes tipos de metales fundidos mezclados. Puede ser separado en sus minerales constituyentes, o disparado a unidades enemigas como arma.
|
||||||
liquid.oil.description = Se utiliza en producción de materiales avanzados, y en munición incendiaria.
|
liquid.oil.description = Se utiliza en producción de materiales avanzados, y en munición incendiaria.
|
||||||
liquid.cryofluid.description = Usado como refrigerante para reactores, torretas, y fábricas.
|
liquid.cryofluid.description = Usado como refrigerante para reactores, torretas, y fábricas.
|
||||||
@@ -1502,3 +1578,155 @@ unit.omura.description = Dispara rayos contínuos perforantes. Construye unidade
|
|||||||
unit.alpha.description = Defiende el núcleo Shard de los enemigos. Construye estructuras.
|
unit.alpha.description = Defiende el núcleo Shard de los enemigos. Construye estructuras.
|
||||||
unit.beta.description = Defiende el núcleo Foundation de los enemigos. Construye estructuras.
|
unit.beta.description = Defiende el núcleo Foundation de los enemigos. Construye estructuras.
|
||||||
unit.gamma.description = Defiende el núcleo Nucleus de los enemigos. Construye estructuras.
|
unit.gamma.description = Defiende el núcleo Nucleus de los enemigos. Construye estructuras.
|
||||||
|
|
||||||
|
lst.read = Lee un número desde una unidad de memoria conectada.
|
||||||
|
lst.write = Escribe un número en una unidad de memoria conectada.
|
||||||
|
lst.print = Añade texto a la cola para impresión.\nNo mostrará nada hasta que se use [accent]Ejecutar Imprimir[].
|
||||||
|
lst.draw = Añade una operación a la cola de gráfico.\nNo mostrará nada hasta que se use [accent]Ejecutar Gráfico[].
|
||||||
|
lst.drawflush = Ejecución en cola de operaciones [accent]Gráfico[] a un monitor gráfico.
|
||||||
|
lst.printflush = Ejecución en cola de operaciones [accent]Imprimir[] a un bloque de mensaje.
|
||||||
|
lst.getlink = Obtiene el número de enlace de procesador. Inicia en 0.
|
||||||
|
lst.control = Controla el estado de un bloque.
|
||||||
|
lst.radar = Localiza unidades alrededor de un bloque con rango.
|
||||||
|
lst.sensor = Recopila datos de un bloque o unidad.
|
||||||
|
lst.set = Establece una variable.
|
||||||
|
lst.operation = Realiza una operación sobre 1-2 variables.
|
||||||
|
lst.end = Salta al inicio de la lista de instrucciones.
|
||||||
|
lst.wait = Espera unos segundos.
|
||||||
|
lst.lookup = Busca un objeto/líquido/unidad/tipo de bloque por ID.\nSe puede acceder al número total de cada tipo con:\n[accent]@unitCount[] / [accent]@itemCount[] / [accent]@liquidCount[] / [accent]@blockCount[]
|
||||||
|
lst.jump = Salta a otra instrucción.
|
||||||
|
lst.unitbind = Se enlaza a la siguiente unidad de un tipo, y la almacena en [accent]@unit[].
|
||||||
|
lst.unitcontrol = Controla la unidad actualmente enlazada.
|
||||||
|
lst.unitradar = Localiza unidades alrededor de la unidad actualmente enlazada.
|
||||||
|
lst.unitlocate = Localiza un tipo específico de posición/bloque en cualquier lugar del mapa.\nRequiere una unidad enlazada.
|
||||||
|
|
||||||
|
logic.nounitbuild = [red]No se permite la construcción de bloques de categoría lógica.
|
||||||
|
|
||||||
|
lenum.type = El tipo de bloque/unidad\nEjemplo: "para cualquier enrutador", devolverá [accent]@router[].\nNo es una cadena de texto.
|
||||||
|
lenum.shoot = Dispara a una posición.
|
||||||
|
lenum.shootp = Dispara a una unidad/bloque con predicción de velocidad.
|
||||||
|
lenum.config = Configuración de bloque, por ejemplo: clasificador.
|
||||||
|
lenum.enabled = Si el bloque está activado o no.
|
||||||
|
|
||||||
|
laccess.color = Color del iluminador.
|
||||||
|
laccess.controller = Controlador de unidad. Si se controla mediante un procesador, devuelve dicho procesador.\nSi está en formación, devuelve su líder.\nDe otra forma, devuelve la misma unidad.
|
||||||
|
laccess.dead = Si una unidad/bloque es destruída o inválida.
|
||||||
|
laccess.controlled = Devuelve:\n[accent]@ctrlProcessor[] si el control de la unidad lo tiene un procesador\n[accent]@ctrlPlayer[] si el control de la unidad/bloque lo tiene un jugador\n[accent]@ctrlFormation[] si la unidad está en formación\nDe otra forma, devuelve 0.
|
||||||
|
laccess.commanded = [red]En desuso. ¡Será eliminado![]\nUsa [accent]controlado[] en su lugar.
|
||||||
|
laccess.progress = Progreso de una acción, 0 a 1.\nDevuelve de una producción, recarga de una torreta o progreso de una construcción.
|
||||||
|
|
||||||
|
graphicstype.clear = Llena el monitor con un color.
|
||||||
|
graphicstype.color = Establece el color para próximas operaciones de gráficos.
|
||||||
|
graphicstype.stroke = Establece el ancho de la línea.
|
||||||
|
graphicstype.line = Segmento de la línea del gráfico.
|
||||||
|
graphicstype.rect = Rellena un rectángulo.
|
||||||
|
graphicstype.linerect = Dibuja las aristas de un rectángulo.
|
||||||
|
graphicstype.poly = Rellena un polígono regular.
|
||||||
|
graphicstype.linepoly = Dibuja las aristas de un polígono regular.
|
||||||
|
graphicstype.triangle = Rellena un triángulo.
|
||||||
|
graphicstype.image = Dibuja una imágen de un contenido.\nEjemplo: [accent]@router[] o [accent]@dagger[].
|
||||||
|
|
||||||
|
lenum.always = Siempre "true".
|
||||||
|
lenum.idiv = División de un número entero.
|
||||||
|
lenum.div = División.\nDevuelve [accent]null[] al dividir entre cero.
|
||||||
|
lenum.mod = Modulo.
|
||||||
|
lenum.equal = Igual. Coacciona tipos.\nObjetos no-nulos coaccionados con números pasan a 1, si no coinciden pasan a 0.
|
||||||
|
lenum.notequal = No igual. Coacciona tipos.
|
||||||
|
lenum.strictequal = Igualdad estricta. No coacciona tipos.\nSe puede usar para comprobar si un resultado es [accent]null[].
|
||||||
|
lenum.shl = Cambia bits a izquierda.
|
||||||
|
lenum.shr = Cambia bits a derecha.
|
||||||
|
lenum.or = Comprobación bit a bit OR.
|
||||||
|
lenum.land = Comprobación lógica AND.
|
||||||
|
lenum.and = Comprobación bit a bit AND.
|
||||||
|
lenum.not = Comprobación bit a bit invertida.
|
||||||
|
lenum.xor = Comprobación bit a bit XOR.
|
||||||
|
|
||||||
|
lenum.min = Mínimo de dos números.
|
||||||
|
lenum.max = Máximo de dos números.
|
||||||
|
lenum.angle = Ángulo del vector en grados.
|
||||||
|
lenum.len = Longitud del vector.
|
||||||
|
|
||||||
|
lenum.sin = Seno, en grados.
|
||||||
|
lenum.cos = Coseno, en grados.
|
||||||
|
lenum.tan = Tangente, en grados.
|
||||||
|
|
||||||
|
lenum.asin = Arco seno, en grados.
|
||||||
|
lenum.acos = Arco coseno, en grados.
|
||||||
|
lenum.atan = Arco tangente, en grados.
|
||||||
|
|
||||||
|
#not a typo, look up 'range notation'
|
||||||
|
lenum.rand = Número decimal aleatorio en un rango [0, valor).
|
||||||
|
lenum.log = Logaritmo natural (ln).
|
||||||
|
lenum.log10 = Logaritmo en base 10.
|
||||||
|
lenum.noise = Ruido simplex 2D.
|
||||||
|
lenum.abs = Valor absoluto.
|
||||||
|
lenum.sqrt = Raíz cuadrada.
|
||||||
|
|
||||||
|
lenum.any = Cualquier unidad.
|
||||||
|
lenum.ally = Unidad aliada.
|
||||||
|
lenum.attacker = Unidad con un arma.
|
||||||
|
lenum.enemy = Unidad enemiga.
|
||||||
|
lenum.boss = Unidad guardián (Jefe).
|
||||||
|
lenum.flying = Unidad aérea.
|
||||||
|
lenum.ground = Unidad terrestre.
|
||||||
|
lenum.player = Unidad controlada por un jugador.
|
||||||
|
|
||||||
|
lenum.ore = Depósito mineral.
|
||||||
|
lenum.damaged = Bloque aliado dañado.
|
||||||
|
lenum.spawn = Punto de aterrizaje enemigo.\nPuede ser un núcleo o una posición.
|
||||||
|
lenum.building = Un bloque de una categoría específica.
|
||||||
|
|
||||||
|
lenum.core = Cualquier núcleo.
|
||||||
|
lenum.storage = Bloque de almacenamiento, ejemplo: Contenedor.
|
||||||
|
lenum.generator = Bloques que generan energía.
|
||||||
|
lenum.factory = Bloques que transforman recursos.
|
||||||
|
lenum.repair = Puntos de reparación.
|
||||||
|
lenum.rally = Centro de comando.
|
||||||
|
lenum.battery = Cualquier batería.
|
||||||
|
lenum.resupply = Puntos de reabastecimiento.\nSólo es relevante cuando [accent]"Unidades necesitan munición"[] está activada.
|
||||||
|
lenum.reactor = Reactor de Impacto/Torio.
|
||||||
|
lenum.turret = Cualquier torreta.
|
||||||
|
|
||||||
|
sensor.in = El bloque/unidad a detectar.
|
||||||
|
|
||||||
|
radar.from = Bloque del que detectar.\nEl rango del sensor está limitado por el rango de dicha construcción.
|
||||||
|
radar.target = Filtro de unidades a detectar.
|
||||||
|
radar.and = Filtros adicionales.
|
||||||
|
radar.order = Orden para ordenar. 0 para invertir.
|
||||||
|
radar.sort = Métrica a usar al ordenar resultados.
|
||||||
|
radar.output = Variable en la que escribir la salida de una unidad.
|
||||||
|
|
||||||
|
unitradar.target = Filtro para detectar unidades.
|
||||||
|
unitradar.and = Filtros adicionales.
|
||||||
|
unitradar.order = Orden para ordenar. 0 para invertir.
|
||||||
|
unitradar.sort = Métrica a usar al ordenar resultados.
|
||||||
|
unitradar.output = Variable en la que escribir la salida de una unidad.
|
||||||
|
|
||||||
|
control.of = Bloque a controlar.
|
||||||
|
control.unit = Unidad/bloque al que apuntar.
|
||||||
|
control.shoot = Cuándo disparar.
|
||||||
|
|
||||||
|
unitlocate.enemy = Cuándo localizar construcciones enemigas.
|
||||||
|
unitlocate.found = Cuándo el objeto es encontrado.
|
||||||
|
unitlocate.building = Variable de salida para contrucciones localizadas.
|
||||||
|
unitlocate.outx = Coordenada X devuelta.
|
||||||
|
unitlocate.outy = Coordenada Y devuelta.
|
||||||
|
unitlocate.group = Grupo de bloque a buscar.
|
||||||
|
|
||||||
|
lenum.idle = No se mueve, pero seguirá construyendo/extrayendo minerales.\nEs el estado por defecto.
|
||||||
|
lenum.stop = Deja de moverse/extraer minerales/contruir.
|
||||||
|
lenum.move = Moverse a una posición exacta.
|
||||||
|
lenum.approach = Aproximarse a una posición con un radio.
|
||||||
|
lenum.pathfind = Establece una ruta hasta el punto de aterrizaje enemigo.
|
||||||
|
lenum.target = Dispara a una posición.
|
||||||
|
lenum.targetp = Dispara a un objetivo con predicción de velocidad.
|
||||||
|
lenum.itemdrop = Suelta un objeto.
|
||||||
|
lenum.itemtake = Recoge un objeto de una construcción.
|
||||||
|
lenum.paydrop = Suelta la carga actual.
|
||||||
|
lenum.paytake = Recoge bloques o unidades en la posición actual como carga a trasnportar.
|
||||||
|
lenum.flag = Etiqueta numérica de la unidad.
|
||||||
|
lenum.mine = Extrae minerales de una posición.
|
||||||
|
lenum.build = Construye una estructura.
|
||||||
|
lenum.getblock = Obtiene la construcción y su categoría en unas coordenadas específicas.\nLa unidad debe estar en el rango de su posición.\nLos bloques no-construcciones tendrán el tipo [accent]@solid[].
|
||||||
|
lenum.within = Comprueba si una unidad se encuentra cerca de una posición.
|
||||||
|
lenum.boost = Inicia/Detiene potenciación.
|
||||||
|
|||||||
@@ -807,6 +807,7 @@ bullet.reload = [stat]{0}[lightgray]x vitesse de tir
|
|||||||
unit.blocks = blocs
|
unit.blocks = blocs
|
||||||
unit.blockssquared = blocs²
|
unit.blockssquared = blocs²
|
||||||
unit.powersecond = unités d'énergie/seconde
|
unit.powersecond = unités d'énergie/seconde
|
||||||
|
unit.tilessecond = tuiles/seconde
|
||||||
unit.liquidsecond = unités de liquide/seconde
|
unit.liquidsecond = unités de liquide/seconde
|
||||||
unit.itemssecond = objets/seconde
|
unit.itemssecond = objets/seconde
|
||||||
unit.liquidunits = unités de liquide
|
unit.liquidunits = unités de liquide
|
||||||
@@ -1601,6 +1602,8 @@ lst.sensor = Récupère des données depuis un bâtiment ou une unité.
|
|||||||
lst.set = Définit une variable.
|
lst.set = Définit une variable.
|
||||||
lst.operation = Effectue une opération sur 1 ou 2 variables.
|
lst.operation = Effectue une opération sur 1 ou 2 variables.
|
||||||
lst.end = Saute au sommet de la série d’instructions.
|
lst.end = Saute au sommet de la série d’instructions.
|
||||||
|
lst.wait = Attendre un certain nombre de secondes.
|
||||||
|
lst.lookup = Recherche d'un type d'objet/liquide/unité/bloc par ID.\nLe nombre total de chaque type peut être consulté avec:\n[accent]@unitCount[] / [accent]@itemCount[] / [accent]@liquidCount[] / [accent]@blockCount[]
|
||||||
lst.jump = Saute conditionnellement vers une autre instruction.
|
lst.jump = Saute conditionnellement vers une autre instruction.
|
||||||
lst.unitbind = Se lie à une unité du type donné et la stocke dans [accent]@unit[].
|
lst.unitbind = Se lie à une unité du type donné et la stocke dans [accent]@unit[].
|
||||||
lst.unitcontrol = Contrôle l'unité actuellement liée.
|
lst.unitcontrol = Contrôle l'unité actuellement liée.
|
||||||
|
|||||||
@@ -806,6 +806,7 @@ bullet.reload = [stat]{0}[lightgray]배 발사 속도
|
|||||||
unit.blocks = 블록
|
unit.blocks = 블록
|
||||||
unit.blockssquared = 블록²
|
unit.blockssquared = 블록²
|
||||||
unit.powersecond = 전력/초
|
unit.powersecond = 전력/초
|
||||||
|
unit.tilessecond = 타일/초
|
||||||
unit.liquidsecond = 액체/초
|
unit.liquidsecond = 액체/초
|
||||||
unit.itemssecond = 자원/초
|
unit.itemssecond = 자원/초
|
||||||
unit.liquidunits = 액체
|
unit.liquidunits = 액체
|
||||||
|
|||||||
@@ -806,6 +806,7 @@ bullet.reload = [stat]{0}[lightgray]x скорость стрельбы
|
|||||||
unit.blocks = блоков
|
unit.blocks = блоков
|
||||||
unit.blockssquared = блоков²
|
unit.blockssquared = блоков²
|
||||||
unit.powersecond = единиц энергии/секунду
|
unit.powersecond = единиц энергии/секунду
|
||||||
|
unit.tilessecond = плиток/секунду
|
||||||
unit.liquidsecond = жидкостных единиц/секунду
|
unit.liquidsecond = жидкостных единиц/секунду
|
||||||
unit.itemssecond = предметов/секунду
|
unit.itemssecond = предметов/секунду
|
||||||
unit.liquidunits = жидкостных единиц
|
unit.liquidunits = жидкостных единиц
|
||||||
@@ -1570,7 +1571,7 @@ unit.mega.description = Автоматически ремонтирует пов
|
|||||||
unit.quad.description = Сбрасывает большие бомбы на наземные цели, восстанавливая союзные постройки и повреждая врагов. Может переносить единицы среднего размера.
|
unit.quad.description = Сбрасывает большие бомбы на наземные цели, восстанавливая союзные постройки и повреждая врагов. Может переносить единицы среднего размера.
|
||||||
unit.oct.description = Защищает союзников поблизости при помощи своего восстанавливающегося щита. Может переносить большинство наземных единиц.
|
unit.oct.description = Защищает союзников поблизости при помощи своего восстанавливающегося щита. Может переносить большинство наземных единиц.
|
||||||
unit.risso.description = Стреляет залпами ракет и пуль по всем врагам поблизости.
|
unit.risso.description = Стреляет залпами ракет и пуль по всем врагам поблизости.
|
||||||
unit.minke.description = Стреляет зажигательными снарядами и стандартными пулями по наземным целям.
|
unit.minke.description = Стреляет артиллерийскими снарядами и стандартными пулями по наземным целям.
|
||||||
unit.bryde.description = Стреляет дальнобойными артиллерийскими снарядами и ракетами по врагам.
|
unit.bryde.description = Стреляет дальнобойными артиллерийскими снарядами и ракетами по врагам.
|
||||||
unit.sei.description = Стреляет залпами ракет и бронебойных пуль по врагам.
|
unit.sei.description = Стреляет залпами ракет и бронебойных пуль по врагам.
|
||||||
unit.omura.description = Стреляет дальнобойным пробивающим снарядом из рельсотрона по врагам. Производит единицы «Вспышка».
|
unit.omura.description = Стреляет дальнобойным пробивающим снарядом из рельсотрона по врагам. Производит единицы «Вспышка».
|
||||||
@@ -1591,6 +1592,8 @@ lst.sensor = Получает данные из постройки или еди
|
|||||||
lst.set = Устанавливает переменную.
|
lst.set = Устанавливает переменную.
|
||||||
lst.operation = Совершает операцию над 1-2 переменными.
|
lst.operation = Совершает операцию над 1-2 переменными.
|
||||||
lst.end = Переходит к началу стека операций.
|
lst.end = Переходит к началу стека операций.
|
||||||
|
lst.wait = Ждёт определённое количество секунд.
|
||||||
|
lst.lookup = Находит тип предмета/жидкости/единицы/блока по ID.\nОбщее количество каждого типа может быть получено при помощи:\n[accent]@unitCount[] / [accent]@itemCount[] / [accent]@liquidCount[] / [accent]@blockCount[]
|
||||||
lst.jump = Условно переходит к другой операции.
|
lst.jump = Условно переходит к другой операции.
|
||||||
lst.unitbind = Привязывается к единице определённого типа и сохраняет её в [accent]@unit[].
|
lst.unitbind = Привязывается к единице определённого типа и сохраняет её в [accent]@unit[].
|
||||||
lst.unitcontrol = Управляет привязанной в данный момент единицей.
|
lst.unitcontrol = Управляет привязанной в данный момент единицей.
|
||||||
|
|||||||
@@ -126,3 +126,4 @@ Skat
|
|||||||
WilloIzCitron
|
WilloIzCitron
|
||||||
SAMBUYYA
|
SAMBUYYA
|
||||||
genNAowl
|
genNAowl
|
||||||
|
TranquillyUnpleasant
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 447 KiB After Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 398 KiB After Width: | Height: | Size: 222 KiB |
|
Before Width: | Height: | Size: 316 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 147 KiB |
@@ -155,6 +155,7 @@ const BlockBuildBeginEvent = Packages.mindustry.game.EventType.BlockBuildBeginEv
|
|||||||
const ResearchEvent = Packages.mindustry.game.EventType.ResearchEvent
|
const ResearchEvent = Packages.mindustry.game.EventType.ResearchEvent
|
||||||
const UnlockEvent = Packages.mindustry.game.EventType.UnlockEvent
|
const UnlockEvent = Packages.mindustry.game.EventType.UnlockEvent
|
||||||
const StateChangeEvent = Packages.mindustry.game.EventType.StateChangeEvent
|
const StateChangeEvent = Packages.mindustry.game.EventType.StateChangeEvent
|
||||||
|
const CoreChangeEvent = Packages.mindustry.game.EventType.CoreChangeEvent
|
||||||
const TileChangeEvent = Packages.mindustry.game.EventType.TileChangeEvent
|
const TileChangeEvent = Packages.mindustry.game.EventType.TileChangeEvent
|
||||||
const TilePreChangeEvent = Packages.mindustry.game.EventType.TilePreChangeEvent
|
const TilePreChangeEvent = Packages.mindustry.game.EventType.TilePreChangeEvent
|
||||||
const GameOverEvent = Packages.mindustry.game.EventType.GameOverEvent
|
const GameOverEvent = Packages.mindustry.game.EventType.GameOverEvent
|
||||||
@@ -166,6 +167,7 @@ const DepositEvent = Packages.mindustry.game.EventType.DepositEvent
|
|||||||
const WithdrawEvent = Packages.mindustry.game.EventType.WithdrawEvent
|
const WithdrawEvent = Packages.mindustry.game.EventType.WithdrawEvent
|
||||||
const SectorCaptureEvent = Packages.mindustry.game.EventType.SectorCaptureEvent
|
const SectorCaptureEvent = Packages.mindustry.game.EventType.SectorCaptureEvent
|
||||||
const PlayerChatEvent = Packages.mindustry.game.EventType.PlayerChatEvent
|
const PlayerChatEvent = Packages.mindustry.game.EventType.PlayerChatEvent
|
||||||
|
const MenuOptionChooseEvent = Packages.mindustry.game.EventType.MenuOptionChooseEvent
|
||||||
const ClientPreConnectEvent = Packages.mindustry.game.EventType.ClientPreConnectEvent
|
const ClientPreConnectEvent = Packages.mindustry.game.EventType.ClientPreConnectEvent
|
||||||
const CommandIssueEvent = Packages.mindustry.game.EventType.CommandIssueEvent
|
const CommandIssueEvent = Packages.mindustry.game.EventType.CommandIssueEvent
|
||||||
const SchematicCreateEvent = Packages.mindustry.game.EventType.SchematicCreateEvent
|
const SchematicCreateEvent = Packages.mindustry.game.EventType.SchematicCreateEvent
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ void main(){
|
|||||||
vec4 color = texture2D(u_texture, c);
|
vec4 color = texture2D(u_texture, c);
|
||||||
|
|
||||||
if(noise > 0.54 && noise < 0.68){
|
if(noise > 0.54 && noise < 0.68){
|
||||||
color.rgb *= 1.4;
|
color.rgb *= vec3(1.4);
|
||||||
}else if(!(noise > 0.40 && noise < 0.54)){
|
}else if(!(noise > 0.40 && noise < 0.54)){
|
||||||
color.rgb *= 1.2;
|
color.rgb *= vec3(1.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
gl_FragColor = color;
|
gl_FragColor = color;
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#convert from stereo to mono
|
|
||||||
cd assets/sounds/
|
|
||||||
for i in *.ogg; do
|
|
||||||
echo $i
|
|
||||||
ffmpeg -i "$i" -ac 1 "OUT_$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
find . -type f ! -name "OUT_*" -delete
|
|
||||||
|
|
||||||
for file in OUT_*; do mv "$file" "${file#OUT_}"; done;
|
|
||||||
|
|
||||||
cd ../../
|
|
||||||
@@ -659,12 +659,12 @@ public class Blocks implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
disassembler = new Separator("disassembler"){{
|
disassembler = new Separator("disassembler"){{
|
||||||
requirements(Category.crafting, with(Items.graphite, 140, Items.titanium, 100, Items.silicon, 150, Items.surgeAlloy, 70));
|
requirements(Category.crafting, with(Items.plastanium, 40, Items.titanium, 100, Items.silicon, 150, Items.thorium, 80));
|
||||||
results = with(
|
results = with(
|
||||||
Items.sand, 4,
|
Items.sand, 4,
|
||||||
Items.graphite, 2,
|
Items.graphite, 2,
|
||||||
Items.titanium, 2,
|
Items.titanium, 2,
|
||||||
Items.thorium, 1
|
Items.thorium, 2
|
||||||
);
|
);
|
||||||
hasPower = true;
|
hasPower = true;
|
||||||
craftTime = 15f;
|
craftTime = 15f;
|
||||||
@@ -1978,25 +1978,25 @@ public class Blocks implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
repairPoint = new RepairPoint("repair-point"){{
|
repairPoint = new RepairPoint("repair-point"){{
|
||||||
requirements(Category.units, with(Items.lead, 25, Items.copper, 25, Items.silicon, 20));
|
requirements(Category.units, with(Items.lead, 30, Items.copper, 30, Items.silicon, 20));
|
||||||
repairSpeed = 0.5f;
|
repairSpeed = 0.45f;
|
||||||
repairRadius = 65f;
|
repairRadius = 60f;
|
||||||
beamWidth = 0.73f;
|
beamWidth = 0.73f;
|
||||||
powerUse = 1f;
|
powerUse = 1f;
|
||||||
pulseRadius = 5f;
|
pulseRadius = 5f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
repairTurret = new RepairPoint("repair-turret"){{
|
repairTurret = new RepairPoint("repair-turret"){{
|
||||||
requirements(Category.units, with(Items.silicon, 90, Items.thorium, 80, Items.plastanium, 80));
|
requirements(Category.units, with(Items.silicon, 90, Items.thorium, 80, Items.plastanium, 60));
|
||||||
size = 2;
|
size = 2;
|
||||||
length = 6f;
|
length = 6f;
|
||||||
repairSpeed = 3f;
|
repairSpeed = 3f;
|
||||||
repairRadius = 140f;
|
repairRadius = 145f;
|
||||||
powerUse = 5f;
|
powerUse = 5f;
|
||||||
beamWidth = 1.1f;
|
beamWidth = 1.1f;
|
||||||
pulseRadius = 6.1f;
|
pulseRadius = 6.1f;
|
||||||
coolantUse = 0.16f;
|
coolantUse = 0.16f;
|
||||||
coolantMultiplier = 1.5f;
|
coolantMultiplier = 1.6f;
|
||||||
acceptCoolant = true;
|
acceptCoolant = true;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ public class UnitTypes implements ContentList{
|
|||||||
hitSize = 13f;
|
hitSize = 13f;
|
||||||
rotateSpeed = 3f;
|
rotateSpeed = 3f;
|
||||||
targetAir = false;
|
targetAir = false;
|
||||||
health = 820;
|
health = 900;
|
||||||
armor = 9f;
|
armor = 9f;
|
||||||
mechFrontSway = 0.55f;
|
mechFrontSway = 0.55f;
|
||||||
|
|
||||||
@@ -133,15 +133,15 @@ public class UnitTypes implements ContentList{
|
|||||||
shake = 2f;
|
shake = 2f;
|
||||||
ejectEffect = Fx.casing2;
|
ejectEffect = Fx.casing2;
|
||||||
shootSound = Sounds.artillery;
|
shootSound = Sounds.artillery;
|
||||||
bullet = new ArtilleryBulletType(2f, 8, "shell"){{
|
bullet = new ArtilleryBulletType(2f, 20, "shell"){{
|
||||||
hitEffect = Fx.blastExplosion;
|
hitEffect = Fx.blastExplosion;
|
||||||
knockback = 0.8f;
|
knockback = 0.8f;
|
||||||
lifetime = 120f;
|
lifetime = 120f;
|
||||||
width = height = 14f;
|
width = height = 14f;
|
||||||
collides = true;
|
collides = true;
|
||||||
collidesTiles = true;
|
collidesTiles = true;
|
||||||
splashDamageRadius = 30f;
|
splashDamageRadius = 35f;
|
||||||
splashDamage = 60f;
|
splashDamage = 80f;
|
||||||
backColor = Pal.bulletYellowBack;
|
backColor = Pal.bulletYellowBack;
|
||||||
frontColor = Pal.bulletYellow;
|
frontColor = Pal.bulletYellow;
|
||||||
}};
|
}};
|
||||||
@@ -2047,7 +2047,6 @@ public class UnitTypes implements ContentList{
|
|||||||
buildSpeed = 3f;
|
buildSpeed = 3f;
|
||||||
|
|
||||||
abilities.add(new EnergyFieldAbility(35f, 65f, 180f){{
|
abilities.add(new EnergyFieldAbility(35f, 65f, 180f){{
|
||||||
repair = 35f;
|
|
||||||
statusDuration = 60f * 6f;
|
statusDuration = 60f * 6f;
|
||||||
maxTargets = 25;
|
maxTargets = 25;
|
||||||
}});
|
}});
|
||||||
@@ -2155,6 +2154,7 @@ public class UnitTypes implements ContentList{
|
|||||||
bullet = new EmpBulletType(){{
|
bullet = new EmpBulletType(){{
|
||||||
float rad = 100f;
|
float rad = 100f;
|
||||||
|
|
||||||
|
scaleVelocity = true;
|
||||||
lightOpacity = 0.7f;
|
lightOpacity = 0.7f;
|
||||||
unitDamageScl = 0.8f;
|
unitDamageScl = 0.8f;
|
||||||
healPercent = 20f;
|
healPercent = 20f;
|
||||||
|
|||||||
@@ -344,8 +344,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
boolean checkPass(){
|
boolean checkPass(){
|
||||||
if(votes >= votesRequired()){
|
if(votes >= votesRequired()){
|
||||||
Call.sendMessage(Strings.format("[orange]Vote passed.[scarlet] @[orange] will be banned from the server for @ minutes.", target.name, (kickDuration / 60)));
|
Call.sendMessage(Strings.format("[orange]Vote passed.[scarlet] @[orange] will be banned from the server for @ minutes.", target.name, (kickDuration / 60)));
|
||||||
target.getInfo().lastKicked = Time.millis() + kickDuration * 1000;
|
Groups.player.each(p -> p.uuid().equals(target.uuid()), p -> p.kick(KickReason.vote, kickDuration * 1000));
|
||||||
Groups.player.each(p -> p.uuid().equals(target.uuid()), p -> p.kick(KickReason.vote));
|
|
||||||
map[0] = null;
|
map[0] = null;
|
||||||
task.cancel();
|
task.cancel();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ import mindustry.type.*;
|
|||||||
public class EnergyFieldAbility extends Ability{
|
public class EnergyFieldAbility extends Ability{
|
||||||
private static final Seq<Healthc> all = new Seq<>();
|
private static final Seq<Healthc> all = new Seq<>();
|
||||||
|
|
||||||
public float damage = 1, repair = 20f, reload = 100, range = 60;
|
public float damage = 1, reload = 100, range = 60;
|
||||||
public Effect healEffect = Fx.heal, hitEffect = Fx.hitLaserBlast, damageEffect = Fx.chainLightning;
|
public Effect healEffect = Fx.heal, hitEffect = Fx.hitLaserBlast, damageEffect = Fx.chainLightning;
|
||||||
public StatusEffect status = StatusEffects.electrified;
|
public StatusEffect status = StatusEffects.electrified;
|
||||||
public float statusDuration = 60f * 6f;
|
public float statusDuration = 60f * 6f;
|
||||||
public float x, y;
|
public float x, y;
|
||||||
public boolean hitBuildings = true;
|
public boolean hitBuildings = true;
|
||||||
public int maxTargets = 25;
|
public int maxTargets = 25;
|
||||||
public float healPercent = 3f;
|
public float healPercent = 2.5f;
|
||||||
|
|
||||||
public float layer = Layer.bullet - 0.001f, blinkScl = 20f;
|
public float layer = Layer.bullet - 0.001f, blinkScl = 20f;
|
||||||
public float effectRadius = 5f, sectorRad = 0.14f, rotateSpeed = 0.5f;
|
public float effectRadius = 5f, sectorRad = 0.14f, rotateSpeed = 0.5f;
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class BulletType extends Content implements Cloneable{
|
|||||||
public boolean collides = true;
|
public boolean collides = true;
|
||||||
/** Whether velocity is inherited from the shooter. */
|
/** Whether velocity is inherited from the shooter. */
|
||||||
public boolean keepVelocity = true;
|
public boolean keepVelocity = true;
|
||||||
/** Whether to scale velocity to disappear at the target position. Used for artillery. */
|
/** Whether to scale lifetime (not actually velocity!) to disappear at the target position. Used for artillery. */
|
||||||
public boolean scaleVelocity;
|
public boolean scaleVelocity;
|
||||||
/** Whether this bullet can be hit by point defense. */
|
/** Whether this bullet can be hit by point defense. */
|
||||||
public boolean hittable = true;
|
public boolean hittable = true;
|
||||||
|
|||||||
@@ -44,6 +44,13 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//bullets always considered local
|
||||||
|
@Override
|
||||||
|
@Replace
|
||||||
|
public boolean isLocal(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void add(){
|
public void add(){
|
||||||
type.init(self());
|
type.init(self());
|
||||||
|
|||||||
@@ -51,13 +51,11 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
|||||||
return unit.canBuild();
|
return unit.canBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
public @Nullable
|
public @Nullable CoreBuild closestCore(){
|
||||||
CoreBuild closestCore(){
|
|
||||||
return state.teams.closestCore(x, y, team);
|
return state.teams.closestCore(x, y, team);
|
||||||
}
|
}
|
||||||
|
|
||||||
public @Nullable
|
public @Nullable CoreBuild core(){
|
||||||
CoreBuild core(){
|
|
||||||
return team.core();
|
return team.core();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,6 +238,10 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
|||||||
con.kick(reason);
|
con.kick(reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void kick(KickReason reason, long duration){
|
||||||
|
con.kick(reason, duration);
|
||||||
|
}
|
||||||
|
|
||||||
void kick(String reason){
|
void kick(String reason){
|
||||||
con.kick(reason);
|
con.kick(reason);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ abstract class ShieldComp implements Healthc, Posc{
|
|||||||
|
|
||||||
/** Absorbs health damage. */
|
/** Absorbs health damage. */
|
||||||
float shield;
|
float shield;
|
||||||
/** Subtracts an amount from damage. */
|
/** Subtracts an amount from damage. No need to save. */
|
||||||
float armor;
|
transient float armor;
|
||||||
/** Shield opacity. */
|
/** Shield opacity. */
|
||||||
transient float shieldAlpha = 0f;
|
transient float shieldAlpha = 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -13,14 +13,17 @@ import static mindustry.Vars.*;
|
|||||||
abstract class VelComp implements Posc{
|
abstract class VelComp implements Posc{
|
||||||
@Import float x, y;
|
@Import float x, y;
|
||||||
|
|
||||||
//TODO @SyncLocal this? does it even need to be sent?
|
@SyncLocal Vec2 vel = new Vec2();
|
||||||
transient final Vec2 vel = new Vec2();
|
|
||||||
transient float drag = 0f;
|
transient float drag = 0f;
|
||||||
|
|
||||||
//velocity needs to be called first, as it affects delta and lastPosition
|
//velocity needs to be called first, as it affects delta and lastPosition
|
||||||
@MethodPriority(-1)
|
@MethodPriority(-1)
|
||||||
@Override
|
@Override
|
||||||
public void update(){
|
public void update(){
|
||||||
|
//do not update velocity on the client at all, unless it's non-interpolated
|
||||||
|
//velocity conflicts with interpolation.
|
||||||
|
if(!net.client() || isLocal()){
|
||||||
float px = x, py = y;
|
float px = x, py = y;
|
||||||
move(vel.x * Time.delta, vel.y * Time.delta);
|
move(vel.x * Time.delta, vel.y * Time.delta);
|
||||||
if(Mathf.equal(px, x)) vel.x = 0;
|
if(Mathf.equal(px, x)) vel.x = 0;
|
||||||
@@ -28,6 +31,7 @@ abstract class VelComp implements Posc{
|
|||||||
|
|
||||||
vel.scl(Math.max(1f - drag * Time.delta, 0));
|
vel.scl(Math.max(1f - drag * Time.delta, 0));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** @return function to use for check solid state. if null, no checking is done. */
|
/** @return function to use for check solid state. if null, no checking is done. */
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
@@ -114,22 +114,6 @@ public class Rules{
|
|||||||
/** special tags for additional info. */
|
/** special tags for additional info. */
|
||||||
public StringMap tags = new StringMap();
|
public StringMap tags = new StringMap();
|
||||||
|
|
||||||
/** A team-specific ruleset. */
|
|
||||||
public static class TeamRule{
|
|
||||||
/** Whether to use building AI. */
|
|
||||||
public boolean ai;
|
|
||||||
/** TODO Tier of blocks/designs that the AI uses for building. [0, 1] */
|
|
||||||
public float aiTier = 1f;
|
|
||||||
/** Whether, when AI is enabled, ships should be spawned from the core. */
|
|
||||||
public boolean aiCoreSpawn = true;
|
|
||||||
/** If true, blocks don't require power or resources. */
|
|
||||||
public boolean cheat;
|
|
||||||
/** If true, resources are not consumed when building. */
|
|
||||||
public boolean infiniteResources;
|
|
||||||
/** If true, this team has infinite unit ammo. */
|
|
||||||
public boolean infiniteAmmo;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Copies this ruleset exactly. Not efficient at all, do not use often. */
|
/** Copies this ruleset exactly. Not efficient at all, do not use often. */
|
||||||
public Rules copy(){
|
public Rules copy(){
|
||||||
return JsonIO.copy(this);
|
return JsonIO.copy(this);
|
||||||
@@ -150,6 +134,22 @@ public class Rules{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** A team-specific ruleset. */
|
||||||
|
public static class TeamRule{
|
||||||
|
/** Whether to use building AI. */
|
||||||
|
public boolean ai;
|
||||||
|
/** TODO Tier of blocks/designs that the AI uses for building. [0, 1] */
|
||||||
|
public float aiTier = 1f;
|
||||||
|
/** Whether, when AI is enabled, ships should be spawned from the core. */
|
||||||
|
public boolean aiCoreSpawn = true;
|
||||||
|
/** If true, blocks don't require power or resources. */
|
||||||
|
public boolean cheat;
|
||||||
|
/** If true, resources are not consumed when building. */
|
||||||
|
public boolean infiniteResources;
|
||||||
|
/** If true, this team has infinite unit ammo. */
|
||||||
|
public boolean infiniteAmmo;
|
||||||
|
}
|
||||||
|
|
||||||
/** A simple map for storing TeamRules in an efficient way without hashing. */
|
/** A simple map for storing TeamRules in an efficient way without hashing. */
|
||||||
public static class TeamRules implements JsonSerializable{
|
public static class TeamRules implements JsonSerializable{
|
||||||
final TeamRule[] values = new TeamRule[Team.all.length];
|
final TeamRule[] values = new TeamRule[Team.all.length];
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ public class BlockRenderer{
|
|||||||
Draw.z(Layer.block);
|
Draw.z(Layer.block);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(renderer.drawStatus && block.consumes.any()){
|
if(entity.team == player.team() && renderer.drawStatus && block.consumes.any()){
|
||||||
entity.drawStatus();
|
entity.drawStatus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public class LCanvas extends Table{
|
|||||||
float dst = Math.min(y - this.y, Core.graphics.getHeight() - y);
|
float dst = Math.min(y - this.y, Core.graphics.getHeight() - y);
|
||||||
if(dst < Scl.scl(100f)){ //scroll margin
|
if(dst < Scl.scl(100f)){ //scroll margin
|
||||||
int sign = Mathf.sign(Core.graphics.getHeight()/2f - y);
|
int sign = Mathf.sign(Core.graphics.getHeight()/2f - y);
|
||||||
pane.setScrollY(pane.getScrollY() + sign * Scl.scl(15f));
|
pane.setScrollY(pane.getScrollY() + sign * Scl.scl(15f) * Time.delta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -422,7 +422,7 @@ public class Maps{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void writeCache(Map map) throws IOException{
|
private void writeCache(Map map) throws IOException{
|
||||||
try(DataOutputStream stream = new DataOutputStream(map.cacheFile().write(false, Streams.DEFAULT_BUFFER_SIZE))){
|
try(DataOutputStream stream = new DataOutputStream(map.cacheFile().write(false, Streams.defaultBufferSize))){
|
||||||
stream.write(0);
|
stream.write(0);
|
||||||
stream.writeInt(map.spawns);
|
stream.writeInt(map.spawns);
|
||||||
stream.write(map.teams.size);
|
stream.write(map.teams.size);
|
||||||
@@ -434,7 +434,7 @@ public class Maps{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void readCache(Map map) throws IOException{
|
private void readCache(Map map) throws IOException{
|
||||||
try(DataInputStream stream = new DataInputStream(map.cacheFile().read(Streams.DEFAULT_BUFFER_SIZE))){
|
try(DataInputStream stream = new DataInputStream(map.cacheFile().read(Streams.defaultBufferSize))){
|
||||||
stream.read(); //version
|
stream.read(); //version
|
||||||
map.spawns = stream.readInt();
|
map.spawns = stream.readInt();
|
||||||
int teamsize = stream.readByte();
|
int teamsize = stream.readByte();
|
||||||
|
|||||||
@@ -3,12 +3,15 @@ package mindustry.maps.filters;
|
|||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
|
import arc.scene.event.*;
|
||||||
import arc.scene.style.*;
|
import arc.scene.style.*;
|
||||||
import arc.scene.ui.*;
|
import arc.scene.ui.*;
|
||||||
import arc.scene.ui.layout.*;
|
import arc.scene.ui.layout.*;
|
||||||
|
import arc.util.*;
|
||||||
import mindustry.*;
|
import mindustry.*;
|
||||||
import mindustry.content.*;
|
import mindustry.content.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
|
import mindustry.ui.*;
|
||||||
import mindustry.ui.dialogs.*;
|
import mindustry.ui.dialogs.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
import mindustry.world.blocks.environment.*;
|
import mindustry.world.blocks.environment.*;
|
||||||
@@ -35,7 +38,7 @@ public abstract class FilterOption{
|
|||||||
final Floatc setter;
|
final Floatc setter;
|
||||||
final float min, max, step;
|
final float min, max, step;
|
||||||
|
|
||||||
boolean display;
|
boolean display = true;
|
||||||
|
|
||||||
SliderOption(String name, Floatp getter, Floatc setter, float min, float max){
|
SliderOption(String name, Floatp getter, Floatc setter, float min, float max){
|
||||||
this(name, getter, setter, min, max, (max - min) / 200);
|
this(name, getter, setter, min, max, (max - min) / 200);
|
||||||
@@ -57,19 +60,27 @@ public abstract class FilterOption{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void build(Table table){
|
public void build(Table table){
|
||||||
|
Label label;
|
||||||
if(!display){
|
if(!display){
|
||||||
table.add("@filter.option." + name);
|
label = new Label("@filter.option." + name);
|
||||||
}else{
|
}else{
|
||||||
table.label(() -> Core.bundle.get("filter.option." + name) + ": " + (int)getter.get());
|
label = new Label(() -> Core.bundle.get("filter.option." + name) + ": " + Strings.autoFixed(getter.get(), 2));
|
||||||
}
|
}
|
||||||
table.row();
|
label.setWrap(true);
|
||||||
Slider slider = table.slider(min, max, step, setter).growX().get();
|
label.setAlignment(Align.center);
|
||||||
|
label.touchable = Touchable.disabled;
|
||||||
|
label.setStyle(Styles.outlineLabel);
|
||||||
|
|
||||||
|
Slider slider = new Slider(min, max, step, false);
|
||||||
|
slider.moved(setter);
|
||||||
slider.setValue(getter.get());
|
slider.setValue(getter.get());
|
||||||
if(updateEditorOnChange){
|
if(updateEditorOnChange){
|
||||||
slider.changed(changed);
|
slider.changed(changed);
|
||||||
}else{
|
}else{
|
||||||
slider.released(changed);
|
slider.released(changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.stack(slider, label).colspan(2).pad(3).growX().row();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
package mindustry.mod;
|
package mindustry.mod;
|
||||||
|
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import mindustry.world.blocks.environment.*;
|
|
||||||
import mindustry.world.blocks.payloads.*;
|
|
||||||
|
|
||||||
/** Generated class. Maps simple class names to concrete classes. For use in JSON mods. */
|
/** Generated class. Maps simple class names to concrete classes. For use in JSON mods. */
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public class ClassMap{
|
public class ClassMap{
|
||||||
@@ -168,26 +165,28 @@ public class ClassMap{
|
|||||||
classes.put("StackConveyor", mindustry.world.blocks.distribution.StackConveyor.class);
|
classes.put("StackConveyor", mindustry.world.blocks.distribution.StackConveyor.class);
|
||||||
classes.put("StackConveyorBuild", mindustry.world.blocks.distribution.StackConveyor.StackConveyorBuild.class);
|
classes.put("StackConveyorBuild", mindustry.world.blocks.distribution.StackConveyor.StackConveyorBuild.class);
|
||||||
classes.put("AirBlock", mindustry.world.blocks.environment.AirBlock.class);
|
classes.put("AirBlock", mindustry.world.blocks.environment.AirBlock.class);
|
||||||
|
classes.put("Bush", mindustry.world.blocks.environment.Bush.class);
|
||||||
classes.put("Cliff", mindustry.world.blocks.environment.Cliff.class);
|
classes.put("Cliff", mindustry.world.blocks.environment.Cliff.class);
|
||||||
classes.put("DoubleOverlayFloor", mindustry.world.blocks.environment.DoubleOverlayFloor.class);
|
classes.put("DoubleOverlayFloor", mindustry.world.blocks.environment.DoubleOverlayFloor.class);
|
||||||
classes.put("Floor", mindustry.world.blocks.environment.Floor.class);
|
classes.put("Floor", mindustry.world.blocks.environment.Floor.class);
|
||||||
classes.put("OreBlock", mindustry.world.blocks.environment.OreBlock.class);
|
classes.put("OreBlock", mindustry.world.blocks.environment.OreBlock.class);
|
||||||
classes.put("OverlayFloor", mindustry.world.blocks.environment.OverlayFloor.class);
|
classes.put("OverlayFloor", mindustry.world.blocks.environment.OverlayFloor.class);
|
||||||
classes.put("Prop", mindustry.world.blocks.environment.Prop.class);
|
classes.put("Prop", mindustry.world.blocks.environment.Prop.class);
|
||||||
classes.put("Bush", Bush.class);
|
|
||||||
classes.put("WavingProp", WavingProp.class);
|
|
||||||
classes.put("ShallowLiquid", mindustry.world.blocks.environment.ShallowLiquid.class);
|
classes.put("ShallowLiquid", mindustry.world.blocks.environment.ShallowLiquid.class);
|
||||||
classes.put("SpawnBlock", mindustry.world.blocks.environment.SpawnBlock.class);
|
classes.put("SpawnBlock", mindustry.world.blocks.environment.SpawnBlock.class);
|
||||||
classes.put("StaticClusterWall", StaticClusterWall.class);
|
classes.put("StaticClusterWall", mindustry.world.blocks.environment.StaticClusterWall.class);
|
||||||
classes.put("StaticTree", mindustry.world.blocks.environment.StaticTree.class);
|
classes.put("StaticTree", mindustry.world.blocks.environment.StaticTree.class);
|
||||||
classes.put("StaticWall", mindustry.world.blocks.environment.StaticWall.class);
|
classes.put("StaticWall", mindustry.world.blocks.environment.StaticWall.class);
|
||||||
classes.put("TreeBlock", mindustry.world.blocks.environment.TreeBlock.class);
|
classes.put("TreeBlock", mindustry.world.blocks.environment.TreeBlock.class);
|
||||||
classes.put("WallOreBlock", mindustry.world.blocks.environment.WallOreBlock.class);
|
classes.put("WallOreBlock", mindustry.world.blocks.environment.WallOreBlock.class);
|
||||||
|
classes.put("WavingProp", mindustry.world.blocks.environment.WavingProp.class);
|
||||||
classes.put("WobbleProp", mindustry.world.blocks.environment.WobbleProp.class);
|
classes.put("WobbleProp", mindustry.world.blocks.environment.WobbleProp.class);
|
||||||
classes.put("BlockLoader", BlockLoader.class);
|
classes.put("BlockForge", mindustry.world.blocks.experimental.BlockForge.class);
|
||||||
classes.put("BlockLoaderBuild", BlockLoader.BlockLoaderBuild.class);
|
classes.put("BlockForgeBuild", mindustry.world.blocks.experimental.BlockForge.BlockForgeBuild.class);
|
||||||
classes.put("BlockUnloader", BlockUnloader.class);
|
classes.put("BlockLoader", mindustry.world.blocks.experimental.BlockLoader.class);
|
||||||
classes.put("BlockUnloaderBuild", BlockUnloader.BlockUnloaderBuild.class);
|
classes.put("BlockLoaderBuild", mindustry.world.blocks.experimental.BlockLoader.BlockLoaderBuild.class);
|
||||||
|
classes.put("BlockUnloader", mindustry.world.blocks.experimental.BlockUnloader.class);
|
||||||
|
classes.put("BlockUnloaderBuild", mindustry.world.blocks.experimental.BlockUnloader.BlockUnloaderBuild.class);
|
||||||
classes.put("LegacyBlock", mindustry.world.blocks.legacy.LegacyBlock.class);
|
classes.put("LegacyBlock", mindustry.world.blocks.legacy.LegacyBlock.class);
|
||||||
classes.put("LegacyMechPad", mindustry.world.blocks.legacy.LegacyMechPad.class);
|
classes.put("LegacyMechPad", mindustry.world.blocks.legacy.LegacyMechPad.class);
|
||||||
classes.put("LegacyMechPadBuild", mindustry.world.blocks.legacy.LegacyMechPad.LegacyMechPadBuild.class);
|
classes.put("LegacyMechPadBuild", mindustry.world.blocks.legacy.LegacyMechPad.LegacyMechPadBuild.class);
|
||||||
@@ -223,8 +222,12 @@ public class ClassMap{
|
|||||||
classes.put("BallisticSiloBuild", mindustry.world.blocks.payloads.BallisticSilo.BallisticSiloBuild.class);
|
classes.put("BallisticSiloBuild", mindustry.world.blocks.payloads.BallisticSilo.BallisticSiloBuild.class);
|
||||||
classes.put("BlockForge", mindustry.world.blocks.payloads.BlockForge.class);
|
classes.put("BlockForge", mindustry.world.blocks.payloads.BlockForge.class);
|
||||||
classes.put("BlockForgeBuild", mindustry.world.blocks.payloads.BlockForge.BlockForgeBuild.class);
|
classes.put("BlockForgeBuild", mindustry.world.blocks.payloads.BlockForge.BlockForgeBuild.class);
|
||||||
|
classes.put("BlockLoader", mindustry.world.blocks.payloads.BlockLoader.class);
|
||||||
|
classes.put("BlockLoaderBuild", mindustry.world.blocks.payloads.BlockLoader.BlockLoaderBuild.class);
|
||||||
classes.put("BlockProducer", mindustry.world.blocks.payloads.BlockProducer.class);
|
classes.put("BlockProducer", mindustry.world.blocks.payloads.BlockProducer.class);
|
||||||
classes.put("BlockProducerBuild", mindustry.world.blocks.payloads.BlockProducer.BlockProducerBuild.class);
|
classes.put("BlockProducerBuild", mindustry.world.blocks.payloads.BlockProducer.BlockProducerBuild.class);
|
||||||
|
classes.put("BlockUnloader", mindustry.world.blocks.payloads.BlockUnloader.class);
|
||||||
|
classes.put("BlockUnloaderBuild", mindustry.world.blocks.payloads.BlockUnloader.BlockUnloaderBuild.class);
|
||||||
classes.put("BuildPayload", mindustry.world.blocks.payloads.BuildPayload.class);
|
classes.put("BuildPayload", mindustry.world.blocks.payloads.BuildPayload.class);
|
||||||
classes.put("NuclearWarhead", mindustry.world.blocks.payloads.NuclearWarhead.class);
|
classes.put("NuclearWarhead", mindustry.world.blocks.payloads.NuclearWarhead.class);
|
||||||
classes.put("NuclearWarheadBuild", mindustry.world.blocks.payloads.NuclearWarhead.NuclearWarheadBuild.class);
|
classes.put("NuclearWarheadBuild", mindustry.world.blocks.payloads.NuclearWarhead.NuclearWarheadBuild.class);
|
||||||
@@ -238,7 +241,7 @@ public class ClassMap{
|
|||||||
classes.put("PayloadSource", mindustry.world.blocks.payloads.PayloadSource.class);
|
classes.put("PayloadSource", mindustry.world.blocks.payloads.PayloadSource.class);
|
||||||
classes.put("PayloadSourceBuild", mindustry.world.blocks.payloads.PayloadSource.PayloadSourceBuild.class);
|
classes.put("PayloadSourceBuild", mindustry.world.blocks.payloads.PayloadSource.PayloadSourceBuild.class);
|
||||||
classes.put("PayloadVoid", mindustry.world.blocks.payloads.PayloadVoid.class);
|
classes.put("PayloadVoid", mindustry.world.blocks.payloads.PayloadVoid.class);
|
||||||
classes.put("BlockLoaderBuild", PayloadVoid.PayloadVoidBuild.class);
|
classes.put("PayloadVoidBuild", mindustry.world.blocks.payloads.PayloadVoid.PayloadVoidBuild.class);
|
||||||
classes.put("UnitPayload", mindustry.world.blocks.payloads.UnitPayload.class);
|
classes.put("UnitPayload", mindustry.world.blocks.payloads.UnitPayload.class);
|
||||||
classes.put("Battery", mindustry.world.blocks.power.Battery.class);
|
classes.put("Battery", mindustry.world.blocks.power.Battery.class);
|
||||||
classes.put("BatteryBuild", mindustry.world.blocks.power.Battery.BatteryBuild.class);
|
classes.put("BatteryBuild", mindustry.world.blocks.power.Battery.BatteryBuild.class);
|
||||||
@@ -246,6 +249,7 @@ public class ClassMap{
|
|||||||
classes.put("BurnerGeneratorBuild", mindustry.world.blocks.power.BurnerGenerator.BurnerGeneratorBuild.class);
|
classes.put("BurnerGeneratorBuild", mindustry.world.blocks.power.BurnerGenerator.BurnerGeneratorBuild.class);
|
||||||
classes.put("ConditionalConsumePower", mindustry.world.blocks.power.ConditionalConsumePower.class);
|
classes.put("ConditionalConsumePower", mindustry.world.blocks.power.ConditionalConsumePower.class);
|
||||||
classes.put("DecayGenerator", mindustry.world.blocks.power.DecayGenerator.class);
|
classes.put("DecayGenerator", mindustry.world.blocks.power.DecayGenerator.class);
|
||||||
|
classes.put("DynamicConsumePower", mindustry.world.blocks.power.DynamicConsumePower.class);
|
||||||
classes.put("ImpactReactor", mindustry.world.blocks.power.ImpactReactor.class);
|
classes.put("ImpactReactor", mindustry.world.blocks.power.ImpactReactor.class);
|
||||||
classes.put("ImpactReactorBuild", mindustry.world.blocks.power.ImpactReactor.ImpactReactorBuild.class);
|
classes.put("ImpactReactorBuild", mindustry.world.blocks.power.ImpactReactor.ImpactReactorBuild.class);
|
||||||
classes.put("ItemLiquidGenerator", mindustry.world.blocks.power.ItemLiquidGenerator.class);
|
classes.put("ItemLiquidGenerator", mindustry.world.blocks.power.ItemLiquidGenerator.class);
|
||||||
@@ -334,6 +338,7 @@ public class ClassMap{
|
|||||||
classes.put("DrawCells", mindustry.world.draw.DrawCells.class);
|
classes.put("DrawCells", mindustry.world.draw.DrawCells.class);
|
||||||
classes.put("DrawCultivator", mindustry.world.draw.DrawCultivator.class);
|
classes.put("DrawCultivator", mindustry.world.draw.DrawCultivator.class);
|
||||||
classes.put("DrawGlow", mindustry.world.draw.DrawGlow.class);
|
classes.put("DrawGlow", mindustry.world.draw.DrawGlow.class);
|
||||||
|
classes.put("DrawLiquid", mindustry.world.draw.DrawLiquid.class);
|
||||||
classes.put("DrawMixer", mindustry.world.draw.DrawMixer.class);
|
classes.put("DrawMixer", mindustry.world.draw.DrawMixer.class);
|
||||||
classes.put("DrawRotator", mindustry.world.draw.DrawRotator.class);
|
classes.put("DrawRotator", mindustry.world.draw.DrawRotator.class);
|
||||||
classes.put("DrawSmelter", mindustry.world.draw.DrawSmelter.class);
|
classes.put("DrawSmelter", mindustry.world.draw.DrawSmelter.class);
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ public class Mods implements Loadable{
|
|||||||
|
|
||||||
/** Imports an external mod file. Folders are not supported here. */
|
/** Imports an external mod file. Folders are not supported here. */
|
||||||
public LoadedMod importMod(Fi file) throws IOException{
|
public LoadedMod importMod(Fi file) throws IOException{
|
||||||
String baseName = file.nameWithoutExtension();
|
//for some reason, android likes to add colons to file names, e.g. primary:ExampleJavaMod.jar, which breaks dexing
|
||||||
|
String baseName = file.nameWithoutExtension().replace(':', '_').replace(' ', '_');
|
||||||
String finalName = baseName;
|
String finalName = baseName;
|
||||||
//find a name to prevent any name conflicts
|
//find a name to prevent any name conflicts
|
||||||
int count = 1;
|
int count = 1;
|
||||||
@@ -300,12 +301,12 @@ public class Mods implements Loadable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private PageType getPage(Fi file){
|
private PageType getPage(Fi file){
|
||||||
String parent = file.parent().name();
|
String path = file.path();
|
||||||
return
|
return
|
||||||
parent.equals("environment") ? PageType.environment :
|
path.contains("sprites/blocks/environment") ? PageType.environment :
|
||||||
parent.equals("editor") ? PageType.editor :
|
path.contains("sprites/editor") ? PageType.editor :
|
||||||
parent.equals("rubble") ? PageType.editor :
|
path.contains("sprites/rubble") ? PageType.editor :
|
||||||
parent.equals("ui") || file.parent().parent().name().equals("ui") ? PageType.ui :
|
path.contains("sprites/ui") ? PageType.ui :
|
||||||
PageType.main;
|
PageType.main;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import arc.assets.loaders.SoundLoader.*;
|
|||||||
import arc.audio.*;
|
import arc.audio.*;
|
||||||
import arc.files.*;
|
import arc.files.*;
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
import arc.struct.*;
|
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import arc.util.Log.*;
|
import arc.util.Log.*;
|
||||||
|
import arc.util.io.*;
|
||||||
import mindustry.*;
|
import mindustry.*;
|
||||||
import mindustry.mod.Mods.*;
|
import mindustry.mod.Mods.*;
|
||||||
import rhino.*;
|
import rhino.*;
|
||||||
@@ -18,7 +18,6 @@ import rhino.module.provider.*;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
import java.util.*;
|
|
||||||
import java.util.regex.*;
|
import java.util.regex.*;
|
||||||
|
|
||||||
public class Scripts implements Disposable{
|
public class Scripts implements Disposable{
|
||||||
@@ -131,7 +130,7 @@ public class Scripts implements Disposable{
|
|||||||
|
|
||||||
/** writeFile but for a byte[] */
|
/** writeFile but for a byte[] */
|
||||||
public void writeBinFile(String purpose, String ext, byte[] contents){
|
public void writeBinFile(String purpose, String ext, byte[] contents){
|
||||||
if(contents == null) contents = new byte[0];
|
if(contents == null) contents = Streams.emptyBytes;
|
||||||
final byte[] fContents = contents;
|
final byte[] fContents = contents;
|
||||||
selectFile(false, purpose, ext, fi -> fi.writeBytes(fContents));
|
selectFile(false, purpose, ext, fi -> fi.writeBytes(fContents));
|
||||||
}
|
}
|
||||||
@@ -183,7 +182,7 @@ public class Scripts implements Disposable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private class ScriptModuleProvider extends UrlModuleSourceProvider{
|
private class ScriptModuleProvider extends UrlModuleSourceProvider{
|
||||||
private Pattern directory = Pattern.compile("^(.+?)/(.+)");
|
private final Pattern directory = Pattern.compile("^(.+?)/(.+)");
|
||||||
|
|
||||||
public ScriptModuleProvider(){
|
public ScriptModuleProvider(){
|
||||||
super(null, null);
|
super(null, null);
|
||||||
|
|||||||
@@ -391,15 +391,7 @@ public class ArcNetProvider implements NetProvider{
|
|||||||
//no compression, copy over buffer
|
//no compression, copy over buffer
|
||||||
if(compression == 0){
|
if(compression == 0){
|
||||||
buffer.position(0).limit(length);
|
buffer.position(0).limit(length);
|
||||||
if(byteBuffer.hasArray()){
|
|
||||||
buffer.put(byteBuffer.array(), byteBuffer.position(), length);
|
buffer.put(byteBuffer.array(), byteBuffer.position(), length);
|
||||||
}else{
|
|
||||||
byte[] readcopy = new byte[length];
|
|
||||||
int pos = byteBuffer.position();
|
|
||||||
byteBuffer.get(readcopy);
|
|
||||||
byteBuffer.position(pos);
|
|
||||||
buffer.put(readcopy);
|
|
||||||
}
|
|
||||||
buffer.position(0);
|
buffer.position(0);
|
||||||
packet.read(reads.get(), length);
|
packet.read(reads.get(), length);
|
||||||
//move read packets forward
|
//move read packets forward
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.net;
|
package mindustry.net;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.Net.*;
|
|
||||||
import arc.files.*;
|
import arc.files.*;
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
@@ -62,8 +61,9 @@ public class BeControl{
|
|||||||
|
|
||||||
/** asynchronously checks for updates. */
|
/** asynchronously checks for updates. */
|
||||||
public void checkUpdate(Boolc done){
|
public void checkUpdate(Boolc done){
|
||||||
Core.net.httpGet("https://api.github.com/repos/Anuken/MindustryBuilds/releases/latest", res -> {
|
Http.get("https://api.github.com/repos/Anuken/MindustryBuilds/releases/latest")
|
||||||
if(res.getStatus() == HttpStatus.OK){
|
.error(e -> {}) //ignore errors
|
||||||
|
.submit(res -> {
|
||||||
Jval val = Jval.read(res.getResultAsString());
|
Jval val = Jval.read(res.getResultAsString());
|
||||||
int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
|
int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
|
||||||
if(newBuild > Version.build){
|
if(newBuild > Version.build){
|
||||||
@@ -79,10 +79,7 @@ public class BeControl{
|
|||||||
}else{
|
}else{
|
||||||
Core.app.post(() -> done.get(false));
|
Core.app.post(() -> done.get(false));
|
||||||
}
|
}
|
||||||
}else{
|
});
|
||||||
Core.app.post(() -> done.get(false));
|
|
||||||
}
|
|
||||||
}, error -> {}); //ignore errors
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return whether a new update is available */
|
/** @return whether a new update is available */
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.net;
|
package mindustry.net;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.Net.*;
|
|
||||||
import arc.files.*;
|
import arc.files.*;
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
@@ -147,26 +146,18 @@ public class CrashSender{
|
|||||||
ex(() -> value.addChild("javaVersion", new JsonValue(System.getProperty("java.version"))));
|
ex(() -> value.addChild("javaVersion", new JsonValue(System.getProperty("java.version"))));
|
||||||
ex(() -> value.addChild("javaArch", new JsonValue(System.getProperty("sun.arch.data.model"))));
|
ex(() -> value.addChild("javaArch", new JsonValue(System.getProperty("sun.arch.data.model"))));
|
||||||
|
|
||||||
boolean[] sent = {false};
|
|
||||||
|
|
||||||
Log.info("Sending crash report.");
|
Log.info("Sending crash report.");
|
||||||
|
|
||||||
//post to crash report URL, exit code indicates send success
|
//post to crash report URL, exit code indicates send success
|
||||||
httpPost(Vars.crashReportURL, value.toJson(OutputType.json), r -> {
|
Http.post(Vars.crashReportURL, value.toJson(OutputType.json)).error(t -> {
|
||||||
Log.info("Crash sent successfully.");
|
Log.info("Crash report not sent.");
|
||||||
sent[0] = true;
|
|
||||||
System.exit(1);
|
|
||||||
}, t -> {
|
|
||||||
t.printStackTrace();
|
|
||||||
sent[0] = true;
|
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
|
}).block(r -> {
|
||||||
|
Log.info("Crash sent successfully.");
|
||||||
|
System.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
//sleep until report is sent
|
ret();
|
||||||
try{
|
|
||||||
while(!sent[0]){
|
|
||||||
Thread.sleep(30);
|
|
||||||
}
|
|
||||||
}catch(InterruptedException ignored){}
|
|
||||||
}catch(Throwable death){
|
}catch(Throwable death){
|
||||||
death.printStackTrace();
|
death.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -178,10 +169,6 @@ public class CrashSender{
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void httpPost(String url, String content, Cons<HttpResponse> success, Cons<Throwable> failure){
|
|
||||||
new NetJavaImpl().http(new HttpRequest().method(HttpMethod.POST).content(content).url(url), success, failure);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String parseException(Throwable e){
|
private static String parseException(Throwable e){
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
PrintWriter pw = new PrintWriter(sw);
|
PrintWriter pw = new PrintWriter(sw);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import arc.util.async.*;
|
|||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.net.Packets.*;
|
import mindustry.net.Packets.*;
|
||||||
import mindustry.net.Streamable.*;
|
import mindustry.net.Streamable.*;
|
||||||
|
import net.jpountz.lz4.*;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.*;
|
import java.nio.*;
|
||||||
@@ -33,7 +34,7 @@ public class Net{
|
|||||||
private final ObjectMap<Class<?>, Cons> clientListeners = new ObjectMap<>();
|
private final ObjectMap<Class<?>, Cons> clientListeners = new ObjectMap<>();
|
||||||
private final ObjectMap<Class<?>, Cons2<NetConnection, Object>> serverListeners = new ObjectMap<>();
|
private final ObjectMap<Class<?>, Cons2<NetConnection, Object>> serverListeners = new ObjectMap<>();
|
||||||
private final IntMap<StreamBuilder> streams = new IntMap<>();
|
private final IntMap<StreamBuilder> streams = new IntMap<>();
|
||||||
private final ExecutorService pingExecutor = Threads.executor(Math.max(Runtime.getRuntime().availableProcessors(), 6));
|
private final ExecutorService pingExecutor = Threads.cachedExecutor();
|
||||||
|
|
||||||
private final NetProvider provider;
|
private final NetProvider provider;
|
||||||
|
|
||||||
@@ -97,7 +98,7 @@ public class Net{
|
|||||||
|
|
||||||
if(e instanceof BufferUnderflowException || e instanceof BufferOverflowException){
|
if(e instanceof BufferUnderflowException || e instanceof BufferOverflowException){
|
||||||
error = Core.bundle.get("error.io");
|
error = Core.bundle.get("error.io");
|
||||||
}else if(error.equals("mismatch") || (e instanceof IndexOutOfBoundsException && e.getStackTrace()[0].getClassName().contains("java.nio"))){
|
}else if(error.equals("mismatch") || e instanceof LZ4Exception || (e instanceof IndexOutOfBoundsException && e.getStackTrace()[0].getClassName().contains("java.nio"))){
|
||||||
error = Core.bundle.get("error.mismatch");
|
error = Core.bundle.get("error.mismatch");
|
||||||
}else if(error.contains("port out of range") || error.contains("invalid argument") || (error.contains("invalid") && error.contains("address")) || Strings.neatError(e).contains("address associated")){
|
}else if(error.contains("port out of range") || error.contains("invalid argument") || (error.contains("invalid") && error.contains("address")) || Strings.neatError(e).contains("address associated")){
|
||||||
error = Core.bundle.get("error.invalidaddress");
|
error = Core.bundle.get("error.invalidaddress");
|
||||||
@@ -325,13 +326,6 @@ public class Net{
|
|||||||
pingExecutor.submit(() -> provider.pingHost(address, port, valid, failed));
|
pingExecutor.submit(() -> provider.pingHost(address, port, valid, failed));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Pings a host in an new thread. If an error occurred, failed() should be called with the exception.
|
|
||||||
*/
|
|
||||||
public void pingHostThread(String address, int port, Cons<Host> valid, Cons<Exception> failed){
|
|
||||||
Threads.daemon(() -> provider.pingHost(address, port, valid, failed));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the net is active, e.g. whether this is a multiplayer game.
|
* Whether the net is active, e.g. whether this is a multiplayer game.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import arc.struct.*;
|
|||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import mindustry.entities.units.*;
|
import mindustry.entities.units.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.net.Administration.*;
|
|
||||||
import mindustry.net.Packets.*;
|
import mindustry.net.Packets.*;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
@@ -37,38 +36,39 @@ public abstract class NetConnection{
|
|||||||
|
|
||||||
/** Kick with a special, localized reason. Use this if possible. */
|
/** Kick with a special, localized reason. Use this if possible. */
|
||||||
public void kick(KickReason reason){
|
public void kick(KickReason reason){
|
||||||
if(kicked) return;
|
kick(reason, (reason == KickReason.kick || reason == KickReason.banned || reason == KickReason.vote) ? 30 * 1000 : 0);
|
||||||
|
|
||||||
Log.info("Kicking connection @ / @; Reason: @", address, uuid, reason.name());
|
|
||||||
|
|
||||||
if((reason == KickReason.kick || reason == KickReason.banned || reason == KickReason.vote)){
|
|
||||||
PlayerInfo info = netServer.admins.getInfo(uuid);
|
|
||||||
info.timesKicked++;
|
|
||||||
info.lastKicked = Math.max(Time.millis() + 30 * 1000, info.lastKicked);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Call.kick(this, reason);
|
/** Kick with a special, localized reason. Use this if possible. */
|
||||||
|
public void kick(KickReason reason, long kickDuration){
|
||||||
close();
|
kick(null, reason, kickDuration);
|
||||||
|
|
||||||
netServer.admins.save();
|
|
||||||
kicked = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Kick with an arbitrary reason. */
|
/** Kick with an arbitrary reason. */
|
||||||
public void kick(String reason){
|
public void kick(String reason){
|
||||||
kick(reason, 30 * 1000);
|
kick(reason, null, 30 * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Kick with an arbitrary reason. */
|
||||||
|
public void kick(String reason, long duration){
|
||||||
|
kick(reason, null, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
|
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
|
||||||
public void kick(String reason, long kickDuration){
|
private void kick(String reason, KickReason kickType, long kickDuration){
|
||||||
if(kicked) return;
|
if(kicked) return;
|
||||||
|
|
||||||
Log.info("Kicking connection @ / @; Reason: @", address, uuid, reason.replace("\n", " "));
|
Log.info("Kicking connection @ / @; Reason: @", address, uuid, reason == null ? kickType.name() : reason.replace("\n", " "));
|
||||||
|
|
||||||
|
if(kickDuration > 0){
|
||||||
netServer.admins.handleKicked(uuid, address, kickDuration);
|
netServer.admins.handleKicked(uuid, address, kickDuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(reason == null){
|
||||||
|
Call.kick(this, kickType);
|
||||||
|
}else{
|
||||||
Call.kick(this, reason);
|
Call.kick(this, reason);
|
||||||
|
}
|
||||||
|
|
||||||
close();
|
close();
|
||||||
|
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
|
|
||||||
stats.add(Stat.health, health);
|
stats.add(Stat.health, health);
|
||||||
stats.add(Stat.armor, armor);
|
stats.add(Stat.armor, armor);
|
||||||
stats.add(Stat.speed, speed);
|
stats.add(Stat.speed, speed * 60f / tilesize, StatUnit.tilesSecond);
|
||||||
stats.add(Stat.size, hitSize / tilesize, StatUnit.blocksSquared);
|
stats.add(Stat.size, hitSize / tilesize, StatUnit.blocksSquared);
|
||||||
stats.add(Stat.itemCapacity, itemCapacity);
|
stats.add(Stat.itemCapacity, itemCapacity);
|
||||||
stats.add(Stat.range, (int)(maxRange / tilesize), StatUnit.blocks);
|
stats.add(Stat.range, (int)(maxRange / tilesize), StatUnit.blocks);
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ public class Fonts{
|
|||||||
|
|
||||||
/** Merges the UI and font atlas together for better performance. */
|
/** Merges the UI and font atlas together for better performance. */
|
||||||
public static void mergeFontAtlas(TextureAtlas atlas){
|
public static void mergeFontAtlas(TextureAtlas atlas){
|
||||||
//grab all textures from the ui page, remove all the regions assigned to it, then copy them over to Fonts.packer and replace the texture in this atlas.
|
//grab all textures from the ui page, remove all the regions assigned to it, then copy them over to UI.packer and replace the texture in this atlas.
|
||||||
|
|
||||||
//grab old UI texture and regions...
|
//grab old UI texture and regions...
|
||||||
Texture texture = atlas.find("logo").texture;
|
Texture texture = atlas.find("logo").texture;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class Styles{
|
|||||||
public static ImageButtonStyle defaulti, nodei, righti, emptyi, emptytogglei, selecti, logici, geni, colori, accenti, cleari, clearFulli, clearPartiali, clearPartial2i, clearTogglei, clearTransi, clearToggleTransi, clearTogglePartiali;
|
public static ImageButtonStyle defaulti, nodei, righti, emptyi, emptytogglei, selecti, logici, geni, colori, accenti, cleari, clearFulli, clearPartiali, clearPartial2i, clearTogglei, clearTransi, clearToggleTransi, clearTogglePartiali;
|
||||||
public static ScrollPaneStyle defaultPane, horizontalPane, smallPane, nonePane;
|
public static ScrollPaneStyle defaultPane, horizontalPane, smallPane, nonePane;
|
||||||
public static KeybindDialog.KeybindDialogStyle defaultKeybindDialog;
|
public static KeybindDialog.KeybindDialogStyle defaultKeybindDialog;
|
||||||
public static SliderStyle defaultSlider, vSlider;
|
public static SliderStyle defaultSlider;
|
||||||
public static LabelStyle defaultLabel, outlineLabel, techLabel;
|
public static LabelStyle defaultLabel, outlineLabel, techLabel;
|
||||||
public static TextFieldStyle defaultField, nodeField, areaField, nodeArea;
|
public static TextFieldStyle defaultField, nodeField, areaField, nodeArea;
|
||||||
public static CheckBoxStyle defaultCheck;
|
public static CheckBoxStyle defaultCheck;
|
||||||
@@ -39,6 +39,8 @@ public class Styles{
|
|||||||
public static TreeStyle defaultTree;
|
public static TreeStyle defaultTree;
|
||||||
|
|
||||||
public static void load(){
|
public static void load(){
|
||||||
|
var whiteui = (TextureRegionDrawable)Tex.whiteui;
|
||||||
|
|
||||||
black = whiteui.tint(0f, 0f, 0f, 1f);
|
black = whiteui.tint(0f, 0f, 0f, 1f);
|
||||||
black9 = whiteui.tint(0f, 0f, 0f, 0.9f);
|
black9 = whiteui.tint(0f, 0f, 0f, 0.9f);
|
||||||
black8 = whiteui.tint(0f, 0f, 0f, 0.8f);
|
black8 = whiteui.tint(0f, 0f, 0f, 0.8f);
|
||||||
@@ -318,13 +320,7 @@ public class Styles{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
defaultSlider = new SliderStyle(){{
|
defaultSlider = new SliderStyle(){{
|
||||||
background = slider;
|
background = sliderBack;
|
||||||
knob = sliderKnob;
|
|
||||||
knobOver = sliderKnobOver;
|
|
||||||
knobDown = sliderKnobDown;
|
|
||||||
}};
|
|
||||||
vSlider = new SliderStyle(){{
|
|
||||||
background = sliderVertical;
|
|
||||||
knob = sliderKnob;
|
knob = sliderKnob;
|
||||||
knobOver = sliderKnobOver;
|
knobOver = sliderKnobOver;
|
||||||
knobDown = sliderKnobDown;
|
knobDown = sliderKnobDown;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package mindustry.ui;
|
|||||||
|
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
import arc.scene.*;
|
import arc.scene.*;
|
||||||
|
import arc.scene.ui.layout.*;
|
||||||
import mindustry.graphics.*;
|
import mindustry.graphics.*;
|
||||||
|
|
||||||
public class WarningBar extends Element{
|
public class WarningBar extends Element{
|
||||||
@@ -27,7 +28,7 @@ public class WarningBar extends Element{
|
|||||||
rx + barWidth, y
|
rx + barWidth, y
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Lines.stroke(3f);
|
Lines.stroke(Scl.scl(3f));
|
||||||
Lines.line(x, y, x + width, y);
|
Lines.line(x, y, x + width, y);
|
||||||
Lines.line(x, y + height, x + width, y + height);
|
Lines.line(x, y + height, x + width, y + height);
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ public class CustomRulesDialog extends BaseDialog{
|
|||||||
main.table(t -> {
|
main.table(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
t.add(text).left().padRight(5);
|
t.add(text).left().padRight(5);
|
||||||
t.field((integer ? (int)prov.get() : prov.get()) + "", s -> cons.get(Strings.parseInt(s)))
|
t.field((integer ? prov.get() : prov.get()) + "", s -> cons.get(Strings.parseInt(s)))
|
||||||
.padRight(100f)
|
.padRight(100f)
|
||||||
.valid(f -> Strings.parseInt(f) >= min && Strings.parseInt(f) <= max).width(120f).left().addInputDialog();
|
.valid(f -> Strings.parseInt(f) >= min && Strings.parseInt(f) <= max).width(120f).left().addInputDialog();
|
||||||
}).padTop(0);
|
}).padTop(0);
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ public class FileChooser extends BaseDialog{
|
|||||||
private static final Fi homeDirectory = Core.files.absolute(Core.files.getExternalStoragePath());
|
private static final Fi homeDirectory = Core.files.absolute(Core.files.getExternalStoragePath());
|
||||||
static Fi lastDirectory = Core.files.absolute(Core.settings.getString("lastDirectory", homeDirectory.absolutePath()));
|
static Fi lastDirectory = Core.files.absolute(Core.settings.getString("lastDirectory", homeDirectory.absolutePath()));
|
||||||
|
|
||||||
private Table files;
|
|
||||||
Fi directory = lastDirectory;
|
Fi directory = lastDirectory;
|
||||||
|
private Table files;
|
||||||
private ScrollPane pane;
|
private ScrollPane pane;
|
||||||
private TextField navigation, filefield;
|
private TextField navigation, filefield;
|
||||||
private TextButton ok;
|
private TextButton ok;
|
||||||
@@ -37,6 +37,10 @@ public class FileChooser extends BaseDialog{
|
|||||||
this.filter = filter;
|
this.filter = filter;
|
||||||
this.selectListener = result;
|
this.selectListener = result;
|
||||||
|
|
||||||
|
if(!lastDirectory.exists()){
|
||||||
|
lastDirectory = homeDirectory;
|
||||||
|
}
|
||||||
|
|
||||||
onResize(() -> {
|
onResize(() -> {
|
||||||
cont.clear();
|
cont.clear();
|
||||||
setupWidgets();
|
setupWidgets();
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.ui.dialogs;
|
package mindustry.ui.dialogs;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.Net.*;
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.input.*;
|
import arc.input.*;
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
@@ -375,7 +374,7 @@ public class JoinDialog extends BaseDialog{
|
|||||||
for(String address : group.addresses){
|
for(String address : group.addresses){
|
||||||
String resaddress = address.contains(":") ? address.split(":")[0] : address;
|
String resaddress = address.contains(":") ? address.split(":")[0] : address;
|
||||||
int resport = address.contains(":") ? Strings.parseInt(address.split(":")[1]) : port;
|
int resport = address.contains(":") ? Strings.parseInt(address.split(":")[1]) : port;
|
||||||
net.pingHostThread(resaddress, resport, res -> {
|
net.pingHost(resaddress, resport, res -> {
|
||||||
if(refreshes != cur) return;
|
if(refreshes != cur) return;
|
||||||
res.port = resport;
|
res.port = resport;
|
||||||
|
|
||||||
@@ -533,17 +532,11 @@ public class JoinDialog extends BaseDialog{
|
|||||||
Log.info("Fetching community servers at @", url);
|
Log.info("Fetching community servers at @", url);
|
||||||
|
|
||||||
//get servers
|
//get servers
|
||||||
Core.net.httpGet(url, result -> {
|
Http.get(url)
|
||||||
try{
|
.error(t -> Log.err("Failed to fetch community servers", t))
|
||||||
if(result.getStatus() != HttpStatus.OK){
|
.submit(result -> {
|
||||||
Log.warn("Failed to fetch community servers: @", result.getStatus());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Jval val = Jval.read(result.getResultAsString());
|
Jval val = Jval.read(result.getResultAsString());
|
||||||
Core.app.post(() -> {
|
Seq<ServerGroup> servers = new Seq<>();
|
||||||
try{
|
|
||||||
defaultServers.clear();
|
|
||||||
val.asArray().each(child -> {
|
val.asArray().each(child -> {
|
||||||
String name = child.getString("name", "");
|
String name = child.getString("name", "");
|
||||||
String[] addresses;
|
String[] addresses;
|
||||||
@@ -552,19 +545,14 @@ public class JoinDialog extends BaseDialog{
|
|||||||
}else{
|
}else{
|
||||||
addresses = new String[]{child.getString("address", "<invalid>")};
|
addresses = new String[]{child.getString("address", "<invalid>")};
|
||||||
}
|
}
|
||||||
defaultServers.add(new ServerGroup(name, addresses));
|
servers.add(new ServerGroup(name, addresses));
|
||||||
});
|
});
|
||||||
|
//modify default servers on main thread
|
||||||
|
Core.app.post(() -> {
|
||||||
|
defaultServers.addAll(servers);
|
||||||
Log.info("Fetched @ community servers.", defaultServers.size);
|
Log.info("Fetched @ community servers.", defaultServers.size);
|
||||||
}catch(Throwable e){
|
|
||||||
Log.err("Failed to parse community servers.");
|
|
||||||
Log.err(e);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}catch(Throwable e){
|
});
|
||||||
Log.err("Failed to fetch community servers.");
|
|
||||||
Log.err(e);
|
|
||||||
}
|
|
||||||
}, Log::err);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveServers(){
|
private void saveServers(){
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package mindustry.ui.dialogs;
|
package mindustry.ui.dialogs;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.Net.*;
|
import arc.util.Http.*;
|
||||||
import arc.files.*;
|
import arc.files.*;
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
@@ -104,6 +104,8 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
if(Strings.getCauses(error).contains(t -> t.getMessage() != null && (t.getMessage().contains("trust anchor") || t.getMessage().contains("SSL") || t.getMessage().contains("protocol")))){
|
if(Strings.getCauses(error).contains(t -> t.getMessage() != null && (t.getMessage().contains("trust anchor") || t.getMessage().contains("SSL") || t.getMessage().contains("protocol")))){
|
||||||
ui.showErrorMessage("@feature.unsupported");
|
ui.showErrorMessage("@feature.unsupported");
|
||||||
|
}else if(error instanceof HttpStatusException st){
|
||||||
|
ui.showErrorMessage(Core.bundle.format("connectfail", Strings.capitalize(st.status.toString().toLowerCase())));
|
||||||
}else{
|
}else{
|
||||||
ui.showException(error);
|
ui.showException(error);
|
||||||
}
|
}
|
||||||
@@ -111,14 +113,10 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
void getModList(Cons<Seq<ModListing>> listener){
|
void getModList(Cons<Seq<ModListing>> listener){
|
||||||
if(modList == null){
|
if(modList == null){
|
||||||
Core.net.httpGet("https://raw.githubusercontent.com/Anuken/MindustryMods/master/mods.json", response -> {
|
Http.get("https://raw.githubusercontent.com/Anuken/MindustryMods/master/mods.json", response -> {
|
||||||
String strResult = response.getResultAsString();
|
String strResult = response.getResultAsString();
|
||||||
var status = response.getStatus();
|
|
||||||
|
|
||||||
Core.app.post(() -> {
|
Core.app.post(() -> {
|
||||||
if(status != HttpStatus.OK){
|
|
||||||
ui.showErrorMessage(Core.bundle.format("connectfail", status));
|
|
||||||
}else{
|
|
||||||
try{
|
try{
|
||||||
modList = JsonIO.json.fromJson(Seq.class, ModListing.class, strResult);
|
modList = JsonIO.json.fromJson(Seq.class, ModListing.class, strResult);
|
||||||
|
|
||||||
@@ -137,8 +135,6 @@ public class ModsDialog extends BaseDialog{
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
ui.showException(e);
|
ui.showException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}, error -> Core.app.post(() -> modError(error)));
|
}, error -> Core.app.post(() -> modError(error)));
|
||||||
}else{
|
}else{
|
||||||
@@ -423,9 +419,8 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
//textures are only requested when the rendering happens; this assists with culling
|
//textures are only requested when the rendering happens; this assists with culling
|
||||||
if(!textureCache.containsKey(repo)){
|
if(!textureCache.containsKey(repo)){
|
||||||
textureCache.put(repo, last = Tex.nomap.getRegion());
|
textureCache.put(repo, last = Core.atlas.find("nomap"));
|
||||||
Core.net.httpGet("https://raw.githubusercontent.com/Anuken/MindustryMods/master/icons/" + repo.replace("/", "_"), res -> {
|
Http.get("https://raw.githubusercontent.com/Anuken/MindustryMods/master/icons/" + repo.replace("/", "_"), res -> {
|
||||||
if(res.getStatus() == HttpStatus.OK){
|
|
||||||
Pixmap pix = new Pixmap(res.getResult());
|
Pixmap pix = new Pixmap(res.getResult());
|
||||||
Core.app.post(() -> {
|
Core.app.post(() -> {
|
||||||
try{
|
try{
|
||||||
@@ -437,7 +432,6 @@ public class ModsDialog extends BaseDialog{
|
|||||||
Log.err(e);
|
Log.err(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}, err -> {});
|
}, err -> {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -522,8 +516,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
githubImportJavaMod(repo);
|
githubImportJavaMod(repo);
|
||||||
}else{
|
}else{
|
||||||
ui.loadfrag.show();
|
ui.loadfrag.show();
|
||||||
Core.net.httpGet(ghApi + "/repos/" + repo, res -> {
|
Http.get(ghApi + "/repos/" + repo, res -> {
|
||||||
if(checkError(res)){
|
|
||||||
var json = Jval.read(res.getResultAsString());
|
var json = Jval.read(res.getResultAsString());
|
||||||
String mainBranch = json.getString("default_branch");
|
String mainBranch = json.getString("default_branch");
|
||||||
String language = json.getString("language", "<none>");
|
String language = json.getString("language", "<none>");
|
||||||
@@ -533,8 +526,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
if(language.equals("Java") || language.equals("Kotlin")){
|
if(language.equals("Java") || language.equals("Kotlin")){
|
||||||
githubImportJavaMod(repo);
|
githubImportJavaMod(repo);
|
||||||
}else{
|
}else{
|
||||||
githubImportBranch(mainBranch, repo, this::showStatus);
|
githubImportBranch(mainBranch, repo);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, this::importFail);
|
}, this::importFail);
|
||||||
}
|
}
|
||||||
@@ -542,8 +534,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
private void githubImportJavaMod(String repo){
|
private void githubImportJavaMod(String repo){
|
||||||
//grab latest release
|
//grab latest release
|
||||||
Core.net.httpGet(ghApi + "/repos/" + repo + "/releases/latest", res -> {
|
Http.get(ghApi + "/repos/" + repo + "/releases/latest", res -> {
|
||||||
if(checkError(res)){
|
|
||||||
var json = Jval.read(res.getResultAsString());
|
var json = Jval.read(res.getResultAsString());
|
||||||
var assets = json.get("assets").asArray();
|
var assets = json.get("assets").asArray();
|
||||||
|
|
||||||
@@ -554,51 +545,23 @@ public class ModsDialog extends BaseDialog{
|
|||||||
if(asset != null){
|
if(asset != null){
|
||||||
//grab actual file
|
//grab actual file
|
||||||
var url = asset.getString("browser_download_url");
|
var url = asset.getString("browser_download_url");
|
||||||
Core.net.httpGet(url, result -> {
|
|
||||||
if(checkError(result)){
|
Http.get(url, result -> handleMod(repo, result), this::importFail);
|
||||||
handleMod(repo, result);
|
|
||||||
}
|
|
||||||
}, this::importFail);
|
|
||||||
}else{
|
}else{
|
||||||
throw new ArcRuntimeException("No JAR file found in releases. Make sure you have a valid jar file in the mod's latest Github Release.");
|
throw new ArcRuntimeException("No JAR file found in releases. Make sure you have a valid jar file in the mod's latest Github Release.");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}, this::importFail);
|
}, this::importFail);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkError(HttpResponse res){
|
private void githubImportBranch(String branch, String repo){
|
||||||
if(res.getStatus() == HttpStatus.OK){
|
Http.get(ghApi + "/repos/" + repo + "/zipball/" + branch, loc -> {
|
||||||
return true;
|
|
||||||
}else{
|
|
||||||
showStatus(res.getStatus());
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showStatus(HttpStatus status){
|
|
||||||
Core.app.post(() -> {
|
|
||||||
ui.showErrorMessage(Core.bundle.format("connectfail", Strings.capitalize(status.toString().toLowerCase())));
|
|
||||||
ui.loadfrag.hide();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void githubImportBranch(String branch, String repo, Cons<HttpStatus> err){
|
|
||||||
Core.net.httpGet(ghApi + "/repos/" + repo + "/zipball/" + branch, loc -> {
|
|
||||||
if(loc.getStatus() == HttpStatus.OK){
|
|
||||||
if(loc.getHeader("Location") != null){
|
if(loc.getHeader("Location") != null){
|
||||||
Core.net.httpGet(loc.getHeader("Location"), result -> {
|
Http.get(loc.getHeader("Location"), result -> {
|
||||||
if(result.getStatus() != HttpStatus.OK){
|
|
||||||
err.get(result.getStatus());
|
|
||||||
}else{
|
|
||||||
handleMod(repo, result);
|
handleMod(repo, result);
|
||||||
}
|
|
||||||
}, this::importFail);
|
}, this::importFail);
|
||||||
}else{
|
}else{
|
||||||
handleMod(repo, loc);
|
handleMod(repo, loc);
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
err.get(loc.getStatus());
|
|
||||||
}
|
|
||||||
}, this::importFail);
|
}, this::importFail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import arc.func.*;
|
|||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.graphics.Texture.*;
|
import arc.graphics.Texture.*;
|
||||||
import arc.input.*;
|
import arc.input.*;
|
||||||
|
import arc.scene.event.*;
|
||||||
import arc.scene.ui.*;
|
import arc.scene.ui.*;
|
||||||
import arc.scene.ui.TextButton.*;
|
import arc.scene.ui.TextButton.*;
|
||||||
import arc.scene.ui.layout.*;
|
import arc.scene.ui.layout.*;
|
||||||
@@ -286,7 +287,8 @@ public class SettingsMenuDialog extends Dialog{
|
|||||||
sound.sliderPref("sfxvol", bundle.get("setting.sfxvol.name", "SFX Volume"), 100, 0, 100, 1, i -> i + "%");
|
sound.sliderPref("sfxvol", bundle.get("setting.sfxvol.name", "SFX Volume"), 100, 0, 100, 1, i -> i + "%");
|
||||||
sound.sliderPref("ambientvol", bundle.get("setting.ambientvol.name", "Ambient Volume"), 100, 0, 100, 1, i -> i + "%");
|
sound.sliderPref("ambientvol", bundle.get("setting.ambientvol.name", "Ambient Volume"), 100, 0, 100, 1, i -> i + "%");
|
||||||
|
|
||||||
game.screenshakePref();
|
game.sliderPref("saveinterval", 60, 10, 5 * 120, 10, i -> Core.bundle.format("setting.seconds", i));
|
||||||
|
|
||||||
if(mobile){
|
if(mobile){
|
||||||
game.checkPref("autotarget", true);
|
game.checkPref("autotarget", true);
|
||||||
game.checkPref("keyboard", false, val -> {
|
game.checkPref("keyboard", false, val -> {
|
||||||
@@ -307,7 +309,6 @@ public class SettingsMenuDialog extends Dialog{
|
|||||||
control.setInput(new MobileInput());
|
control.setInput(new MobileInput());
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
game.sliderPref("saveinterval", 60, 10, 5 * 120, 10, i -> Core.bundle.format("setting.seconds", i));
|
|
||||||
|
|
||||||
if(!mobile){
|
if(!mobile){
|
||||||
game.checkPref("crashreport", true);
|
game.checkPref("crashreport", true);
|
||||||
@@ -350,6 +351,8 @@ public class SettingsMenuDialog extends Dialog{
|
|||||||
Core.settings.put("uiscalechanged", s != lastUiScale[0]);
|
Core.settings.put("uiscalechanged", s != lastUiScale[0]);
|
||||||
return s + "%";
|
return s + "%";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
graphics.sliderPref("screenshake", 4, 0, 8, i -> (i / 4f) + "x");
|
||||||
graphics.sliderPref("fpscap", 240, 15, 245, 5, s -> (s > 240 ? Core.bundle.get("setting.fpscap.none") : Core.bundle.format("setting.fpscap.text", s)));
|
graphics.sliderPref("fpscap", 240, 15, 245, 5, s -> (s > 240 ? Core.bundle.get("setting.fpscap.none") : Core.bundle.format("setting.fpscap.text", s)));
|
||||||
graphics.sliderPref("chatopacity", 100, 0, 100, 5, s -> s + "%");
|
graphics.sliderPref("chatopacity", 100, 0, 100, 5, s -> s + "%");
|
||||||
graphics.sliderPref("lasersopacity", 100, 0, 100, 5, s -> {
|
graphics.sliderPref("lasersopacity", 100, 0, 100, 5, s -> {
|
||||||
@@ -559,10 +562,6 @@ public class SettingsMenuDialog extends Dialog{
|
|||||||
rebuild();
|
rebuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void screenshakePref(){
|
|
||||||
sliderPref("screenshake", bundle.get("setting.screenshake.name", "Screen Shake"), 4, 0, 8, i -> (i / 4f) + "x");
|
|
||||||
}
|
|
||||||
|
|
||||||
public SliderSetting sliderPref(String name, String title, int def, int min, int max, StringProcessor s){
|
public SliderSetting sliderPref(String name, String title, int def, int min, int max, StringProcessor s){
|
||||||
return sliderPref(name, title, def, min, max, 1, s);
|
return sliderPref(name, title, def, min, max, 1, s);
|
||||||
}
|
}
|
||||||
@@ -686,23 +685,21 @@ public class SettingsMenuDialog extends Dialog{
|
|||||||
|
|
||||||
slider.setValue(settings.getInt(name));
|
slider.setValue(settings.getInt(name));
|
||||||
|
|
||||||
Label label = new Label(title);
|
Label value = new Label("");
|
||||||
|
value.setStyle(Styles.outlineLabel);
|
||||||
|
value.touchable = Touchable.disabled;
|
||||||
|
|
||||||
slider.changed(() -> {
|
slider.changed(() -> {
|
||||||
settings.put(name, (int)slider.getValue());
|
settings.put(name, (int)slider.getValue());
|
||||||
label.setText(title + ": " + sp.get((int)slider.getValue()));
|
value.setText(title + ": " + sp.get((int)slider.getValue()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
value.setAlignment(Align.center);
|
||||||
|
value.setWrap(true);
|
||||||
|
|
||||||
slider.change();
|
slider.change();
|
||||||
|
|
||||||
table.table(t -> {
|
table.stack(slider, value).width(Math.min(Core.graphics.getWidth() / 1.2f, 460f)).left().padTop(4);
|
||||||
t.left().defaults().left();
|
|
||||||
t.add(label).minWidth(label.getPrefWidth() / Scl.scl(1f) + 50);
|
|
||||||
if(Core.graphics.isPortrait()){
|
|
||||||
t.row();
|
|
||||||
}
|
|
||||||
t.add(slider).width(180);
|
|
||||||
}).left().padTop(3);
|
|
||||||
|
|
||||||
table.row();
|
table.row();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,13 +83,15 @@ public class PlayerListFragment extends Fragment{
|
|||||||
Groups.player.copy(players);
|
Groups.player.copy(players);
|
||||||
|
|
||||||
players.sort(Structs.comps(Structs.comparing(Player::team), Structs.comparingBool(p -> !p.admin)));
|
players.sort(Structs.comps(Structs.comparing(Player::team), Structs.comparingBool(p -> !p.admin)));
|
||||||
|
if(sField.getText().length() > 0){
|
||||||
|
players.filter(p -> Strings.stripColors(p.name().toLowerCase()).contains(sField.getText().toLowerCase()));
|
||||||
|
}
|
||||||
|
|
||||||
for(var user : players){
|
for(var user : players){
|
||||||
found = true;
|
found = true;
|
||||||
NetConnection connection = user.con;
|
NetConnection connection = user.con;
|
||||||
|
|
||||||
if(connection == null && net.server() && !user.isLocal()) return;
|
if(connection == null && net.server() && !user.isLocal()) return;
|
||||||
if(sField.getText().length() > 0 && !user.name().toLowerCase().contains(sField.getText().toLowerCase()) && !Strings.stripColors(user.name().toLowerCase()).contains(sField.getText().toLowerCase())) return;
|
|
||||||
|
|
||||||
Table button = new Table();
|
Table button = new Table();
|
||||||
button.left();
|
button.left();
|
||||||
|
|||||||
@@ -133,8 +133,8 @@ public class LaunchPad extends Block{
|
|||||||
public void updateTile(){
|
public void updateTile(){
|
||||||
if(!state.isCampaign()) return;
|
if(!state.isCampaign()) return;
|
||||||
|
|
||||||
//launch when full and base conditions are met
|
//increment launchCounter then launch when full and base conditions are met
|
||||||
if(items.total() >= itemCapacity && efficiency() >= 1f && (launchCounter += edelta()) >= launchTime){
|
if((launchCounter += edelta()) >= launchTime && items.total() >= itemCapacity){
|
||||||
launchSound.at(x, y);
|
launchSound.at(x, y);
|
||||||
LaunchPayload entity = LaunchPayload.create();
|
LaunchPayload entity = LaunchPayload.create();
|
||||||
items.each((item, amount) -> entity.stacks.add(new ItemStack(item, amount)));
|
items.each((item, amount) -> entity.stacks.add(new ItemStack(item, amount)));
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class LiquidTurret extends Turret{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldActiveSound(){
|
public boolean shouldActiveSound(){
|
||||||
return wasShooting;
|
return wasShooting && enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class PayloadConveyor extends Block{
|
|||||||
public @Load("@-top") TextureRegion topRegion;
|
public @Load("@-top") TextureRegion topRegion;
|
||||||
public @Load("@-edge") TextureRegion edgeRegion;
|
public @Load("@-edge") TextureRegion edgeRegion;
|
||||||
public Interp interp = Interp.pow5;
|
public Interp interp = Interp.pow5;
|
||||||
public float payloadLimit = 2.9f;
|
public float payloadLimit = 3f;
|
||||||
|
|
||||||
public PayloadConveyor(String name){
|
public PayloadConveyor(String name){
|
||||||
super(name);
|
super(name);
|
||||||
@@ -75,7 +75,7 @@ public class PayloadConveyor extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canControlSelect(Player player){
|
public boolean canControlSelect(Player player){
|
||||||
return this.item == null && !player.unit().spawnedByCore && player.unit().hitSize / tilesize <= payloadLimit && player.tileOn().build == this;
|
return this.item == null && !player.unit().spawnedByCore && player.unit().hitSize / tilesize <= payloadLimit && player.tileOn() != null && player.tileOn().build == this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ public class Prop extends Block{
|
|||||||
breakable = true;
|
breakable = true;
|
||||||
alwaysReplace = true;
|
alwaysReplace = true;
|
||||||
instantDeconstruct = true;
|
instantDeconstruct = true;
|
||||||
|
|
||||||
deconstructThreshold = 0.35f;
|
|
||||||
breakEffect = Fx.breakProp;
|
breakEffect = Fx.breakProp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public interface Payload extends Position{
|
|||||||
float size();
|
float size();
|
||||||
|
|
||||||
float x();
|
float x();
|
||||||
|
|
||||||
float y();
|
float y();
|
||||||
|
|
||||||
/** @return whether this payload was dumped. */
|
/** @return whether this payload was dumped. */
|
||||||
@@ -30,7 +31,7 @@ public interface Payload extends Position{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return whether this payload fits in a given size. 2.5 is the max for a standard 3x3 conveyor. */
|
/** @return whether this payload fits in a given size. 3 is the max for a standard 3x3 conveyor. */
|
||||||
default boolean fits(float s){
|
default boolean fits(float s){
|
||||||
return size() / tilesize <= s;
|
return size() / tilesize <= s;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class PayloadMassDriver extends PayloadBlock{
|
|||||||
public Sound shootSound = Sounds.shootBig;
|
public Sound shootSound = Sounds.shootBig;
|
||||||
public float shake = 3f;
|
public float shake = 3f;
|
||||||
|
|
||||||
public Effect transferEffect = new Effect(11f, 300f, e -> {
|
public Effect transferEffect = new Effect(11f, 600f, e -> {
|
||||||
if(!(e.data instanceof PayloadMassDriverData data)) return;
|
if(!(e.data instanceof PayloadMassDriverData data)) return;
|
||||||
Tmp.v1.set(data.x, data.y).lerp(data.ox, data.oy, Interp.sineIn.apply(e.fin()));
|
Tmp.v1.set(data.x, data.y).lerp(data.ox, data.oy, Interp.sineIn.apply(e.fin()));
|
||||||
data.payload.set(Tmp.v1.x, Tmp.v1.y, e.rotation);
|
data.payload.set(Tmp.v1.x, Tmp.v1.y, e.rotation);
|
||||||
@@ -456,6 +456,7 @@ public class PayloadMassDriver extends PayloadBlock{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Point2 config(){
|
public Point2 config(){
|
||||||
|
if(tile == null) return null;
|
||||||
return Point2.unpack(link).sub(tile.x, tile.y);
|
return Point2.unpack(link).sub(tile.x, tile.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class AttributeCrafter extends GenericCrafter{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float efficiency(){
|
public float efficiency(){
|
||||||
return (baseEfficiency + Math.min(maxBoost, boostScale * attrsum)) * super.efficiency();
|
return (baseEfficiency + Math.min(maxBoost, boostScale * attrsum) + attribute.env()) * super.efficiency();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import mindustry.entities.*;
|
|||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
|
import mindustry.world.meta.*;
|
||||||
|
|
||||||
public class Incinerator extends Block{
|
public class Incinerator extends Block{
|
||||||
public Effect effect = Fx.fuelburn;
|
public Effect effect = Fx.fuelburn;
|
||||||
@@ -34,6 +35,11 @@ public class Incinerator extends Block{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockStatus status(){
|
||||||
|
return heat > 0.5f ? BlockStatus.active : BlockStatus.noInput;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(){
|
public void draw(){
|
||||||
super.draw();
|
super.draw();
|
||||||
|
|||||||
@@ -128,19 +128,17 @@ public class Separator extends Block{
|
|||||||
return !consumes.itemFilters.get(item.id);
|
return !consumes.itemFilters.get(item.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO write seed in 128 release, don't write it now for compatibility with 127.x
|
@Override
|
||||||
//@Override
|
public byte version(){
|
||||||
//public byte version(){
|
return 1;
|
||||||
// return 1;
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(Writes write){
|
public void write(Writes write){
|
||||||
super.write(write);
|
super.write(write);
|
||||||
write.f(progress);
|
write.f(progress);
|
||||||
write.f(warmup);
|
write.f(warmup);
|
||||||
//TODO see above
|
write.i(seed);
|
||||||
//write.i(seed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -148,8 +146,7 @@ public class Separator extends Block{
|
|||||||
super.read(read, revision);
|
super.read(read, revision);
|
||||||
progress = read.f();
|
progress = read.f();
|
||||||
warmup = read.f();
|
warmup = read.f();
|
||||||
//TODO see above
|
if(revision == 1) seed = read.i();
|
||||||
//if(revision == 1) seed = read.i();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import java.util.*;
|
|||||||
public enum StatUnit{
|
public enum StatUnit{
|
||||||
blocks,
|
blocks,
|
||||||
blocksSquared,
|
blocksSquared,
|
||||||
|
tilesSecond,
|
||||||
powerSecond,
|
powerSecond,
|
||||||
liquidSecond,
|
liquidSecond,
|
||||||
itemsSecond,
|
itemsSecond,
|
||||||
|
|||||||
@@ -119,13 +119,14 @@ platforms.each{ platform ->
|
|||||||
"--removelibs", "$rootDir/desktop/build/packr/desktop.jar".toString()
|
"--removelibs", "$rootDir/desktop/build/packr/desktop.jar".toString()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
args += "--vmargs"
|
||||||
|
|
||||||
if(platform == "MacOS"){
|
if(platform == "MacOS"){
|
||||||
args += ["--vmargs", "XstartOnFirstThread"] as String[]
|
args += "XstartOnFirstThread"
|
||||||
}else{
|
|
||||||
//TODO unneeded for windows?
|
|
||||||
args += ["--vmargs", "Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args += "Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1"
|
||||||
|
|
||||||
exec{
|
exec{
|
||||||
commandLine args.toList()
|
commandLine args.toList()
|
||||||
standardOutput = System.out
|
standardOutput = System.out
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
final PacketSerializer serializer = new PacketSerializer();
|
final PacketSerializer serializer = new PacketSerializer();
|
||||||
final ByteBuffer writeBuffer = ByteBuffer.allocateDirect(16384);
|
final ByteBuffer writeBuffer = ByteBuffer.allocateDirect(16384);
|
||||||
final ByteBuffer readBuffer = ByteBuffer.allocateDirect(16384);
|
final ByteBuffer readBuffer = ByteBuffer.allocateDirect(16384);
|
||||||
|
final ByteBuffer readCopyBuffer = ByteBuffer.allocate(writeBuffer.capacity());
|
||||||
|
|
||||||
final CopyOnWriteArrayList<SteamConnection> connections = new CopyOnWriteArrayList<>();
|
final CopyOnWriteArrayList<SteamConnection> connections = new CopyOnWriteArrayList<>();
|
||||||
final IntMap<SteamConnection> steamConnections = new IntMap<>(); //maps steam ID -> valid net connection
|
final IntMap<SteamConnection> steamConnections = new IntMap<>(); //maps steam ID -> valid net connection
|
||||||
@@ -51,10 +52,15 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
public void update(){
|
public void update(){
|
||||||
while((length = snet.isP2PPacketAvailable(0)) != 0){
|
while((length = snet.isP2PPacketAvailable(0)) != 0){
|
||||||
try{
|
try{
|
||||||
readBuffer.position(0);
|
readBuffer.position(0).limit(readBuffer.capacity());
|
||||||
snet.readP2PPacket(from, readBuffer, 0);
|
//lz4 chokes on direct buffers, so copy the bytes over
|
||||||
|
int len = snet.readP2PPacket(from, readBuffer, 0);
|
||||||
|
readBuffer.limit(len);
|
||||||
|
readCopyBuffer.position(0);
|
||||||
|
readCopyBuffer.put(readBuffer);
|
||||||
|
readCopyBuffer.position(0);
|
||||||
int fromID = from.getAccountID();
|
int fromID = from.getAccountID();
|
||||||
Object output = serializer.read(readBuffer);
|
Object output = serializer.read(readCopyBuffer);
|
||||||
|
|
||||||
//it may be theoretically possible for this to be a framework message, if the packet is malicious or corrupted
|
//it may be theoretically possible for this to be a framework message, if the packet is malicious or corrupted
|
||||||
if(!(output instanceof Packet)) return;
|
if(!(output instanceof Packet)) return;
|
||||||
@@ -299,7 +305,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLobbyMatchList(int matches){
|
public void onLobbyMatchList(int matches){
|
||||||
Log.info("found @ matches @", matches, lobbyDoneCallback);
|
Log.info("found @ matches", matches);
|
||||||
|
|
||||||
if(lobbyDoneCallback != null){
|
if(lobbyDoneCallback != null){
|
||||||
Seq<Host> hosts = new Seq<>();
|
Seq<Host> hosts = new Seq<>();
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
- Přidán nový pohled na mapu s rolováním a posouváním
|
|
||||||
- Přidáno pravidlo pro zdraví bloku
|
|
||||||
- Přidáno více interních týmů pro různé herní režimy
|
|
||||||
- Přidána vylepšená podpora pro modifikace
|
|
||||||
- Hlavní vnitřní změna: programový balík se teď jmenuje "mindustry" namísto dosavadního "io.anuke.mindustry" (toto rozbije staré pluginy)
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- Přidán nový pohled na mapu s rolováním a posouváním
|
|
||||||
- Přidáno pravidlo pro zdraví bloku
|
|
||||||
- Přidáno více interních týmů pro různé herní režimy
|
|
||||||
- Přidána vylepšená podpora pro modifikace
|
|
||||||
- Hlavní vnitřní změna: programový balík se teď jmenuje "mindustry" namísto dosavadního "io.anuke.mindustry" (toto rozbije staré pluginy)
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
- Přidán nový pohled na mapu s rolováním a posouváním
|
|
||||||
- Přidáno pravidlo pro zdraví bloku
|
|
||||||
- Přidáno více interních týmů pro různé herní režimy
|
|
||||||
- Přidána vylepšená podpora pro modifikace
|
|
||||||
- Hlavní vnitřní změna: programový balík se teď jmenuje "mindustry" namísto dosavadního "io.anuke.mindustry" (toto rozbije staré pluginy)
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- Přidány nové ikony s hladkým škálováním
|
|
||||||
- Přidána černá díra na kapaliny (přispěno uživatelem @GioIacca9)
|
|
||||||
- Přidáno nastavení průsvitnosti přemostění přepravníku (přispěno uživatelem @Quezler)
|
|
||||||
- Přidána brána s podtokem (protikus k bráně s přetečením)
|
|
||||||
- Přidány emotikony do kanálu zpráv, pro většinu bloků a předmětů
|
|
||||||
- Přidán nový strom technologií, s lepší podporou pro modifikace
|
|
||||||
- Přidán soubor s logem hry, uložený v adresáři s daty
|
|
||||||
- Přidán nový oddělovač pro sprity a animace (ocení modéři)
|
|
||||||
- Přidán seznam synergetických dlaždic do statistik některých bloků (viz například vrt na vodu)
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- Přidány nové ikony s hladkým škálováním
|
|
||||||
- Přidána černá díra na kapaliny (přispěno uživatelem @GioIacca9)
|
|
||||||
- Přidáno nastavení průsvitnosti přemostění přepravníku (přispěno uživatelem @Quezler)
|
|
||||||
- Přidána brána s podtokem (protikus k bráně s přetečením)
|
|
||||||
- Přidány emotikony do kanálu zpráv, pro většinu bloků a předmětů
|
|
||||||
- Přidán nový strom technologií, s lepší podporou pro modifikace
|
|
||||||
- Přidán soubor s logem hry, uložený v adresáři s daty
|
|
||||||
- Přidán nový oddělovač pro sprity a animace (ocení modéři)
|
|
||||||
- Přidán seznam synergetických dlaždic do statistik některých bloků (viz například vrt na vodu)
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
- Přidány nové ikony s hladkým škálováním
|
|
||||||
- Přidána černá díra na kapaliny (přispěno uživatelem @GioIacca9)
|
|
||||||
- Přidáno nastavení průsvitnosti přemostění přepravníku (přispěno uživatelem @Quezler)
|
|
||||||
- Přidána brána s podtokem (protikus k bráně s přetečením)
|
|
||||||
- Přidány emotikony do kanálu zpráv, pro většinu bloků a předmětů
|
|
||||||
- Přidán nový strom technologií, s lepší podporou pro modifikace
|
|
||||||
- Přidán soubor s logem hry, uložený v adresáři s daty
|
|
||||||
- Přidán nový oddělovač pro sprity a animace (ocení modéři)
|
|
||||||
- Přidán seznam synergetických dlaždic do statistik některých bloků (viz například vrt na vodu)
|
|
||||||