Skip to content

Commit 42804bc

Browse files
Merge branch 'fix-qol-sdk' into 'master'
[DOC][SDK] v4.1.6 See merge request codingame/game-engine!307
2 parents 34301bb + 51c9759 commit 42804bc

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

playground/graphics/graphics-4-spritesheets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ String[] seaweedSprites = graphicEntityModule.createSpriteSheetSplitter()
2727
.setName("seaweed")
2828
.split();
2929

30-
//Creating an animation from the splitted spritesheet
30+
//Creating an animation from the split spritesheet
3131
graphicEntityModule.createSpriteAnimation()
3232
.setImages(seaweedSprites)
3333
.setX(50)
@@ -103,4 +103,4 @@ Your file should look like this.
103103
```
104104
:::
105105

106-
Place this file in the assets folder, you can now use each image with their name as if they were splitted in different files.
106+
Place this file in the assets folder, you can now use each image with their name as if they were split in different files.

playground/misc/misc-3-release-notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## 4.1.6
6+
7+
### 🐞 Bug fix
8+
9+
- `.gif` images are now supported in welcome messages.
10+
- `CommandLinePlayerAgent` now reports the IOException message when execution fails.
11+
- Fixed typo in the docs.
12+
13+
514
## 4.1.5
615

716
### 🐞 Bug fix

runner/src/main/java/com/codingame/gameengine/runner/CommandLinePlayerAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void initialize(Properties conf) {
5858
try {
5959
this.process = Runtime.getRuntime().exec(commandArray);
6060
} catch (IOException e) {
61-
throw new RuntimeException("Failed to launch " + String.join(" ", commandArray));
61+
throw new RuntimeException("Failed to launch " + String.join(" ", commandArray), e);
6262
}
6363
processStdin = process.getOutputStream();
6464
processStdout = process.getInputStream();

runner/src/main/java/com/codingame/gameengine/runner/ConfigHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class ConfigHelper {
3131
private static final Pattern STATEMENT_FILE_PATTERN = Pattern.compile("statement_(?<language>.*?)\\.html?");
3232
private static final Pattern WELCOME_FILE_PATTERN = Pattern.compile("welcome_(?<language>.*?)\\.html?");
33-
private static final Pattern WELCOME_IMG_PATTERN = Pattern.compile(".*\\.(png|jpe?g)");
33+
private static final Pattern WELCOME_IMG_PATTERN = Pattern.compile(".*\\.(png|jpe?g|gif)");
3434
private static final Pattern BOSS_FILE_PATTERN = Pattern.compile("Boss\\.(?<extension>.*)");
3535
private static final Pattern LEVEL_DIR_PATTERN = Pattern.compile("level(?<level>\\d+)");
3636
private static final Pattern TEST_FILE_PATTERN = Pattern.compile("test(?<num>\\d+)\\.(?:json|yaml)");

0 commit comments

Comments
 (0)