Skip to content

Commit

Permalink
Some fixes. Updates in documentation and images
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-rgon committed May 30, 2023
1 parent b9c2c7f commit 2b39ede
Show file tree
Hide file tree
Showing 29 changed files with 182 additions and 69 deletions.
2 changes: 1 addition & 1 deletion LEEME.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _[Click here to open documentation in english | Pulse aquí para abrir documenta
Aplicación para personalizar y lanzar fácilmente un servidor de Killing Floor 2 a través de una interfaz visual en lugar de editar ficheros batch o de configuración del servidor. Ha sido desarrollado en Java y la interfaz es compatible con los S.O. Windows y Linux.

```
Versión: 2.1.2 final
Versión: 2.1.3 final
S.O. soportados: Microsoft Windows y Linux (Ubuntu/Debian)
Plataformas soportadas: Steam y Epic Games
Desarrollado por: César Rodríguez González
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _[Click here to open documentation in spanish | Pulse aquí para abrir documenta
Application to easily customize and launch a Killing Floor 2 server through a visual interface instead of edditing batch files or server's config files. It has been developed with Java, so the interface is compatible on Windows and Linux OS.

```
Version: 2.1.2 final
Version: 2.1.3 final
Supported OS: Microsoft Windows and Linux (Ubuntu/Debian)
Supported platforms: Steam and Epic Games
Developed by: César Rodríguez González
Expand Down
5 changes: 5 additions & 0 deletions doc/ADVANCED-CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ In this section you can manage profiles from the launcher. Each profile is used
* _Remove selected profile_: It allows to remove the selected profile.
* _Import profiles_: It allows to import profiles from a file to the launcher.
* _Export profiles_: It allows to export profiles from the launcher to a file.
* _Load default values_: It allows to delete all profiles and load default profile.

**NOTE**: No profile name duplication accepted in any operation.

Expand All @@ -22,6 +23,7 @@ In this section you can add, edit or remove game types from the launcher. Each g
2. _Description_: Free text to identify the game type mode.
3. _Difficulties enabled_: If difficulties combo is active or not.
4. _Lengths enabled_: If lengths combo is active or not.
5. _Load default values_: It allows to delete all gametypes and load default gametypes.

![Launcher screenshot](images/screenshot07.png)

Expand All @@ -33,6 +35,7 @@ In this section you can add, edit or remove game types from the launcher. Each g
In this section you can add, edit or remove difficulties from the launcher. Each difficulty is composed by two fields:
1. _Code_: Code to identify the difficulty mode. It's not a free text, it has to be exactly like described in the Killing Floor 2 server documentation.
2. _Description_: Free text to identify the difficulty mode.
3. _Load default values_: It allows to delete all difficulties and load default difficulties.

![Launcher screenshot](images/screenshot08.png)

Expand All @@ -44,6 +47,7 @@ In this section you can add, edit or remove difficulties from the launcher. Each
In this section you can add, edit or remove length modes from the launcher. Each length is composed by two fields:
1. _Code_: Code to identify the length mode. It's not a free text, it has to be exactly like described in the Killing Floor 2 server documentation.
2. _Description_: Free text to identify the length mode.
3. _Load default values_: It allows to delete all lengths and load default lengths.

![Launcher screenshot](images/screenshot09.png)

Expand All @@ -55,6 +59,7 @@ In this section you can add, edit or remove length modes from the launcher. Each
In this section you can add, edit or remove the max.players from the launcher. Each max.players is composed by two fields:
1. _Code_: Code to identify the max.players. It's not a free text, it has to be exactly like described in the Killing Floor 2 server documentation.
2. _Description_: Free text to identify the max.players.
3. _Load default values_: It allows to delete all maxplayers and load default maxplayers.

![Launcher screenshot](images/screenshot10.png)

Expand Down
5 changes: 5 additions & 0 deletions doc/es/CONFIGURACION-AVANZADA.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ En esta sección puedes gestionar perfiles desde el lanzador. Cada perfil es usa
* _Eliminar perfil seleccionado_: Permite eliminar el perfil seleccionado.
* _Import profiles_: Permite importar perfiles desde fichero al lanzador.
* _Exportar perfiles_: Permite exportar perfiles desde el lanzador a un fichero.
* _Valores por defecto_: Permite borrar todos los perfiles y cargar los perfiles por defecto.

**NOTA**: No se permite duplicación de nombre de perfil en ninguna de las operaciones.

Expand All @@ -22,6 +23,7 @@ En esta sección puedes añadir, editar o eliminar tipos de juegos del lanzador.
2. _Descripción_: Texto libre para identificar el tipo de juego.
3. _Dificultades activas_: Indica si el combo de dificultades está activo o no.
4. _Longitudes activas_: Indica si el combo de longitudes está activo o no.
5. _Valores por defecto_: Permite borrar todos los tipos de juego y cargar los tipos de juego por defecto.

![Launcher screenshot](../images/screenshot07.png)

Expand All @@ -33,6 +35,7 @@ En esta sección puedes añadir, editar o eliminar tipos de juegos del lanzador.
En esta sección puedes añadir, editar o eliminar dificultades del lanzador. Cada dificultad está compuesta por dos campos:
1. _Código_: Código para identificar el tipo de dificultad. No es un texto libre, debe ser exactamente como es descrito en la documentación del servidor de Killing Floor 2.
2. _Descripción_: Texto libre para identificar el tipo de dificultad.
3. _Valores por defecto_: Permite borrar todas las dificultades y cargar las dificultades por defecto.

![Launcher screenshot](../images/screenshot08.png)

Expand All @@ -44,6 +47,7 @@ En esta sección puedes añadir, editar o eliminar dificultades del lanzador. Ca
En esta sección puedes añadir, editar o eliminar longitudes del lanzador. Cada longitud está compuesta por dos campos:
1. _Código_: Código para identificar el tipo de longitud. No es un texto libre, debe ser exactamente como es descrito en la documentación del servidor de Killing Floor 2.
2. _Descripción_: Texto libre para identificar el tipo de longitud.
3. _Valores por defecto_: Permite borrar todas las longitudes y cargar las longitudes por defecto.

![Launcher screenshot](../images/screenshot09.png)

Expand All @@ -55,6 +59,7 @@ En esta sección puedes añadir, editar o eliminar longitudes del lanzador. Cada
En esta sección puedes añadir, editar o eliminar el máx.jugadores del lanzador. Cada número máx. jugadores está compuesto por dos campos:
1. _Código_: Código para identificar el máx.jugadores. No es un texto libre, debe ser exactamente como es descrito en la documentación del servidor de Killing Floor 2.
2. _Descripción_: Texto libre para identificar el máx.jugadores.
3. _Valores por defecto_: Permite borrar todos los máx.jugadores y cargar los máx.jugadores por defecto.

![Launcher screenshot](../images/screenshot10.png)

Expand Down
Binary file modified doc/images/screenshot-in-game.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshot10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 22 additions & 3 deletions src/main/java/entities/Description.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package entities;

import jakarta.persistence.*;
import org.apache.commons.lang3.StringUtils;

@Entity
@Table(name = "DESCRIPTIONS")
Expand All @@ -12,13 +13,13 @@ public class Description extends AbstractEntity {
@Column(name="ID", updatable=false, nullable=false)
private Integer id;

@Column(name="ENGLISH_VALUE", length=255, unique=true, nullable=true)
@Column(name="ENGLISH_VALUE", length=255, unique=false, nullable=true)
private String englishValue;

@Column(name="SPANISH_VALUE", length=255, unique=true, nullable=true)
@Column(name="SPANISH_VALUE", length=255, unique=false, nullable=true)
private String spanishValue;

@Column(name="FRENCH_VALUE", length=255, unique=true, nullable=true)
@Column(name="FRENCH_VALUE", length=255, unique=false, nullable=true)
private String frenchValue;

public Description() {
Expand Down Expand Up @@ -65,4 +66,22 @@ public String getFrenchValue() {
public void setFrenchValue(String frenchValue) {
this.frenchValue = frenchValue;
}

public String getValue(String languageCode) {
switch (languageCode) {
case "en": return englishValue;
case "es": return spanishValue;
case "fr": return frenchValue;
default: return StringUtils.EMPTY;
}
}

public void setValue(String value, String languageCode) {
switch (languageCode) {
case "en": englishValue = value;
case "es": spanishValue = value;
case "fr": frenchValue = value;
default: ;
}
}
}
Loading

0 comments on commit 2b39ede

Please sign in to comment.