#HaxeNXCompiler: Create homebrew with Haxe for the Nintendo Switch!

1 messages · Page 3 of 1

blissful otter
#

me pongo es mmd de foto de perfil

analog oasis
#

A no jodas- XDD

blissful otter
#

hola pibes

analog oasis
#

Perfecto, ahora me da ganas de romperte la cara solo pq le quiero romper la cara al sprigatito 4k

blissful otter
#

damn

whole turtle
#

it actually works

analog oasis
whole turtle
analog oasis
#

Interesting

#

Vupx Engine is extremely unstable in emulation xd

#

Well, today is an important day... For us at least, OpenFL on a Switch and without Lime's special console backend

blissful otter
#

felicidad

rough lichen
#

eres un cabron JAJAJAJA

#

buenisima

analog oasis
#

A la final si se podía xD, tenias tu razón

rough lichen
#

@analog oasis Porque no podias usar cairo?

analog oasis
#

Siempre pude, solo era un archivo de Cairo y otra librería que tenían conflictos menores al compilar a la Switch

#

Pero yo desde un inicio en septiembre había desactivado Cairo porque tipo, no lo necesitaba o no confiaba que fuera a funcionar

#

Pero, ni modo, si OpenFL lo necesita tons lo necesita xD, y cuando puse Cairo nuevamente finalmente funcionó

rough lichen
analog oasis
analog oasis
#

Done, and now everything is automated with a simple command to generate everything

blissful otter
lavish roost
#

osea todo menos audio

analog oasis
analog oasis
analog oasis
analog oasis
analog oasis
#

But anyway, now the part about obtaining a build of a Lime project for the Nintendo Switch is fully functional
lime test switch is finally real

analog oasis
analog oasis
#

I only saw that with GamepadInput, it doesn't register anything, but I don't know if it's a real problem or if that sample is very old and doesn't work correctly with the current OpenFL/Lime

#

Well, seeing this, it seems that the only thing left is the audio issue with OpenAL.
Later, I'll see if I can solve that, and if I succeed, I'll take the leap and try HaxeFlixel

whole turtle
#

and then flxwii menu on switch now 😈

analog oasis
#

No?

whole turtle
#

i mean i will do it

#

reread

analog oasis
#

Ah, ok xD

analog oasis
blissful otter
analog oasis
#

I think those things are already directly OpenGL, so then it works fine xd

blissful otter
#

i have a quite big project in opengl - lime if you wanna try

analog oasis
analog oasis
rough lichen
#

What u can use rn of the lime backend

analog oasis
analog oasis
#

._.XDD

blissful otter
#

nintendo ds support when

analog oasis
blissful otter
#

nice

analog oasis
#

Now yes, audio working heh
And... the touchscreen too?
(from OpenFL Samples -> media -> PlayingSound)

blissful otter
#

ok now test flix-

analog oasis
#

Yeah yeah But first, I want to look at the icons for the project.

blissful otter
analog oasis
#

Literally a.. MouseEvent? Ok..?

blissful otter
#

its makes sense

compact lynx
#

Very cool stuff!

rough lichen
#

test flixel test flixel test flixel

blissful otter
#

demanda popular se debe cumplir

analog oasis
blissful otter
#

salamie-

analog oasis
#

I had to fork Flixel because I'm sure I'll have to modify it, well, after seeing what happens in this first compilation

rough lichen
analog oasis
analog oasis
#

Okay, but I don't know exactly where this stupid program crashes. Thanks, addr2line.

rough lichen
#

whay

analog oasis
#

idk

#

The crash is here..?

static function initRenderMethod():Void
    {
        #if !flash
        renderMethod = switch (stage.window.context.type)
        {
            case OPENGL, OPENGLES, WEBGL: DRAW_TILES;
            default: BLITTING;
        }
        #else
        #if web
        renderMethod = BLITTING;
        #else
        renderMethod = DRAW_TILES;
        #end
        #end

        #if air
        renderMethod = BLITTING;
        #end

        renderBlit = renderMethod == BLITTING;
        renderTile = renderMethod == DRAW_TILES;

        FlxObject.defaultPixelPerfectPosition = renderBlit;
    }
blissful otter
#

damn, adobe air support

#

thats wild

rough lichen
#

where exactly

analog oasis
rough lichen
#

pq ahi no veo nada q explicitamente te diga el error

#

funciona el crash stack de hxcpp en tu entorno?

analog oasis
#

craseha antes de llegar al segundo Sys.println

analog oasis
blissful otter
rough lichen
#

para sacarnos de dudas

analog oasis
#

voy

#

craseha justo en stage.window.context.type, supongo que pruebo a imprimir uno por uno no?

#
stage: [object Stage]
stage.window: [object Window]
stage.window.context: null
#

mmm

rough lichen
#

en contexto de rendering es null

#

eso creo q es por parte de lime

#

como habias dibujado el triangulo en openfl antes?

blissful otter
#

porque flixel usa Lib.current.stage y no Lib.application.window.stage

#

que raro

analog oasis
#

erga, deja vuelvo a probar ese ejemplo a ver si tambien crashea

#

por querer sacarme de dudas

#

a esperar unos buenos minutos a que compile xD

blissful otter
#

si funciona el ejemplo tambien deberia funcionar flixel

#

no se cual stage usa el sprite principal de openfl

#

pero el Context3D usa el mismo stage, y ahi accede a context tambien

analog oasis
#

se, me confunde un poco, pense que habiendo podido incluso con un ejemplo de 3d en oepnfl, flixel de primeras no iba a ser un problema

rough lichen
#

x eso esta raro

rough lichen
analog oasis
#

deja espero a que compile la vaina del triangulo a ver

#

crasheo..

#

uh..

#

yava algo le debi errar en el build.xml del lime

blissful otter
#

damn

analog oasis
#

voy a retroceder a donde bueno, aun no habia soporte de OpenAL

#

alli funcionaba..

#

que mierda mas rara alv

#

sin esto en el project.xml tambien craseha

<!-- Forzar OpenGL y deshabilitar Cairo para Switch -->
    <haxedef name="lime-opengl" if="switch" />
    <haxedef name="lime-cairo" value="false" if="switch" />
    <set name="LIME_CAIRO" value="0" if="switch" />
    <set name="LIME_OPENGL" value="1" if="switch" />
#

lo habia puesto a lo random cuando aun no sabia que necesitaba cairo

#

pero despues pos siempre lo deje?

#

y el ejemplo de flixel es un xml que no tenia eso

#

ok voy a probar con flixel con esa cosa en el xml tambien?

analog oasis
#

no pero, hablo de la cosa del triangulo

#

en ese ejemplo, sin eso en el xml, tambien crashea

#

voy a ver en flixel si que resulta

#

Pq OpenGL ES? Yo quería OpenGL normal-

analog oasis
# analog oasis AJA!

Bueno listo
@blissful otter @rough lichen @lavish roost
Allí tienen su HaxeFlixel

lavish roost
#

esa que no tiene casi nada po

analog oasis
blissful otter
#

increible

analog oasis
#

La del ludum dare?

blissful otter
#

mejor intenta compilar Mode, no era tu objetivo?

analog oasis
#

Se, igualmente iba a eso

#

Pero ya será mañana

lavish roost
#

a velda

#

mode

analog oasis
#

Ando con tremendo dolor de cabeza pq me estreso ese crash random xd

blissful otter
#

suele pasar con hxcpp

analog oasis
analog oasis
#

Pero bueno listo, HaxeFlixel funcionando sobre GL ES por alguna razón (ya eso no es culpa mía, es lo que reporta Lime o OpenFL xD)

lavish roost
#

yo estaba webeando con otra cosa

analog oasis
#

Cuanto y envío ese video en #flixel y #fnf xD

lavish roost
#

asi es mas interesante

analog oasis
#

se, es verdad

blissful otter
#

en mi caso usa webgl

analog oasis
analog oasis
#

bueno ya tenemos HaxeFlixel en Switch XD

#

en una semana hice mas progreso que hace meses con este tema de Lime, ni yo lo entiendo

analog oasis
rough lichen
analog oasis
rough lichen
#

Mode corre si o si

#

Funkin... creo que hxvlc, el funk vis y otras cosas serian un problema

analog oasis
#

No se si funcione con, bueno mi Lime y el HaxeFlixel si puede ser el de ellos xd

#

No importa si fuera a portear fnf iría por la demo esa o... No se, primero Mode y de allí se ve más adelante

rough lichen
#

yyy si

#

el 0.2.7 talvez?

analog oasis
#

Podría tener más chances creo

#

Que hace Funk.vis?

#

Hxvlc es, bueno entiendo que vlc y y ya xD, tal vez haya chance si se recompila a Switch, pero no creo sin al menos cambios

blissful otter
analog oasis
#

Bueno, aun que esta foto es de hace más de un año y es en la Wii U

#

No estamos tan alejados de eso sea una realidad en la Switch jeje

blissful otter
#

wow

#

post it in flixel

analog oasis
#

Yeah heh

analog oasis
analog oasis
lavish roost
#

porque eso no lo vi en la doc de lime ni flixel

analog oasis
#

Openfl

lavish roost
#

eso lo exlica

analog oasis
#

Es una variable que está en el project.xml de Mode

#

Y, solo añade el contador de FPS de OpenFL si esta definido SHOW_FPS xd

#

Pero osea, el código de eso esta en el juego, yo tampoco he visto eso definido en alguna documentación

blissful otter
#

capaz lo quitaron

#

la demo de mode es algo antigua

analog oasis
#

Asumo eso también para el tema del lag?

#

Es primera vez que honestamente juego Mode xD

#

Well, this was a success.
Although I have doubts about things like FlxSave, and I don't like that everything is stored in RomFS (because it makes the final file very heavy and takes a long time to transfer to the console)

lavish roost
#

i love this thread, one sec we talk on spansih, and the next minuite we start to talk in english

analog oasis
analog oasis
#

I was going to say something here, but I'd better say it in #1202383067373637642

blissful otter
#

:v

analog oasis
# analog oasis Well, this was a success. Although I have doubts about things like FlxSave, and ...

I don't know why all this reminds me of this video
https://youtu.be/JUNdWnI5BTk

Head to https://squarespace.com/mattkcbytes to save 10% off your first purchase of a website or domain using code MATTKCBYTES

Ever thought you would see LEGO Island on the iPhone? Or running completely inside an everyday web browser? In this video, we take a look at the rapidly-progressing porting effort that has resulted from the recently comp...

▶ Play video
analog oasis
#

Just, bruhhhhh

analog oasis
blissful otter
#

XD

#

im just placing an 'XD' in the first comment

analog oasis
#

Perfect

#

Well, with that Psych Engine, I have no chance of getting it to work properly with mod support enabled. Everything just breaks, and it can't find the assets properly.
I don't know how it was in the case of Psych ports to Android, but at least for me, I can't figure out the problem. I give up.
At best, I'm only able to launch a build of Psych, but without mod or script support xd

analog oasis
#

Well, in the end, the HaxeNXCompiler project reached its limit :3

blissful otter
#

its peak*

analog oasis
#

So...
Now that Switch Funkin has been released, I don't really have much to do with it. I don't plan on modifying it much because I don't know how to do that either. I wanted to modify it enough so that it would work on Switch

#

I guess I'll continue with Vupx Engine and OffBeat, which is really a game and a project that I'm even more interested in, but also more difficult for me to sustain (since I have Lime and OpenFL with OpenGL...), but I think it's better for me to see something created from scratch and... Not with Lime or directly HaxeFlixel, which, to be honest, doesn't impress me or matter that much

