Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - plainab

#1
Modder's Workshop / Add info trigger with weidu
May 24, 2009, 08:24:01 PM
Quote from: Armand on May 24, 2009, 01:05:31 PMFinally, I found an alternative solution thanks to yonaveth's tuto. Here :

QuoteCOPY ~dq/areas/porthpentyrch/.~ ~override/.~
COPY ~dq/areas/porthpentyrch/ys1000/.~ ~override/.~
SAY 0x4054 ~A Coast Way marker post. It says 'West to Porthpentyrch; North to Athkatla; East to Trademeet'~

He also refer to offset and I think it will be enough for me. For the time, I content oneself with that. Thanks to have take on your time to explain me. :)
What you have will work IF the following conditions are met:
1) The ARE file is NEW. For this discussion new means:
 a) never before seen area & map
 b) pre-existing area & map that have been significantly modified and given a new custom name.
2) You've already inserted all other info trigger information with an appropriate GUI editor, if the trigger is new.
3) You've confirmed the direct offset number.

If you failed 2 & 3 you'll get errors, but they'll be fixable by making sure that everything is correctly set within the appropriate GUI editor.

If you failed 1 (you fail it by using a pre-existing area file with pre-existing name), you'll need to use something akin to what I posted earlier. Other mods prior to yours may change the same file and your direct offset will no longer point to the correct location.
#2
Modder's Workshop / Add info trigger with weidu
May 19, 2009, 12:57:14 AM
Your question is not clear enough for me...
So I'll ask you a couple questions to help me help you get pointed in the right direction....
Are you wanting a map note that shows up on the map screen? If so, check out the information in the post above.
Are you wanting an info trigger? Something like an Inn sign or a sign post that can be clicked and text displayed telling what it is? If so read on.

To get an info trigger like the sign on an Inn, you'll be wanting to insert your information into the regions section of the area file.  This is the same section that includes proximity triggers such as floor traps and floor triggers it also include travel points.

I've got some code where I've modified ToTSC's behavior of ending Chapter 4. Instead of happening as soon as Davaeorn is dead, the chapter advances when the party crosses one of two floor triggers (just like vanilla BG).

I'll share relevant portions of the code and you can decide how to adjust it to fit your needs...

The main work is done inside the in-lined file which is shown below and must come first in the tp2, because if it's in-lined it has to be defined prior to it being called. You could use an external tph file or direct tp2 code, it doesn't really matter. Also, since I designed it for both ToTSC and EasyTutu I needed to create something that could be used for both versions. Hence the variable for the file.
<<<<<<<< inlined/1803.tph
COPY_EXISTING_REGEXP GLOB ~%file_name%~ ~override~
PATCH_IF (%SOURCE_SIZE% > 0xd4) BEGIN
//read area script reference
  READ_ASCII 0x94 script_res
//update vertex indices for info points
  READ_LONG 0x5c info_off
  READ_SHORT 0x5a info_num
  FOR (i= 0; i < "%info_num%"; i += 1) BEGIN
   READ_SHORT ("%info_off%" + (%i% * 0xc4) + 0x2c) info_vertex_first_idx
   PATCH_IF ("%info_vertex_first_idx%" >= 0) BEGIN
    WRITE_SHORT ("%info_off%" + (%i% * 0xc4) + 0x2c) ("%info_vertex_first_idx%" + 10)
   END
  END
//update vertex indices for containers
  READ_LONG 0x70 container_off
  READ_SHORT 0x74 container_num
  FOR (i = 0; i< "%container_num%"; i += 1) BEGIN
   READ_LONG ("%container_off%" + (%i% * 0xc0) + 0x50) container_vertex_first_idx
   PATCH_IF ("%container_vertex_first_idx%" >= 0) BEGIN
    WRITE_LONG ("%container_off%" + (%i% * 0xc0) + 0x50) ("%container_vertex_first_idx%" + 10)
   END
  END
//update vertex indices for doors
  READ_LONG 0xa8 door_off
  READ_SHORT 0xa4 door_num
  FOR (i = 0; i < "%door_num%"; i += 1) BEGIN
   READ_LONG ("%door_off%" + (%i% * 0xc8) + 0x2c) door_vertex_open_first_idx
   PATCH_IF ("%door_vertex_open_first_idx%" >= 0) BEGIN
    WRITE_LONG ("%door_off%" + (%i% * 0xc8) + 0x2c) ("%door_vertex_open_first_idx%" + 10)
   END
   READ_LONG ("%door_off%" + (%i% * 0xc8) + 0x34) door_vertex_closed_first_idx
   PATCH_IF ("%door_vertex_closed_first_idx%" >= 0) BEGIN
    WRITE_LONG ("%door_off%" + (%i% * 0xc8) + 0x34) ("%door_vertex_closed_first_idx%" + 10)
   END
   READ_LONG ("%door_off%" + (%i% * 0xc8) + 0x48) door_vertex_impede_closed_first_idx
   PATCH_IF ("%door_vertex_impede_closed_first_idx%" >= 0) BEGIN
    WRITE_LONG ("%door_off%" + (%i% * 0xc8) + 0x48) ("%door_vertex_impede_closed_first_idx%" + 10)
   END
   READ_LONG ("%door_off%" + (%i% * 0xc8) + 0x50) door_vertex_impede_open_first_idx
   PATCH_IF ("%door_vertex_impede_open_first_idx%" >= 0) BEGIN
    WRITE_LONG ("%door_off%" + (%i% * 0xc8) + 0x50) ("%door_vertex_impede_open_first_idx%" + 10)
   END
  END
//insert 2 triggers worth of space
  READ_LONG 0x5c info_off
  READ_SHORT 0x5a info_num
  WRITE_SHORT 0x5a (%info_num% + 2)
  SET new_bytes = (0xc4 * 2)
  SET cmp_loc = %info_off%
  SET check_num = %info_num%
  INSERT_BYTES (%cmp_loc%) (%new_bytes%)
