Skip to content

Commit

Permalink
Merge pull request #2 from Roberciiik/master
Browse files Browse the repository at this point in the history
setup.tra in UTF-8
  • Loading branch information
MephistoSatanDevil authored Jul 20, 2024
2 parents 8e4de23 + 7b91b1a commit fa47308
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
3 changes: 1 addition & 2 deletions bg1npc/bg1npc.tp2
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ LANGUAGE ~Polski (Tlumaczenie przez Children of Bhaal)~ ~polish~ ~bg1npc/tra/pol
LANGUAGE ~Deutsch (Teiluebersetzung vom Kerzenburgforum, teilweise noch in englisch)~ ~german~ ~bg1npc/tra/german/setup.tra~ // https://www.baldurs-gate.de/index.php
LANGUAGE ~Russian (by Aerie Team & Arcanecoast Team)~ ~russian~ ~bg1npc/tra/english/setup.tra~
LANGUAGE ~Italian (by Coland)~ ~italian~ ~bg1npc/tra/italian/setup.tra~
LANGUAGE ~Simplified Chinese~ ~schinese~ ~bg1npc/tra/english/setup.tra~
~bg1npc/tra/schinese/install.tra~
LANGUAGE ~Simplified Chinese~ ~schinese~ ~bg1npc/tra/english/setup.tra~ ~bg1npc/tra/schinese/setup.tra~

/* BEGIN The BG1 NPC Project: Required Modifications */
BEGIN @1005 DESIGNATED 0
Expand Down
17 changes: 7 additions & 10 deletions bg1npc/lib/bg1npc_always.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ ACTION_IF GAME_IS ~bgee eet~ THEN BEGIN
ACTION_IF GAME_IS ~eet~ THEN BEGIN
INCLUDE ~EET/other/cpmvars/eet_cpmvars.tpa~

/* EET-SoD: PID should not block SoD dialogues. --- This is a hack and only valid because BG1NPC only adds to BG1! */
OUTER_SPRINT ~BGT_VAR~ ~!GlobalGT("BD_PLOT","GLOBAL",0)~

/* EET-SoD: PID should not block SoD dialogues. --- This is a hack and only valid because BG1NPC only adds to BG1! */
OUTER_SPRINT ~BGT_VAR~ ~!GlobalGT("BD_PLOT","GLOBAL",0)~
END


// BG:EE tra conversion
// Code borrowed from Edwin Romance and adjusted: HANDLE_CHARSETS in now included in WeiDU 237
// For complete description check Edwin Romance and the WeiDU forum topic on HANDLE_CHARSETS

// Only setup.tra is stated in LANGUAGE and needs to be reloaded after conversion
ACTION_DEFINE_ARRAY x#reload BEGIN setup END
ACTION_DEFINE_ARRAY x#noconvert BEGIN install END
ACTION_DEFINE_ARRAY x#reload BEGIN END
ACTION_DEFINE_ARRAY x#noconvert BEGIN setup END

LAF HANDLE_CHARSETS
INT_VAR
Expand All @@ -59,10 +56,10 @@ END ELSE BEGIN /* Actions for Tutu or BGT */
APPEND ~GTIMES.IDS~ ~12 TWO_ROUNDS~ UNLESS ~TWO_ROUNDS~

END ELSE BEGIN
/* BGT */
/* BGT */
ACTION_IF GAME_IS ~bgt~ THEN BEGIN
PRINT @1001
INCLUDE ~bg1npc/lib/g3_bgt_cpmvars.tpa~
PRINT @1001
INCLUDE ~bg1npc/lib/g3_bgt_cpmvars.tpa~
END ELSE BEGIN
/* Not a supported game */
FAIL @1002
Expand Down
File renamed without changes.

0 comments on commit fa47308

Please sign in to comment.