View topic - How port mod to map?



All times are UTC + 1 hour


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How port mod to map?
PostPosted: 26 Jan 2012, 22:29 
User avatar

Joined: 26 Dec 2008, 14:26
Location: Sweden
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])


Top
 Offline Profile  
 
 Post subject: Re: How port mod to map?
PostPosted: 26 Jan 2012, 22:43 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Slap your mod into an existing map. Presto!


Top
 Offline Profile  
 
 Post subject: Re: How port mod to map?
PostPosted: 26 Jan 2012, 22:46 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
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)
( viewtopic.php?f=13&t=26827 )


Top
 Offline Profile  
 
 Post subject: Re: How port mod to map?
PostPosted: 28 Jan 2012, 00:56 
User avatar

Joined: 26 Dec 2008, 14:26
Location: Sweden
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"?


Top
 Offline Profile  
 
 Post subject: Re: How port mod to map?
PostPosted: 28 Jan 2012, 05:42 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Quote:
Would it work to just rename "ModOptions.lua" to "MapOptions.lua"?
yup. and change it in the gadget where you read it ofc.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.