Home » MODDING HQ 1.13 » v1.13 Coding Talk » Self-Transforming Items (Pre-Project Discussion)
Re: Self-Transforming Items (Pre-Project Discussion)[message #293809] Fri, 18 November 2011 13:59 Go to previous messageGo to previous message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
I've got somewhat of a conceptual/coding problem that is giving me a headache. The problem is similar to something that currently exists with Merges and Attachments, and occurs during combat.

In turn-based combat, we can open the Sector Inventory and attach one item to another - or even affect a merge - on items across the other side of the sector. This should be allowed in non-combat mode, but not in combat.

The reason this is possible at all is that we now allow the description box to come up for sector inventory items - something which was not possible in the original game. The game still requires you to be holding the attachment in your hand to make this happen - but you can attach it to a gun on the other side of the sector, right in the middle of battle. Dunno why you'd want to do that, but it's possible - and thus stupid.

With Transformations, it's even easier to use this loophole, because you don't need to be holding anything in your hand. All you need is access to the item's Description Box - which is practically free at the moment.

For now I've made a change in the code so that it is entirely impossible to view Description Boxes in another sector, and also during combat it's not possible to view the DescBox for an item that isn't directly underneath your merc. That ensures that if we do interact with Sector Map items, it'll at least be somewhat logical.

Unfortunately this doesn't solve the whole problem. There are still loopholes around this issue, all resulting from the fact that we can view Sector Inventory Item description boxes during combat. For one, I cannot stop people from looking at the DB of an item in a stack. And there could be many other issues.

So what I'm going to do is even more radical - I'm going to disable Sector Inventory DescBoxes entirely during Turn-Based Combat (and, if necessary, all combat). You can still access an item's DescBox by picking it up and looking at it, either in Tactical or Strategic, but you can't see access it directly through the Sector Inventory.

I know that will piss some people off (there's always these people) but I'm willing to risk that - primarily because if I don't, they'll be even more prone to crashes, like the Stacked Items bug I just discovered. In other words, allowing sector inventory DBs was a good idea, but implemented way too widely. I'm going to take it back a step to keep it logical and to ensure everything else works.

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
Previous Topic: How to build the russian language version in VC2010 ?
Next Topic: Lower bullet damage with distance
Goto Forum:
  


Current Time: Sat Feb 15 21:45:47 GMT+2 2025

Total time taken to generate the page: 0.01429 seconds