A collection of tips for using AI in mod development

Discussions about modding and share your mods with other players in this forum.
alpha117
Mod Contributor
Mod Contributor
Posts: 219
Joined: Thu Apr 28, 2016 5:20 pm
Has thanked: 20 times
Been thanked: 3 times

Re: A collection of tips for using AI in mod development

Post by alpha117 »

If I add a new service building (Service_Firm_products.dbf) called COSTA then :

Image

BUT I still have those large black pictures.
What I was trying to do was to change the default coffee shop image...didn't work :shock:


Image
User avatar
anjali
Community Contributor
Community Contributor
Posts: 441
Joined: Tue Nov 03, 2015 9:00 am
Has thanked: 4 times
Been thanked: 17 times

Re: A collection of tips for using AI in mod development

Post by anjali »

fine tuning is all .. can be a pain to get it right :P

hey anyway, looks like one of your coffee shop customers needed a roof for his own house and stole yours
:joy:

btw your pictures seem huge
my building pictures are all 800x600 but the actual image of the building itself is in the centre for a 2x2 building around 250x150 and thats L size M is half and S 1/4 of that, meaning S size picture would be about 60-65 x 35-40 pixels in a 800x600 picture
User avatar
Stylesjl
Mod Expert
Mod Expert
Posts: 903
Joined: Sun Oct 29, 2023 4:01 am
Location: Sydney, Australia
Has thanked: 63 times
Been thanked: 90 times

Re: A collection of tips for using AI in mod development

Post by Stylesjl »

alpha117 wrote: Sat Jan 11, 2025 9:45 pm If I add a new service building (Service_Firm_products.dbf) called COSTA then :

Image

BUT I still have those large black pictures.
What I was trying to do was to change the default coffee shop image...didn't work :shock:


Image
Did you follow this image guideline?
Grid.png
Grid.png (27.22 KiB) Viewed 778 times
Put your image into the big squares in the centre (make sure this grid is on a different layer in Paint.net). Kind of like this awful example I have (but it is within the two squares):
Grid.png
Grid.png (74.51 KiB) Viewed 778 times
alpha117
Mod Contributor
Mod Contributor
Posts: 219
Joined: Thu Apr 28, 2016 5:20 pm
Has thanked: 20 times
Been thanked: 3 times

Re: A collection of tips for using AI in mod development

Post by alpha117 »

Getting there. The black pictures have gone. Just need to crop/rotate the image....


Image
alpha117
Mod Contributor
Mod Contributor
Posts: 219
Joined: Thu Apr 28, 2016 5:20 pm
Has thanked: 20 times
Been thanked: 3 times

Re: A collection of tips for using AI in mod development

Post by alpha117 »

well, first one. The hardest bit, is getting the images correct to the overlay squares

Image
User avatar
anjali
Community Contributor
Community Contributor
Posts: 441
Joined: Tue Nov 03, 2015 9:00 am
Has thanked: 4 times
Been thanked: 17 times

Re: A collection of tips for using AI in mod development

Post by anjali »

nioce work, looks good ... and ..

you even found the guy that stole your Roof eheh
alpha117
Mod Contributor
Mod Contributor
Posts: 219
Joined: Thu Apr 28, 2016 5:20 pm
Has thanked: 20 times
Been thanked: 3 times

Re: A collection of tips for using AI in mod development

Post by alpha117 »

thanks Guys

I just want to add 'normal' ones. I know that a coffee shop is 2*2 on the overlay. but the overlay has more. There must be sizes for the other buildings? Example is a normal factory 3*3. I just want to make them 'fit' the overlay correctly If that makes sense.

Thanks
User avatar
Stylesjl
Mod Expert
Mod Expert
Posts: 903
Joined: Sun Oct 29, 2023 4:01 am
Location: Sydney, Australia
Has thanked: 63 times
Been thanked: 90 times

Re: A collection of tips for using AI in mod development

Post by Stylesjl »

alpha117 wrote: Sun Jan 12, 2025 6:57 pm thanks Guys

I just want to add 'normal' ones. I know that a coffee shop is 2*2 on the overlay. but the overlay has more. There must be sizes for the other buildings? Example is a normal factory 3*3. I just want to make them 'fit' the overlay correctly If that makes sense.

Thanks
Yes, if the building is 3X3 or 4X4 you will need to make the image bigger on that overlay. I think that overlay has a maximum of 4X4 (though I have never produced a 4X4 building so I don't actually know).
alpha117
Mod Contributor
Mod Contributor
Posts: 219
Joined: Thu Apr 28, 2016 5:20 pm
Has thanked: 20 times
Been thanked: 3 times

Re: A collection of tips for using AI in mod development

Post by alpha117 »

Arrh right...got it

From David spreadsheet

Image

you can have 6 different factory buildings (PNGs); 2 different R&D...etc etc.
User avatar
anjali
Community Contributor
Community Contributor
Posts: 441
Joined: Tue Nov 03, 2015 9:00 am
Has thanked: 4 times
Been thanked: 17 times

Re: A collection of tips for using AI in mod development

Post by anjali »

you can actually have more ...
try to add a 3x3 factory to your buildings.dbf
then you ll get a 4th medium factory in the building menu etc, its just static buildings meaning you can not override their basic settings in the building.dbf, so anything you add there as exact same building will be a new building, you can only switch images for the static buildings

i.e. i got a 3rd waherouse 2x2
Post Reply