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.
  • K3Nv2 @ K3Nv2:
    Crazy people actually spend $50 on that stuff
  • BigOnYa @ BigOnYa:
    Towelie runs my farm, he's awesome.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    BigOnYa @ BigOnYa: Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.