How port mod to map?

How port mod to map?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
Pithikos
Posts: 146
Joined: 26 Dec 2008, 14:26

How port mod to map?

Post by Pithikos »

I made a mod some time ago which adds a new gameplay(something like king of the hill) to BA. 8)

Is there a tutorial or something to easily port the mod to a map? The mod has only one unit which is controlled by GAIA and the rest is just lua and GUI. (I don't remember anything about maps[folder hierarchy, etc])
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: How port mod to map?

Post by Beherith »

Slap your mod into an existing map. Presto!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How port mod to map?

Post by knorke »

It is basically the same, you can use the same folders as for mods.
Put your lua into LuaRules\Gadgets and LuaUI\widgets
For the units use units\, objects3d\ and unittextures\

Instead of resources.lua maps use resources_map.lua

If the unit is mobile, it is a bit tricky because you do not know if the movedef will be present in every game. (most likely it is not)
( http://springrts.com/phpbb/viewtopic.php?f=13&t=26827 )
User avatar
Pithikos
Posts: 146
Joined: 26 Dec 2008, 14:26

Re: How port mod to map?

Post by Pithikos »

Ok, I managed to port it. However I am wondering how I can make the mod options appear in the map. Would it work to just rename "ModOptions.lua" to "MapOptions.lua"?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How port mod to map?

Post by knorke »

Would it work to just rename "ModOptions.lua" to "MapOptions.lua"?
yup. and change it in the gadget where you read it ofc.
Post Reply

Return to “Map Creation”