Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » HAM 5 Alpha - You know it!!
Re: HAM 5 Alpha - You know it!![message #295716] Mon, 26 December 2011 00:30 Go to previous messageGo to previous message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
@ Soren:

I've managed to reproduce the bug, and even discovered why it is happening. Unfortunately, the fix may be extremely difficult to implement. I'm going to need to discuss it here because it's hard figuring it out for myself to begin with.

The error occurs when checking whether the parent item (in this case, a gun) can take all of its attachments after one of them (the inseperable one) is altered.

What the game does is this:
A) Erase all inseperable default attachments from the gun.
B) Copy all remaining attachments to memory
C) Erase all attachments on the gun.
D) Recreate all default inseperable attachments and put them on the gun.
E) Reattach all items from the memory attachment list.

Lets take for example a gun with an internal (default inseperable) scope 2x. We define a transformation that changes from 2x to 4x. When we change the scope, this is what happens nominally:

A) The 2x Scope is erased, because it's one of the gun's default inseperable attachments.
B) Any other attachments are copied to memory.
C) All attachments are erased from the gun.
D) A new 2x Scope is attached to the gun, because it's one of the gun's default inseperable attachments.
E) All other attachments in memory are reattached.

Actually that's what's "supposed" to happen - but there's an extra problem that causes this EVEN WEIRDER thing to happen:

A) The 2x Scope isn't erased, because we've already changed the item into a 4x scope by this point.
B) The 4x scope and any other attachments are copies into memory.
C) All attachments are erased from the gun.
D) A new 2x Scope is attached to the gun.
E) The game fails to put the 4x Scope on the gun, and seeing that it is an inseperable attachment itself, simply deletes it!
F) All other attachments in memory are reattached.

So there are several problems to solve here - unfortunately I have no idea how. For one, the function I'm using appears to be extremely important, so I can't easily change it. Furthermore, if I did change it somehow, it's possible that any other transformation you perform would again cause the gun to have a 2x Scope.

And of course, how do I even begin to instruct the program to do this correctly? I'd need to figure out how to not create a new default attachment in the same slot as the one that was transformed, and that could be even more tricky...

So I'm going to have to put this off until I can have a long and thorough examination of this problem with Warmsteel (who wrote the function I'm using) to see if there's any decent way out. I don't know how long this will take...

Also in the event that we do fail to solve the problem, what should happen? Should default inseperable attachments be impossible to transform? If so, what happens to internal stocks in some systems?

This is very confusing...

[EDIT: BTW, I see one reasonable way out of this issue: Make two identical versions of the gun itself, but with two different default attachments set for the two versions. Transforming the gun would transform the attachment without changing anything else. Yeah, it's an ugly workaround, but it will achieve the same thing you've been trying to do - and with even fewer clicks...]

Report message to a moderator

Sergeant Major

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JA2 + JA2:UB
Next Topic: New Animations
Goto Forum:
  


Current Time: Fri Jan 24 00:07:51 GMT+2 2025

Total time taken to generate the page: 0.13382 seconds