Homebrew Homebrew game Project (nfLib) random colours being turned transparent on tiled background

MrMoneyBags100

Member
OP
Newcomer
Joined
Oct 1, 2021
Messages
6
Trophies
0
Age
23
XP
117
Country
United Kingdom
On a project I am working on I am trying to create my own backgrounds and use them, the problem with the backgrounds I make is that they will often just pick one of the colours being used and set that as the transparency.
I was thinking this is likely an issue with either my GRIT bat conversion or perhaps the config of my images in GIMP.
I have created a branch on my github for this project called "BGTransparentBug" where the entire compiled project so far can be found
(https://github.com/MrMoneyBags100/NDS_Game/tree/BGTransparentBug)
If anyone is able to help I can be contacted alot easier from my discord: MrMoneyBags#9573


Original file
1705598337935.png

1705598401249.png


Output on emulator/hardware (the squiggle is a test sprite):

1705598287152.png





The following is the bat file I am running to convert all the .png files in its directory


Code:
@echo off

:: Process all PNG files using grit
for %%F in (*.png *.bmp) do (
    C:\devkitPro\tools\bin\grit "%%F" -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
)

:: Rename BIN files (remove .bin extension)
for %%F in (*.bin) do (
    move "%%F" "%%~nF"
)

:: Move PAL, IMG, MAP files to the specified directory
move *.pal *.img *.map C:\devkitPro\examples\nds\MYTESTGAME\nitrofiles\Bg



Code for loading and drawing the background
1705598315065.png


GIMP Config settings for the file / GIMP Config settings for converting project to .png
1705597543502.png
1705597438282.png
 

Attachments

  • 1705597762814.png
    1705597762814.png
    5.4 KB · Views: 17
  • 1705598036681.png
    1705598036681.png
    8.2 KB · Views: 13
  • 1705598086594.png
    1705598086594.png
    19.5 KB · Views: 10

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • S @ salazarcosplay:
    hunter x hunter
  • S @ salazarcosplay:
    he has not allowed anyone to continue it for him for example
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, theres a dragon ball af mod for budokai 3
  • Xdqwerty @ Xdqwerty:
    updated ship of harkinian, gonna install some hd texture pack
  • Xdqwerty @ Xdqwerty:
    I might download rayman revolution for my ps3
  • BigOnYa @ BigOnYa:
    I may try the new ram site, and download more RAM to my Switch. Not sure if ddr3 is the right ram
    for it tho. Edit- no it uses floppy Ram, just like @AncientBoi
    +1
  • Xdqwerty @ Xdqwerty:
    aeiou
  • BigOnYa @ BigOnYa:
    And sometimes Z
  • SylverReZ @ SylverReZ:
    @K3Nv2, MAGA supporters be wearing tin foil hats lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
    NinStar @ NinStar: people are so dramatic that I can't even tell if they are being serious