123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|476|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Console Coding -> SmileBASIC Switch - Sale

Page : 1 2 3 Prev 4
Next
Posted : Monday, 01 August 2022, 08:26
spinal
Screenshots to the rescue!



Invert colours, reduce palette, Online OCR, cleanup...



Probably only about 95% correct, but a good start.

-=-=-
Check out my excellent homepage!
Posted : Thursday, 04 August 2022, 14:54
Jayenkai
Answer : Not well.
The quality of a Switch's jpeg is shockingly poor.
I mean lost look at this..

Cropped and Zoomed.


It's horrific!!!!
I guarantee, that hasn't been falsified.. That's literally how bad the screenshots on a Switch are.
Aaack..

The white isn't even 255,255,255 all the way through.
How on earth are you supposed to extract data from that kind of a screenshot?

Good grief..

Full image of data

-=-=-
''Load, Next List!''
Posted : Friday, 05 August 2022, 03:54
spinal
What about a coded pattern instead, something like a QR code? If your using a screenshot, then you will always get the angle correct, so there will be no warping or anything like that. Even just straight up binary, theres a lot of screen space to use.

-=-=-
Check out my excellent homepage!
Posted : Friday, 05 August 2022, 04:13
Jayenkai
I was looking into QRCode Code about a week ago, and it blew my mind how overly complex it was!!!
Today I'm trying binary "0 or 255".. Will let you know in a short while how well it went.

(See tweet for the output!)

-=-=-
''Load, Next List!''
Posted : Friday, 05 August 2022, 04:26
spinal
wait, so I can make my gfx loader a 'tool' and load it from whatever project i'm in, then when it saves the image, it will save it in the current project?

-=-=-
Check out my excellent homepage!
Posted : Friday, 05 August 2022, 04:42
Jayenkai
Download JNK_Spriter and take a look at its code. > 4K4QQF3N4

-=-=-
''Load, Next List!''
Posted : Friday, 05 August 2022, 04:48
spinal
Today I'm trying binary "0 or 255"


So 3 bits per 'pixel'?

-=-=-
Check out my excellent homepage!
Posted : Friday, 05 August 2022, 05:00
Jayenkai

Yeah, well per square, anyway... :/
I've squeezed 4 JNKPlat levels down to this.

Format name at the top, then 4 sets of level data, then "FIN"
Seems to work out well enough.



-=-=-
''Load, Next List!''
Posted : Friday, 05 August 2022, 05:20
spinal
I bet that could be used to send source code also!

I bet meybe 3 or 4 levels of brightness could survive the jpg'ing...

-=-=-
Check out my excellent homepage!
Posted : Friday, 05 August 2022, 05:31
Jayenkai
Also, I'm actually using a 424x240 (3x scaled up) resolution. If you used a 1280x720 then it'd hold ...? 9* as much data, but .. would it be too small to be clear when screenshotted?

-=-=-
''Load, Next List!''
Posted : Friday, 05 August 2022, 05:47
spinal
Yeah, I wouldn't suggest hi-res, but keep it as integer multiples so It can be downscaled accurately.

-=-=-
Check out my excellent homepage!
Posted : Friday, 05 August 2022, 07:39
Jayenkai

There we go!!
I can now edit a level on the Switch and extract the level data from a screenshot, using a PHP script on the Mac.

OK, next job, build up a sturdy level editor.

> Reveal 🔎

Updated with screenshot of SmileBASIC code

-=-=-
''Load, Next List!''
Posted : Tuesday, 09 August 2022, 14:06
spinal
I wonder if I've found a bug...

I've put a check in my code to select the controller number by pressing L+R and the start. But if my fake controller is USB controller 2, it will not detect the buttons.

So either this doesn't do what I think it does...



OR smilebasic doesn't like 2 USB controllers?

-=-=-
Check out my excellent homepage!
Posted : Tuesday, 09 August 2022, 14:33
Jayenkai
Just a check.. Did you set up the Switch to two-controller mode?
You need to specify how many controllers you're going to be accessing. See "XCtrlStyle" command.

-=-=-
''Load, Next List!''
Posted : Tuesday, 09 August 2022, 15:17
spinal
Ah, OK. Silly me for assuming that it would automatically work.

Now to figure out why I can't decode a 2 colour bitmap correctly...

|edit|
Are variables supposed to be global? there seems to be a little inconcistancy with mine

-=-=-
Check out my excellent homepage!
Posted : Tuesday, 09 August 2022, 16:51
Jayenkai
As long as you declare them (var xyz) at the top, they should be. Anything not declared seems to be pot luck

I think the rule is, if you start using a variable, then go into a function, that function has access to the parent's variable.
But if you hop into a function start using a variable, then come back out and carry on using it, it doesn't carry the value..
Basically, its less "global" and more stack based..
The earlier you register it, the more you can use it.

-=-=-
''Load, Next List!''
Posted : Thursday, 18 August 2022, 04:58
spinal


Had to write the old driver by hand because every library I found used Serial to print debug data, which is not included in the switch controller usb stack.

-=-=-
Check out my excellent homepage!
Posted : Thursday, 18 August 2022, 05:07
Jayenkai
Epic!
I look forward to the results.
Page : 1 2 3 Prev 4
Next