mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 15:54:00 +07:00
Moved BE/v8 servers to new repo / Removed experimental Vars
This commit is contained in:
parent
ff8df5211c
commit
7e01b8796e
@ -45,10 +45,10 @@ public class Vars implements Loadable{
|
|||||||
public static boolean loadLocales = true;
|
public static boolean loadLocales = true;
|
||||||
/** Whether the logger is loaded. */
|
/** Whether the logger is loaded. */
|
||||||
public static boolean loadedLogger = false, loadedFileLogger = false;
|
public static boolean loadedLogger = false, loadedFileLogger = false;
|
||||||
/** Whether to enable various experimental features (e.g. spawn positions for spawn groups) TODO change */
|
|
||||||
public static boolean experimental = true;
|
|
||||||
/** Name of current Steam player. */
|
/** Name of current Steam player. */
|
||||||
public static String steamPlayerName = "";
|
public static String steamPlayerName = "";
|
||||||
|
/** If true, the BE server list is always used. */
|
||||||
|
public static boolean forceBeServers = false;
|
||||||
/** Default accessible content types used for player-selectable icons. */
|
/** Default accessible content types used for player-selectable icons. */
|
||||||
public static final ContentType[] defaultContentIcons = {ContentType.item, ContentType.liquid, ContentType.block, ContentType.unit};
|
public static final ContentType[] defaultContentIcons = {ContentType.item, ContentType.liquid, ContentType.block, ContentType.unit};
|
||||||
/** Default rule environment. */
|
/** Default rule environment. */
|
||||||
@ -72,10 +72,9 @@ public class Vars implements Loadable{
|
|||||||
/** URL the links to the wiki's modding guide.*/
|
/** URL the links to the wiki's modding guide.*/
|
||||||
public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/1-modding/";
|
public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/1-modding/";
|
||||||
/** URL to the JSON file containing all the BE servers. Only queried in BE. */
|
/** URL to the JSON file containing all the BE servers. Only queried in BE. */
|
||||||
public static final String serverJsonBeURL = "https://raw.githubusercontent.com/Anuken/Mindustry/master/servers_be.json";
|
public static final String serverJsonBeURL = "https://raw.githubusercontent.com/Anuken/MindustryServerList/master/servers_be.json";
|
||||||
/** URL to the JSON file containing all the stable servers. */
|
/** URL to the JSON file containing all the stable servers. */
|
||||||
//TODO merge with v6 list upon release
|
public static final String serverJsonURL = "https://raw.githubusercontent.com/Anuken/MindustryServerList/master/servers_v8.json";
|
||||||
public static final String serverJsonURL = "https://raw.githubusercontent.com/Anuken/Mindustry/master/servers_v7.json";
|
|
||||||
/** URL of the github issue report template.*/
|
/** URL of the github issue report template.*/
|
||||||
public static final String reportIssueURL = "https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md";
|
public static final String reportIssueURL = "https://github.com/Anuken/Mindustry/issues/new?labels=bug&template=bug_report.md";
|
||||||
/** list of built-in servers.*/
|
/** list of built-in servers.*/
|
||||||
|
@ -172,21 +172,18 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
|||||||
menu.cont.row();
|
menu.cont.row();
|
||||||
}
|
}
|
||||||
|
|
||||||
//wip feature
|
menu.cont.button("@editor.sectorgenerate", Icon.terrain, () -> {
|
||||||
if(experimental){
|
menu.hide();
|
||||||
menu.cont.button("@editor.sectorgenerate", Icon.terrain, () -> {
|
sectorGenDialog.show();
|
||||||
menu.hide();
|
}).padTop(!steam ? -3 : 1).size(swidth * 2f + 10, 60f);
|
||||||
sectorGenDialog.show();
|
menu.cont.row();
|
||||||
}).padTop(!steam ? -3 : 1).size(swidth * 2f + 10, 60f);
|
|
||||||
menu.cont.row();
|
|
||||||
}
|
|
||||||
|
|
||||||
menu.cont.row();
|
menu.cont.row();
|
||||||
|
|
||||||
menu.cont.button("@quit", Icon.exit, () -> {
|
menu.cont.button("@quit", Icon.exit, () -> {
|
||||||
tryExit();
|
tryExit();
|
||||||
menu.hide();
|
menu.hide();
|
||||||
}).padTop(!steam && !experimental ? -3 : 1).size(swidth * 2f + 10, 60f);
|
}).padTop(1).size(swidth * 2f + 10, 60f);
|
||||||
|
|
||||||
resizeDialog = new MapResizeDialog((width, height, shiftX, shiftY) -> {
|
resizeDialog = new MapResizeDialog((width, height, shiftX, shiftY) -> {
|
||||||
if(!(editor.width() == width && editor.height() == height && shiftX == 0 && shiftY == 0)){
|
if(!(editor.width() == width && editor.height() == height && shiftX == 0 && shiftY == 0)){
|
||||||
|
@ -91,13 +91,11 @@ public class WaveInfoDialog extends BaseDialog{
|
|||||||
dialog.show();
|
dialog.show();
|
||||||
}).size(250f, 64f);
|
}).size(250f, 64f);
|
||||||
|
|
||||||
if(experimental){
|
buttons.button(Core.bundle.get("waves.random"), Icon.refresh, () -> {
|
||||||
buttons.button(Core.bundle.get("waves.random"), Icon.refresh, () -> {
|
groups.clear();
|
||||||
groups.clear();
|
groups = Waves.generate(1f / 10f);
|
||||||
groups = Waves.generate(1f / 10f);
|
buildGroups();
|
||||||
buildGroups();
|
}).width(200f);
|
||||||
}).width(200f);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup(){
|
void setup(){
|
||||||
|
@ -16,7 +16,6 @@ import mindustry.world.meta.*;
|
|||||||
|
|
||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
/** Highly experimental fog-of-war renderer. */
|
|
||||||
public final class FogRenderer{
|
public final class FogRenderer{
|
||||||
private FrameBuffer staticFog = new FrameBuffer(), dynamicFog = new FrameBuffer();
|
private FrameBuffer staticFog = new FrameBuffer(), dynamicFog = new FrameBuffer();
|
||||||
private LongSeq events = new LongSeq();
|
private LongSeq events = new LongSeq();
|
||||||
|
@ -224,10 +224,7 @@ public class CustomRulesDialog extends BaseDialog{
|
|||||||
check("@rules.airUseSpawns", b -> rules.airUseSpawns = b, () -> rules.airUseSpawns, () -> rules.waves);
|
check("@rules.airUseSpawns", b -> rules.airUseSpawns = b, () -> rules.airUseSpawns, () -> rules.waves);
|
||||||
numberi("@rules.wavelimit", f -> rules.winWave = f, () -> rules.winWave, () -> rules.waves, 0, Integer.MAX_VALUE);
|
numberi("@rules.wavelimit", f -> rules.winWave = f, () -> rules.winWave, () -> rules.waves, 0, Integer.MAX_VALUE);
|
||||||
number("@rules.wavespacing", false, f -> rules.waveSpacing = f * 60f, () -> rules.waveSpacing / 60f, () -> rules.waves && rules.waveTimer, 1, Float.MAX_VALUE);
|
number("@rules.wavespacing", false, f -> rules.waveSpacing = f * 60f, () -> rules.waveSpacing / 60f, () -> rules.waves && rules.waveTimer, 1, Float.MAX_VALUE);
|
||||||
//this is experimental, because it's not clear that 0 makes it default.
|
number("@rules.initialwavespacing", false, f -> rules.initialWaveSpacing = f * 60f, () -> rules.initialWaveSpacing / 60f, () -> rules.waves && rules.waveTimer, 0, Float.MAX_VALUE);
|
||||||
if(experimental){
|
|
||||||
number("@rules.initialwavespacing", false, f -> rules.initialWaveSpacing = f * 60f, () -> rules.initialWaveSpacing / 60f, () -> rules.waves && rules.waveTimer, 0, Float.MAX_VALUE);
|
|
||||||
}
|
|
||||||
number("@rules.dropzoneradius", false, f -> rules.dropZoneRadius = f * tilesize, () -> rules.dropZoneRadius / tilesize, () -> rules.waves);
|
number("@rules.dropzoneradius", false, f -> rules.dropZoneRadius = f * tilesize, () -> rules.dropZoneRadius / tilesize, () -> rules.waves);
|
||||||
|
|
||||||
category("resourcesbuilding");
|
category("resourcesbuilding");
|
||||||
@ -292,13 +289,11 @@ public class CustomRulesDialog extends BaseDialog{
|
|||||||
check("@rules.fog", b -> rules.fog = b, () -> rules.fog);
|
check("@rules.fog", b -> rules.fog = b, () -> rules.fog);
|
||||||
check("@rules.lighting", b -> rules.lighting = b, () -> rules.lighting);
|
check("@rules.lighting", b -> rules.lighting = b, () -> rules.lighting);
|
||||||
|
|
||||||
if(experimental){
|
check("@rules.limitarea", b -> rules.limitMapArea = b, () -> rules.limitMapArea);
|
||||||
check("@rules.limitarea", b -> rules.limitMapArea = b, () -> rules.limitMapArea);
|
numberi("x", x -> rules.limitX = x, () -> rules.limitX, () -> rules.limitMapArea, 0, 10000);
|
||||||
numberi("x", x -> rules.limitX = x, () -> rules.limitX, () -> rules.limitMapArea, 0, 10000);
|
numberi("y", y -> rules.limitY = y, () -> rules.limitY, () -> rules.limitMapArea, 0, 10000);
|
||||||
numberi("y", y -> rules.limitY = y, () -> rules.limitY, () -> rules.limitMapArea, 0, 10000);
|
numberi("w", w -> rules.limitWidth = w, () -> rules.limitWidth, () -> rules.limitMapArea, 0, 10000);
|
||||||
numberi("w", w -> rules.limitWidth = w, () -> rules.limitWidth, () -> rules.limitMapArea, 0, 10000);
|
numberi("h", h -> rules.limitHeight = h, () -> rules.limitHeight, () -> rules.limitMapArea, 0, 10000);
|
||||||
numberi("h", h -> rules.limitHeight = h, () -> rules.limitHeight, () -> rules.limitMapArea, 0, 10000);
|
|
||||||
}
|
|
||||||
|
|
||||||
number("@rules.solarmultiplier", f -> rules.solarMultiplier = f, () -> rules.solarMultiplier);
|
number("@rules.solarmultiplier", f -> rules.solarMultiplier = f, () -> rules.solarMultiplier);
|
||||||
|
|
||||||
|
@ -599,7 +599,7 @@ public class JoinDialog extends BaseDialog{
|
|||||||
connect(lastIp, lastPort);
|
connect(lastIp, lastPort);
|
||||||
}, exception -> {});
|
}, exception -> {});
|
||||||
}, 1, 1);
|
}, 1, 1);
|
||||||
|
|
||||||
ui.loadfrag.setButton(() -> {
|
ui.loadfrag.setButton(() -> {
|
||||||
ui.loadfrag.hide();
|
ui.loadfrag.hide();
|
||||||
if(ping == null) return;
|
if(ping == null) return;
|
||||||
@ -631,7 +631,7 @@ public class JoinDialog extends BaseDialog{
|
|||||||
Core.settings.remove("server-list");
|
Core.settings.remove("server-list");
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = Version.type.equals("bleeding-edge") ? serverJsonBeURL : serverJsonURL;
|
var url = Version.type.equals("bleeding-edge") || Vars.forceBeServers ? serverJsonBeURL : serverJsonURL;
|
||||||
Log.info("Fetching community servers at @", url);
|
Log.info("Fetching community servers at @", url);
|
||||||
|
|
||||||
//get servers
|
//get servers
|
||||||
|
@ -40,11 +40,11 @@ import static mindustry.gen.Tex.*;
|
|||||||
public class HudFragment{
|
public class HudFragment{
|
||||||
private static final float dsize = 65f, pauseHeight = 36f;
|
private static final float dsize = 65f, pauseHeight = 36f;
|
||||||
|
|
||||||
public final PlacementFragment blockfrag = new PlacementFragment();
|
public PlacementFragment blockfrag = new PlacementFragment();
|
||||||
|
public CoreItemsDisplay coreItems = new CoreItemsDisplay();
|
||||||
public boolean shown = true;
|
public boolean shown = true;
|
||||||
|
|
||||||
private ImageButton flip;
|
private ImageButton flip;
|
||||||
private CoreItemsDisplay coreItems = new CoreItemsDisplay();
|
|
||||||
|
|
||||||
private String hudText = "";
|
private String hudText = "";
|
||||||
private boolean showHudText;
|
private boolean showHudText;
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"name": "Nydus",
|
|
||||||
"address": ["be.mindustry.nydus.app:6567", "be.mindustry.nydus.app:6568"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mindustry.pl",
|
|
||||||
"address": ["130.61.190.181:6567", "130.61.190.181:7777", "0.baseduser.eu.org:7777", "0.baseduser.eu.org:42001"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"address": "v7.mindurka.tk:9999"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Chaotic Neutral",
|
|
||||||
"address": ["37.187.73.180:7022"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"address": "n1.yeet.ml:6574"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Phoenix-Network",
|
|
||||||
"address": ["be.phoenix-network.dev"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Darkdustry",
|
|
||||||
"address": ["darkdustry.tk"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "TinyLake",
|
|
||||||
"address": ["cn.mindustry.top:40500"]
|
|
||||||
}
|
|
||||||
]
|
|
@ -226,7 +226,7 @@ public class ApplicationTests{
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void serverListJson(){
|
void serverListJson(){
|
||||||
String[] files = {"servers_v6.json", "servers_v7.json", "servers_be.json"};
|
String[] files = {"servers_v6.json", "servers_v7.json"};
|
||||||
|
|
||||||
|
|
||||||
for(String file : files){
|
for(String file : files){
|
||||||
|
Loading…
Reference in New Issue
Block a user