User Tools

Site Tools


Sidebar

Current version: 0.8.5
iOS: 0.8.1+
Android: 0.8.4 (Play/Market version is obsolete!)

Github Coding has become social! Fork us!


News

Latest commit

https://github.com/gemrb/gemrb/commits/master

# ideally, but does not work on sourceforge (does elsewhere); even http proxies don't help rss>https://github.com/gemrb/gemrb/commits/master.atom 1 author 30m sidebar for frequently accessed stuff

developers:avenger

BG2 opcode differences

  • 0x112 - teleport to random enemy is totally wrong. The original terminates on dead targets. The target is teleported near one of its enemies (based on EA), not to its last attacker.

IWD2

Torment

  • prybars seem to give +10 bonus on bend bars checks - implement this transparently. - this is a fixpack modification!!!
  • incrementkillstat seems to be not variable based? - review this, see killstat.ids
  • changeaiscript(“ar0102_2”,DEFAULT) in areas behaves badly see: movetoarea(“ar0102”) - it is supposed to overwrite the current script, but we set scripts at 0. script level!

Scripting

  • dialoginterrupt:
this just sets a flag, doesn't try to initiate dialog.
the flag disables accepting dialogs and verbal constants.
  • pickpocket (finding an item) pseudocode:
orig = slot = random(inventory_size);
loop:
item = inv[slot];
if (!item) continue;
if (slot == equipped_slot) continue;
if (slot in {FIST, SHIELD, ARMOR, BELT, BOOTS, CLOAK, GAUNTLET, HELMET}) continue;
if (item->flags & (UNMOVABLE|UNSTEALABLE) ) continue;
if (item is special{minsc/alora/edwin items} continue;
if (item->itemtype == BAG) continue;

continue:
if (orig&1) slot++; else slot --;
while(end_reached)
  • Interact

Interact is a 24×24 matrix among joinable npcs. The scriptnames involved are listed in interact.2da. Every actor holds its own interact count with every other actors. The matrix is stored in .gam in the 96 bytes (24 dwords) of unknown area Information says, this is unused.

developers/avenger.txt · Last modified: 2012/11/08 07:52 by avenger