Homebrew Can't compile sf2dlib

Status
Not open for further replies.

MistWisp

Well-Known Member
OP
Member
Joined
Aug 29, 2016
Messages
165
Trophies
0
Age
31
XP
218
Country
Brazil
I have no idea how can i fix this, if someone can help me on this

pu3nxcf.png
 

MistWisp

Well-Known Member
OP
Member
Joined
Aug 29, 2016
Messages
165
Trophies
0
Age
31
XP
218
Country
Brazil
So, another question, how to i display [and clear] some text on the screen if i'm using sf2dlib, when i try to start the console [after i set the background with sf2dlib] i get a glitched top screen
 

MistWisp

Well-Known Member
OP
Member
Joined
Aug 29, 2016
Messages
165
Trophies
0
Age
31
XP
218
Country
Brazil
So, another question, how to i display [and clear] some text on the screen if i'm using sf2dlib, when i try to start the console [after i set the background with sf2dlib] i get a glitched top screen
Well looks like i'm on my own this time, ok
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,036
Country
United States
Well looks like i'm on my own this time, ok
The ctrulib console implementation sets the frame buffer format and writes to it directly so it is not directly compatible with sf2dlib as it uses the 3D hardware. So you can either use the bottom screen for the console and the top screen for sf2dlib or you can use something else for displaying text.
 
  • Like
Reactions: Wolfvak

MistWisp

Well-Known Member
OP
Member
Joined
Aug 29, 2016
Messages
165
Trophies
0
Age
31
XP
218
Country
Brazil
The ctrulib console implementation sets the frame buffer format and writes to it directly so it is not directly compatible with sf2dlib as it uses the 3D hardware. So you can either use the bottom screen for the console and the top screen for sf2dlib or you can use something else for displaying text.
Yeah, i got this working by using sftdlib
https://github.com/xerpi/sftdlib
 

RoundOxytocin

Member
Newcomer
Joined
Sep 22, 2020
Messages
16
Trophies
0
Age
47
XP
136
Country
Hungary
I'm pretty sure i do have this but i'll try thanks

--------------------- MERGED ---------------------------

So i compiled and everything went fine, no errors, but when i try to compile a project that uses it, this happens
MuPXRzV.png

Did you add -lsf2d to the front of the LIBS?
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    i have a placeholder enemy sprite i made
  • S @ salazarcosplay:
    or have it that you don't know you are a cyborg, robot, and you find out and have a existential crisis
  • S @ salazarcosplay:
    or have it start in the virtual world and you are an ai that gained sentience
  • Xdqwerty @ Xdqwerty:
    btw gonna wash my face in a bit, my eyes feel tired
  • S @ salazarcosplay:
    and you convince your owner to help you break out of the virtual world to real world
  • BigOnYa @ BigOnYa:
    Eyes - "yawn"
    +1
  • S @ salazarcosplay:
    you bleack in to goverment computer systems to get cyborg schematics so you can get a robot body constructed
  • Xdqwerty @ Xdqwerty:
    btw @BigOnYa the health bar doesnt decrease when i take damage (and yes i put the "at the beggining of the scene change value of greenflatbar: set to Protagonistcopmode.Health::Health())
  • S @ salazarcosplay:
    i the protagonist
  • S @ salazarcosplay:
    human, robot, cyborg
  • S @ salazarcosplay:
    human with cyborg enhancements
  • S @ salazarcosplay:
    or like terminatior
  • S @ salazarcosplay:
    with living tissue
  • BigOnYa @ BigOnYa:
    @Xdqwerty there is health behaviour you can add to your character, then to use a health bar is lil more complicated, google n watch a few tutorial video on it, be too hard to explain here.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the character has the health behavior
  • BigOnYa @ BigOnYa:
    I know you have to create a health and health max variable. Then there is a calculation you use in code to subtract width size of the health bar. Google few vids.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the "greenflatbar" is one of the preset health bars btw
  • BigOnYa @ BigOnYa:
    Yea you can use any bar/sprite. It will just change the width. Ok good luck and have fun. I'm off to go shoot some pool at the bar. Talk to you later.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why does the health behavior exist if you can just use a variable?
  • Xdqwerty @ Xdqwerty:
    and nope the number still doesnt change
  • Xdqwerty @ Xdqwerty:
    ok im gonna make my own asset
  • Xdqwerty @ Xdqwerty:
    nvm i think i fixed it
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, I fixed it
    Xdqwerty @ Xdqwerty: @BigOnYa, I fixed it