Jump to content

Recommended Posts

modmain.lua :

PrefabFiles = { "flints" }

 

flints.lua:

local assets ={	Asset("ANIM", "anim/flints.zip"),	Asset("ATLAS", "images/images1.xml"),}local function commonfn(num)	local inst = CreateEntity()	inst.entity:AddTransform()	inst.entity:AddAnimState()	--inst.entity:AddSoundEmitter()	inst.entity:AddNetwork()	MakeInventoryPhysics(inst)	inst.AnimState:SetBank("flints")	inst.AnimState:SetBuild("flints")	inst.AnimState:PlayAnimation("f"..num)		inst.entity:SetPristine()		if not TheWorld.ismastersim then		return inst	end	inst:AddComponent("inspectable")	inst:AddComponent("inventoryitem")	inst.components.inventoryitem.atlasname = "images/images1.xml"	inst.components.inventoryitem.imagename = "f"..num			--inst.OnSave = OnSave	--inst.OnLoad = OnLoad		--inst:AddComponent("stackable")	--inst.components.stackable.maxsize = TUNING.STACK_SIZE_MICRO --3		return instendlocal nm = STRINGS.NAMESlocal rec = STRINGS.RECIPE_DESClocal desc = STRINGS.CHARACTERS.GENERIC.DESCRIBEfor i=1,18 do	nm["F"..i] = "Flint "..i	rec["F"..i] = "Rec flint "..i	desc["F"..i] = "Desc "..iendlocal function f1()	local inst = commonfn(1)	return instendlocal function f2()	local inst = commonfn(2)	return instendprint("FLINTS INITIALIZATION FINISHED")return Prefab("common/inventory/f1", f1, assets),	Prefab("common/inventory/f2", f2, assets)

 

Log.txt :

[00:00:03]: FLINTS INITIALIZATION FINISHED	[00:00:03]: expected =

What means "expected ="? There is no crash message even in log.txt. The game just closed.

 

 

 

 

 

Link to comment
https://forums.kleientertainment.com/forums/topic/56882-expected-error/
Share on other sites

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...