Minimal mod? (for mods-in-a-map)
Moderator: Moderators
Minimal mod? (for mods-in-a-map)
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)
Since the 0.82 release, the *ONLY* thing a mod needs to run is a correctly formatted modinfo.lua.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?
I don't quite follow the conflict prevention idea?
Re: Minimal mod? (for mods-in-a-map)
Mods in a map usually are designed to depend on some parts of BA.
			
			
									
						
										
						Re: Minimal mod? (for mods-in-a-map)
I deleted everything except modinfo.lua from BA V7.18 and changed the name, and it crashes my Spring. The file is attached.FLOZi wrote:Since the 0.82 release, the *ONLY* thing a mod needs to run is a correctly formatted modinfo.lua.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?
I don't quite follow the conflict prevention idea?
- Attachments
- 
			
		
		
				- BA718.sd7
- (244 Bytes) Downloaded 14 times
 
Re: Minimal mod? (for mods-in-a-map)
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 modinfoRe: Minimal mod? (for mods-in-a-map)
And what does a minimal modinfo need to contain?  Just the mod name, or more?
			
			
									
						
										
						

