Homebrew dsFont tool not working

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
67
Trophies
0
Age
23
XP
653
Country
United States
I am using a tool named dsFont in order to convert fonts to a suitable format to use in my nds homebrew game. I have tried using some of the built in fonts that are listed in the program, and converted them to a suitable format. However, when writing to text, it is not willing to appear on screen. I fear that I may have done something wrong during conversion, and I have tried redoing it multiple times.

Any suggestions?
 

Attachments

  • tFont.bmp
    37.1 KB · Views: 24
  • ds_text_test.zip
    674.7 KB · Views: 30

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,216
Trophies
2
Location
Tree
XP
3,508
Country
Poland
I see that there's empty first row in your font image, maybe you can fix with crop in any graphic editor. Also there's error in source code as it says.. your program creates layer 0 for text on screen 1, but next is trying to display text on layer 1 that doesn't exist, and max x,y for text is [32.24]. Also after any changes there's need to update from buffer to vram with NF_UpdateTextLayers();
 

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
67
Trophies
0
Age
23
XP
653
Country
United States
I see that there's empty first row in your font image, maybe you can fix with crop in any graphic editor. Also there's error in source code as it says.. your program creates layer 0 for text on screen 1, but next is trying to display text on layer 1 that doesn't exist, and max x,y for text is [32.24]. Also after any changes there's need to update from buffer to vram with NF_UpdateTextLayers();

So I tried going with a completely different font, but I did what you suggested, and cropped it to be 256 x 256, and have no missing rows. However, even then, it still doesn't show up on screen.
 

Attachments

  • ds_text_test_edited.zip
    674 KB · Views: 25
  • font.bmp
    65.1 KB · Views: 28

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,216
Trophies
2
Location
Tree
XP
3,508
Country
Poland
Ok, i see, as for me there's something wrong in documentation of NF_CreateTextLayer. I guess third argument is not rotation but orientation (0 - horizontal, or 1 - vertical) 2 - gives nothing so it seems text doesn't show up.
 

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
67
Trophies
0
Age
23
XP
653
Country
United States
Ok, i see, as for me there's something wrong in documentation of NF_CreateTextLayer. I guess third argument is not rotation but orientation (0 - horizontal, or 1 - vertical) 2 - gives nothing so it seems text doesn't show up.

I think I've tried every number for the rotation argument, but it still does not seem to show up.
 

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,216
Trophies
2
Location
Tree
XP
3,508
Country
Poland
ok, it worked and it's working on my side, but i also added two lines that you had in your previous code:
NF_DefineTextColor(1,0,0,31,31,31);
NF_SetTextColor(1,0,0);
but It should work whitout it, maybe something wrong with palette file, idk.
 

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
67
Trophies
0
Age
23
XP
653
Country
United States
ok, it worked and it's working on my side, but i also added two lines that you had in your previous code:
NF_DefineTextColor(1,0,0,31,31,31);
NF_SetTextColor(1,0,0);
but It should work whitout it, maybe something wrong with palette file, idk.

I don't even know at this point. I used the grit tool with the batch files so there really should be no way that the palette file is scuffed, but crazier things have happened....
 

Project68K

Well-Known Member
OP
Newcomer
Joined
Nov 12, 2020
Messages
67
Trophies
0
Age
23
XP
653
Country
United States
ok, it worked and it's working on my side, but i also added two lines that you had in your previous code:
NF_DefineTextColor(1,0,0,31,31,31);
NF_SetTextColor(1,0,0);
but It should work whitout it, maybe something wrong with palette file, idk.

Aight. Got it working. I was using a windows setup. I simply switched to a my laptop Ubuntu setup, and it worked. Even more reasons to love Linux :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Probably not I got cross play friends
    +1
  • K3Nv2 @ K3Nv2:
    By then I'll have some little mini pc anyway
  • ZeroT21 @ ZeroT21:
    only ps5 updated to latest firmware can go on psn, jailbroken ones just don't use psn or they risk getting flagged or banned, altho spouting profanity in online play alredy does that
  • K3Nv2 @ K3Nv2:
    Keep current Gen consoles stock mod last gen imo
  • DinohScene @ DinohScene:
    Anyone dumb enough to get banned for spouting profanity deserves it.
    +1
  • Y @ YuseiFD:
    Then how come you do it and don't get banned ? or is it a question of getting caught doing it ?
  • BakerMan @ BakerMan:
    wtf is the point of banning swearing in games? that's utterly a dumb decision

    the new generation playing MWII won't be as hardened as the previous one playing original MW2
  • Veho @ Veho:
    What's the point of video games? Kids playing video games won't be as hardened as the previous ones getting shoved down a hillside.
    +2
  • BakerMan @ BakerMan:
    exactly my point
  • BakerMan @ BakerMan:
    kids, yall are fucking pussies, grow some asshair before you even dare touch My Friend Peppa Pig or Mario's Early Years
    +1
  • Bunjolio @ Bunjolio:
    ddddddddddddddddddddddd
  • Bunjolio @ Bunjolio:
    my fingie hurt
  • HiradeGirl @ HiradeGirl:
    Why?
  • Bunjolio @ Bunjolio:
    hangnail thing I think
  • BakerMan @ BakerMan:
    ... that's rough buddy
  • Psionic Roshambo @ Psionic Roshambo:
    This parrot is no more it has ceased to be!
  • Bunjolio @ Bunjolio:
    peepee
  • K3Nv2 @ K3Nv2:
    Roll them little snake eyes in
    +1
  • ZeroT21 @ ZeroT21:
    :wacko: rolling?
    +1
  • AncientBoi @ AncientBoi:
    make up his mind dude
    AncientBoi @ AncientBoi: make up his mind dude