lavish roost
#

portea la demo de lurum dare de fnf

analog oasis
lavish roost
#

Es más ni pregunté

#

En ra

#

En fa/jk

rough lichen
#

enseñame a usar nx compiler y hago vslice para switch

#

no joda

analog oasis
#

No necesitas HaxeNXCompiler, lo integre en Lime

#

El V-slice el único detalle que tiene es su fork de Lime

#

Y según que depende de ese fork, por lo que.. Descarte probar con el mio

#

Y el uso de un .hxp como archivo de proyecto me termino de descartar la idea

rough lichen
#

osea que podriamos portear 0.3

#

que creo que tampoco tiene fork de lime

#

creo q el fork de lime se hizo para las texturas ASTC

analog oasis
#

Si buscas que versión preferiblemente no tiene fork de Lime, puedes hacer el intento o me dices y yo hago el intento

#

Osea, si se puede compilar hasta CNE xD

#

Pq no un V-slice (que no tenga esas cosas que dije ps)

quiet junco
rough lichen
quiet junco
analog oasis
#

E igualmente allí no funcionan los controles y tuve que modificar un poquito StringTools.hx

analog oasis
rough lichen
quiet junco
analog oasis
#

Pero es que si.. Tiene código de hecho

#

En el TitleState tiene código para gamepads, pero, o.. No estaba definido en el project.xml o algo así o el Flixel estaba roto, simplemente no funcionaba

quiet junco
#

Codename siendo un buen engine 👅

analog oasis
#

No se, para mi fue suficiente y me hizo feliz que compilara y por lo menos abriera xd

#

El que quiera CNE en Switch qué lo haga por su cuenta, ya ven que es al menos posible empezarlo

quiet junco
rough lichen
#

puedes correr funkin modchart en switch

#

en psych obviamente

quiet junco
analog oasis
quiet junco
#

o iba con tirones o una tontera asi

analog oasis
#

Pero en las builds no está compilado

analog oasis
analog oasis
# rough lichen e?

Que tiene la librería y esta definido el código para iniciar el manager xd

rough lichen
#

aah

quiet junco
analog oasis
rough lichen
#

hace poco retome funkin modchart y recree el funcionamiento de actor frames

quiet junco
rough lichen
#

los playfields ahora son LITERALMENTE flx sprites

#

por lo q puedes usar

#

xy

#

origin

#

offset

#

scale

#

angle

#

velocity

quiet junco
#

peak 🔥

analog oasis
rough lichen
#

clip rect en la proxima update

analog oasis
quiet junco
analog oasis
quiet junco
#

y con los shaders de lluvia a cuanto iba? xD

#

o solo explotaba

analog oasis
#

Iba a.. 28-31 FPS

quiet junco
quiet junco
rough lichen
analog oasis
analog oasis
quiet junco
#

👅

quiet junco
analog oasis
#

El tema es que como es para una plataforma.. Medio que no todo el mundo tiene, pos se que desafortunadamente el engine quedará medio dentro de un nicho

analog oasis
#

I was looking for a FNF mod to record on Switch Funkin showing the console to upload it to YouTube, but I hate that now it seems like the only thing the mods port is V-slice and that's it, no Psych Engine, and I need mods made in the mod folder for Psych

analog oasis
analog oasis
#

Maybe my Lime-NX is paying off heh

analog oasis
#

F for FNF Rewriten / Vanilla Engine, which no longer stand a chance against the real FNF on this console XD

blissful otter
#

dayum

#

months of work paid off

analog oasis
# blissful otter months of work paid off

If it's just Lime, it really took less than a week. In five days, I already had Psych running on the console.
If it's hxcpp and HaxeNXCompiler in general... Then yes, months xd

blissful otter
#

peak

analog oasis
#

I hate that V-slice, since the first version on GitHub (0.3.2), already used a fork of Lime

blissful otter
#

one question, why

#

why they forked lime

analog oasis
#

