AI wont use scaling option?

Distant Worlds is a vast, pausable real-time, 4X space strategy game which models a "living galaxy" with incredible options for replayability and customizability. Experience the full depth and detail of large turn-based strategy games, but with the simplicity and ease of real-time, and on the scale of a massively-multiplayer online game. Now greatly enhanced with the new Universe release, which includes all four previous releases as well as the new Universe expansion!

Moderators: elliotg, Icemania

Post Reply
orelbon
Posts: 1
Joined: Tue Sep 13, 2016 11:58 pm

AI wont use scaling option?

Post by orelbon »

I was playing around in game, and decided i wanted to use the scaling option, but i wanted to make all the ships scaled including the AI designed ones. However it seems the AI is set to disregard that completely and do what ever it wants. I looked around the settings and couldn't find anything regarding scaling for the AI. Is there any way to make the AI use ship scaling?
syntaXerroR
Posts: 11
Joined: Sat Jun 04, 2016 11:03 pm

RE: AI wont use scaling option?

Post by syntaXerroR »

Scaling only changes the size of the sprites. It has no game play effect other that aesthetics.
your superior intellect is no match for my puny braiN!
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: AI wont use scaling option?

Post by Retreat1970 »

Is there any way to make the AI use ship scaling?

Sorry, no.
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: AI wont use scaling option?

Post by RogerBacon »

What if you change the size of the bmp file. Will that result in larger/smaller ship images?
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
sneo24
Posts: 17
Joined: Sun Nov 04, 2018 7:00 pm

RE: AI wont use scaling option?

Post by sneo24 »

So, I tried too.
Added the ImageScaling ;Scaled 0.8
At the beggining of the .txt template
at EVERY. SINGLE. CUSTOMIZED. DESIGNTEMPLATE. (yeap, that's a week in my life non coming back)

It didn't work. It send it a very large amount of error report.

So sad :(
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

AI wont use scaling option?

Post by rjord2021 »

ORIGINAL: sneo24

So, I tried too.
Added the ImageScaling ;Scaled 0.8
At the beginning of the .txt template
at EVERY. SINGLE. CUSTOMIZED. DESIGNTEMPLATE. (yeap, that's a week in my life non coming back)

It didn't work. It send it a very large amount of error report.

So sad :(

Hi sneo24

I saw you had tried scaling when it comes to the AI and had errors.....and I thought I would add my two cents.

Below is an example where I was playing the Empire (red) with the Rebel Alliance(green) as the AI.

Yes you can get the AI to use image scaling. If you look at the picture below I changed the scaling of an X-Wing so that it was huge compared to the other ships.

With the X-Wing I have the image scaling lines as ImageScaling ;Absolute 300
With the Millenium Falcon the image scaling is ImageScaling ;Absolute 120

With the red Imperial Freighter, image scaling is ImageScaling Scaled 5.0 much smaller than first 2.
This is probably because I did not use the ; in the line before Scaled.

So the answer is yes you can get the AI to use image scaling but it will depend on the image as well.
If I recall the scaling is affected by the amount of space around the ship graphic.

So I make sure I have the ship filling the entire image which has a size of 300 x 300.

The trick is to add the image you want and test the scaling. Some pictures will scale properly, others will not.

Also where you have ImageScaling ;Scaled 0.8 you may not see a difference
Try ImageScaling ;Absolute 120 or ImageScaling ;Absolute 300

Remember : test as you do each race instead of testing after doing all of them and then finding it did not work.



Image
Attachments
AI Scaling.jpg
AI Scaling.jpg (381.51 KiB) Viewed 164 times
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: AI wont use scaling option?

Post by rjord2021 »

The design template below drew the large X-Wing showed in the black box in the prior post..... the black box being an image 300 x 300 pixels in size

-------------------------------------------------------------------------------------------------------------------

'Distant Worlds Design Template - 1.9.0.0

'Specify amounts of each component type below. The amount should be a whole number greater than or equal to zero, and should be placed immediately after the semi-colon.
'Note that it is not necessary to specify Command Center, Life Support or Hab Module components. A sufficient number of each of these components will automatically be added to all designs.
'Also note that while Reactors and Energy Collectors can be specified here, an adequate amount of these components will always be added to meet the energy needs of the design.
'Also, for ships you do not need to specify a HyperDrive - a single hyperdrive will always automatically be added to ship design templates.

'Escort ship type

ImageScaling ;Absolute 300

AreaShieldRecharge ;0
Armor ;3
AssaultPod ;0
CargoBay ;0
ColonizationModule ;0
CombatTargettingSystem ;1
CommerceCenter ;0
ConstructionYard ;0
CountermeasuresSystem ;1
DamageControl ;1
DockingBay ;0
EnergyCollector ;1
EnergyManufacturingPlant ;0
EnergyResearchLab ;0
EnergyToFuelConverter ;0
Engine ;6
FighterBay ;0
FleetCountermeasuresSystem ;0
FleetTargettingSystem ;0
FuelCell ;2
GasExtractor ;0
GravityWellProjector ;0
HighTechManufacturingPlant ;0
HighTechResearchLab ;0
HyperDeny ;0
IonCannon ;0
IonDefense ;1
IonPulse ;0
LongRangeScanner ;0
LuxuryResourceExtractor ;0
MedicalCenter ;0
MiningEngine ;0
PassengerCompartment ;0
PointDefense ;0
ProximityArray ;1
Reactor ;1
RecreationCenter ;0
ResourceProfileSensor ;0
ScannerJammer ;0
Shields ;1
StealthCloak ;1
TraceScanner ;0
TroopCompartment ;0
VectoringEngine ;1
WeaponArea ;0
WeaponBeam ;0
WeaponBombard ;0
WeaponMissile ;0
WeaponPhaser ;3
WeaponRailGun ;0
WeaponsManufacturingPlant ;0
WeaponsResearchLab ;0
WeaponSuperBeam ;0
WeaponTorpedo ;0
WeaponTractorBeam ;0
WeaponGravitonBeam ;0
WeaponAreaGravity ;0
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: AI wont use scaling option?

Post by rjord2021 »

To show that the image scaling works for AI-controlled ships, below is the same X-Wing as in the previous picture but with

ImageScaling ;Absolute 500

Image
Attachments
AIScaling2.jpg
AIScaling2.jpg (345.85 KiB) Viewed 164 times
sneo24
Posts: 17
Joined: Sun Nov 04, 2018 7:00 pm

RE: AI wont use scaling option?

Post by sneo24 »

I see what you did. My intention was to reduce the scale mostly of escorts, frigates and ore mining bases. But is like you said, there is a lot to consider.

Thank you very much!
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: AI wont use scaling option?

Post by rjord2021 »

ImageScaling ;Absolute ranges from 10 to 1000..... if you want escorts, frigates and ore mining bases to be smaller you can go as far down as ImageScaling ;Absolute 10.

With the highet value of ImageScaling ;Absolute 1000 I doubt you would ever need to go above 1000..... but that depends on the graphic being used.

I ise Imagescaling absolute as I found it gave me the best results on a pixel basis.
Post Reply

Return to “Distant Worlds 1 Series”