• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Stahl-Opa

Marshall & Grossadmiral of Helvetia
72 Badges
Jun 16, 2011
749
169
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Stellaris: Nemesis
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
Hey Mates

I wasn't active as a modder since lile 2019 or so - but now I decided to finish some old projects.

Sadly I don't have that much spare time because life happens, and my modding skills are already quite rusty.

What I want to do is an event that creates an custom event ship. I can do the event and all, but have no idea about the ship templates.

I want to have an corvette size ship with 2x S and 1x M weapon slots and like 2x M defense slots.

Is it possible to get such a thing? It shouldn't be desigable or buildable, just to be spawned with an event (like Dark Wanderer).

Any advice how to start, whichs files I need or at best, a working code to achieve that, would be sooo great :)

Best wishes!
 
Hey Mates

I wasn't active as a modder since lile 2019 or so - but now I decided to finish some old projects.

Sadly I don't have that much spare time because life happens, and my modding skills are already quite rusty.

What I want to do is an event that creates an custom event ship. I can do the event and all, but have no idea about the ship templates.

I want to have an corvette size ship with 2x S and 1x M weapon slots and like 2x M defense slots.

Is it possible to get such a thing? It shouldn't be desigable or buildable, just to be spawned with an event (like Dark Wanderer).

Any advice how to start, whichs files I need or at best, a working code to achieve that, would be sooo great :)

Best wishes!
I know how to make a event ship but often times the ai tries to build them. Here is what I know:

To make an event ship you need to do a couple things:

1) pick an existing ship you want to edit - in your case the corvette.
2) copy corvette.txt into your mod from common\section_templates\corvette.txt
3) edit the corvette.txt using a text editor and copy the first template in the file and paste it at the end.
4) In your new template:

a) change the key = "CORVETTE_MID_M1S1" to something new like "CORVETTE_MID_FRED"
b) note that this ship has only one entity - mid as in fits_on_slot = mid while other ships may have bow mid and stearn.
c) change the ai_weight section to 0 so hopefully the ai will not try to build it.
d) change the component slots to be what you want. Keep the locator names. Note multiple guns can use the same locator slot. You can look at the other templates for ideas.
e) if you add too many guns you might not have enough power. Same if you add too many utility slots etc. You have to just do trial and error or pull it up in ship designer in game to see it all looks good.

5) once you have your template done you then copy into your mod event_ship_designs_general.txt from common\global_ship_designs

a) search for # Generic Corvette and copy that section to the bottom

b) edit your new copied section and change the name = "NAME_Dagger" to something else like "NAME_Fred" IMPORTANT: the game will save this new design in the save game someplace and if you make changes to the design the stupid game will ignore your changes. If you try the design out in a game and then you want to make changes you either have to start a new game OR change the name to "NAME_Fred2"

c) change the template = to match your name from 4a
d) edit the component slots to match your template from 4 above using the same number and slot names but enter the actual weapons you want.

6) In a event you can do something like:

capital_scope = { create_fleet = { name = "Enterprise TG1" effect = { set_owner = root create_ship = { name = random design = "NAME_Earth_Titan_DM2" graphical_culture = "humanoid_01" } create_ship = { name = random design = "NAME_Earth_Missilecruiser_DM" graphical_culture = "humanoid_01" } create_ship = { name = "Enterprise" design = "NAME_Earth_Carrier_DM2" graphical_culture = "humanoid_01" } while = { count = 20 create_ship = { name = random design = "NAME_Earth_Battleship_DM" graphical_culture = "humanoid_01" } } owner = { create_leader = { class = admiral species = owner name = random skill = 5 traits = { trait = random_trait trait = random_trait } } } assign_leader = last_created_leader } } }

except you use your name from 5b above and if you change the name at some point due to making changes you have to also change it in the event.

7) If you want to create a new type of ship then you have to change some other files in common and in graphics and you will need to ask for more help.

At this point you should be able to try to make something work. :)
 
Last edited:
  • 1Like
Reactions:
7) If you want to create a new type of ship then you have to change some other files in common and in graphics and you will need to ask for more help.

Hey: I now was aible to build a ship with customized components. But now I want to make it look like an ancient mining drone - I was looking for various ways to achieve this, but somehow the ship always looks like this:
Unbenannt.png

Any help how I have to go for this?
 
Hey: I now was aible to build a ship with customized components. But now I want to make it look like an ancient mining drone - I was looking for various ways to achieve this, but somehow the ship always looks like this:
View attachment 763312

Any help how I have to go for this?
OK there was a mistake in my instructions. For 4a above change the entity back to "corvette_M1S1_entity". Instead change the key to "CORVETTE_MID_FRED"

Basically for the section template file:

a) ship_size = corvette which connects the template to a corvette ship size in common\ship_sizes.
b) key = "your custom template name" like "CORVETTE_MID_FRED"
c) entity = "corvette_M1S1_entity" connects it to the graphics at gfx\models\ships and things like the locators have to match. You can make a new entity that looks the same but has more locators by copying the "corvette_M1S1_entity in the graphics file and making a new one but you can not make new graphics unless you know how to make graphics files which I do not. So for my missile cruiser I copied the cruiser and then used the missile cruiser name and added more locators for weapons. Same for my carrier - I copied the juggernaut and renamed it fred_carrier.

For your global ship design file you want the line template = to match your template name from 4a like "CORVETTE_MID_FRED"

Hopefully you will then end up with it looking like a corvette.

For a mining drone I think you would start over and instead of starting with a corvette look for a mining drone. I have never done a mining drone so I don't know what is different. Also you have to worry about ship size and can it be built by event etc. I have made carriers ( from a juggernaut) , battleships, missile cruisers ( from a cruiser) but I have never made a non ship like a mining drone.

I am going to edit my first post to make it correct for others.

Sorry for the mix up. :)
 
Last edited:
Great, thanks a lot, I got it working!

Wouldn't be possible w/o your help, thanks, thanks & thanks!

Btw, do you maybe know how to do a ship that need no upkeep (or custom upkeep, like minerals)?
 
Great, thanks a lot, I got it working!

Wouldn't be possible w/o your help, thanks, thanks & thanks!

Btw, do you maybe know how to do a ship that need no upkeep (or custom upkeep, like minerals)?
A guess would be to go to the common\ship_sizes\00_ship_sizes.txt file, find the corvette, and edit the resources section.

resources = { category = ships upkeep = { energy = 0 alloys = 0 } }
 
  • 1Like
Reactions: