Brad Wardell's views about technology, politics, religion, world affairs, and all sorts of politically incorrect topics.
Published on July 29, 2010 By Draginol In Elemental Dev Journals

Starting with beta 4 of Elemental, the modding tools for the game have begun to be made available.

This article will serve as a very very basic primer on how modding works in Elemental. 

During the beta process, the team will try as much as it can to help users learn what can and can’t be done with the existing modding tools. Those who need a lot of hand holding should probably wait until after release since the team will have very limited time available to document what is what until post-release.

That said, the basics are fairly straight forward and I’ll go through them here.

The Legal Stuff

To get this first part out of the way, all of the content that comes with Elemental is copyrighted by Stardock Entertainment. We spent a lot of time and money producing the content that comes with it.  You may not distribute this content to be used for non-Elemental related purposes. As you go through the Elemental folders, you will quickly see why most games restrict what is readily accessible. We ask modders to respect the artistic effort that went into creating these assets.

The Formats

Elemental is very data-driven. What this means is that the game itself contains very little “hard coded” content. This is the basis of what makes the game easy to mod.

The formats we use are:

XML. This can be read in with a plain text editor. Nearly everything in the game is XML. Our editors output to XML.

PNG. This is a popular graphics format used on most web pages. We use it everywhere for static images.

MP3. For songs in the game, we use MP3, a popular audio format.

WAV. We also use WAV files, a popular sound format for sound effects.

DXPACK. This is the format that DesktopX uses (www.desktopx.net). We use it for all of our user interface related elements.

HKB. This is the Havok format. The Havok site has a free exporter for it to use in 3D Studio or Maya or what have you.  However, you will need our converter to use it with Elemental which we’ll be releasing shortly.

The Tools (as of Beta 4)

We include two of the tools with beta 4. The Map Editor and the Tile Editor.

In Beta 4, when you choose one, you have to wait until it loads all the data (we’ll add a fancy load screen later) so at first you’ll be looking at a black screen for a bit.

The Tile Editor

image

Use the middle mouse button (holding it down) to adjust the rotation of the screen. Hold the left mouse button down to move the screen around.

image

image

 

image

For Beta 4, just save your tile.

The saved tile goes to your my games folder in documents (documents\my games\elemental)

image image

Opening up your tile in a text editor just shows its XML:

image

In Elemental, file extensions mean very little. The game goes by XML keys (<TileDesigns> in this case).

The Map Editor

image

THE MOST IMPORTANT KEYS IN THE EDITOR:

+ and – on the 10-key will increase and decrease the size of the cursor.

image

image

RIGHT-CLICKING on the map will cause the selected terrain or object to be applied.

image

For mountain height, hold down the right mouse button while dragging the mouse. It’s dangerously fun.

image

image

image

When you create something in the tile editor, it is not assigned to anything in particular (a quest, a goodie hut, a city improvement, etc.) thus it is shown as a prop. It won’t do anything by default.

In one of our upcoming entries, we’ll show you how to make quests and goodie huts. But they’re fairly easy to make.  Here’s an example:

<GoodieHutTypes>
    <GoodieHutType InternalName="WhateverYouWantToCallIt">
        <Name>My Weird Village</Name>
        <Description>This weird village will give you stuff.</Description>
        <Medallions>
            <All>CaveGrassland_Medallion.png</All>
        </Medallions>
        <Destructable>1</Destructable>
        <TileDesign>WeirdVillage</TileDesign>
        <DrawnIcon>Gfx/TacticalIcons/Quest_Cave1.png</DrawnIcon>
        <IconSize>50</IconSize>

    <Treasure>
      <Title>Found Gildar!</Title>
      <Desc>Scouring the area, you find 30 gildar!</Desc>
      <Liklihood>3</Liklihood>
      <GameModifier>
        <ModType>Resource</ModType>
        <Attribute>Gold</Attribute>
        <Value>30.00</Value>
        <PerTurn>0</PerTurn>
      </GameModifier>
        <SFX>GoldPouch_1</SFX>
        <Image>Gfx\Items\Gold_Medium1.png</Image>
    </Treasure>
    </GoodieHutType>
</GoodieHutTypes>

Throw that into your quests folder and it should automatically show up in the game (I haven’t tried this yet but…in theory).

Quests, Items, Adventures

Once players get a handle on the basics, we’ll start talking about how to make items, quests, adventures, etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

Sharing your Creations

You can share your creations in one of two ways.

Way #1: Impulse::Reactor

If you hit Shift-Tab you get the Impulse:Reactor overlay. One of the options is mods.

image

image

image

image

The mods available in game will eventually be heavily moderated.

For users who want to avoid our deliciously evil moderating ways, you can simply share mods with others the old fashioned way. Just drop them into your my games\elemental folder in the proper place and they’ll just show up.

For Beta 4, we’re only letting maps be shared because our moderator tools are very primitive and the map format isn’t likely to change between now and release.

One caveat about beta 4 (and it’ll be easy to find out which users didn’t read this article) – the game will spawn resources on the map even when you have chosen not to. This is a temporary thing that will be addressed by release so go ahead and continue to choose the save option to not allow things to be spawned because the game will use it later.

Hope this helps and have fun!


Comments (Page 3)
6 Pages1 2 3 4 5  Last
on Jul 29, 2010

