BP Logo
Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » HAM 5 Alpha - You know it!!
Re: HAM 5 Alpha - You know it!![message #294892] Sun, 11 December 2011 17:36 Go to previous messageGo to next message
BigBadWolf

 
Messages:10
Registered:October 2010

Thanks for the quick reply. I completely understand your position on dealing with single mods.

I suppose I'll try a few experiments, but could you elaborate on how the split mechanism works. If, for example, it keys off of the existing magazine options, wouldn't any new magazine sizes (ie - ammo boxes) be included? Or are the choices hard-coded?

Re: HAM 5 Alpha - You know it!![message #294893] Sun, 11 December 2011 17:46 Go to previous messageGo to next message
Sam Hotte

 
Messages:1995
Registered:March 2009
Location: Middle of Germany
Headrock
What does bother me though is the relatively new behavior (dunno when it was added, but I don't remember it from last year) of clicking ammocrates on weapons. For some strange reason, it is not possible to load a weapon directly from an ammo crate (i.e. open a weapon's DB, grab a crate and click it on the weapon's "Eject ammo" button - nothing will happen). Also when clicking a crate on a weapon in the merc's hands, the weapon is not loaded - instead you get a few magazines of the correct size in the merc's inventory. I'd like suggestions on the best way to improve this behavior.


IIRC clicking the crate on a weapon (regardless if this weapon is already loaded or not) was the only way to get ammo out of a crate again.
Since this is no longer necessary with your changes, this option could be completely dropped in HAM now.

So I'd suggest that clicking a crate on a "fitting" weapon simply reloads that gun to max (same as reloading out of a larger mag ATM).

Re: HAM 5 Alpha - You know it!![message #294894] Sun, 11 December 2011 17:56 Go to previous messageGo to next message
Cell

 
Messages:486
Registered:February 2011
User deleted
Re: HAM 5 Alpha - You know it!![message #294895] Sun, 11 December 2011 17:58 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
I suppose I'll try a few experiments, but could you elaborate on how the split mechanism works. If, for example, it keys off of the existing magazine options, wouldn't any new magazine sizes (ie - ammo boxes) be included? Or are the choices hard-coded?


When splitting a crate while it is in the sector inventory, the game makes a list of all magazine items of the same caliber and ammotype that are not themselves ammocrates. I don't know AIMNAS well enough to tell you whether ammo boxes fit this description. If they are flagged as ammocrates (see Items.XML) then they wouldn't appear on the list.

When splitting a crate while it is being held in a merc's hands, the program doesn't try to create the largest magazines it can - but rather to create magazines of the exact sizes needed to fill the merc's pockets with as much ammo as possible.

Quote:
Since this is no longer necessary with your changes, this option could be completely dropped in HAM now.


The thing is that this feature IS still useful - for quickly creating the magazines for the specific gun held by a merc. With crate-splitting you could create those magazines - but you'd have to check first which magazine size you need by examining the gun (assuming you don't know by heart how many bullets it takes). So this is a good quick way of creating exactly the magazines you need - and not too many of them. Therefore there is still some use to it, though I think there must be a better way to handle it.



Re: HAM 5 Alpha - You know it!![message #294896] Sun, 11 December 2011 18:00 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
It has nothing to do with crates and stuff but is it possible to simply attach an attachment to the weapon when clicking on the weapon?


IMHO not the best idea. Especially now that scopes can be used separately from their weapons. In other words, to put an attachment in your hand you'd need to first remove the weapon from the hand, then put in the attachment.


Re: HAM 5 Alpha - You know it!![message #294897] Sun, 11 December 2011 18:21 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3698
Registered:July 2009
Headrock
I don't know AIMNAS well enough to tell you whether ammo boxes fit this description. If they are flagged as ammocrates (see Items.XML) then they wouldn't appear on the list.
They do. They are just regular magazines for the donkeys, as far as the game is concerned.


Re: HAM 5 Alpha - You know it!![message #294898] Sun, 11 December 2011 18:22 Go to previous messageGo to next message
Sam Hotte

 
Messages:1995
Registered:March 2009
Location: Middle of Germany
Headrock
Quote:
Since this is no longer necessary with your changes, this option could be completely dropped in HAM now.


The thing is that this feature IS still useful - for quickly creating the magazines for the specific gun held by a merc. With crate-splitting you could create those magazines - but you'd have to check first which magazine size you need by examining the gun (assuming you don't know by heart how many bullets it takes). So this is a good quick way of creating exactly the magazines you need - and not too many of them. Therefore there is still some use to it, though I think there must be a better way to handle it.


Could you just merge the 2 functions you want to have: Clicking a crate on a weapon in merc's inv reloads that weapon and drops X mags (for that gun) in the merc's pockets? (X=5 currently IIRC)
Re: HAM 5 Alpha - You know it!![message #294900] Sun, 11 December 2011 18:45 Go to previous messageGo to next message
Shadow21

 
Messages:329
Registered:November 2001
Location: on route to San Hermanos
a feature i would like to get item sorting dropping etc more quickly is: a middle mouse button/wheel click on a certain item will drop the item to the sector inventory immediatly. this should work strategic view only. and seeing that nowadays the mousewheel is utilized for aiming and looking it shouldnt be too hard right Smile
Re: HAM 5 Alpha - You know it!![message #294901] Sun, 11 December 2011 18:52 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
Could you just merge the 2 functions you want to have: Clicking a crate on a weapon in merc's inv reloads that weapon and drops X mags (for that gun) in the merc's pockets? (X=5 currently IIRC)


that's what I was thinking - I just wonder what to do when the weapon already has bullets in it from a different ammotype.

Quote:
a feature i would like to get item sorting dropping etc more quickly is: a middle mouse button/wheel click on a certain item will drop the item to the sector inventory immediatly. this should work strategic view only. and seeing that nowadays the mousewheel is utilized for aiming and looking it shouldnt be too hard right


I would love to do that, but unfortunately I can't - because middle-mouse-button does not work for me in JA2 at all. I would not be able to test the feature, and therefore cannot make it Sad


Re: HAM 5 Alpha - You know it!![message #294902] Sun, 11 December 2011 18:56 Go to previous messageGo to next message
Cell

 
Messages:486
Registered:February 2011
User deleted
Re: HAM 5 Alpha - You know it!![message #294903] Sun, 11 December 2011 19:00 Go to previous messageGo to next message
reVurt

 
Messages:61
Registered:March 2007
Location: The Great White North, eh...
Maybe a bug, or maybe not, depending on what you ultimately intend, but... While you can't pick up objects from the sector inventory while in the middle of combat, you can still eject ammo from all the weapons, remove attachments, merge ammo into crates, etc. Not exactly game-breaking, but at some point you might consider adding a check first, Headrock.
Re: HAM 5 Alpha - You know it!![message #294904] Sun, 11 December 2011 19:06 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
While you can't pick up objects from the sector inventory while in the middle of combat, you can still eject ammo from all the weapons, remove attachments, merge ammo into crates, etc. Not exactly game-breaking, but at some point you might consider adding a check first, Headrock.


That is a bug, given the fact that I explicitly put in checks to disable the buttons during combat. I guess they weren't good enough. I will double-check.


Re: HAM 5 Alpha - You know it!![message #294905] Sun, 11 December 2011 19:37 Go to previous messageGo to next message
Sam Hotte

 
Messages:1995
Registered:March 2009
Location: Middle of Germany
Headrock
I just wonder what to do when the weapon already has bullets in it from a different ammotype.


Leave weapon as is, but do drop magazines out of crate into merc's inv, IMO.

[Updated on: Sun, 11 December 2011 19:38] by Moderator

Re: HAM 5 Alpha - You know it!![message #294908] Sun, 11 December 2011 20:16 Go to previous messageGo to next message
BigBadWolf

 
Messages:10
Registered:October 2010
Headrock

When splitting a crate while it is in the sector inventory, the game makes a list of all magazine items of the same caliber and ammotype that are not themselves ammocrates. I don't know AIMNAS well enough to tell you whether ammo boxes fit this description. If they are flagged as ammocrates (see Items.XML) then they wouldn't appear on the list.


Using DepressivesBrot's confirmation, I tried dropping AIMNAS files over your recommended HAM 5.3.2 setup. I can say that, at least after a little testing, it appears that the option to convert them into the ammo boxes is there, though it does list them as magazines in the transformation menu. The merging of the two also appeared stable, though I didn't play it for very long.

I can hardly wait to start making use of the full functionality of the transformation feature. So let me once again say, "THANK YOU, THANK YOU, THANK YOU!"



Re: HAM 5 Alpha - You know it!![message #294911] Sun, 11 December 2011 21:17 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
it does list them as magazines in the transformation menu.


At the moment, the splitting menu is built automatically, by reading the SIZE of each available magazines and then adding that to the phrase "Split to X-rd Mags", replacing "X". I could, theoretically, print out the NAME of the magazine item itself on each line instead. That may be preferable, though I do think it will probably be uglier or at least more confusing. I'll check to see what it looks like tonight.

Quote:
I can hardly wait to start making use of the full functionality of the transformation feature.


Full functionality?


Re: HAM 5 Alpha - You know it!![message #294915] Sun, 11 December 2011 21:51 Go to previous messageGo to next message
Faithless

 
Messages:441
Registered:October 2009
Location: The safe end of the barre...
Well, I mean, seriously, this can't be all, right? Smile
Re: HAM 5 Alpha - You know it!![message #294918] Sun, 11 December 2011 22:50 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
For transformations? It's mostly up to the modders now, isn't it? I should do manual unjams at some point, but the jury is still out on the details... Do you have any more ideas regarding transformations?


Re: HAM 5 Alpha - You know it!![message #294919] Sun, 11 December 2011 23:02 Go to previous messageGo to next message
BigBadWolf

 
Messages:10
Registered:October 2010
Headrock

At the moment, the splitting menu is built automatically, by reading the SIZE of each available magazines and then adding that to the phrase "Split to X-rd Mags", replacing "X". I could, theoretically, print out the NAME of the magazine item itself on each line instead. That may be preferable, though I do think it will probably be uglier or at least more confusing. I'll check to see what it looks like tonight.


I'm not complaining that they are listed as magazines, merely stating how they are represented, in case anyone else was looking for the same thing. Personally, I don't see any need to make further changes in regards to the ammo crate split feature, though obviously it's up to you.

Headrock

Quote:
I can hardly wait to start making use of the full functionality of the transformation feature.


Full functionality?


I should have said, "making full use of the functionality." Apologies, if what I said came across as something other than what it was/is - excitement at the thought of all the item transforms I can now mod.

Anyway, I've made lots of changes to my XMLs for the AIMNAS version I was playing. And even though I was able to figure a way to merge many items, there are quite a few I was not able to make work in the ways I wanted. With the new feature, I'll be able to do it with ease.

I'm looking forward to messing about with the fragmentation feature too.

All in all, I think Christmas arrived early this year.


Re: HAM 5 Alpha - You know it!![message #294920] Sun, 11 December 2011 23:33 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
ReVurt
While you can't pick up objects from the sector inventory while in the middle of combat, you can still eject ammo from all the weapons, remove attachments, merge ammo into crates, etc. Not exactly game-breaking, but at some point you might consider adding a check first, Headrock.


Strangely, I couldn't make this happen at all. When combat starts all four buttons are disabled, and I can't use them...

Can you describe the conditions in which you encountered the issue?


Re: HAM 5 Alpha - You know it!![message #294922] Mon, 12 December 2011 01:13 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
REUPLOAD

HAM 5.3.2 Alpha has been reuploaded. Link is in the opening post, you may only need the EXE if you're up to date.

This version fixes several bugs and awkward features:

1) When splitting crates that are stacked in the sector inventory, the program will now split only the crate whose description box is opened, and erase only that crate. The other crates in the stack are untouched. If you want to split an entire crate stack into magazines, you have to do it one by one. Previously, it would split one crate and erase all of them, so this is a bugfix Smile
2) Fix in the Green Eggs mod, ensuring that the game doesn't crash when avoiding gas clouds that have spread near the edge of the map.
3) Undid a change related to ammocrates and weapons. When an ammocrate is clicked on the "Eject Ammo" button of a weapon (in the description box), the game now performs a regular reload. Previously it did nothing. I'm not sure why this was done in the first place, but it makes no sense to me. As a result, you can now grab a crate, open a weapon's DB, and click on the eject button as many times as you want magazines for that weapon - they're all craeted into the inventory if possible, iirc, or dropped to the sector inventory if there's no room.


Re: HAM 5 Alpha - You know it!![message #294928] Mon, 12 December 2011 04:09 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
It is done.

http://img.photobucket.com/albums/v726/Headrock/Jagged%20Alliance%202/HAM/HAM%205/Filters_4.gif
(800x600)

From left to right:

1) Zoom Button

2) Stack and Merge
3) Ammo -> Crates
4) Separate Attachments
5) Eject Ammo

6) Show all items
7) Toggle guns
Cool Toggle Ammo
9) Toggle Explosives
10) Toggle Melee Weapons
11) Toggle Armor
12) Toggle LBEs
13) Toggle Kits
14) Toggle Misc. Items
15) Hide all items


Re: HAM 5 Alpha - You know it!![message #294931] Mon, 12 December 2011 04:18 Go to previous messageGo to next message
Cell

 
Messages:486
Registered:February 2011
User deleted
Re: HAM 5 Alpha - You know it!![message #294933] Mon, 12 December 2011 04:23 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Nope not done yet, just had an even better idea.


Re: HAM 5 Alpha - You know it!![message #294934] Mon, 12 December 2011 04:34 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Ok, I changed it. The "Hide all button" is removed...

Instead, it works like this:

THE EYE:
Left Click: Show all items
Right Click: Hide all items
Button is always "unpressed".

Sub-buttons:
Left Click: Toggle item class on/off.
Right Click: Show only items from this class.
Button "unpressed" = items not shown.
Button "pressed" = items shown.


Re: HAM 5 Alpha - You know it!![message #294935] Mon, 12 December 2011 05:22 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
UPDATE

HAM 5.4 has been uploaded. The download is available at the top of this thread. You will need to extract AT LEAST the EXE and \Data-1.13-HAM\Interface\Sector_Inventory_Buttons.STI, assuming you're already up to date with yesterday's release.

This version adds filter buttons, completely replacing the pop-up menu that existed in the previous HAM versions.

If there is a lot of public demand, I will reinstate the pop-up menu as an option (INI setting), so players can choose whether they want all these buttons (I count 14 including the zoom button) or whether they prefer pop-up menus (in which case the sorting buttons will also be converted into a menu).

Additionally I've made a small fix to the Merge & Stack button. It will now correctly rearrange the inventory so that the newly-created stacks automatically move to plug any existing holes (empty slots) rather than staying where they are.


Re: HAM 5 Alpha - You know it!![message #294937] Mon, 12 December 2011 05:49 Go to previous messageGo to next message
Slax

 
Messages:1430
Registered:July 2006
Location: People riding polar bears...
The pop-up's nice and so are the buttons. An option to choose between the two would be ideal.
How about some sorting to go with those filters?

Re: HAM 5 Alpha - You know it!![message #294938] Mon, 12 December 2011 06:22 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Quote:
How about some sorting to go with those filters?


Explain?


Re: HAM 5 Alpha - You know it!![message #294941] Mon, 12 December 2011 07:12 Go to previous messageGo to next message
reVurt

 
Messages:61
Registered:March 2007
Location: The Great White North, eh...
Headrock
Strangely, I couldn't make this happen at all. When combat starts all four buttons are disabled, and I can't use them...

Can you describe the conditions in which you encountered the issue?


Weird. I'll mess around with it a bit more tomorrow, but... Basically I was taking Chitzena by night, using a martial arts/athletic IMP to beat everyone up and take all their stuff. When I opened up the inventory screen to admire all my ill-gotten gains, the usual message appeared when I attempted to pick something up telling me that I couldn't, but I could still unload, remove attachments and merge things freely.
Re: HAM 5 Alpha - You know it!![message #294942] Mon, 12 December 2011 07:47 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Hmmmm maybe it has something to do with the red alert. Is it possible that your IMP was doing it so stealthily that the red alert was never raised?


Re: HAM 5 Alpha - You know it!![message #294943] Mon, 12 December 2011 08:40 Go to previous messageGo to next message
Slax

 
Messages:1430
Registered:July 2006
Location: People riding polar bears...
Ah, you already found the thread. Wink
Have it sort items like BR's does? Would at least be better than what's currently in place (in my opinion). Alphabetical/Sorted. Something simple for the pop-up menu.

[Updated on: Mon, 12 December 2011 08:42] by Moderator


Re: HAM 5 Alpha - You know it!![message #294956] Mon, 12 December 2011 15:49 Go to previous messageGo to next message
Cell

 
Messages:486
Registered:February 2011
User deleted
Re: HAM 5 Alpha - You know it!![message #294962] Mon, 12 December 2011 16:13 Go to previous messageGo to next message
reVurt

 
Messages:61
Registered:March 2007
Location: The Great White North, eh...
Headrock
Hmmmm maybe it has something to do with the red alert. Is it possible that your IMP was doing it so stealthily that the red alert was never raised?


Could be, as the guards didn't seem alerted for most of the sector, and by the end when they were, I wasn't checking the sector inventory. To be clear, I wasn't checking while in turn-based combat, but in between kills while my IMP was searching for his next target.

The game already limits access to the sector inventory if there's an enemy in sector, in that if you want to pick something up off the ground, you have to get a merc over to the item in question to pick it up in tactical, and if you try from the sector inventory screen it doesn't let you and gives you a little message. Just disable the buttons that actively interact with inventory items when there's an enemy in sector, and you should be good to go, IMHO. I'm not sure I'd bother with checking alert levels and whatnot. Keep it simple.
Re: HAM 5 Alpha - You know it!![message #294970] Mon, 12 December 2011 16:58 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
I've changed the check, I hope it works better now. Will reupload in a while.


Re: HAM 5 Alpha - You know it!![message #294973] Mon, 12 December 2011 17:06 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Fixed a bug (not mine) where item stacks with 128+ items in them would cause an endless loop when trying to sell the entire stack with ALT-SHIFT-CLICK (or, in my case, when displaying the price of the stack). Thanks to Redwolf for spotting this one.


Re: HAM 5 Alpha - You know it!![message #294974] Mon, 12 December 2011 17:09 Go to previous messageGo to next message
reVurt

 
Messages:61
Registered:March 2007
Location: The Great White North, eh...
Every time I look at the thread title, I think of this joke. Just had to share:

Three legionnaires walking through the desert under a baking sun. They were fully equipped with enough dehydrated water tablets for days, and food aplenty. On the shimmering horizon mirages came and went and came again, visions of swimming pools attended by dusky maidens, stalls full of ice-cream, sorbets, freshly-whipped smoothies of every conceivable flavour. But to no avail, the legionnaires did not crack, but kept marching solidly on.

Suddenly one of them froze,
Re: HAM 5 Alpha - You know it!![message #294977] Mon, 12 December 2011 17:30 Go to previous messageGo to next message
wanne (aka RoWa21)

 
Messages:1974
Registered:October 2005
Location: Austria
Headrock
Fixed a bug (not mine) where item stacks with 128+ items in them would cause an endless loop when trying to sell the entire stack with ALT-SHIFT-CLICK (or, in my case, when displaying the price of the stack). Thanks to Redwolf for spotting this one.


can you post the fix until ham5 hets integrated into svn.


Re: HAM 5 Alpha - You know it!![message #294980] Mon, 12 December 2011 17:52 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
Map Screen Interface Map Inventory.cpp, function SellItem()

At every instance where bLoop is declared, change INT8 to UINT8. Also should change bLoop to ubLoop throughout the function to maintain readability.

Takes 20 seconds. Smile


Re: HAM 5 Alpha - You know it!![message #294983] Mon, 12 December 2011 18:10 Go to previous messageGo to next message
Anonymous
I just had a CTD when splitting crate to inventory.
Re: HAM 5 Alpha - You know it!![message #294990] Mon, 12 December 2011 18:57 Go to previous messageGo to next message
Headrock

 
Messages:1773
Registered:March 2006
Location: Jerusalem
That's a very helpful bug report. And by that I mean it isn't.

A savegame, at the VERY LEAST, would be nice.


Re: HAM 5 Alpha - You know it!![message #294992] Mon, 12 December 2011 19:08 Go to previous messageGo to previous message
Anonymous
Okay, hire a merc travel around. Make a crate with the icon. Place icon in hand slot. Right click Crate. Seperate crate to inventory. CTD.

Edit:

Release v1.13.4792 w/ HAM 5.0 Alpha: Build 11.10.13.

[Updated on: Mon, 12 December 2011 19:13]

Previous Topic: Logical Bodytypes code added into the trunk (WIP)
Next Topic: New Animations
Goto Forum:
  


Current Time: Tue Jun 22 21:08:01 EEST 2021

Total time taken to generate the page: 0.02191 seconds