//check other offsets and update as needed
  PATCH_IF (%check_num% > 0) BEGIN
   READ_LONG 0x54 actor_off
   PATCH_IF (%actor_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x54 (%actor_off% + %new_bytes%) //actor_off
   END
   READ_LONG 0x60 spawn_off
   PATCH_IF (%spawn_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x60 (%spawn_off% + %new_bytes%) //spawn_off
   END
   READ_LONG 0x68 entrance_off
   PATCH_IF (%entrance_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x68 (%entrance_off% + %new_bytes%) //entrance_off
   END
   READ_LONG 0x70 container_off
   PATCH_IF (%container_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x70 (%container_off% + %new_bytes%) //container_off
   END
   READ_LONG 0x78 item_off
   PATCH_IF (%item_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x78 (%item_off% + %new_bytes%) //item_off
   END
//   READ_LONG 0x5c info_off
//   PATCH_IF (%info_off% > %cmp_loc%) BEGIN
//    WRITE_LONG 0x5c (%info_off% + %new_bytes%) //vertex_off
//   END
   READ_LONG 0x7c vertex_off
   PATCH_IF (%vertex_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x7c (%vertex_off% + %new_bytes%) //vertex_off
   END
   READ_LONG 0x84 ambient_off
   PATCH_IF (%ambient_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x84 (%ambient_off% + %new_bytes%) //ambient_off
   END
   READ_LONG 0x88 variable_off
   PATCH_IF (%variable_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x88 (%variable_off% + %new_bytes%) //variable_off
   END
   READ_LONG 0xa8 door_off
   PATCH_IF (%door_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xa8 (%door_off% + %new_bytes%) //door_off
   END
   READ_LONG 0xa0 explored_off
   PATCH_IF (%explored_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xa0 (%explored_off% + %new_bytes%) //explored_off
   END
   READ_LONG 0xb0 anim_off
   PATCH_IF (%anim_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xb0 (%anim_off% + %new_bytes%) //anim_off
   END
   READ_LONG 0xb8 tiled_off
   PATCH_IF (%tiled_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xb8 (%tiled_off% + %new_bytes%) //tiled_off
   END
   READ_LONG 0xbc song_off
   PATCH_IF (%song_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xbc (%song_off% + %new_bytes%) //song_off
   END
   READ_LONG 0xc0 rest_off
   PATCH_IF (%rest_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xc0 (%rest_off% + %new_bytes%) //rest_off
   END
   READ_LONG 0xc4 automap_off
   PATCH_IF (%automap_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xc4 (%automap_off% + %new_bytes%) //automap_off
   END
   READ_LONG 0xcc pro_traps_off
   PATCH_IF (%pro_traps_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xcc (%pro_traps_off% + %new_bytes%) //automap_off
   END
  END
  ELSE
  PATCH_IF (%check_num% = 0) BEGIN
   READ_LONG 0x54 actor_off
   PATCH_IF (%actor_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x54 (%actor_off% + %new_bytes%) //actor_off
   END
   READ_LONG 0x60 spawn_off
   PATCH_IF (%spawn_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x60 (%spawn_off% + %new_bytes%) //spawn_off
   END
   READ_LONG 0x68 entrance_off
   PATCH_IF (%entrance_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x68 (%entrance_off% + %new_bytes%) //entrance_off
   END
   READ_LONG 0x70 container_off
   PATCH_IF (%container_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x70 (%container_off% + %new_bytes%) //container_off
   END
   READ_LONG 0x78 item_off
   PATCH_IF (%item_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x78 (%item_off% + %new_bytes%) //item_off
   END
//   READ_LONG 0x5c info_off
//   PATCH_IF (%info_off% >= %cmp_loc%) BEGIN
//    WRITE_LONG 0x5c (%info_off% + %new_bytes%) //vertex_off
//   END
   READ_LONG 0x7c vertex_off
   PATCH_IF (%vertex_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x7c (%vertex_off% + %new_bytes%) //vertex_off
   END
   READ_LONG 0x84 ambient_off
   PATCH_IF (%ambient_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x84 (%ambient_off% + %new_bytes%) //ambient_off
   END
   READ_LONG 0x88 variable_off
   PATCH_IF (%variable_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x88 (%variable_off% + %new_bytes%) //variable_off
   END
   READ_LONG 0xa8 door_off
   PATCH_IF (%door_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xa8 (%door_off% + %new_bytes%) //door_off
   END
   READ_LONG 0xa0 explored_off
   PATCH_IF (%explored_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xa0 (%explored_off% + %new_bytes%) //explored_off
   END
   READ_LONG 0xb0 anim_off
   PATCH_IF (%anim_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xb0 (%anim_off% + %new_bytes%) //anim_off
   END
   READ_LONG 0xb8 tiled_off
   PATCH_IF (%tiled_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xb8 (%tiled_off% + %new_bytes%) //tiled_off
   END
   READ_LONG 0xbc song_off
   PATCH_IF (%song_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xbc (%song_off% + %new_bytes%) //song_off
   END
   READ_LONG 0xc0 rest_off
   PATCH_IF (%rest_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xc0 (%rest_off% + %new_bytes%) //rest_off
   END
   READ_LONG 0xc4 automap_off
   PATCH_IF (%automap_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xc4 (%automap_off% + %new_bytes%) //automap_off
   END
   READ_LONG 0xcc pro_traps_off
   PATCH_IF (%pro_traps_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xcc (%pro_traps_off% + %new_bytes%) //automap_off
   END
  END
//insert space for vertices for 2 triggers
  READ_LONG 0x7c vertex_off
  READ_SHORT 0x80 vertex_num
  WRITE_SHORT 0x80 (%vertex_num% + 10)
  SET new_bytes = (0x4 * 10)
  SET check_num = %vertex_num%
  SET cmp_loc = %vertex_off%
  INSERT_BYTES (%cmp_loc%) (%new_bytes%)
//check other offsets and update as needed
  PATCH_IF (%check_num% > 0) BEGIN
   READ_LONG 0x54 actor_off
   PATCH_IF (%actor_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x54 (%actor_off% + %new_bytes%) //actor_off
   END
   READ_LONG 0x60 spawn_off
   PATCH_IF (%spawn_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x60 (%spawn_off% + %new_bytes%) //spawn_off
   END
   READ_LONG 0x68 entrance_off
   PATCH_IF (%entrance_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x68 (%entrance_off% + %new_bytes%) //entrance_off
   END
   READ_LONG 0x70 container_off
   PATCH_IF (%container_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x70 (%container_off% + %new_bytes%) //container_off
   END
   READ_LONG 0x78 item_off
   PATCH_IF (%item_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x78 (%item_off% + %new_bytes%) //item_off
   END
   READ_LONG 0x5c info_off
   PATCH_IF (%info_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x5c (%info_off% + %new_bytes%) //vertex_off
   END
//   READ_LONG 0x7c vertex_off
//   PATCH_IF (%vertex_off% > %cmp_loc%) BEGIN
//    WRITE_LONG 0x7c (%vertex_off% + %new_bytes%) //vertex_off
//   END
   READ_LONG 0x84 ambient_off
   PATCH_IF (%ambient_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x84 (%ambient_off% + %new_bytes%) //ambient_off
   END
   READ_LONG 0x88 variable_off
   PATCH_IF (%variable_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0x88 (%variable_off% + %new_bytes%) //variable_off
   END
   READ_LONG 0xa8 door_off
   PATCH_IF (%door_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xa8 (%door_off% + %new_bytes%) //door_off
   END
   READ_LONG 0xa0 explored_off
   PATCH_IF (%explored_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xa0 (%explored_off% + %new_bytes%) //explored_off
   END
   READ_LONG 0xb0 anim_off
   PATCH_IF (%anim_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xb0 (%anim_off% + %new_bytes%) //anim_off
   END
   READ_LONG 0xb8 tiled_off
   PATCH_IF (%tiled_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xb8 (%tiled_off% + %new_bytes%) //tiled_off
   END
   READ_LONG 0xbc song_off
   PATCH_IF (%song_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xbc (%song_off% + %new_bytes%) //song_off
   END
   READ_LONG 0xc0 rest_off
   PATCH_IF (%rest_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xc0 (%rest_off% + %new_bytes%) //rest_off
   END
   READ_LONG 0xc4 automap_off
   PATCH_IF (%automap_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xc4 (%automap_off% + %new_bytes%) //automap_off
   END
   READ_LONG 0xcc pro_traps_off
   PATCH_IF (%pro_traps_off% > %cmp_loc%) BEGIN
    WRITE_LONG 0xcc (%pro_traps_off% + %new_bytes%) //automap_off
   END
  END
  ELSE
  PATCH_IF (%check_num% = 0) BEGIN
   READ_LONG 0x54 actor_off
   PATCH_IF (%actor_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x54 (%actor_off% + %new_bytes%) //actor_off
   END
   READ_LONG 0x60 spawn_off
   PATCH_IF (%spawn_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x60 (%spawn_off% + %new_bytes%) //spawn_off
   END
   READ_LONG 0x68 entrance_off
   PATCH_IF (%entrance_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x68 (%entrance_off% + %new_bytes%) //entrance_off
   END
   READ_LONG 0x70 container_off
   PATCH_IF (%container_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x70 (%container_off% + %new_bytes%) //container_off
   END
   READ_LONG 0x78 item_off
   PATCH_IF (%item_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x78 (%item_off% + %new_bytes%) //item_off
   END
   READ_LONG 0x5c info_off
   PATCH_IF (%info_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x5c (%info_off% + %new_bytes%) //vertex_off
   END
//   READ_LONG 0x7c vertex_off
//   PATCH_IF (%vertex_off% >= %cmp_loc%) BEGIN
//    WRITE_LONG 0x7c (%vertex_off% + %new_bytes%) //vertex_off
//   END
   READ_LONG 0x84 ambient_off
   PATCH_IF (%ambient_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x84 (%ambient_off% + %new_bytes%) //ambient_off
   END
   READ_LONG 0x88 variable_off
   PATCH_IF (%variable_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0x88 (%variable_off% + %new_bytes%) //variable_off
   END
   READ_LONG 0xa8 door_off
   PATCH_IF (%door_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xa8 (%door_off% + %new_bytes%) //door_off
   END
   READ_LONG 0xa0 explored_off
   PATCH_IF (%explored_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xa0 (%explored_off% + %new_bytes%) //explored_off
   END
   READ_LONG 0xb0 anim_off
   PATCH_IF (%anim_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xb0 (%anim_off% + %new_bytes%) //anim_off
   END
   READ_LONG 0xb8 tiled_off
   PATCH_IF (%tiled_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xb8 (%tiled_off% + %new_bytes%) //tiled_off
   END
   READ_LONG 0xbc song_off
   PATCH_IF (%song_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xbc (%song_off% + %new_bytes%) //song_off
   END
   READ_LONG 0xc0 rest_off
   PATCH_IF (%rest_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xc0 (%rest_off% + %new_bytes%) //rest_off
   END
   READ_LONG 0xc4 automap_off
   PATCH_IF (%automap_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xc4 (%automap_off% + %new_bytes%) //automap_off
   END
   READ_LONG 0xcc pro_traps_off
   PATCH_IF (%pro_traps_off% >= %cmp_loc%) BEGIN
    WRITE_LONG 0xcc (%pro_traps_off% + %new_bytes%) //automap_off
   END
  END
// Write info for Chapter trigger 1
  READ_LONG 0x5c info_off
  WRITE_ASCII (%info_off% + 0) ~Chapter trigger 1~ (32)
  WRITE_SHORT (%info_off% + 0x20) 0
  WRITE_SHORT (%info_off% + 0x22) 380
  WRITE_SHORT (%info_off% + 0x24) 1062
  WRITE_SHORT (%info_off% + 0x26) 541
  WRITE_SHORT (%info_off% + 0x28) 1277
  WRITE_SHORT (%info_off% + 0x2a) 6 //num of vertices
  WRITE_LONG (%info_off% + 0x2c) 0 //index of vertices
  WRITE_LONG (%info_off% + 0x30) 0
  WRITE_LONG (%info_off% + 0x34) 0
  WRITE_ASCII (%info_off% + 0x38) ~~ (8)
  WRITE_ASCII (%info_off% + 0x40) ~~ (32)
  WRITE_LONG (%info_off% + 0x60) 2
  WRITE_LONG (%info_off% + 0x64) 0
  WRITE_SHORT (%info_off% + 0x68) 100
  WRITE_SHORT (%info_off% + 0x6a) 100
  WRITE_SHORT (%info_off% + 0x6c) 1
  WRITE_SHORT (%info_off% + 0x63) 0
  WRITE_SHORT (%info_off% + 0x70) 404
  WRITE_SHORT (%info_off% + 0x72) 1300
  WRITE_BYTE (%info_off% + 0x74) 0
  WRITE_BYTE (%info_off% + 0x75) 0
  WRITE_BYTE (%info_off% + 0x76) 0
  WRITE_BYTE (%info_off% + 0x77) 0
  WRITE_BYTE (%info_off% + 0x78) 0
  WRITE_BYTE (%info_off% + 0x79) 0
  WRITE_BYTE (%info_off% + 0x7a) 0
  WRITE_BYTE (%info_off% + 0x7b) 0
  WRITE_ASCII (%info_off% + 0x7c) ~endch4~ (8)
  WRITE_SHORT (%info_off% + 0x84) 0
  WRITE_SHORT (%info_off% + 0x86) 0
  WRITE_SHORT (%info_off% + 0x88) 0
  WRITE_SHORT (%info_off% + 0x8a) 0
  WRITE_ASCII (%info_off% + 0xbc) ~~ (8)
  FOR (y=0x8c; y<0xbc; y+=1) BEGIN
   WRITE_BYTE (%info_off% + %y%) 0
  END
// Write info for Chapter trigger 2
  WRITE_ASCII (%info_off% + 0xc4 + 0) ~Chapter trigger 2~ (32)
  WRITE_SHORT (%info_off% + 0xc4 + 0x20) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x22) 1523
  WRITE_SHORT (%info_off% + 0xc4 + 0x24) 272
  WRITE_SHORT (%info_off% + 0xc4 + 0x26) 1629
  WRITE_SHORT (%info_off% + 0xc4 + 0x28) 356
  WRITE_SHORT (%info_off% + 0xc4 + 0x2a) 4 //num of vertices
  WRITE_LONG (%info_off% + 0xc4 + 0x2c) 6 //index of vertices
  WRITE_LONG (%info_off% + 0xc4 + 0x30) 0
  WRITE_LONG (%info_off% + 0xc4 + 0x34) 0
  WRITE_ASCII (%info_off% + 0xc4 + 0x38) ~~ (8)
  WRITE_ASCII (%info_off% + 0xc4 + 0x40) ~~ (32)
  WRITE_LONG (%info_off% + 0xc4 + 0x60) 2
  WRITE_LONG (%info_off% + 0xc4 + 0x64) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x68) 100
  WRITE_SHORT (%info_off% + 0xc4 + 0x6a) 100
  WRITE_SHORT (%info_off% + 0xc4 + 0x6c) 1
  WRITE_SHORT (%info_off% + 0xc4 + 0x63) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x70) 1620
  WRITE_SHORT (%info_off% + 0xc4 + 0x72) 340
  WRITE_BYTE (%info_off% + 0xc4 + 0x74) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x75) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x76) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x77) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x78) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x79) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x7a) 0
  WRITE_BYTE (%info_off% + 0xc4 + 0x7b) 0
  WRITE_ASCII (%info_off% + 0xc4 + 0x7c) ~endch4~ (8)
  WRITE_SHORT (%info_off% + 0xc4 + 0x84) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x86) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x88) 0
  WRITE_SHORT (%info_off% + 0xc4 + 0x8a) 0
  WRITE_ASCII (%info_off% + 0xc4 + 0xbc) ~~ (8)
  FOR (y=0x8c; y<0xbc; y+=1) BEGIN
   WRITE_BYTE (%info_off% + 0xc4 + %y%) 0
  END
// Chapter trigger 1 -- verticies
  READ_LONG 0x7c vertex_off
  WRITE_SHORT (%vertex_off% + 0) 380
  WRITE_SHORT (%vertex_off% + 2) 1076
  WRITE_SHORT (%vertex_off% + 4) 510
  WRITE_SHORT (%vertex_off% + 6) 1160
  WRITE_SHORT (%vertex_off% + 8) 439
  WRITE_SHORT (%vertex_off% + 10) 1263
  WRITE_SHORT (%vertex_off% + 12) 468
  WRITE_SHORT (%vertex_off% + 14) 1277
  WRITE_SHORT (%vertex_off% + 16) 541
  WRITE_SHORT (%vertex_off% + 18) 1148
  WRITE_SHORT (%vertex_off% + 20) 393
  WRITE_SHORT (%vertex_off% + 22) 1062
// Chapter trigger 2 -- verticies
  WRITE_SHORT (%vertex_off% + 24) 1523
  WRITE_SHORT (%vertex_off% + 26) 292
  WRITE_SHORT (%vertex_off% + 28) 1607
  WRITE_SHORT (%vertex_off% + 30) 356
  WRITE_SHORT (%vertex_off% + 32) 1629
  WRITE_SHORT (%vertex_off% + 34) 334
  WRITE_SHORT (%vertex_off% + 36) 1550
  WRITE_SHORT (%vertex_off% + 38) 272
END
BUT_ONLY_IF_IT_CHANGES
>>>>>>>>

The other parts of my code that I did not post shouldn't have any bearing on what you want to do. If you are only inserting one info trigger, be sure to adjust the byte value where new bytes are added as well as the update value for other offsets... Also, if the number of verticies (i.e. X & Y coordinate values) are different be sure to adjust the offset update values and the new bytes value as well.

Be sure to have the IESDP open while you make adjustments.  Here is the link to the ARE file information ARE Info @ IESDP

Don't hesitate to ask questions if you need further assistance.
#3
The Gathering Hall / BG Fixpack
December 29, 2008, 12:17:52 AM
In a delayed celebration of BG's 10 year b-day and for the holiday season, a playable version of what fixes, tweaks, etc which have been compiled and put through some initial testing has been made public via my website. (Sorry for the delay in announcing here, it's been announced for a week or two at G3 and PocketPlane.)

There is no definite readme provided with the mod, but there should be enough information on the website to get you started.

Any thoughts, concerns, problems, or what have you can be posted here or if you happen to have BG Fixpack workroom access at G3 you can post there as well.

Please note that there is a GTU component, but there is no GTU content. If you blindly install this component, then a later component which depends on the presence of the GTU component will be offered and if that is installed, you will get game errors and who knows what else.  So please don't install anything GTU related.  It's mentioned in the website documentation, if you should forget.

My website: http://sasha-altherin.webs.com/index.htm
#4
Lost Crossroads / Area of Effect
September 22, 2008, 10:01:47 PM
I don't know if it would be possible or even work, but you might be able to get a spell that casts the fireball and casts immunity to fire on party members within a certain range for a short duration.
#5
Modder's Workshop / Gem Bag + Scroll Case in BG1
September 22, 2008, 09:47:02 PM
There has been a tweak pack for BG released on G3. Basically, it's a modified BG2 Tweaks with components that wouldn't work in any way removed. A few new components have been added.  I do know that the 'unlimited' stacks components are included. (If you can call 9999 unlimited.) Perhaps there are some other things in there that will help with inventory management...
#6
QuoteHm, I'd rule out Widescreen as a culprit, because it doesn't alter the 'character creation' GUI at all (it only alters the main game screen). I've heard it's compatible with alternate GUIs, but I've only played it with Vanilla GUI, TutuGUI, and BGT GUI (equal to Vanilla). In vanilla it was flawless, in Tutu it required a small tweak.
I'd rule out widescreen as a culprit, too. I don't use that mod. All my monitors are CRTs.

I should explain a bit better, the games can be UNMODDED except for what I've been working on. I'm pretty sure it's happened with easytutu and bg2, but I could be mistaken. I've got too many mods I'm working on/need to maintain, on too many platforms to remember which does what -- I'll try to keep track of what I've done the next time it comes up. I can say that bg1 vanilla, does do it for sure. I do spend more time on the bg fixpack and that is when it happens the most. The mod code, any mod code, isn't the issue, it can happen if I've uninstalled everything, including what I was working on, and go into the game for some reason. But it only does it, after heavy usage of DLTCEP and Infinity Explorer (IE) to check out my files before and after weidu install.

That's why I think it might be some sort of memory issue. Perhaps one of the programs is leaving junk behind and clogging up my memory. I've known of other games that did that. Maybe it's IE, I have to close the program each time I re-install code with weidu because it locks the dialog.tlk file. I use DLTCEP to view my files before and after. I use IE to check ids/2da files during code writing. DLTCEP has a neat feature where I can just reload the game data and get all changes shown, but IE has to be closed and restarted each time I want to install code and go into the game.

Weidu is definitely not the problem as I can install many mods and go right into the game without any issue. DLTCEP alone has never caused it. I have not used IE alone, because I don't like how it shows many of the files. I do like it because I can link from one file type to another. Pretty much IE gives me the file name I want to look up in DLTCEP when I need to make new adjustments.

So we can most likely boil it down to two things:
1) Opening and closing of game engine too many times during a single computer session.
2) Opening and closing of Infinity Explorer too many times during a single computer session.

Maybe, when I've got time, I'll try some experiments and see if I can get any new data to share on this issue...
#7
Not so much biffing related (so you can move this if needed), but something technical (and you guys seem to know the technical) that I've had some issues with and perhaps something that needs to be watched out for in the creation of tools like IEMF/IEMT. I've got two pcs both with bg1, bg2 and easytutu. Here are their stats:

PC 1
Win 98se, 800mhz Intel Celeron processor, 512mb, 20gb hd & 2gb hd, CDR-drive -- using mod programs (DLTCEP, Infinity Explorer .75 & .85, current weidu and ConText)
FYI - E-series causes bad stutter on this machine.

PC 2
Win XP, 2.4ghz Pentium 4, 512mb ram (I know this is right), 40gb hd & 8gb hd, CDR-drive & High speed CD-Rom.  -- using mod programs (DLTCEP, NI, Infinity Explorer .75 & .85, current weidu and ConText)
FYI - E-series is wonderful on this machine.

Both computers have the same issue after a heavy session of modding. It's not consistent when it starts (i.e. amount of time that passes), but it is consistent about where it starts when it does happen. NOTE: This tends to happen if I've made changes via weidu, go test in game, make changes again, go test again, etc... Like I said, there is no set pattern in the usage of the programs, just that I used all the programs at my disposal and have been in the game testing at least one time prior.

Here is what happens: I start the game, mouse click once to skip each movie/splash screen until I get to first menu, choose new game and start to make choices. It is here that the issue presents itself, every screen as soon as opened at the first click of the mouse goes back to the main character creation screen without letting me choose what I'm supposed to. I can choose gender, but choosing a picture other than the default that shows up is impossible. I exit at this point because it is annoying. Should I have chosen to load an existing game, the inventory and other screens would dump me back into the game screen without me getting to adjust or look at anything. Restarting after this has happened results in the same thing. I have to reboot the machine for it to correct itself.

I'm not sure what is happening. My thoughts are: 1) that somehow my clicks through the introductory movies/splash screens are affecting it (but it doesn't do that when I just want to play the game without having done any modding at all). 2) that the excessive use of third-party modding tools has done something to cause this.

BTW, it doesn't matter which game bg1, bg2 or easytutu so I'm leaning more towards the third-party mod programs having something to do with it, perhaps leaving something behind that the game doesn't like. So since it happens on both machines and the operating systems are different, I can't say for sure that it could just be a quirk of my computer.  Also, since I use all the programs, I can't pin it down to a specific one.  I've never had it happen, if I just stick to one editor/viewer + weidu. It's when I use all of them together that this arises... I will say that I have seen it more on the older/slower pc, but it has happened on both. So maybe there is some memory issue involved and it's more noticeable on the older machine because the hard drive is smaller and so the windows swap file is smaller.  But I don't know.

Again, move this if necessary, because it is not specifically about biffing. I just hope someone with a bit of technical know how, could at least tell me what could be going on and to determine if this is something that needs to be addressed in the creation of any new modding tools such as IEMT/IEMF.
#8
QuoteIn general, it'd be a good idea to have one unique personal prefix and use a sub-prefix of your own. For example, I have tb# (the other two will be freed by the end of this week), and I use a sub-prefix for different works to avoid conflicts (say, tb#lot for Large Scale Battle, tb#ud for Underground Duel, etc.). In your case, you could use abbf for ab's BG Fixpack. It leaves you less room for meaningfully naming files (especially for giving out meaningful names - it'd be a good idea to keep a filename mapping), but it'll be enough of a namespace even for the largest TC ever thought of: using four alphabetic characters (excluding even numbers and symbols) gives you 450k possible names, and my semi-BiG game has 60k individual resources (moreover, split over different extensions).

So your saying that it'd be okay for me to use

ab_bgf_ on my unique global variables (these can be up to 32 but usually end around 18)
ab_bgf_ on my needed dv's where none were before (these can be up to 32 but usually end around 18)
abf_ for any needed files to work around the game engine limitations (these are usually limited to 8 sometimes 7)
.ab_bgf for a file extension to any files needed to be placed for other mods to recognize a given component. (it's an extension not a prefix does it matter?)

Well, if it's okay to do all that, then we'll just go that route instead...  We're in the middle of going through what has been done so it won't be too hard to make any changes (I used ab for some and bgf for a few others)
#9
Modder's Workshop / More State Checks...
September 01, 2008, 04:52:01 PM
I don't know if you were ever given the solution to resolve the error you were receiving regarding the use of CD_STATE_NOTVALID.
I will go ahead and answer here so that others who may look here for a solution to your problem as a help to their problem will understand what is going on.

1) If you wish to check for a certain state, you need to make sure that that state is present in the state.ids file.
2) if not, you need to add it somewhere within your tp2 prior to the script or dialog file where you wish to use the associated state.
Example from this topic:
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~
         UNLESS ~CD_STATE_NOTVALID~

3) however, weidu will not recognize the new entry until it's memory has been flushed and base game files reread.
Example to do this:
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~
         UNLESS ~CD_STATE_NOTVALID~
CLEAR_IDS_MAP


The addition of CLEAR_IDS_MAP tells weidu to clear it's memory of script dependent files and reread them. Once it does this, you will be able to use the new addition in any script or dialog file as you deem necessary. You only need to have the CLEAR_IDS_MAP one time before you compile any files using the additions. Therefore, you can append multiple states, spells, triggers, actions, shouts, etc. and have a single CLEAR_IDS_MAP on the line above your first file taking advantage of the new additions.

I hope this is helpful and clear to you and anyone else who has a similar question.

#10
I have a personal prefix of AB. I can use it if you prefer. However, please consider the following:

I am working on the BG Fixpack (for vanilla and totsc versions of Baldur's Gate).
I was wondering about asking if we could use BGF (Baldur's Gate Fixpack), but BG is taken.
Therefore, I would like to ask if we could use FBG (Fixpack Baldur's Gate) the actual assigned prefix would be FB, but there is no actual harm in adding the G (on my end) since the first two would preserve the prefix.
The usage would be for
1) any files needed to be added to work around game engine limitations
2) naming of unique global variables
3) naming of unique death variables needed where none were present before.
4) file extensions for any required third party component checks.


Thank you.
ab
#11
The Gathering Hall / UB bug still present in v16
September 01, 2008, 05:25:40 AM
QuoteTo cut a long story, common sense says that a fixpack -- regardless of its definitions -- shouldn't cause PROBLEMS. We say that a fix should never cause problems -- a fix should SOLVE problems, instead.
This is true. However, may I bring up something that has been noticed within the vanilla and expansion games of BG? I am sure we are all familiar with Oublek in Nashkell and the bounty rewards he can give, specifically the bounty for the emeralds gained from Prism. Now in this case there is a problem that needs solved. A problem that can cause more problems. To be exact there is an action which works but is broken in that it does not do exactly as intended. TakePartyItem(S:resref) takes all items of the specified item from the party's inventory not just one. This is a problem in that Oublek needs to take two, but will take one or more of the given item. This is what has led to the Oublek Bounty Reward Exploit Fix of Baldurdash. However, that fix only works for ToTSC and even that in a limited fashion.
Where does actually solving it cause more problems? Due to the lack of specific actions to take only two items and that the triggers are lacking in the vanilla game to find only two of an item, to truly correct it the items would need to be replaced with a known unique item (i.e. a mod added item). This in turn could cause issues with a mod added later that for some reason has another bounty hunter come and steal them from the party. You can see that a fix that works and solves the problem in a way that works around and with the limits of the game engine based on an unmodded game, can indeed cause problems with an added mod.
Should we forgo the fix because of the possibility of a future conflict? No, I don't think we should. I do think that since such a situation could cause a foreseeable problem, that it be well described in what is wrong, why it is believed to be wrong, and the steps taken to correct such action.

To make it shorter because my explanations can be mud:
1) It's a fix to place a variable to keep the state from repeating.
2) It's still a problem that since it uses a fairly common gem item that the player might have more than two and lose the extras because of the hardcoded limitations of the game engine or an exploit in that the player could leave one behind, get the reward and sell the other for more gold.
3) #2 can be fixed but it requires using at least one unique item (a copy of the original but with a new resref) so that there will be no question, within the confines of the game, how many of the given item there are.
4) #3 then creates the potential for a 'bug' with another mod (I would say incompatibility here) that for some reason has someone interact with the party based on them having the game original items.

This sorta ties into that one example you, Baronius, gave earlier about giving the two swords to a creature. However, unlike that one where it was merely a subjective reason based on D&D or what have you. This issue is entirely based on the game engine and our current understanding of how it works. So this may very well be an example of an issue where changing the items a creature has can not correct a problem but work around a game engine limitation. This would then as I understand it be totally doable as a fix to solve a situation that can not be solved short of porting the game to a newer engine ala BGT/TUTU. Any mods out there that may already do something with these existing items, should be communicated with and determine if they have a better solution to the issue. If not, then it would be their choice to modify to become compatible or they can change the files back so that the remainder of the fixes could be used in games containing their mod.

As an aside, I started out with the bad habit of making the code, making sure it would install with no errors, but never did much real testing with it. Some of the partners want to get all the code together and then test (sort of like the BG2Fixpack I suppose) but I'm glad that's not happening. I've got someone who has not just volunteered but is actually installing each bit of code and testing it in game. Boy has he found problems, the theories to fix may be sound but sometimes as in the above situation game mechanics don't allow it. I'm also finding that it is much better to keep each specific issue as it's own component. 1) It's easier to locate within a tp2 file 2) It's easier to see exactly what files you adjust. 3) If you're there doing one issue and you're testing it properly, you can usually find if there are other problems besides the "reported" one. At this point in time, when the BG1Fixpack does come out, be prepared for individual components that will 1) work on the unmodded game without too much deviation from the expected 2) have been at least tested with as many existing mods as possible 3) any known conflicts would be listed along with the steps being taken to correct.  I don't foresee making too many changes that aren't specifically a fix of broken code or the addition of variables to make sure certain things don't take place.
Isn't it a issue that when you were going to be struck by a lightening bolt from that mad wizard Ramazith you ran all the way up the stairs only to find Ramazith there attacking you? Maybe not so much, but after you kill him and go back downstairs, he's standing right there where he was when you dodged his attack. Now that just ruins the immersion and the belief of the game. It's one thing if a person shows up a little early, but if the guy is dead that's just ridiculous.

I would be more than willing to discuss issues with the bg1 fixpack in a more public place other than the 'private by invitation only' workroom at G3. When we started back in 2006/2007, Cam just gave us access to the 'old' workroom from the previous fixpack attempt that more or less fell onto Unfinished Business to include any non-baldurdash fixes as they saw fit. We've just been there making our slow, silent and steady progress. Seems though that there are a few people who are interested, there are new modders/players who want to help, Cam usually gives them access after a one of us 'moderators' requests. Most share problems they run across with the unmodded game, a few actually help with thoughts on fixing certain issues, and a couple actually test things out (some of it I can't, don't have access to ToTSC). I just wander how many more people would be interested in seeing a fixpack for BG1. A fixpack that does what Baldurdash and Dudleyville do together in one location plus maybe a few more things (I wouldn't say hundreds more, unless you count all the little errors DLTCEP throws at you because the LastTalkedToBy didn't have the '()' at the end. Didn't break the game, doesn't break the game to change, and can't break any future mods by changing, but if left unchanged makes DLTCEP spout a bunch of unnecessary errors.

Earlier you said something along the lines that you knew how to build a better program than weidu to create and distribute mods, but that no one has asked you. This was the first that I've ever heard that you have such knowledge (not saying you don't I've just not read or heard it anywhere until now). If you could make a better program than weidu to create mods that wouldn't overwrite the entire file for just a simple change like increasing/decreasing weight to match the description, why haven't you?  If there were something better available, I'm sure many would use it, especially if it didn't require a good grasp of programming to understand. I'm self taught when it comes to weidu (self taught as in, ask questions and look at other code). I think it's pretty poor of a program's developer to say 'the best way to learn how to use it is to look at how others have used it'. True, seeing the work of others can be enlightening. But if you can't understand what is being described in the help documents that come with the program, how are you going to understand what others do with it? If I hadn't even had the slightest understanding of computer programming (self taught basic back in the late 80's when I was in junior high), I would never have attempted doing any kind of mods. This is because weidu assumes a certain level of programming knowledge within it's documentation a level that can be hard to obtain for someone just starting out with nothing but the basic know how to turn on the computer and start their favorite RPG.

Okay, I'm done.
ab
#12
What kind of time frame are you talking about before you take away a mod developers rights to a certain prefix? A couple months, a year or two? Some mods can take years to work on before it ever becomes public. This is specially true if they want to release a mod that is as bug free and compatible with as many other mods as possible. By forcing a time frame to release a mod, you will be potentially causing more bugs and problems to be introduced. This is something that you wouldn't like, no one would like it in fact.

If you were to proceed with this idea, you will need to make some things clearer. You will also need to allow for the events of real life getting in the way of making a mod. One person might make a small mod relatively quickly, but a group may take years to do a large scale mod.

Here is a suggestion which may work within your ideas.

1) All EXISTING prefixes remain assigned and cannot be revoked. No matter whether there has been a mod produced or not.
2) All NEW prefixes can be given a two year reservation lease.
3) Mod developer must return any time before or within one month after their two year reservation lease has expired to give a status update, mod release announcement, or some other proof that they are still working on the mod.
4) If public release of mod has been announced their leased prefix becomes permanent.
5) If their mod is in any other status, they get two more years where steps 3 and 4 will apply.
6) Should the mod developer fail to report after one month of either the two year renewal points, the prefix will be given a pending status for one year.
7) After that one year, the prefix will be released back into the pool of available prefixes.
8) During pending status, the original mod developer can ask to retain the prefix registration. However they must provide proof of the mod they are working on. i.e. zip package of current mod files; links to current forum posts where they have asked, received help, and tried it out on their work; any other source of proof so deemed reliable by the maintainers of the prefix list.
9) Should the mod developer have retrieved their prefix from within the one year pending status, they will follow the same procedures as above except that their leases will be limited to one year and a pending status of six months.
10) One month prior to any renewal the maintainers will send an e-mail to the address on file reminding the mod developer of their upcoming prefix renewal date.

Basically under the above suggestion:
Anytime modder reports a release of their mod the prefix becomes permanent.
As long as modder reports progress they will retain their prefix.
If modder fails to report within a timely period but reports, the will retain their prefix but for shorter time periods.
If modder fails to report at all they will eventually loose their rights to the prefix.

Shortest time to loss of prefix
(2 years + fail to report) + (1 year pending + failure to report) = 3 years

Shortest time to permanent prefix status
Mod is announced < 2years from prefix reservation


But in the long run, I'm siding with Kulyok. We reserved the prefixes so that there would be no overwriting of custom files. Who knows, someone may have made a personal mod and wanted to reserve the prefix so that public mods wouldn't overwrite their custom files....
#13
The Gathering Hall / Subjective, questionable fixes
August 28, 2008, 11:19:21 PM
Let's apply your definitions to a real situation. I get lost within abstract ideas and long explanations. Simple is best for me. I'm also not that familiar with BG2 Fixpack components. What I want to know is where you would classify what we've decided to with the following? Are our choices in line more with one side of the debate or the other?

BG1 Fixpack (please note the ONE)

The nobleman in the Friendly Arm Inn who has the Golden Pantaloons.

There is a dialog option that ends with the player receiving 2 gold as a tip should the Gabber's charisma be high (like 18). There is no gold assigned to the creature file and the action command is GivePartyGold(2).  It's been changed to GiveGoldForce(2).

During situational testing we found that, if the player were to steal the pants before talking they could still get the dialog option to receive the pants and the 2 gold. Upon further investigation, if the player were to pick certain dialog choices after having stolen the pants, they would be taken from him. As far as we can tell, it was intended to be that way.  

For sake of clarity, if the player takes the pants, the nobleman can't give the pants. So we gave him a check to see if he had the pants before offering the dialog that gives the pants. Now we receive an interesting scenario where, as long as the player has never talked to him, steals the pants and then talks to him, they have a 50% chance rather than 33% chance of having the pants taken away.

Since this obviously changes known behavior, but doesn't break any known dependencies that we know of at this time we've set the addition of HasItem checks into the realm of player's choice. Nice, but not really a fix. Actual appearance in the mod has not been set.  
Options are:
1) a whole new component in a group of "Optional But Cool"
or
2) a subcomponent alongside the single fix of the GivePartyGold command.
#14
The Gathering Hall / UB bug still present in v16
August 28, 2008, 10:06:47 PM
I need to calm down.  10...9...8...7...6...5...4...3...2...1...0

What you said about me believing that my viewpoint is better than yours is the very same way you come across in your post(s). The one I responded to and again the one following that. I never said my viewpoint was better, I tried to show that both viewpoints are valid. It depends on what approach you take. Some, like me, need order and would change a script reference to match an area file if it was within our power to do so. We are fortunate that I also like compatibility. I personally would avoid doing something orderly if I knew it would be a downfall to compatibility. I may even move my one character to a different place or leave him where he starts out. But that would just be running away from the problem and that's never good.

The main thing I wanted to get across and failed at doing so was that bickering about how things should or should not be done is wrong. We ALL need to grow up and work together.(I include me in that statement, hence the capitals) Let's not get stuck on technical issues and philosophical debates about whose approach is better and why it is better. When we get defensive we'll never agree on anything. Rome was not built in a day. It took them stone by stone with plans and cooperation, but some problems had to be overcome as they arose. It's a fact of life that we can't code for everything. We code for what we can, we code for what we know. We adjust what we need to when unforeseen problems arise.

I felt like I had to defend the designers of the BG2 Fixpack, even though I'm not part of that group. It sounded like you were ripping them a new arse simply because you didn't agree with their methods. I'm sorry, I must have misunderstood your intentions. Just as I feel you misunderstood mine. It didn't help that for me I was up late on a long day making that response. I should have waited till I was rested and had a clearer mind. I've regretted it all day. I was just waiting for the e-mail that said you'd responded, I knew you'd not like it. I was right. You did not like it.

The overall issue can't be solved overnight. It's going to take teamwork and cooperation to do that. I tried. I shared code that would help. But I was told that it wouldn't help. That there is a bigger problem to be solved. Fine, a bigger problem, let's get it resolved. Get everyone together whose had a public mod release, and make these decisions. Get the results posted at every forum so we can all follow them. Until such consensus takes place, the community will remain fractured over this, you will continue to share with everyone why we are fractured, and some of us who try to help will become discouraged by it all.

I'm a limited breed. I'm left out by many mods, because I don't have ToTSC. That's their choice. I can choose to look at it as a problem that needs to be solved by them modding for the vanilla game. But ya know, it's better if I try to save the money to buy the expansion myself. Then again, maybe I don't want it because ToTSC breaks/changes just about as much stuff as they add/correct.  One of the big ones is the end of Chapter 4, the chapter change happens right when Daveron is dead in ToTSC and it has caused issues for some people. Vanilla uses floor triggers near the exits to increase the chapter. It's cleaner, nicer and no reported issues that I've seen. I've fixed it, reverted it I should say. The patching was hard, but it's been done and done in such a way that even with added mods it still works (especially those that modify that area and it's scripts). I know because the issue is present even in a non-ToTSC EasyTuTu installation, that's where it's been fixed and has had some limited testing (that's why you probably haven't heard about it yet - we won't publish until it's ready and has proven itself). From there the code was easy to modify for standard ToTSC. If that doesn't show you that I'm not quite in the same camp as the BG2 Fixpack and UB people and whomever else, I don't know what will.

You have your opinions and I can't change that. I've shared mine. I hope this post has cleared things up a bit. If it hasn't, I'm sorry. Communication has never been my strong point, at least, I'm trying to communicate and solve some of these issues that are part of the larger whole.  The redwood is mighty, but a single axe can cut it down with single persistent cuts.  Maybe if we work together on these little issues and get some consensus for the future, we will find the bigger problems become more manageable until they are all gone....

Like my mother always said, "Pick your room up one thing at a time. Don't look at the big mess, just do one thing at a time and before you know it, it'll be clean." Let's take that one step, get together and solve this one issue. We can then tackle the next one. I hope that those of us who are serious about modding can come to an agreeable solution if we just try.

Keep it cool...
ab

#15
The Gathering Hall / UB bug still present in v16
August 28, 2008, 08:02:37 AM
QuoteNice solution, plainab. thumb.gif It's "intelligent" code, because it detects the script's name.
He likes the code and that makes me happy.  :D   I'm not being sarcastic here.

As to the rest of the post, I take it you have a problem with G3's BG2 Fixpack?  (Now I might be a bit sarcastic)

I can understand the concern about changes that make changes to other things. I and a group of others are working on what will become the G3 BG1 Fixpack. There are already things that I plan to offer as a "fix" because they make sense, but they may affect other things within the game. True if an existing mod expects it to be a certain way and I "fixed" it to be different then we have something that's incompatible or workable but not ideal.  Was this not true back in the old days, when baldurdash and dudleyville came out with their respective fixpacks?

At that time, if something conflicted, a list of files would have to be made to show what could or couldn't be installed to have limited compatibility with each other. Until one or the other relented and changed their files to play nice with the other. The third party mod usually lost out and had to update their files to go with one or the other of the available fixpacks.  Now that something new has come along that attempts to do what both the previous fixpacks tried, we are in the same position. We must learn to accept the G3 BG2 Fixpack for what it is, an attempt to fix bugs (granted some perceived bugs) within the game. Sure this would be easier if every file adjusted or every type of fix had its own component to be decided upon at install time. They have chosen to install the majority in a single component for the convenience of the installer. That leaves it to the rest of us to accept and work with or to deny and use
FORBID_COMPONENT ~setup-bg2fixpack.tp2~ ~0~ ~G3 BG2 Fixpack is installed. The fixpack and this mod are not compatible. Skipping installation.~ //repeat for any other component numbers as necessary. in our mods.

If you want to have a proactive solution, to a reactive problem that is fine with me.  Tell me what problems I will face when making the BG1 fixpack and I'll do my best to fix them before they get there.  Sorry. That's not possible. I wouldn't fix a thing and there is no way to know what the problems will be until they arise. If we don't try we'd be left with a smattering of mods that try to do this and that here and there with no consistency rhyme or reason when taken as a whole.  Be glad some people have stepped up to the plate to bring these fixes together in one install for each of the respected games.  Yes, some things will break that is a given even in the most proactive situation.  Yet, they could have said, "Here are the fixes! We're done. You're screwed. Change your mods to fit ours." They didn't and we won't.  Some issues have been resolved by adjusting the fixpack others by updating some older code in the third party mods. It's a two way street to solve issues when proactive becomes reactive.

Now I don't normally like to post this long (unless it's code or something that I'm posting for review) so I'm going to wrap it up and say that you are entitled to your opinion. You're entitled to share that opinion as well. What I don't think you should do is drudge up past issues regarding something that is making widespread acceptance within the community for its efforts to squash the many bugs left behind by BioWare. I've already known that you've had issues with G3 BG2 Fixpack and don't need to hear it again (link to one of the other times you've had something to say along these lines would have been sufficient).

What I find appalling is that a simple posted solution to an issue between ToD, UB, SCSII, my NPC mod, and maybe others none of which was the G3 BG2 Fixpack brought on an entire bash (I use the word loosely) of the BG2 Fixpack.  It's one thing to mention them as an example, once or twice. But to mention only them for all the issues you have, you seriously need to get some new material.

I guess, I was wrong. I am posting a bit longer....

You (or someone on your behalf) said that as a new modder someone might have looked at the area script reference and said, "Odd naming convention, but what the hey, I'll use it." First off, if someone is able to look at the file and see what the area script is, they've probably looked at several other areas and saw that the file names matched. But since WeiDu might not have been up to the task yet, they didn't want to overwrite an area file that just needed a script block, the existing one was used.  WeiDu comes along and we update. It's the nature of the programming industry of any industry really.  You work with what you can and make it work. Then as things get better, you incorporate it into your existing processes until the older methods can be completely phased out.  This I fear is one of those times, we all need to get on board and work with these new processes to bring older things up to date and new things in line.

I came onto the IE modding scene in 2006, you've had this chip on your shoulder about the G3 BG2 Fixpack ever since then. It's not helping the community, when relatively new modders/players come along with questions and suggestions, to rehash an old issue that will probably always be ongoing rather than to simply answer the question.

I'll boil your post down for myself.
"The code is good. It solves the problem, but it doesn't solve the problem before it starts. Because the problem didn't know it was a problem until the problem become a problem. But my problem is G3 BG2 Fixpack." And that has nothing to do with this problem.

Let me ask you this, would it have been a problem if Bioware had created another expansion with additional quests and included an area file called AR0004.are that had a script reference of AR0004.bcs but no actual script? According to you no, because someone would have made a mod for the game without the expansion and had no clue of the problem in the first place. So the solution then for everyone else is the use AR0021.bcs for the AR0004.are file. No that's stupid, you ask the mod(s) made for the non-expansion to adjust theirs accordingly. They would because it makes sense. Your files are no more important than anyone else's. They are important to you, but not to everyone else. We just want a good game that we can play. If you choose not to be compatible with something, that is your choice. Players will just have to decide which route they want to take. We know you don't like the fixpack and certain components of several mods, just put it in your readmes that it's not compatible, forbid the components in your tp2 and go on. Quit bringing it up. It only brings others down.

Once again, thank you for the compliment on the code.  It didn't take that long to come up with. But nobody could have foreseen the problem until it came up (except for maybe the first modder to use the ar0004.bcs instead of changing it to ar0021.bcs).
#16
The Gathering Hall / UB bug still present in v16
August 27, 2008, 11:23:08 PM
I recently came across this issue as I was working on my npc mod.  I have a character that moves to the Crooked Crane at one point in the mod. I automatically assumed that ar0021.are would have ar0021.bcs as it's script and coded accordingly. Now I want to have compatibility with UB because there is another quest within UB that my npc wishes to talk about (provided that component has been installed).  However, in my testing (prior to installing UB) my character never appeared in the Crooked Crane. It took a while, but I found out that the area script is actually assigned as ar0004.bcs. So what was I to do?  Copy UB's method because I wanted compatibility.  But I found out about ToD and possibly some others that use the ar0004.bcs instead.  So I've devised a solution.  Yes, I have a simple update that UB can use and still achieve the results they like.  True, mods installed after that ASSUME ar004.bcs to be the area script wouldn't work right.  Yet, this is one of those situations that we will never agree on so we should code for both possibilities.

For UB to achieve what they want they can use this exact code (it contains all the tp2 commands to do their component)
////////////////////////////////
////////////////////////////////
// Restored Crooked Crane Inn //
////////////////////////////////
////////////////////////////////

BEGIN @28

COPY ~ub/ubnull.itm~ ~override/ubcrane.xxx~ //null file to identify this component

COPY_EXISTING ~ar0021.are~ ~override/ar0021.are~
READ_ASCII   ~0x94~       ~area_script~

ACTION_IF (FILE_EXISTS_IN_GAME ~%area_script%.bcs~) THEN BEGIN
COPY_EXISTING ~%area_script%.bcs~ ~override/ar0021.bcs~
END

COPY_EXISTING ~ar0021.are~ ~override/ar0021.are~
WRITE_ASCII   ~0x94~       ~ar0021~

COMPILE ~ub/crane/u!ccrane.d~
USING   ~ub/tra/%s/ubdialog.tra~

EXTEND_BOTTOM ~ar0022.bcs~ ~ub/crane/u!0022.baf~  /* Crooked Crane, Level Two */
EXTEND_TOP    ~AR0021.bcs~ ~ub/crane/AR0021.BAF~
[/size]

Everybody else could use this code before or after UB and their stuff will be included no matter what script file is used for this area.
COPY_EXISTING ~ar0021.are~ ~override/ar0021.are~
READ_ASCII   ~0x94~       ~area_script~

EXTEND_BOTTOM ~myareascript.baf~ ~override/%area_script%.bcs~


True this requires ALL mods that use this area's script to update.  Isn't that better than everybody saying 'You update.' 'No, you update.' type of arguments?  Let's all update and put this behind us.  Then we can post in every forums modders resource threads that when working on ar0021 it is best to read the file for the script reference rather than assuming it is one way or another.

A visual example in text of what happens if above codes are use:

Mod A reads ref and happens to write to ar0004
Mod B comes along (with above code) reads ref copies ar0004 to ar0021 and adds to ar0021
Mod C comes along read ref and happens to write to ar0021

Mod A reads and writes to ar0004
Mod C reads and writes to ar0004
Mod B reads copies ar0004 to ar0021 and adds to ar0021

Mod B reads finds no ar0004 and writes to ar0021
Mod C reads and writes to ar0021
Mod A reads and writes to ar0021

BTW I will link this to the UB forum so that they can use it in the next version.  I truly believe they want to be compatible, but not while breaking whatever morals/ethics/feelings they may have on this subject.  As you can see, the above code will allow them to re-assign the area script to a matching reference.

No flamewar intended. It's meant to be a solution that we can all agree on.

My piece has been said and until such time as this gets worked out. I will continue to extend my script to the bottom of both ar0021 and ar0004 because I will never know for sure which one will be active on another persons install. I'll probably also read the ref just in case someone decides to be strange and assigns a customized area script with a different name...
#17
Quote from: The Bigg on July 14, 2007, 12:41:11 PM
WeiDU >=200:
Quote
{BACKUP}/UNINSTALL_NEW.X contains the list of modified files.
When copying override/sw1h01.itm: add "override/sw1h01.itm" to UNINSTALL_NEW.X, copy old override/sw1h01.itm (if existing) to {BACKUP}/override.sw1h01.itm.
When copying temp/sw1h01.itm: add "temp/sw1h01.itm" to UNINSTALL_NEW.X, copy old temp/sw1h01.itm (if existing) to {BACKUP}/temp.sw1h01.itm.

When restoring:
read override/sw1h01.itm in UNINSTALL_NEW.X, delete override/sw1h01.itm, move {BACKUP}/override.sw1h01.itm to override.
read temp/sw1h01.itm in UNINSTALL_NEW.X, delete temp/sw1h01.itm and move {BACKUP}/temp.sw1h01.itm to temp.

If you can see a way to edit the WeiDU >=200 algorithm so that the WeiDU <200 restoring algorithm still works, this'd be really helpful.
I'm not a programmer, but maybe you can follow my idea and see if it is implementable.
Somehow read the file and save it's relative location to the weidu exe file.  So that when the mod in question is uninstalled it will repair modified files in their original relative location.

Example modifying a save file:
COPY ~save/000000-Game_Save/baldur.gam~ ~save/000000-Game_Save~
DOWHATEVERPATCHES
BUT_ONLY_IF_IT_CHANGES

Weidu will save {BACKUP}/{PATH}baldur.gam
When mod is uninstalled weidu would replace {BACKUP}/{PATH}baldur.gam where in this example save/000000-Game_Save/ = {PATH}

I know that the path information is already gathered by weidu as SOURCE_DIRECTORY so why can't that information be applied to weidu's backup and restoration methods

By default the path variable would be empty.  During uninstall Weidu 200 would look for the saved path info and if it's not found would uninstall with the 199 and less method because {backup}/{path}file.ext with an empty path variable is the same as {backup}/file.ext.

I think I'm clear as mud, but once again I'm not really a programmer (at least not by trade or education).
#18
The Gathering Hall / Mods_by_AB
December 06, 2006, 01:06:22 AM
This same post and the file downloads are also available at my TeamBG thread
Note:  All these mods are weidu

I've put a few little mods together and am making them available for others to use.  Some of these you may feel have already been included in various other tweak packs.  However, I propose to you that these offer a bit more flexability than the others that are out there.

ABCCapModV1.zip -- This mod allows the user to increase the capacity of the various bags and containers used in the players inventory in the game Baldur's Gate 2.  The user is asked for an integer with 0 being unlimited and whatever upward number they wish to use.  At this time the highest allowed number is unknown.
Works in:  Baldur's Gate 2

ABItemExcelModV1.zip -- This mod allows the user to remove wear restrictions from certain magical items.  However, unlike most similiar mods, the user has the oportunity remove restrictions from only a few items if they choose.  This mod does not have an uninstall feature.  However, the user has oportunity to reinstall and add restrictions to any items which may be unrestricted.
Works in:  Baldur's Gate 1
                Baldur's Gate 2
                Icewind Dale 1
                Icewind Dale 2 -- not tested should work

ABM4DAGG.zip -- This mod gives a melee option to the standard throwing dagger and the poisoned throwing dagger if used in BG2.  Will not affect the magical "boomerang" daggers of BG2 even if the Optional But Cool componet affecting those items from G3's BG2 fixpack has been installed.  If The Projectile Retrieval Mod by igi & myself has been installed, this will not affect the retrieval aspect in any way.  The melee ability given will not create an item to be retrieved however, it will have all other effects from the ranged abilty.  So a poisoned dagger will do poison damage whether it is thrown or used in melee.
Works in:  Baldur's Gate 1
                Baldur's Gate 2
                Icewind Dale 1
                Icewind Dale 2 -- not tested should work
                Planescape Torment  -- NOT APPLICABLE

ABStakV1.zip -- This mod gives the user the oportunity to increase the stack amounts of various stackables.  The user can change all, can change certain item types (i.e. arrows, gems, etc..) can change individual items if they want (long process).  Not only that but the user is given the option to remove weights from and only from the items they choose to adjust.
Works in:  Baldur's Gate 1  -- max stack 65535
                Baldur's Gate 2  -- max stack 65535
                Icewind Dale 1   -- max stack 32767
                Planescape Torment  -- Unsure at this time.


Please feel free to send any comments or bugs my way.  Thank you.
You can post here or at the TeamBG thread, however you desire.
#19
Modder's Workshop / Dual wielding Thrown weapons?????
November 23, 2006, 09:26:48 AM
Is it possible to dual wield thrown weapons in BG2.  I'm thinking specifically of the throwing axe that has both dual and melee capabilities.  I get errors in game when I try, but I wanted to make sure that there wasn't a way to allow it.
I'd really like to have a character that can throw axes or knives with both hands.  I'm afraid it might be hard coded, but I don't know for sure.  Any insights would be helpful...

Thanks
#20
If you're still keeping things up to date on this list, I'd like to register a file name & project prefix.

My choice:   AB

thank you.