Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutability utf8 polish #7

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 13 additions & 25 deletions rolles/rolles.ini
Original file line number Diff line number Diff line change
@@ -1,44 +1,32 @@
# File encoding: preferred UTF8 (no BOM) if unicode characters are present, it can be ANSI for English-only
# File format: ini as default and then HJSON/JSON5/JSONC/JSON (JSON doesn't allow comments) for advanced modders who want to use benefits of those file formats
# File name: it must be the same as tp2 name: MyMod.tp2 => MyMod.ini (.hjson/.json5/.jsonc/.json)
# File location: the same folder where .tp2 file is present
# File content: every key=value pair is optional, key names are case insensitive

# Never copy this file from other mods, always use https://github.com/ALIENQuake/ProjectInfinity/wiki/Adding-metadata-for-mod
# Filename must be the same as tp2 basename, placed in the same folder where
# .tp2 file is located, use UTF8 (without BOM) encoding, everything is optional

# ini section header is required to avoid false detection
[Metadata]

# Full name of the mod, without version number
# Full name of the mod, without the list of supported games, without the version number, without 'Mod'
Name = Rolles Safyer

# Author name or nick, don't use email address
# Author name or nick, don't use an email address
Author = Serdrick

# Short description of the mod, main goals, features etc
Description = This mod adds Rolles, a new smith in Waukeen's Promenade above the entrance to Adventurer Mart, who can upgrade items. He also sells a few scrolls and items. An optional component adds a Bag of Holding in Irenicus Dungeon (ToB, BGT, BGII:EE, EET).

# Web address of mod readme file (filename is case-sensitive!)
Readme = https://spellholdstudios.github.io/readmes/rolles-readme-%LANGUAGE%.txt
https://spellholdstudios.github.io/readmes/rolles-readme-english.txt
# Web address of mod readme file (filename is case-sensitive!), comma-separated list. You can link to txt, md, html, pdf etc.
Readme = http://spellholdstudios.github.io/readmes/rolles-readme-%LANGUAGE%.txt, http://spellholdstudios.github.io/readmes/rolles-readme-english.txt

# Web address of mod dedicated forum or forum thread
# Web address of mod dedicated forum or forum thread
Forum = http://www.shsforums.net/topic/36655-rolles

# Web address of mod personal Homepage, no need to duplicate with mod dedicated forum
# Web address of mod personal Homepage, no need to duplicate with a mod dedicated forum
# Homepage = http://www.shsforums.net/topic/36655-rolles

# if you use Github.com (preferred hosting site), simply use github.com/AccountOrOrgName/RepositoryName
# If you use other hosting sites, please check requirements and put direct download link
# If you use GitHub.com, simply use https://github.com/AccountOrOrgName/RepositoryName (omit /releases)
# read more about Delta Updates https://github.com/ALIENQuake/ProjectInfinity/wiki/Delta-Updates-for-mods-hosted-at-Github
Download = https://github.com/SpellholdStudios/Rolles

# Requirements for other hosting sites:
# - forum attachments won't work because the download links will be changed every time when you update mod package
# - mod package should be downloaded using 'wget' commandline tool: wget.exe --no-check-certificate 'link'
# - it's possible to preform file size check using 'wget' commandline tool: wget.exe --no-check-certificate --spider 'link'
# - links do not expire after 30 or more days without download (speeedyshare, mediafire etc has forced expiration dates)
# - hosting site won't require user interaction or captcha (googledrive, mediafire etc require user interaction)
# - hosting site don't advertise any kind of adware/crapware etc

# Type of LABELs used by the mod, read more here https://www.gibberlings3.net/forums/topic/32516-tutorial-what-is-label
LabelType = GloballyUnique

Expand All @@ -47,8 +35,8 @@ Type = Items

# Dynamic Install Order, use mod ID as tp2 name without file extension and `setup-` prefix

# This mod must be installed *before* the mods listed after the keyword
# This mod must be installed *before* those ModID listed below, comma-separated list:
Before = EET_end

# This mod must be installed *after* the mods listed after the keyword
# This mod must be installed *after* those ModID listed below, comma-separated list:
After = tobex, bg2fixpack, EET
61 changes: 37 additions & 24 deletions rolles/rolles.tp2
Original file line number Diff line number Diff line change
@@ -1,71 +1,84 @@
BACKUP ~rolles/backup~
BACKUP ~weidu_external/backup/rolles~

