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

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

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

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

Post 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?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

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

Post 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?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

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

Post by KDR_11k »

Mods in a map usually are designed to depend on some parts of BA.
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

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

Post 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.
Attachments
BA718.sd7
(244 Bytes) Downloaded 14 times
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

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

Post 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
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

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

Post by eyu100 »

And what does a minimal modinfo need to contain? Just the mod name, or more?
Post Reply

Return to “Game Development”