Skip to content

Commit

Permalink
introduce git action
Browse files Browse the repository at this point in the history
  • Loading branch information
auronen committed Aug 3, 2023
1 parent 3b8f25c commit 44e2ba5
Show file tree
Hide file tree
Showing 27 changed files with 762 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/compile_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "compile"

# Run only manually for now
on:
workflow_dispatch

jobs:
pre-release:
name: "Release"
runs-on: "ubuntu-latest"

steps:
# ..
- name: "Checkout repo"
uses: actions/checkout@v3
- name: "Substituting Gothic 1 Localizations..."
run: |
.scripts/release.sh
- name: Generate release tag
id: generate_release_tag
uses: amitsingh-007/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: ''
tag_template: 'dd.mm.yyyy.i'
- name: "Generate body"
run: |
printf "# Gothic 1 - Localized\n\nGothic 1 scripts in all languages hosted on my instance of [weblate](https://weblate.cokoliv.eu/projects/gothic-1/#languages)\nGenerated: %s\n\n## Installation:\n0. Union is strongly recommended (mandatory for utf8 languages)\n1. Unzip into your Gothic 1 installation directory\n2. Run GothicStarter.exe\n3. Pick your language\n4. Play and report translation mistakes :)\n\n<details>\n<summary>Contents</summary>\n## Fonts \nThe compiler supports escaped strings so you should see some new characters. The new fonts have been extended to cover all of the supported lagnuages and containt a lot of new characters. Please provide feedback about the fonts as well. \n## Save files \nSince the different releases are only different by the content of the string table, the versions are fully compatible. To allow for \"fast\" iteration of log entries, there is a plugin included (only available if you play with Union) that makes the logs persistent (if the translation changes, you do not have to start a new game to see the change).\n## Files \n - `G1_base.mod` - contains the common DAT files and the plugin for persistent logs\n - `G1_fonts_cp125*.mod` - contain new fonts\n - `G1_fonts_chinese.mod` - contains the chinese font + the [zFont](https://github.com/gratt-5r2/zfont) plugin\n - `G1_<lang>.mod`- contains the localized scripts GOTHIC.DAT, MENU.DAT and the output unit file (OU.BIN)\n</details>" $(date "+%d-%m-%Y") > body.md
- name: "Release"
uses: ncipollo/release-action@v1
with:
artifacts: "release/release/*.zip"
bodyFile: "body.md"
tag: ${{ steps.generate_release_tag.outputs.next_release_tag }}
name: Release ${{ steps.generate_release_tag.outputs.next_release_tag }}
Binary file added .release/Data/modvdf/G1_base.mod
Binary file not shown.
Binary file added .release/Data/modvdf/G1_fonts_chinese.mod
Binary file not shown.
Binary file added .release/Data/modvdf/G1_fonts_cp1250.mod
Binary file not shown.
Binary file added .release/Data/modvdf/G1_fonts_cp1251.mod
Binary file not shown.
Binary file added .release/Data/modvdf/G1_fonts_cp1252.mod
Binary file not shown.
Binary file added .release/Data/modvdf/G1_fonts_cp1254.mod
Binary file not shown.
Binary file added .release/System/GothicLocalized.rtf
Binary file not shown.
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_cs.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (cs)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/cs/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1250.mod G1_cs.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_de.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (de)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/de/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1252.mod G1_de.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_en.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (en)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/en/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1252.mod G1_en.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_es.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (es)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/es/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1252.mod G1_es.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_fr.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (fr)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/fr/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1252.mod G1_fr.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_hu.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (hu)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/hu/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1250.mod G1_hu.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_it.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (it)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/it/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1252.mod G1_it.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
43 changes: 43 additions & 0 deletions .release/System/GothicLocalized_pl.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[INFO]
Title=Gothic Localized (pl)
Version=1.08k_mod
Authors=Various authors
WebPage=https://weblate.cokoliv.eu/languages/pl/gothic-1/
Description=!<symlink>GothicGame.rtf
Icon=0

[FILES]
vdf=G1_base.mod G1_fonts_cp1250.mod G1_pl.mod
game=Content\Gothic
fightai=Content\Fight
menu=System\Menu
camera=System\Camera
music=System\Music
soundeffects=System\SFX
particleseffects=System\ParticleFX
visualeffects=System\VisualFX
outputunits=Content\Cutscene\OU

[SETTINGS]
player=PC_HERO
world=World.zen

[OPTIONS]
show_info=0
force_subtitles=0
force_parameters=

[OVERRIDES]
INTERNAL.extendedMenu=1


[ZPARSE_EXTENDER]
LoadScript =
MergeMode = true
CompileDat = false
CompileOU = false
NativeWhile = false
MessagesLevel = 1
StringsIndexingMode = -1
TestStack = 0
EarlyParsing = true
Loading

0 comments on commit 44e2ba5

Please sign in to comment.