Raven X

Quoting TS22, reply 29


Quoting kyogre12,
reply 25

1. Both "- and +" keys aren't changing the tool size for me. I'm looking into it to make sure it's nothing on my end.
Try the + and - on the number pad (assuming you have a number pad).


 

I am playing on a laptop, and the + and - buttons aren't working for me either.  I've even tried using control, shift, tab, etc. in conjunction with the + and - buttons, but nothing has worked.

Did you get the second update? The latest one, second one today. It fixed tactical battles and it fixed the growing/shrinking cursor thing for me.

 

What second update?

I just checked and there's no updates available. I just tried a tactical battle and it wouldn't do anything.

on Jul 29, 2010

VR_IronMana


What second update?

I just checked and there's no updates available. I just tried a tactical battle and it wouldn't do anything.

There's a second update. Check again. Frogboy mentions it at the top of this thread.

Edit: Ok, the yellow text at the top of the page is gone. Frogboy stole it!!! LoL. There is a second update that fixes the battles and it fixed the cursor for me in the editor. Just check for updates again and you should see it.

 

on Jul 29, 2010

Raven X

Quoting VR_IronMana, reply 31

What second update?

I just checked and there's no updates available. I just tried a tactical battle and it wouldn't do anything.

There's a second update. Check again. Frogboy mentions it at the top of this thread.

Edit: Ok, the yellow text at the top of the page is gone. Frogboy stole it!!! LoL. There is a second update that fixes the battles and it fixed the cursor for me in the editor. Just check for updates again and you should see it.

 

 

Nope

I checked and it's still saying "No updates to installed products available at this time

on Jul 29, 2010

Just to let everyone know. You can do A LOT with all the resources we have now. I've successfully made a .XML file with a HANDFUL of custom heroes in it, they show up ingame, and they function properly. I've also created my own custom faction. I'm kinda documenting things here, if you are interested. I'm gonna play around with custom buildings later.

 

Awesome! I love this game even more now.

on Jul 29, 2010

You might be up to date.

on Jul 29, 2010

You probably had the second update to begin with then. Maybe the normal +- keys don't work? Sounded like it's specifically the num-pad +- we were supposed to use.

on Jul 29, 2010

I don't know if I had it or not - but I had the bug where you didn't get tactical battles, which seems like it was a symptom of not having the hotfix.

I uninstalled Elemental and then reinstalled it and now I have it and got my tactical battles back.

on Jul 29, 2010

VR_IronMana
I don't know if I had it or not - but I had the bug where you didn't get tactical battles, which seems like it was a symptom of not having the hotfix.

I uninstalled Elemental and then reinstalled it and now I have it and got my tactical battles back.

 

The first Beta4 update was missing files which is why tactical battles didn't work. You probably reinstalled it after the second update.

on Jul 29, 2010

What other updates are planned for the editors? 

I was keeping my fingers crossed the editor would be as user-friendly as the editors from Heroes_3  and  Age_of_Wonders:ShadowMagic.  Perhaps the developers can compare those editors with the Elemental editors so the functionality is easy while still powerful.

on Jul 29, 2010

I guess the + and - buttons are only with the key pad b/c it doesn't work with my laptop (it doesn't have a key pad).   If anyone finds a way around this, please let me know!

on Jul 29, 2010

Well, I just tried to go into a battle and it didnt give me the option for tactical battle. I have the latest version.

on Jul 29, 2010

BlackRainZ
Well, I just tried to go into a battle and it didn't give me the option for tactical battle. I have the latest version.

Did you set the "Threshold" down in the "Options"? It defaults to 4 but I turn it down to 1 so I'm guaranteed the choice in every encounter whether or not to do a tactical battle.

on Jul 29, 2010

True. These are things we would have to add later. At the end of the day, this IS a strategy game after all. I agree there's a lot of interesting directions we can go with quests and such as time goes on.

I myself am looking forward to seeing scripting in the game, and the desktopX API. XML will never offer the flexibility needed for conversion type mods, so I guess that makes me a "second wave" modder who'll become active when (and, tbh, if: I understand this is a strategy game and has a limited budget and at the end of the day, Stardock may not want to go down this route) some more flexibility comes in.

 

 

on Jul 29, 2010

re: Tactical battles

I did see two updates today, and the tooltip version # info within Impulse Client shows 0.98[b].085, so it looks as if I'm current.  I crash when trying to create a Tactical map.  I haven't played the game itself so I don't know about the issue discussed within this thread, but I would assume there's a remaining problem with Tactical and/or with my install.  Is there a installation verification option for this game (like there used to be for some games) or should I delete and reinstall.. or is this a known or expected problem with the map editor?

on Jul 29, 2010

I myself am looking forward to seeing scripting in the game, and the desktopX API. XML will never offer the flexibility needed for conversion type mods, so I guess that makes me a "second wave" modder who'll become active when (and, tbh, if: I understand this is a strategy game and has a limited budget and at the end of the day, Stardock may not want to go down this route) some more flexibility comes in.

Oh so you can't actually mod the UI atm then? I've been going crazy trying to figure out how to modify the UI using Desktopx and reading line after line of xml trying to figure it out dohh.

6 Pages1 2 3 4 5  Last