Jump to content


Photo

NearInfinity


  • Please log in to reply
1155 replies to this topic

#921 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 26 April 2018 - 06:20 AM

If it is a EFF v1 : parameter is 0x4 after opcode field, and parameter 2 0x8.
If it is a EFf v2 : parameter 1 is 0x1c after signature, and parameter2 0x20.

Sadly, NI doesn't allow me to see raw data of effects, so I can't count 0x4 or any other within NI. I'm sure it will come handy in WeiDU though, so thanks for letting me know!

In fact : opcode, target, power, parameter1 (whatever the name used in NI), parameter2...

Aha, that's cool. Simply saying I should in any case use 4th field for parameter1 and 5th field for parameter2? As in, in case of the attached, I should put 1 in "value" field and 0 in "Unused" field event though it is, well, unused? :)

Attached Images

  • screen.jpg

Edited by Creepin, 26 April 2018 - 06:21 AM.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#922 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 26 April 2018 - 06:27 AM

You can enable Options > Show Hex Offsets. It's a tremendously helpful option.

Attached Images

  • ni_offsets.png


#923 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 26 April 2018 - 06:42 AM

Argent77, that's super cool, thank you! With that option on and Gwendolyne's hint about +4 for param1 and +8 for param2 everything is clear, like pieces of a puzzle falling into place. To fully close the issue, how much should I add to opcode offset to find field for parameter 3? I remember it's used somewhere...


Edited by Creepin, 26 April 2018 - 06:52 AM.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#924 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 26 April 2018 - 07:56 AM

To fully close the issue, how much should I add to opcode offset to find field for parameter 3? I remember it's used somewhere...

 

That's nothing a quick look into the EFF file description can't solve. ;) Parameter 3 is located at offset 0x60 (EFF v2 only).



#925 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 26 April 2018 - 09:04 AM

Parameter 3 is located at offset 0x60 (EFF v2 only).

And it is also honestly marked as such in NI. Shame on me :) I checked embedded EFF (EFF v1), saw none of it, and decided it's a mystery to solve :whistling:


The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#926 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 31 May 2018 - 01:31 AM

Update: NearInfinity v2.1-20180531

Changes:
  • Added support for pseudo-stat "Current HP" to SPLPROT.2DA.
  • Added option to view current WeiDU.log in NI (menu Edit > WeiDU.log).
  • Defined a custom syntax highlighter for WeiDU.log viewer.
  • Edit tab in structured resources: Increased default text length for previewing substructure info.
  • Added option to keep current resource selection after a "Add copy of" action.
  • CRE: Added spell type column to View tab > Items/Spells > Memorized Spells.
  • Updated available resource types for a number of fields in PRO resources.
  • Improved various ARE flag descriptions.
  • Updated SPL flags bit 9 (Break Sanctuary).
  • Marked EFF resource type as supported in IWD2.
  • Fixed visualization of travel distances on worldmap.
  • Various effect opcode updates:
    • EE: Added resource type SPL to opcodes 201, 226, 227, 228, 259.
    • EE: Added resource types VEF/VVC/BAM to opcode 68.
    • EE: Updated resource types for opcodes 153, 154, 155, 156, 157 and 158.
    • EE: Added new param2 option "All, magical only" to opcode 145 (Disable spellcasting).
    • EE: Added new param2 option "Increment instantaneously" to opcodes 33, 34, 35, 36, 37 and 325.
    • IWD2: Fixed param2 IDS list of opcode 177.
  • Various area viewer updates:
    • Added option to include layer controls in map export.
    • Added option to change zoom level by mouse wheel.
    • Fixed a regression that would detect auto-zoom as a fixed "custom" zoom.


#927 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 15 June 2018 - 04:09 AM

Update: NearInfinity v2.1-20180615

This release provides a greatly overhauled BAM Converter and BAM decoder. See more details in the changlog below. Because of the great number of changes, it is possible to encounter a bug or two. Please report any unusual behavior you might find in that regard.

Changes:
  • Greatly overhauled BAM Converter:
    • Added alpha palette support. Enabled for games that support BAM with alpha palette (i.e. Enhanced Edition games).
    • Improved visualization of palette in BAM palette dialog.
    • Added a global palette sorting option.
    • Fixed various color filters to work correctly with alpha-blended BAM frames.
    • Improved GIF import function. It should now correctly handle more advanced structures in animated GIFs. (There is still a chance that some animations can't be imported because of poor native GIF decoding support by Java.)
  • Improved alpha palette support in BAM decoder.
  • Overhauled color reduction functionality: Improves visual quality of converted palette-based BAM, MOS and TIS files.
  • Added a button to ARE > Actor > Animation field for opening creature animation definition files of selected type, if available.
  • Added missing field "First letter of CRE resref" to ARE > Actor structure (only relevant in saved areas).
  • Removed fields from GAM NPC substructures that are not used by the games.
  • Fixed area-related field labels in GAM structure.


#928 jastey

jastey
  • Administrator
  • 3218 posts

Posted 15 June 2018 - 04:31 AM

Thank you for your continuous work on this!



#929 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 07 July 2018 - 09:19 AM

Would it be possible to display the tooltip.2da info in ITM screen?


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#930 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 07 July 2018 - 10:01 AM

Would it be possible to display the tooltip.2da info in ITM screen?
If you got enough screen space, you can do this easily by running two NI's(well actually, the .jar twice), as you use one to view one file while the other is used to view the other.

Edited by The Imp, 07 July 2018 - 10:03 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#931 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 07 July 2018 - 10:39 AM

Would it be possible to display the tooltip.2da info in ITM screen?

It shouldn't be too difficult to implement this. I think the best place to add this info would be the view tab of each respective item ability.



#932 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 07 July 2018 - 10:49 AM

That is exactly were I first looked for it. ;)


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#933 skellytz

