Log in

View Full Version : [TEC] repaint guns


itadriver
09-15-16, 12:23 PM
I have repainted the ship with no problem, but I'm not able to repaint the guns in the guns.dat. I use GIMP. Is there anybody who can explain how to do?
Thanks

This is the new Littorio's hull

https://s16.postimg.org/j341ivvud/SH3_Img_15_9_2016_19_29_7_61.jpg (https://postimg.org/image/5yyh673sh/)

VonDos
09-15-16, 01:34 PM
Hi mate!
Aren't gun's *.tga included into dat? (As embedded images)

itadriver
09-15-16, 08:21 PM
Yes. I have exported the material's embedded image, but after modified and re imported, in game it has no change. With the ship hull, the same procedure works.

(Il problema é che, pur avendo modificato colore e tonalità, nel gioco non cambia niente
Il motivo credo che sia il canale alfa ma non sono sicuro).

areo16
09-15-16, 11:29 PM
Yes. I have exported the material's embedded image, but after modified and re imported, in game it has no change. With the ship hull, the same procedure works.

(Il problema é che, pur avendo modificato colore e tonalità, nel gioco non cambia niente
Il motivo credo che sia il canale alfa ma non sono sicuro).

Be sure that no texture of same name exists in data/Textures. These textures will override textures in .dat files.

HanSolo78
09-16-16, 12:10 AM
Another hint.... if there are numerous guns files the littorio guns could also come from another gun dat file. Often mods are added and the guns exist more than twice in the guns library files.

itadriver
09-16-16, 10:07 AM
Thanks to all.
I will check

areo16
09-16-16, 04:24 PM
...which is a waste of memory.

Could we maybe push the limits a little more by fixing this?

Well, only ids will overwrite ids. Not name of model. the model id or parent id will overwrite same id. So there is no point in having two models in different dat files that have same id.

As far as I understand it.

As far as pushing limits, if its overwriting other ids then it is rewriting in the same address space? I'm not sure.

itadriver
09-17-16, 01:51 AM
Thanks again.
An other question about ID:
For me is simplier to write an example:

In ship#1 I have:
In Dat file a node with ID "123abc" and in Sim file the related node with ID "456abc";

In ship#2 I have:
In Dat file a node with ID "789abc" and in Sim file the related node with ID "456abc" (the same ID on ship1).

Is this considered a conflict or not? The fact that the two ID in sim file are referred to different .dat ID, is relevant?

gap
09-17-16, 03:33 AM
Thanks again.
An other question about ID:
For me is simplier to write an example:

In ship#1 I have:
In Dat file a node with ID "123abc" and in Sim file the related node with ID "456abc";

In ship#2 I have:
In Dat file a node with ID "789abc" and in Sim file the related node with ID "456abc" (the same ID on ship1).

Is this considered a conflict or not? The fact that the two ID in sim file are referred to different .dat ID, is relevant?

As a rule of thumbs never use the same Id more than once, no matter what kind of file the duplicated Id is located in.

itadriver
09-17-16, 05:28 AM
Ok thanks