No encumbrance Mod
Posted: Mon Feb 18, 2013 2:30 pm
Right, this encumbrance thing does absolutely nothing for me except annoy the hell out of me so I fixed it by modifying the Actor.lua file like so:
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 1.8 + (self.max_encumber or 0) + add)
end
to
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
That solves it for me but of course I wanted to make a "proper" mod and that's what's not working. I'm probably making some noob mistake so please...educate me.
What I did;
What I understood from Darkgod's wise words (http://te4.org/wiki/addons) I wish to superload the file Actor.lua so I put that in Superload/Mod/Class folder. In the file actor.lua file I put;
local _M = loadPrevious(...)
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
return _M
Then I set superload to "true" in the init. Compressed the folder with 7zip, modified the extension to .teaa launched the game. Problem is that it does "see" my mod but labels it as "incompatible". I can force enable it but it doesnt work anyway. So...-sigh-...what am I missing?
Code: Select all
local add = 0
return math.floor(40 + self:getStr() * 1.8 + (self.max_encumber or 0) + add)
end
to
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
Code: Select all
What I did;
What I understood from Darkgod's wise words (http://te4.org/wiki/addons) I wish to superload the file Actor.lua so I put that in Superload/Mod/Class folder. In the file actor.lua file I put;
Code: Select all
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
return _M
Code: Select all