New Terrains

Users who are viewing this thread

Wander

Regular
Some quick questions- couldn't find with search button, I'll keep trying. But any help would be appreciated!

1) I need to change some of the textures/terrains on the map. I can't figure out how I can do that. I am only trying to change the textures for a single module- not the whole game. And I don't know which files to edit. Any help would be appreciated!

2) How can I get the new terrains to actually generate a certain random terrain in battle scenes and such?

Thanks for any reply!

 
1.
- deep ocean, ocean, river, ford -- ocean.dds (on global map texture is animated somehow, direction of flow depends on terrain type);
- steppe -- map_steppe.dds (also is used for ’roads’ in native);
- desert -- desert.dds;
- snow -- snow.dds;
- mountains -- mountains.dds (then it is used on global map brightness of texture depends on high);
- plain -- plain.dds;
- steppe mountain - map_steppe.dds.

To change textures only for a single module you have place your (or edited) textures into modules/mod_name/textures folder. Names should be the same as names of textures you want to override. Don't forget to check whether scan_module_textures is set to 1 in module.ini  .

2.
Shortly, there are 3 related things
Terrain code. It covers overall form of terrain. It can be gotten via terrain generator. You should run game in edit mod (configure->advanced) and on global map in the bottom left push button ‘terrain’. Using it you can generate terrain code ctrl+E to save its code to clipboard).
Scene. Scene files locate in modules/mod_name/SceneObj. They contain information about objects, elevations and some other things. To create new scene you can either copy existing one or run the game in edit mode in window, enter area that has no scene (you’ll get error that scene does not exist and default scene is loaded), press crtl+E, close edit menu, leave area, answer yes on questing about saving scene and you get new clear scene.
Scripts. They cover connection between terrain codes, scenes and moments in the game then certain scene should be loaded.  module_scenes.py associate scene name and terrain code. Loading scene can be trigged in a lot of places in module system. You can search module system for jump_to_scene to find examples how it can be handled.

 
Back
Top Bottom