// AUTHOR [email protected]~
SUPPORT ~http://www.shsforums.net/topic/36655-rolles/~
SUPPORT ~http://www.shsforums.net/topic/36655-rolles~

VERSION ~v5.0.5~

README ~rolles/readme/rolles-readme-%LANGUAGE%.txt~ ~rolles/readme/rolles-readme-english.txt~


ALWAYS
OUTER_SPRINT MOD_FOLDER "rolles"
MKDIR "weidu_external\tra\%MOD_FOLDER%"

ACTION_DEFINE_ARRAY arrayNoConvert BEGIN setup END
ACTION_DEFINE_ARRAY arrayReload BEGIN rolles END

/* Converts tra files to UTF-8 */
ACTION_DEFINE_ARRAY s#_reload BEGIN setup END
ACTION_DEFINE_ARRAY s#_noconvert BEGIN END
LAF HANDLE_CHARSETS
INT_VAR
infer_charset = 1
STR_VAR
tra_path = EVAL ~%MOD_FOLDER%/tra~
noconvert_array = s#_noconvert
reload_array = s#_reload
END
from_utf8 = 1 //the source lang files of all languages are UTF8
infer_charset = 1 //set the correct encoding for classic games based on the detected game and associated encoding
verbose = 1 //display more debugging info
STR_VAR
default_language = english
tra_path = EVAL ~%MOD_FOLDER%\tra~ // path to translation files, do not add slash at the end of it
out_path = EVAL ~weidu_external\lang\%MOD_FOLDER%~ // path to temporary work directory, do not add slash at the end of it
noconvert_array = arrayNoConvert
reload_array = arrayReload
END


END

AUTO_TRA ~rolles/tra/%s~
AUTO_TRA ~rolles\tra\%s~
//AUTO_TRA ~weidu_external\tra\%MOD_FOLDER%\%s~
LANGUAGE ~English~
~english~
~rolles/tra/english/setup.tra~
~rolles/tra/english/rolles.tra~

LANGUAGE ~Russian~
~russian~
~rolles/tra/russian/setup.tra~
~rolles/tra/english/rolles.tra~

LANGUAGE ~English~
~english~
~rolles/tra/english/setup.tra~

LANGUAGE ~French (traduction : La Voix 2 la Sagesse)~
LANGUAGE ~French (traduction: La Voix 2 la Sagesse)~
~french~
~rolles/tra/french/setup.tra~
~rolles/tra/english/rolles.tra~

LANGUAGE ~Italiano (traduzione di ilot)~
~italian~
~rolles/tra/italian/setup.tra~
~rolles/tra/english/rolles.tra~

LANGUAGE ~Polski (tlumaczenie: Aristo)~
~polish~
~rolles/tra/polish/setup.tra~
~rolles/tra/english/rolles.tra~


/* ==================================== *
* Rolles Safyer (ToB) *
* ==================================== */

BEGIN @0000
BEGIN @11000
DESIGNATED 0 LABEL ~rolles_safyer~
REQUIRE_PREDICATE GAME_IS ~tob bgt bg2ee eet~ @0020
REQUIRE_PREDICATE GAME_IS ~tob bgt bg2ee eet~ @90000

// Rolles
// ------
COPY ~rolles/sto/s#rolles.sto~ ~override~

COPY ~rolles/roll/s#rolles.cre~ ~override~
SAY NAME1 @0001
SAY NAME2 @0002
SAY NAME1 @0
SAY NAME2 @0

EXTEND_TOP ~ar0706.bcs~ ~rolles/roll/s#rolles.baf~
EXTEND_TOP ~ar0706.bcs~ ~rolles/roll/AR4000.baf~

COMPILE ~rolles/dlg/rolles.d~
COMPILE EVALUATE_BUFFER ~rolles/dlg/rolles.d~ USING ~rolles.tra~


// Items
Expand Down Expand Up @@ -104,9 +117,9 @@ END
* Bag of Holding in Irenicus Dungeon *
* ==================================== */

BEGIN @0010
BEGIN @12000
DESIGNATED 10 LABEL ~rolles_bag_of_holding_in_irenicus_dungeon~
REQUIRE_PREDICATE GAME_IS ~tob bgt bg2ee eet~ @0020
REQUIRE_PREDICATE GAME_IS ~tob bgt bg2ee eet~ @90000

COPY ~rolles/sto/s#bag02.sto~ ~override~
COPY ~rolles/itm/s#bag02.itm~ ~override~
Expand Down
Loading