Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Campaign Editor Tutorial #1101

Open
Machiavelique2 opened this issue Nov 6, 2023 · 0 comments
Open

Campaign Editor Tutorial #1101

Machiavelique2 opened this issue Nov 6, 2023 · 0 comments

Comments

@Machiavelique2
Copy link

First of all, I'd like to thank the whole team for this free reimplementation of Imperium Galactica.

Their project even offers a campaign editor, but it doesn't seem to be functional yet. However, it is possible to edit .xml files, which will allow you to customise your campaign.

Unfortunately I haven't seen a tutorial for this so I decided to create one here (I'm currently using version 0.95.240).
The aim of the manipulation will be to copy the entire content of an existing campaign and then modify all its parameters as you wish.

This tutorial requiert: A text editor (such as Notepad++) and a bit of common sense to understand and manage xml files

First step:

Just open your IG-Campaign editor (execute open-ig-launcher.jar and click on Campaign Editor)

ig1

Name (directory under dlc): Put the name you want here, it will be the name of the folder containing the copy of the campaign settings and that you will find in your "dlc" folder.
Project language: I don't think there's any need to explain, just select the language you prefer.

Then select Copy existing Campaign/Skrimish and select the "Main Campaign" (the line above is my own campaign that I've customised)
Then click on OK

A new window opens, asking you which preferences you want to copy.
ig2

Set all to Copy
Then click on OK

Don't close the campaign editor just yet.
Let's checks the root of your Imperium Galactica game, you can now see a dlc folder with the name you have chosen (here CustomCampaign).

Second step:

Now, go to dlc\CustomCampaign\generic\campaign\CustomCampaign
Here you'll find all the .xml files you need to customise your game.

Let's begin by changing the name of your campaign (cause having several campaigns with the same name is a bit confusing... )
With you text editor, open definition.xml and modifies the content of the title and description tags for installed language packages.

ig3

Third step:

Okay, let's say you want to add heavy shield (shield3) to Destroyer3
Open your tech.xml
Search for "Destroyer3"

In Shield slot, just adds the Shield3 in the items list (items='Shield1, Shield2, Shield3') as below
ig

I can't give you a detailed list of all the possibilities, but I think the most interesting things to modify are in battle.xml, building.xml, tech.xml. So I'm going to end this tutorial with one last example

Now, let's say you want to add lasers to battleship2
Open your tech.xml
Search for "Battleship2"

Here we go
ig5

Inside BattleShip2 item tags, add a slot tag with id=laser (just copy/past laser slot from BattleShip1 (or BattleShip3...)
You should get this:
ig6

All that's left is to edit what you want to change: position, max laser, type of laser allowed (laser1, laser2 etc).
Here's my own BattleShip2 customisation
ig4

To find a appropriate location for the laser, return to the Campaign Editor (remember, I said not to close it)
Go to the technology tab, select battleship2 then go to its slot tab
ig7

Adjust the size and position here and when you have found the values that suit you, write them down in your tech.xml file.
ig8

It's up to you now! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant