Help! Build the AI new Ship-models?

Build the AI new Ship-models or there is a prefabricated pool of Models for the AI ?
I would like to assign built models to the AI.The AI is to then use these.
If, in which file must the changes are made.
12,350 views 18 replies
Reply #1 Top
Again my Question in German:

Ich versuchs nochmal auf deutsch,da mein englisch einfach zu schlecht ist.Es gibt ja hier auch einige deutsche Modder wie z.B.Terraner05 .
Ich würde gern einige selbstkonstruierte Schiffe bzw. konvertierte Models der KI zuweisen. Also das diese Schiffe auch von der KI genutzt werden. Ok,es gibt einen Einheitenpool wo die KI darauf zurückgreift (GalCiv2\Data\ShipCfg).Da sind die Grundeinheiten die als Basis genutzt werden.Denke ich zumindest. Wenn ich ein eigenes Schiff erstelle
besteht das allerdings aus 2 Dateien (Eigene Dateien\My Games\GalCiv2\ships).Man könnte nun die eigene ShipCfg-Datei umbenennen und diese gegen eine originale eintauschen.Aber was wird dann mit der 2. der XML-Datei ?
Hat da jemand schon ein wenig herumprobiert und kann helfen ?

Reply #2 Top
Der Herr spricht Deutsch. Wenn ich das gewusst hätte, hätten wir mein Texturenproblem damals schneller lösen können.

Dir Antwort zu deiner Frage, was du vorhast würde funktionieren, ich muss für meinen Wing Commander modd etwas ähnliches machen. Die beiden Dateien die du meinst "ergänzen" sich irgendwie.

Mein "3dArtist" (habe endlich einen gefunden ^^) arbeitet gerade daran Hardpints an die 3dmodelle zu bringen.
Fall er probleme hat können wir es ja so machen:
Ich helfe dir bei deinem Probe, du mir bei meinem.
Reply #3 Top
Sorry, I don't quite understand what you're trying to ask in english. I don't speak german, but it seems german is your native language. Hopefully, Someone who does speak german can help with your answer. If not, try again with english because I might know what you want.
Reply #4 Top

Der Herr spricht Deutsch. Wenn ich das gewusst hätte, hätten wir mein Texturenproblem damals schneller lösen können.


Da sprichst du mir aus der Seele,dieses technische Englisch ist einfach nicht mein Ding.Bin damals auch fast
verzweifelt.Lesen geht noch aber schreiben.....
Ob ich dir helfen kann,denke eher weniger.Ich modde meist nur so ein wenig zum Spaß(Balancing unsw.).Die Texture-Geschichte war mehr Zufall ,die Infos hatte ich mir dafür auch nur zusammen gesucht.Aber man weiß ja nie.

Zum Thema zurück.Wäre es möglich,das hier jemand der mein Anliegen verstanden hat meine Frage nochmal in Englisch posten kann.Denn Syneris z.B.würde evtl.auch helfen,vesteht aber meine Frage nicht....


Reply #5 Top
I tried to use http://babelfish.altavista.com/ to translate, but it is not very good. You have made models to change what the ships look like? You can see the models for your ships, but the AI does not use the models?
Reply #6 Top
@ Vorlone: Kein Problem, ich helfe dir auch so. Ist eh schwer in disem Forum wirkliche Hilfe zu finden. Das meiste ist "blah" oder besteht auch Konjunktiven (hätte, könnte, würde sollte,...)
Wenn du mir eine e-mailadresse oder sowas gibst können wir mal in Ruhe üder die Lösung reden.
Reply #7 Top
@ syneris
Yes, so similarly.I would like to build my models into the Game thus these ships also by the AI to be used.Uses the AI also inserted models ? When yes,which files are responsible for it?

@ Ambassador
Ok,wir können es ja mal versuchen meine e-mail-adresse [email protected]
Reply #8 Top
The AI only uses the shipcfg designs in Galciv2\Data\Shipcfg (maybe different folder for German version). The shipcfg file is only wha the ship looks like. The shipcfg file the AI picks is determined by what the AI will use the ship for and what ship style the AI race is (S0-S5).
To get the AI ships to use your models, you need to change the shipcfg files. You will need to create the new designs in the ship builder and replace the ones in the shipcfg folder. The name is important. The game will crash if it wants to use a shipcfg file that does not exist. You could also edit the shipcfg files with a text editor and change what models they use, but it might end up looking ugly or crash if the hardpoints do not exist on the new models. The shipcfg is only what the ship looks like in the game and does not have anything to do with what the AI will put on it.

Here's an example (folders and filenames might be different for German version):

Create a terran colony ship using new models.
Name it New Terran Colony
In MyGames\GalCiv2\Ships will be a file called S0_UD_NewTerranColony0.shipcfg (the spaces are removed from the filename)
The AI shipcfg for a colony ship is ColonyShip
rename S0_UD_NewTerranColony0.shipcfg to S0_ColonyShip.shipcfg and copy to GalCiv2\Data\ShipCfg (make a backup of the old shipcfg file before replacing)
Every AI race that uses Terran ship style should now look like the colony ship you designed

You will need to do this for every shipcfg the AI will use new models on. You will probably have to test what shipcfg names are for what types of ship the AI makes. This is as hard as it seem because the AI names it's ships after the shipcfg name.

You can find what races use what ship style at http://www.gc2builder.com/viewtopic.php?t=31 or https://www.galciv.wikia.com/wiki/Commonly_used_numbers

I don't think Stardock will make it so the AI will automaticly use new models, because it would make the programmers go insane trying to code it. Stardock may somehow make this process easier. If you replace the game's models with your own models instead of adding your models as new models the ships may look ugly or hardpoint problems could cause the game to crash.
I have not tested this yet, but it should work

Is this what you wanted or am I way off?
Reply #9 Top
Just checked this and it mostly works. One thing that I'm noticing in the v1.1 beta 2 is that any module added by the AI is also getting added to the design in addition to what's already on it (this also happens for the shipcfg designs that stardock made). This could cause ships to look ugly, so I'll make some inquiries about it.
Reply #10 Top
Best thanks, this is what I searched .A good guidance
I tested with colony ship and yes, it goes .

I have a question still.
In Galciv2\Data\Shipcfg (yes It is the same folder) for example there are 4 files
S3_Battleship.shipcfg
S3_Battleship1.shipcfg
S3_Battleship2.shipcfg
S3_Battleship3.shipcfg
show these files one ship or 4 ships.
When i replacing one shipcfg-file,for example only S3_Battleship1.shipcfg does not function it.
I will have to still test....
Reply #11 Top
So, habe dir eine ausführliche Antwort geschrieben, auch bezüglich der shipcfg-dateien.
Zu deienr Frage hieri m Fourm, die 4 Dateien beinhalten 4 Verschieden Schiffe, da jede cfg.datei für ein extra Schiff, Raumbasis,... steht
Der Betreff lautet: GalCiv2
Nur falls die Mail in deinen Spamfilter gerutscht ist.
Reply #12 Top
I think it only uses the shipcfg that doesn't have a number at first. Later in the game it may use the other ones for better ships or upgraded ships.
Reply #13 Top
@ Ambassador
Danke nochmal,ich habe die mail bekommen und dir geantwortet.Da gehe ich auch nochmal auf die Geschichte mit den 4 Dateien ein und das diese Schiffe und einige andere in der GC2Ships XML. nirgendwo zugeordnet sind.Evtl. ist es ja so wie syneris es geschrieben hat.

@syneris

think it only uses the shipcfg that doesn't have a number at first. Later in the game it may use the other ones for better ships or upgraded ships.


Yes, that would be possible,and would have to be observed.

Reply #14 Top
On a related note, I would like the ai to minimize all it's weapons. I can't stand the huge stack of space cannons or some othe ugly junk it pastes on it's ships sometimes. Not semetrically placed or anything, just a huge pile on one side or the other. (I don't even use space cannons either, it seems the A.I opts sometimes for cheap ships when it needs military even if they are severaly outclassed) Cheap ships do have thier uses but not that many!
Reply #15 Top
@ Vorlone:

Ich weiss nicht wie ich das vereinfacht ausdrücken soll, aber es ist so das in der gc2ships.xml "global" gesagt wird was für schiffe verwendet werden (für alle rassen). Darum steht z.b. bei
Reply #16 Top
@Ambassador
Ich habe deine Mail beantortet und hoffe das es einigermaßen verständlich ist.

Reply #17 Top
schon lustig wenn mehrere Deutsche versuchen sich miteinander auf Englisch zu unterhalten.
Reply #18 Top
Coplann ist auch ein Deutscher... Wenn ich die Namen so aufzähle Coplann,Ambassador,Terraner 05,meiner einer ich würde sagen wir haben das Modding-Forum fast für uns.Meint ihr nicht wir sollten hier wenigsten einen
deutschen Tread aufmachen.Es wäre dann sicherlich einiges einfacher und die ganzen verlorenen Seelen die hier noch unterwegs sind haben auch einen Anlaufpunkt.