Page 1 of 1

Minimal mod? (for mods-in-a-map)

Posted: 06 Sep 2010, 04:41
by eyu100
What is the bare minimum that the Spring engine requires of a mod? Must it include units? Configuration files? Could there be an "empty mod" that exists solely to prevent conflicts with mods bundled in maps?

Re: Minimal mod? (for mods-in-a-map)

Posted: 06 Sep 2010, 05:04
by FLOZi
eyu100 wrote:What is the bare minimum that the Spring engine requires of a mod? Must it include units? Configuration files? Could there be an "empty mod" that exists solely to prevent conflicts with mods bundled in maps?
Since the 0.82 release, the *ONLY* thing a mod needs to run is a correctly formatted modinfo.lua.

I don't quite follow the conflict prevention idea?

Re: Minimal mod? (for mods-in-a-map)

Posted: 06 Sep 2010, 19:47
by KDR_11k
Mods in a map usually are designed to depend on some parts of BA.

Re: Minimal mod? (for mods-in-a-map)

Posted: 07 Sep 2010, 05:02
by eyu100
FLOZi wrote:
eyu100 wrote:What is the bare minimum that the Spring engine requires of a mod? Must it include units? Configuration files? Could there be an "empty mod" that exists solely to prevent conflicts with mods bundled in maps?
Since the 0.82 release, the *ONLY* thing a mod needs to run is a correctly formatted modinfo.lua.

I don't quite follow the conflict prevention idea?
I deleted everything except modinfo.lua from BA V7.18 and changed the name, and it crashes my Spring. The file is attached.

Re: Minimal mod? (for mods-in-a-map)

Posted: 07 Sep 2010, 09:17
by FLOZi
I forgot to mention that you still need to depend on cursors.sdz (or include your own), doh!

Code: Select all

local modinfo = {
	name = "A(bsolute Minimum)",
	shortname = "A",
	game = "SpringABC",
	shortgame = "ABC",
	description = "Mod with the bare minimum to run",
	url = "http://www.spring.com/wiki/ABC",
	
	modtype = "1",

	depend = {
		"cursors.sdz",
	}
}

return modinfo

Re: Minimal mod? (for mods-in-a-map)

Posted: 11 Sep 2010, 06:53
by eyu100
And what does a minimal modinfo need to contain? Just the mod name, or more?