skellytz
  • Staff
  • 478 posts

Posted 08 August 2018 - 10:26 AM

Here's something I've noticed. I'm not sure if this is how it's intended to be. (20180615)

 

1. Open game: classic BG2+ToB

2. Edit MWLFG1.BAM

3. Load external palette: MWLF_WO.BMP

 

All colors have alpha set to 0 which results in messed up look. Even with the setting "Use alpha channel: Always."

 

Is this intentional?

 

Then I tried DLTCEP. It won't even load palettes from such BMP files (gives an error). As a workaround I had to:

 

1. Edit MWLFG1.BAM in NearInfinity

2. Load external palette: MWLF_WO.BMP

3. Save messed-up BAM with alpha set to 0.

4. Load messed-up BAM in DLTCEP V7.7

 

Now DLTCEP loads the palette and automatically sets alpha to 255. I can then save the BAM with the auto-corrected palette.



#934 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 08 August 2018 - 11:15 AM

No, that's not intended. I have also noticed a few alpha-related issues with the BAM Converter myself. I'll try to fix them with the next release. In the meantime I would suggest to use the BAM Converter from the previous NI version.



#935 skellytz

skellytz
  • Staff
  • 478 posts

Posted 08 August 2018 - 03:15 PM

Hmm, maybe it's just something I'm doing wrong, but 20180531 seems to have issues with certain palettes, too. For example:

 

1. Open game: classic BG2+ToB

2. Edit MBERG1.BAM

3. Load external palette: MBER_PO.BMP

 

The palette loaded but the colors are messed up on the actual animation.

 

Even the DLTCEP workaround didn't help with this one.

 

Then I tried Miloch's BAM Batcher with unreleased repalette component. Worked like a charm.

 

Anyways, it's good that you're aware of these problems ;)  Thanks!



#936 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 08 August 2018 - 04:14 PM

Did you try this way: Post-processing > Replace colors > Palette > Load MBER_BO.BMP ?


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#937 skellytz

skellytz
  • Staff
  • 478 posts

Posted 08 August 2018 - 04:57 PM

Did you try this way: Post-processing > Replace colors > Palette > Load MBER_BO.BMP ?

Yeah, this works fine with 20180531. Thanks :)

 

(It didn't help with 20180615, though.)



#938 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 12 August 2018 - 03:40 PM

Update: NearInfinity v2.1-20180615

This release provides a greatly overhauled BAM Converter and BAM decoder. See more details in the changlog below. Because of the great number of changes, it is possible to encounter a bug or two. Please report any unusual behavior you might find in that regard.

Changes:

  • Greatly overhauled BAM Converter:
    • Added alpha palette support. Enabled for games that support BAM with alpha palette (i.e. Enhanced Edition games).
    • Improved visualization of palette in BAM palette dialog.
    • Added a global palette sorting option.
    • Fixed various color filters to work correctly with alpha-blended BAM frames.
    • Improved GIF import function. It should now correctly handle more advanced structures in animated GIFs. (There is still a chance that some animations can't be imported because of poor native GIF decoding support by Java.)
  • Improved alpha palette support in BAM decoder.
  • Overhauled color reduction functionality: Improves visual quality of converted palette-based BAM, MOS and TIS files.
  • Added a button to ARE > Actor > Animation field for opening creature animation definition files of selected type, if available.
  • Added missing field "First letter of CRE resref" to ARE > Actor structure (only relevant in saved areas).
  • Removed fields from GAM NPC substructures that are not used by the games.
  • Fixed area-related field labels in GAM structure.

 

Where and when can I find this option?


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#939 Argent77

Argent77
  • Administrator
  • 1398 posts

Posted 13 August 2018 - 03:44 AM


Update: NearInfinity v2.1-20180615

This release provides a greatly overhauled BAM Converter and BAM decoder. See more details in the changlog below. Because of the great number of changes, it is possible to encounter a bug or two. Please report any unusual behavior you might find in that regard.

Changes:

  • Greatly overhauled BAM Converter:
    • Added a global palette sorting option.
    • ...
  • ...
 



Where and when can I find this option?


It's available in the BAM Converter options dialog (see screenshot). It will currently only sort palette when color reduction is applied.

Spoiler

Edited by Argent77, 13 August 2018 - 03:45 AM.


#940 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 14 August 2018 - 12:52 PM

Arfg. My fault: I tried to sort existing bam palettes.

Thanks for the clarification.


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.