Problem with TGA files
Moderator: Moderators
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Problem with TGA files
How to reduce the size of files .tga? 'm doing a Side mod to replace the original Rep.lvl, but the textures are very large with 16mb each, how can I reduce their size? my side already has 1Gb! 
Last edited by 15Cyber on Sat Oct 04, 2014 1:44 pm, edited 2 times in total.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Problem with TGA files
O.O
You should change the resolution of the files. 1024x1024 is very big for a side, but some have this size. Most have 512x512. What's your size??
You should change the resolution of the files. 1024x1024 is very big for a side, but some have this size. Most have 512x512. What's your size??
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Re: Problem with TGA files
2048x2048 O.oAnakin wrote:O.O
You should change the resolution of the files. 1024x1024 is very big for a side, but some have this size. Most have 512x512. What's your size??
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Problem with TGA files
Remember that each time you scale a texture up or down, you're multiplying or dividing its size by 4.
As an example, a 2048² texture will be 4 times as large as a 1024² texture.
A unit's texture should never be larger than 1024² under pretty much any circumstances.
As an example, a 2048² texture will be 4 times as large as a 1024² texture.
A unit's texture should never be larger than 1024² under pretty much any circumstances.
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Re: Problem with TGA files [Solved]
Thank you masters ! , reduce images to 512x512, and have not lost a lot of high quality,the files are now 1mb 
EDIT
You know how to fix this problem? every time I finish a stage in Galactic conquest this happens.
Double posting is against the RULES; please EDIT your post instead -Staff
EDIT
You know how to fix this problem? every time I finish a stage in Galactic conquest this happens.
Code: Select all
Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(634)
Allocating 411020 bytes attempt failed - no free blocks left in Heap 5 (Runtime)
Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(538)
Allocating 411020 bytes failed - no free blocks left in Heap 5 (Runtime)
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Problem with TGA files [Solved]
It looks like your ram has not enough free space to allocate the given 411020 bytes (0,4MB)
Maybe your ram is full. How much have you installed?? And can you show us the line where you need to allocate 411020 bytes?? I use values maximal around 10^3. You have 10^5.
(don't know but i think the SetMemoryPool line allocates in bytes and not in Megabytes)
Maybe your ram is full. How much have you installed?? And can you show us the line where you need to allocate 411020 bytes?? I use values maximal around 10^3. You have 10^5.
(don't know but i think the SetMemoryPool line allocates in bytes and not in Megabytes)
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Re: Problem with TGA files [Solved]
Anakin wrote:It looks like your ram has not enough free space to allocate the given 411020 bytes (0,4MB)
Maybe your ram is full. How much have you installed?? And can you show us the line where you need to allocate 411020 bytes?? I use values maximal around 10^3. You have 10^5.
(don't know but i think the SetMemoryPool line allocates in bytes and not in Megabytes)
I have 2Gb Ram. where is the line that you said? in which file?
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Problem with TGA files
it's in the lua file.
2GB only?? can i may ask what operation System you are using?? Because even Windows 7 (x64) needs 2GB Ram for the system. So you maybe should upgrade your RAM
2GB only?? can i may ask what operation System you are using?? Because even Windows 7 (x64) needs 2GB Ram for the system. So you maybe should upgrade your RAM
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Re: Problem with TGA files
My lua:
Hidden/Spoiler:
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Problem with TGA files
Looks all normal. Have you tryed to start the game again??
If you open the task manager you should see how much RAM is used. If it's over 90% i'd say that's the problem. You could send the map/mod to someone with more ram to try if it works for him.
If you open the task manager you should see how much RAM is used. If it's over 90% i'd say that's the problem. You could send the map/mod to someone with more ram to try if it works for him.
-
15Cyber
- Private Second Class
- Posts: 67
- Joined: Wed Sep 17, 2014 12:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Brazil
Re: Problem with TGA files
Anakin wrote:Looks all normal. Have you tryed to start the game again??
If you open the task manager you should see how much RAM is used. If it's over 90% i'd say that's the problem. You could send the map/mod to someone with more ram to try if it works for him.
Ok, thanks , i will try .
