Jump to content

Recommended Posts

12 minutes ago, June12 said:

um... just my computer's problem..? ;(

[00:01:01]: Out of memory. Bytes requested: 4294967295

Although it seems that you should have enough memory to run game with ease it requests very large ammount of memory.

[00:00:57]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    

Well should fix that. 

Also it seems that your mod seems to cause a memory leak of some sorts if I'm reading this correctly. Can you post the mod code. Try removing or disabling all other mods installed and load just your mod, there can be incompatibilities caused by other mods or your own.

Edited by Ricoom
Added stuff
PrefabFiles = {
 "luxuryhammer"
}
Assets =
{
 Asset("ATLAS", "images/inventoryimages/luxuryhammer.xml"),
 Asset("IMAGE", "images/inventoryimages/luxuryhammer.tex" ),
 Asset("ANIM", "anim/luxuryhammer.zip"),
 Asset("ANIM", "anim/swap_luxuryhammer.zip"),
}
local Ingredient = GLOBAL.Ingredient
local Recipe = GLOBAL.Recipe
local RECIPETABS = GLOBAL.RECIPETABS
local STRINGS = GLOBAL.STRINGS
local TECH = GLOBAL.TECH
local tech_luxuryhammer = TECH.SCIENCE_TWO
local cooldowntime = 9
local starttime = 3
local endtime = 12
TUNING.LUXURYHAMMER_DAMAGE = 10
--Configuration
if GetModConfigData("language") == "EN" then
 GLOBAL.STRINGS.NAMES.LUXURYHAMMER        = "Luxury hammer"
 GLOBAL.STRINGS.RECIPE_DESC.LUXURYHAMMER       = "no description"
elseif GetModConfigData("language") == "A" then
 GLOBAL.STRINGS.NAMES.LUXURYHAMMER        = "B"
 GLOBAL.STRINGS.RECIPE_DESC.LUXURYHAMMER       = "C"
end
if GetModConfigData("durability") == "1" then
    TUNING.LUXURYHAMMER_USES = 133
 
elseif GetModConfigData("durability") == "2" then
    TUNING.LUXURYHAMMER_USES = 2*133
 
elseif GetModConfigData("durability") == "3" then
    TUNING.LUXURYHAMMER_USES = 3*133
 
elseif GetModConfigData("durability") == "4" then
    TUNING.LUXURYHAMMER_USES = 4*133
end
local luxuryhammer = GLOBAL.Recipe("luxuryhammer",
 {
  Ingredient("twigs",4),
  Ingredient("goldnugget",3),
  Ingredient("cutgrass",6)
 },
 RECIPETABS.TOOLS, tech_luxuryhammer )
luxuryhammer.atlas = "images/inventoryimages/luxuryhammer.xml"
Edited by June12

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...