Optimizations or changes that Lime does not originally have, perhaps

#

If my project were a library that adds a target (as Lime originally expects) instead of a complete fork, perhaps, and I had a better chance of using it in conjunction with that Lime, but I don't know how to do that, and I can't even guarantee that it would work with any Lime

#

Because ever since I had to modify the submodules that Lime doesn't originally touch, I knew then that I didn't have a good chance of making that library

blissful otter
#

well, if you dont take in count compiling and that stuff

analog oasis
blissful otter
#

hashlink sucks

#

sometimes

analog oasis
#

Total Lime-NX will remain as a fork of Lime 8.2.2 (as reported by Lime xd) from mid-September 2025 When I really need to update to a newer version of Lime, I'll see what to do, since I already know the basics that need to be modified (some submodules, build.xml, and some of Lime's backend, mainly the SDL and OpenGL)

These may sound like minor changes, but they are not the kind I would like to do again for now..

analog oasis
#

liblime.a from the Lime fork that uses V-Slice

blissful otter
#

bro fr wants vslice in the switch 😱

analog oasis
blissful otter
#

holy peak

analog oasis
#

I don't understand why FunkinCrew's Lime has so many changes, or at least recent changes, but then V-slice uses a specific branch according to hmm.json. I don't see the point

#

Well, the changes are based on the branch used by the game, not the latest version on GitHub

analog oasis
# analog oasis Not me, I don't want v-slice directly on Switch, FunkinNXTeam will take care of ...

It turns out that since I had to redo Lime-NX twice in a row, well... There really aren't many changes, or rather, the errors tell you directly what changes need to be made, and that's it.

The most annoying thing is OpenAL (FunkinCrew's is impossible to compile on Switch or even Linux, so I used Lime-NX's... I don't know what problem it causes) and the build.xml, which is long and annoying..

#

But otherwise... It's easy to port the Switch implementation xd

analog oasis
#

(I'll post it later on #1202383067373637642 xd)

whole turtle
analog oasis
analog oasis
whole turtle
#

i wonder how it doesnt crash with polymod

analog oasis
whole turtle
#

idk, because of how much fuss you had getting psych mods to work

analog oasis
#

Ahh... Well, it seems that V-slice has better control over assets, although I haven't tried the mods yet. There are more important things to do first, like getting all the inputs to work and preventing OpenAL from constantly crashing

quartz portal
#

mods do work, js tested one since I had it on hand

blissful otter
analog oasis
#

It's wonderful that autocomplete and the rest of vshaxe work perfectly and almost instantly here with Vupx Engine

#

Unlike HaxeFlixel projects, where it's more luck than anything else that it ends up working...

analog oasis
#

It has nothing to do with the project, it's just a Switch game, but I'm happy to leave it here... Besides, I don't really have anything to post about this project xd

blissful otter
#

it is [in my opinion] unnecessarily complex

analog oasis
#

y nada que ver con la Niko que made-

#

The problem lies with the Haxe extension; the Lime extension is relatively simple.

analog oasis
#

Well.. ALE Psych on Switch, just, that

#

(that lime-nx turned out to be more stable and functional than I expected)

blissful otter
#

increible

analog oasis
#

I'm thinking of making another separate post for more random and general things I do. This project is mostly finished, and Vupx Engine doesn't really inspire me to continue it at the moment.

Any suggestions for the name?

blissful otter
#

or something like that

#

:v

analog oasis
#

Mmmm

#

Idk, I'd rather hear other options yet

lavish roost
analog oasis
lavish roost
#

i want abterrer modloader

#

...

#

or maybe should i do that

#

...

analog oasis
#

The most I could idealize is that Atmosphere, while it loads mods, loads all the mods that are in the corresponding game folder.
What it could do is, from the list of games, see which mods are in those directories, and if you want to disable it, the mod is moved to another directory outside of there, for example to my program's own directory, and when you activate it, it is copied back to where it should be. But I don't like the idea of copying files from one place to another