[1.6.0 + orcs 1.0.5] Innovation will cause item bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

[1.6.0 + orcs 1.0.5] Innovation will cause item bug

#1 Post by starsapphire »

Innovation is a talent in Orcs DLC, that will increase equipments you wear's stats by a percent.
However, if you wear an equipment with innovation, then hand it to another actor, it will cause a bug when take off it.

Steps to reproduce:
Let an actor learn Innovation.
Wear an equipment with master/steamtech power source.
Take it off and hand it to another actor (i.e. your golem)
Order another actor it to wear it, then take off it. The bug occured.

This will also occur to enemies' drop if the enemy have Innovation, which will be common for steam classes.
The equipment will be lost permanently in this process. If you are using another equipment to replace it, both equipment will be lost.

When we investigate into the code about this talent in `tome-orcs/superload/mod/class/Actor.lua`

Code: Select all

--- Call when an object is taken off
local onTakeoff = _M.onTakeoff
function _M:onTakeoff(o, inven_id, bypass_set)
	onTakeoff(self, o, inven_id, bypass_set)

	if o.__innovation_adds then
		o:tableTemporaryValuesRemove(o.__innovation_adds)
	end
end
`__innovation_adds` is will the code store the temporary stats provided by innovation. However, on taking off this equipment, it will remove the temporary stats, but not `__innovation_adds` property itself.
Then, when another actor trying to wear off it, it will trying to remove an non-exist temporary value. This attempt will trigger an error, and the equipment will be lost.

starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

Re: [1.6.0 + orcs 1.0.5] Innovation will cause item bug

#2 Post by starsapphire »

This bug is still in 1.6.4 + orcs 1.1.3
Aside from the loot from enemies with innovation, Annihilator would also be a victim during normal gameplay, since it both have Innovation as class talent, and a permanent summon that can wear equipments (mecharachnid).

GlassGo
Uruivellas
Posts: 732
Joined: Wed Nov 06, 2013 1:21 pm
Location: From Russia with atchoum!

Re: [1.6.0 + orcs 1.0.5] Innovation will cause item bug

#3 Post by GlassGo »

Thaks, will be careful with this untill it get fix.
English isn't my native language.

Post Reply