Difference between revisions of "HowTo:MOD"

From VsWiki
Jump to: navigation, search
m (italicised clarification line, added text link to HowTos with explanation)
Line 16: Line 16:
 
It works like that:
 
It works like that:
 
* the MOD must have a directory structure just like <tt>data4.x</tt> containing only files that were modified or added compared to VS data files.
 
* the MOD must have a directory structure just like <tt>data4.x</tt> containing only files that were modified or added compared to VS data files.
* you just have to put the MOD directory structure in your (~ = home) <tt>~/.vegastrike/mods/modname</tt> or in <tt>datadir/mods/modname</tt> like this:
+
* you just have to put the MOD directory structure in your (~ = home) <tt>~/.vegastrike/mods/modname</tt> or in <tt>datadir/mods/modname</tt>.
 +
The modstructure minimal setup consists of:
 
<tt>
 
<tt>
  surfdargent@ewave:/home/public/vegadev/data4.x/mods/VegaTrek> l
+
  vegastrike.config
total 92
+
  weapon_list.xml
drwxr-xr-x 11 surfdargent users 4096  Sep 23 20:27 ./
+
and communications/ folder full of the faction speech to each other
drwxr-xr-x 4  surfdargent users 4096  Oct 4 13:17 ../
 
drwxr-xr-x 2  surfdargent users 4096  Sep 23 20:21 Sector_001/
 
drwxr-xr-x 3  surfdargent users 4096  Sep 23 20:24 ai/
 
drwxr-xr-x 9  surfdargent users 4096  Sep 23 20:25 animations/
 
drwxr-xr-x 2  surfdargent users 4096  Sep 23 20:21 mission/
 
drwxr-xr-x 2  surfdargent users 4096  Sep 23 20:26 modules/
 
drwxr-xr-x 2  surfdargent users 4096  Sep 23 20:26 sounds/
 
drwxr-xr-x 4  surfdargent users 4096  Sep 23 20:23 textures/
 
drwxr-xr-x 27 surfdargent users 4096  Sep 23 20:22 units/
 
drwxr-xr-x 2  surfdargent users 4096  Sep 23 20:22 universe/
 
-rw-r--r-- 1  surfdargent users 39330 Sep 18 21:50 vegastrike.config
 
  -rw-r--r-- 1  surfdargent users 5561  Sep 18 19:34 weapon_list.xml
 
 
</tt>
 
</tt>
 +
If you add Files existing Files of VS to the Modstructure, Vegastrike loads your modded files instead of the original Vegastrike Files.
  
 
VS will be able to use all the found MOD files in a standard game (no -M option) but will start using the standard config file and weapon_list file.
 
VS will be able to use all the found MOD files in a standard game (no -M option) but will start using the standard config file and weapon_list file.
Line 39: Line 29:
  
 
NOTE: sectors should be in a sectors subdir ([[VegaTrek|Mods:Vega Trek]] has sectors in <tt>Sector01</tt>, but the right place is in <tt>sectors/Sector01</tt>).
 
NOTE: sectors should be in a sectors subdir ([[VegaTrek|Mods:Vega Trek]] has sectors in <tt>Sector01</tt>, but the right place is in <tt>sectors/Sector01</tt>).
 +
  
 
==Sources==
 
==Sources==
 
[http://vegastrike.sourceforge.net/forums/viewtopic.php?p=11838#11838 Link]
 
[http://vegastrike.sourceforge.net/forums/viewtopic.php?p=11838#11838 Link]
 +
 +
[http://vegastrike.sourceforge.net/forums/viewtopic.php?p=88877#88877 Questions on mod filesystem layout]
 +
 +
=placing Starting Location=
 +
 +
The startlocation is saved as Hexnumber in a default savegame called "new_game" in the <tt>datadir/save</tt> Folder.
 +
Easist way to change the Starting location is to use another savegame.
 +
== Sources ==
 +
[http://vegastrike.sourceforge.net/forums/viewtopic.php?p=88864#88864 starting location of the game]
 
----
 
----
 
{{NAV_Manual |
 
{{NAV_Manual |

Revision as of 23:53, 5 October 2007

arrow_left.png Add Warp Trails arrow_up.png HowTos Make Weapons arrow_right.png

For a list of available mods, see MODs. For more general information on creating content for use with the Vega Strike engine, see HowTos.


MOD support

VegaStrike has automatic support for MODs. You still have to specify ./vegastrike -Mmodname.

It works like that:

  • the MOD must have a directory structure just like data4.x containing only files that were modified or added compared to VS data files.
  • you just have to put the MOD directory structure in your (~ = home) ~/.vegastrike/mods/modname or in datadir/mods/modname.

The modstructure minimal setup consists of:

vegastrike.config
weapon_list.xml
and communications/ folder full of the faction speech to each other

If you add Files existing Files of VS to the Modstructure, Vegastrike loads your modded files instead of the original Vegastrike Files.

VS will be able to use all the found MOD files in a standard game (no -M option) but will start using the standard config file and weapon_list file. When specifying -Mmodname on the command line, VS will start and load the MOD config file and weapon_list.xml file automatically.

NOTE: sectors should be in a sectors subdir (Mods:Vega Trek has sectors in Sector01, but the right place is in sectors/Sector01).


Sources

Link

Questions on mod filesystem layout

placing Starting Location

The startlocation is saved as Hexnumber in a default savegame called "new_game" in the datadir/save Folder. Easist way to change the Starting location is to use another savegame.

Sources

starting location of the game


arrow_left.png Add Warp Trails arrow_up.png HowTos Make Weapons arrow_right.png