Jump to content

I modded the game!


Mythos_Ruler
 Share

Recommended Posts

I modded the game using only the art assets in the Open Source release. :)

post-130-1268506810_thumb.jpg

What I did was make the old Hypaspist, which was really an Argyraspis ("Silver shield"), more mundane, giving it the Pezhetairoi textures and smaller shield, then made a new entity with the old Argyraspis actor. Then I made the Hypaspist have the ability to "level up" to Argyraspis after 500 XP (killing 1 unit is about 100XP).

This is the proper tags to make the Hypaspist (or any other unit for that matter) level up to a new entity:

post-130-1268507075_thumb.jpg

Now this is the Argyraspis (Hypaspist Level 2) entity. Notice the inheritance tag at the top (highlighted):

post-130-1268507277_thumb.jpg

You'll also note that no stats or other items that aren't changed from the parent (lower level) entity is needed to be displayed in the child (higher level) entity. For instance, since the Argyraspis is inheriting stats from the Hypaspist entity I don't need to put the History stuff in the Argyraspis entity, because that will be inherited. Only those things that are added or changed from the parent entity need to go into the child entity. Any stats or tags placed in the child entity will automatically override the stats from the parent. If you accidentally leave some stuff in the child that is exactly the same as the parent there is no worries.

If you update your 0 A.D. revision (for those who have downloaded the open-source/public release with SVN), then you can get the new Hypaspists.

So, POST HERE ANY MODS YOU HAVE MADE for the game or any QUESTIONS you may have! I will answer all relevant questions for you as long as they pertain to ENTITIES, ACTORS, TEXTURES, or things of that nature. :)

Edited by Mythos_Ruler
Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I'm afraid I've broken this a tiny bit (y). You'll need to look in binaries/data/mods/public/simulation/templates/ for the new entity template files, and they're a slightly different XML structure (to match the new modular organisation of the code). (Also they're missing some data for unimplemented modules - I'll convert them all automatically at some point). But the basic idea is the same as before, including the parent inheritance, so it shouldn't cause any major difficulties :P

Link to comment
Share on other sites

  • 1 month later...

Something doesn't seem to work ... after i tried creating a new enitity and place it in Atlas, i couldn't place any entity at all. (no visual appears) They are correctly listed in the list on the left, so they seem to be in the right folders.

Link to comment
Share on other sites

Yes - actors are the same, and if you select the "actor" dropdown (I think that's what it's called) in Atlas's entity list then it should show any new ones you add. If you have a working actor, and you add a new entity file in the new location (binaries/data/mods/public/simulation/templates/) using the new file format (copy one of the existing ones), then the entity should appear in the default entity list and work. If it doesn't work then something must be wrong, and hopefully the log would mention any errors ;)

Link to comment
Share on other sites

Thank you both. It seems to work now.

That's what i did: As you might remember, i am still planning my three campaigns for 0 A.D., and while planning the Alexander Campaign, it occurred to me that i would need Alexander in more states than just on a horse.

Also, i wanted to test you actor system. I was courious if i could combine the components free to a new unit, and i have not been disappointed. It seems to be very, VERY flexible and powerful. Well done.;)

080510113818_0adtestmod.jpg

Left is, as you can clearly see, the original Alexander hero unit.

In the middle, there is Alexander on foot in full armor. He will be needed for some special scenarios, where Bukephalas is not aviable and, of course, for the first scenario where he gets to tame Bukephalas.

Right, Alexander without any arms and w.o. helmet. This one is for cinematics.

Both units on foot have the long cape which Leonidas and the Spartans have. You guys gave the original unit the shorter version (due to clipping reasons, i believe), but it looked quite stupid on foot. So i decided to give him the longer one.

Also, the Alexander in the middle has a hypaspist shield. Because he uses actually Themistocles' ani file, it would have looked stupid if he stretched his arm out without having a shield.:)

Well ...

Edited by SMST
Link to comment
Share on other sites

I've made some more stuff.

090510204244_chaironeia.jpg

This is a recreation of the Battle of Chaironeia. The factions are the Theban-Athenian Alliance (blue) against the Macedonians (red) under Philipp and Alexander.

The Theban hoplite units are actually members of the Hieron Lokhon, meaning "Sacred Band", of Thebes, which i made out of one original texture called "thebes_sacredband.dds". In the front, there's a closeup of one of them. Next to him, there is a Greek Swordsman that i made just for fun purposes with no historical reference at all. These units are spontaneusly called "Phylakes", meaning "guards".

In the background, the heavy phalanx of Macedonian Pezhetairoi under General Parmenion (another new unit, the guy with sword an a frontranker helmet in the front of the Pezhetairoi) and Philipp is seeming to be retreating from the Sacred Band Warriors of Thebes, supported by Peltasts. However, on the left flank Alexander is waiting with the Hetairoi cavalry, ready to fall into the opening gap of the Theban ranks.

Historically, the battle ended with all of the Sacred Band warriors slain because they refused to surrender. A memorial site was built at Chaironeia, similar to the one at the Thermophylae for Leonidas and his Spartans ~150 years earlier.

Edited by SMST
Link to comment
Share on other sites

By the way, you can use Ctrl+Alt+F2 to take high-resolution (6400x4800) screenshots and then scale them down in a paint program to emulate nice antialiasing ;)

Ah, thanks for the information. I was already wondering if the game has a integrated screenshot function.

Edit:

The next question is: Where are the screens saved? :)

Not in binaries/data/screenshots, which would be the most obvoius.

Edited by SMST
Link to comment
Share on other sites

Good question ;). If you're on Windows, do Start -> Run -> "%appdata%\0ad" and then look in (I think) data/screenshots/ to find them. On Linux and OS X, look in ~/.local/share/0ad/screenshots instead.

(F2 is the integrated non-big screenshot function - see binaries/data/config/default.cfg for the list of all the keys that are currently recognised.)

Link to comment
Share on other sites

Very nice screenshots! Though as usual, they break the forum frame.

One thing I noticed about the models is that most of the Greek units have no beards.

Is this usual in the game as written, or is it the result of your mod? Also, I think

Alexander's unarmored mode looks bald. I don't know if you made your own textures,

but if you can I suggest eventually adding some more hair to him. ;)

Otherwise, I think it's simply awesome that the game can already be modded, even to

a limited extent.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...