Delete sun [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Delete sun [Solved]

Post by CdtFox »

I've made some edit on the stock Yavin 4 map, now it's the night instead of that grey sky.

My only problem is that the sun still remain, how i can delete this sun? I searched in the sky file but i didn't find any infos about the sun

Thx for the help :)

EDIT:

Well it was located in the fx file not sky one, i figured how to do it :D

For some reasons i got these errors:

Code: Select all

ERROR[PC_texturemunge world1\yavinx.tga]:TextureMunge(yavinx:92x92x1): Must have power of two dimensions!
ERROR[PC_texturemunge world1\yavinx.tga]:TextureMunge(yavinx:92x92x1): Must have power of two dimensions!
 [continuing]
ERROR[PC_texturemunge world2\yavX.tga]:TextureMunge(yavx:63x64x1): Must have power of two dimensions!
ERROR[PC_texturemunge world2\yavX.tga]:TextureMunge(yavx:63x64x1): Must have power of two dimensions!
 [continuing]
   4 Errors    0 Warnings
I checked with gimp and the texture have two dimensions: 92x92 why x1 too? It didn't crashed the map of course but I'm a bit curious about that.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Delete sun - [Solved] - now Yavin errors

Post by ARCTroopaNate »

Textures should generally be a power of two. 256x256, 512x512, 1024x1024 etc.
Last edited by ARCTroopaNate on Tue Jan 31, 2017 9:45 am, edited 1 time in total.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11079
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Delete sun - [Solved] - now Yavin errors

Post by Teancum »

92 is not a power of 2. A quick check with this table will help with that.

http://www.thealmightyguru.com/Pointless/PowersOf2.html

Also the other texture is 63x64, which won't work. In that case it must be 64x64
User avatar
AnthonyBF2
Sith
Sith
Posts: 1254
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Delete sun - [Solved] - now Yavin errors

Post by AnthonyBF2 »

If you're wondering why those textures are sized like that: simple, the mod tools for each game have tons of inconsistencies with their assets related to the base game. Often, some things in mod tools have to be added again, changed or deleted to work similar to it's original piece in the base game. On example of this is the Death Star having mismatched command posts and using a new Death Star world file results in no command posts in the small hangar. The fix was erasing all CPs and re-adding 1 - 6. Incorrect texture sizes are also another common thing in both game's tools.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Delete sun - [Solved] - now Yavin errors

Post by Marth8880 »

Also,
ARCTroopaNate wrote:1028x1028
it's 1024x1024, not 1028x1028. ;)
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Delete sun [Solved]

Post by ARCTroopaNate »

Edited: Whoops, my bad.
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Re: Delete sun - [Solved] - now Yavin errors

Post by CdtFox »

AnthonyBF2 wrote:If you're wondering why those textures are sized like that: simple, the mod tools for each game have tons of inconsistencies with their assets related to the base game. Often, some things in mod tools have to be added again, changed or deleted to work similar to it's original piece in the base game. On example of this is the Death Star having mismatched command posts and using a new Death Star world file results in no command posts in the small hangar. The fix was erasing all CPs and re-adding 1 - 6. Incorrect texture sizes are also another common thing in both game's tools.
mmh...yeah i see thx Anthony
Teancum wrote:92 is not a power of 2. A quick check with this table will help with that.

http://www.thealmightyguru.com/Pointless/PowersOf2.html

Also the other texture is 63x64, which won't work. In that case it must be 64x64
Thx for the tip Teancum
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Delete sun [Solved]

Post by thelegend »

1,267,650,600,228,229,401,496,703,205,376 x 1,267,650,600,228,229,401,496,703,205,376
Texture resolutions in year 3017. Could still work In swbf2 though.
Post Reply