Post reply

The message has the following error or errors that must be corrected before continuing:
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Other options
Shortcuts: ALT+S post or ALT+P preview

Topic summary

Posted by Cuv
 - June 09, 2007, 07:42:45 PM
Thanks again DevSin :)

I may poke around a bit more... and might even try adding or changing some things around.  This is a third install of the ToB game... the stripped-down version that I use for testing out things.  If it crashes or destroys it, no biggie.. will just re-install the TCCore.

Cuv

Will certainly keep you all informed if I can achieve any worthwhile changes or find out anything new about the engine.
Posted by devSin
 - June 09, 2007, 04:45:07 PM
It's part of the actual program code; the source file itself is not available. What you found is more likely the location of strings used for assertions than the location where container handling is done.

You can change some simple values in the compiled executable, but you won't be able to do anything worthwhile (and adding anything is out of the question).
Posted by Cuv
 - June 09, 2007, 02:25:35 PM
Another question for the programming type people (as I am not one of those):

Where might I locate the actual program coding for CGameContainer.cpp?   Is it actually coded into the BGMain.exe or as a file elsewhere?

I found the hardcoding Offset in the BGMain.exe for the containers using a hex editor (but didnt change anything), just as you described... and now I am wondering if there is a way to patch in what I want :)  What I really want to do is to patch the coding for the map size restrictions and adding new animation slots (found those offsets too at roughly 0075:****)

D:\dev\baldur\CGameContainer.cpp

   BAG  CHEST   DRAWER  PILE    TABLE   SHELF   ALTAR   NONVISIBLE  SPELLBOOK   BODY    BARREL  CRATE   FALSE

OFFSET  0070:F6C0   BGMain.exe

Cuv

Posted by Cuv
 - June 07, 2007, 03:55:38 AM
Ah, I was afraid of that.  Thanks for the info DevSin :)

I will keep thinking on the problem and see what else I can come up with... I might need a secret container myself at some point.  

cheers,

cuv
Posted by devSin
 - June 06, 2007, 05:50:28 PM
Container types are hardcoded; there's not much difference beyond the search sound and icon, but piles are handled differently.

You'll never get a pile that respects any region polygons (a pile is simply a point on the ground where contents of the container may be placed). The engine creates fake piles for lots of stuff (most of which you'll never see).

You should be able to change the highlight frame of your container icon to mimic the normal highlighting effect (instead of the cyan border that normal item icons have, you could just use a cyan overlay).
Posted by Cuv
 - June 06, 2007, 05:34:21 PM
From where exactly are those container types referenced in the .ARE?  It must be an IDS, but I can't seem to find it.  Anyone know the file name?  I want to find out more about Pile, and why whatever shape or size container polygon I draw for it remains invisible.  Could be a solution in there somewhere.

Cuv
Posted by devSin
 - June 05, 2007, 08:20:49 PM
But then you have to update the vertex index of every other structure in the ARE. No thanks. ;)

I think setting the bounding rect coords to 0 or -1 should work fine (you shouldn't even have to touch the vertices), but why bother when you can just change the type to pile (unless the container has items and you don't want to delete them, but then I'm not sure what you'd be trying to do)?
Posted by igi
 - June 05, 2007, 07:01:11 PM
I remember reading that you can simply delete the vertices relating to the outline of the container.

However, I don't remember where I read it, nor if it worked.
Posted by devSin
 - June 04, 2007, 08:40:35 PM
I'd be worried about the game purging the pile (I can't remember the specifics of what it does and does not decide to periodically erase), but it does seem like a neat solution (you have to use a custom BAM that doesn't have the highlight frame).

I just use the pile type to get rid of containers I don't want anymore (easier than deleting them); I wouldn't have thought to do it this way.
Posted by Cuv
 - June 04, 2007, 08:29:03 PM
I know it has been a while since this post was answered... but I have been thinking about the problem presented and sorta have a solution... or at least a workaround worthy of further exploration.

I created a container in an area and flagged it as a Pile.  This way it only shows up as the ground icon of the object inside the container.  

I then created an item and made a new BAM that looks like a chest.  Assigned it to a book copy.  You can see from the below picture that the chest is visible (just to demonstrate), but it does not show up as a marked container like the ones around it.

You cannot view this attachment.

... but you can put your cursor over it and it will give you the 'grabby' hand icon.

You cannot view this attachment.

Anyways,  something to think about.  I suppose you could either write a script to replace the item you want to hide when the time is right.. or put something else in the container with no ground icon.  Or just create the item that looks like your container on the ground by either having some invis creature drop it at the appropriate time, or other ways.  

Here's the item and bam if you want to give it a try.  Might spark some creative ideas

You cannot view this attachment.

Hope this helps.  
Cuv



Posted by Galactygon
 - February 25, 2007, 11:44:34 PM
Quote
The light maps shouldn't affect anything else beyond characters and ground icons (and animations, provided the appropriate flag is set).

It's a shame, really; I was hoping it would work.

-Galactygon
Posted by Sir-Kill
 - February 25, 2007, 11:41:14 PM
Damn
had hope but no
Posted by devSin
 - February 25, 2007, 11:08:57 PM
I guess I'm not really surprised that ground items get the dynamic lighting. IIRC, the "highlighting" is actually a special frame in the ground icon BAM (how cheap); whereas the engine has special code to deal with highlighting trigger regions (including doors and containers), highlighting items is just done by switching to the highlight frame and gets the light adjustments. I don't think there's any way to trick the engine into concealing the hard-coded highlights (they even show up through the black mask, sigh).

The light maps shouldn't affect anything else beyond characters and ground icons (and animations, provided the appropriate flag is set).
Posted by Galactygon
 - February 25, 2007, 09:17:54 PM
It is lightmapping, my mistake. I am used to making posts about search maps, so it is a reflex. :)

-Galactygon
Posted by devSin
 - February 25, 2007, 07:14:42 PM
Are you talking about the LUM map or the search map (you first said search, now you say LUM)?

If you're talking about the LUM map, then no, the area background isn't affected.