Dr.Disaster wrote:FeMaiden wrote:but still have no idea how to use germanny's assets.
Germanny's DM Tileset is actually ready for use. All you need to do is unzip the archive and move the entire "dm_resource_log2" folder into the custom dungeons folder of LoG 2. Then you can access it with the editor by opening the example dungeon.
To include this (or other) tilesets into a new editor project you have to import them so the editor "knows" them. This is done by placing import commands inside the "init.lua" file locate in the "mod_assets"->"scripts" subfolder of each project. The example dungeon included with Germanny's tileset naturally has an "init.lua" too but it might be a bit overwhelming to look at. Therefore as an example here is the rather simple init.lua of Komag's Master Quest mod:
Code: Select all
-- This file has been generated by Dungeon Editor 1.3.1
-- import standard assets
import "assets/scripts/standard_assets.lua"
-- import custom assets
import "mod_assets/scripts/items.lua"
import "mod_assets/scripts/monsters.lua"
import "mod_assets/scripts/objects.lua"
import "mod_assets/scripts/wall_sets.lua"
import "mod_assets/scripts/recipes.lua"
import "mod_assets/scripts/spells.lua"
import "mod_assets/scripts/materials.lua"
import "mod_assets/scripts/sounds.lua"
import "mod_assets/scripts/particles.lua"
--------------------------------------------------------------------
import "mod_assets/Beltbag/Beltbag.lua"
import "mod_assets/books/tome.lua"
import "mod_assets/runebooks/runebooks.lua"
I'm a bit confused here, you say to put all this code into my init.lua.
but in the readme file for germanny's asset pack it says
"Installing the asset pack in your mod is plug-and-play: simply put the
dmcsb_pack directory in your mod_assets directory,
then add this line to your
init.lua:
Code: Select all
import "mod_assets/dmcsb_pack/scripts/dmcsb_pack_init.lua"
huh...easy right? I guess, but then I read onward and I see
"Please read section 1.2 above, and don't import all the standard assets too! The
Dungeon Master Resource only requires a few standard assets; a complete list is
in Appendix A, or you can simply use this set of standard files to cover all the
dependencies (be careful not to import the same file twice):
-- Required objects
import "assets/scripts/objects/base.lua"
import "assets/scripts/objects/generic.lua"
import "assets/scripts/objects/water.lua" -- for water materials
-- Required items
import "assets/scripts/items/misc_weapons.lua" -- torch (used by dm_sconce)
import "assets/scripts/items/throwing_weapons.lua" -- rock (used by breakable
-- cave-ins)
import "assets/scripts/items/staves.lua" -- fear_cloud particle system (used by
-- horn of fear)
-- Required materials
import "assets/scripts/materials/generic.lua" -- "black" material
import "assets/scripts/materials/items.lua" -- "torch" and "rock" materials
-- Required spells and sounds (note: you need to import all spell files if you
-- import spells.lua; this is just the list of spell files that are specifically
-- used by the Dungeon Master Resource, either because of items that cast those
-- spells, or something else that uses the sounds)
import "assets/scripts/spells.lua"
import "assets/scripts/sounds.lua"
import "assets/scripts/spells/fireball.lua"
import "assets/scripts/spells/fireburst.lua"
import "assets/scripts/spells/frostburst.lua"
import "assets/scripts/spells/poison_bolt.lua"
import "assets/scripts/spells/poison_cloud.lua"
import "assets/scripts/spells/dark_bolt.lua"
import "assets/scripts/spells/blob.lua"
import "assets/scripts/spells/dispel.lua"
import "assets/scripts/spells/wall_fire.lua"
-- Required particles
import "assets/scripts/particles/blinded_monster.lua"
import "assets/scripts/particles/damage_fire.lua"
import "assets/scripts/particles/damage_shock.lua"
import "assets/scripts/particles/glitter.lua"
import "assets/scripts/particles/hit_wood.lua"
import "assets/scripts/particles/hit_goo.lua"
import "assets/scripts/particles/poisoned_monster.lua"
import "assets/scripts/particles/stunned_monster.lua"
import "assets/scripts/particles/torch.lua"
"
so which is it? do I just put that one line in, do I put all the lines from that second section?
or should I just go with your original instructions and ignore all this stuff? lol