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

Page : 1 2 3 Prev 4 5 Next
Mon, 01 Aug 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!
Thu, 04 Aug 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!''
Fri, 05 Aug 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!
Fri, 05 Aug 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!''
Fri, 05 Aug 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!
Fri, 05 Aug 2022, 04:42
Jayenkai
Download JNK_Spriter and take a look at its code. > 4K4QQF3N4

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


So 3 bits per 'pixel'?

-=-=-
Check out my excellent homepage!
Fri, 05 Aug 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!''
Fri, 05 Aug 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!
Fri, 05 Aug 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!''
Fri, 05 Aug 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!
Fri, 05 Aug 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!''
Tue, 09 Aug 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!
Tue, 09 Aug 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!''
Tue, 09 Aug 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!
Tue, 09 Aug 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!''
Thu, 18 Aug 2022, 04:58
spinal


Had to write the oled 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!
Thu, 18 Aug 2022, 05:07
Jayenkai
Epic!
I look forward to the results.
Thu, 25 Aug 2022, 15:05
spinal
Arduino part driving me crazy again.



I don't have enough RAM left to just dump the filenames into an array, so I tried just listing all the files each time, but it stops working when fileNumber = 9 (sometimes 8).... no idea why yet.

-=-=-
Check out my excellent homepage!
Mon, 31 Oct 2022, 04:26
spinal



Finally decided to get back to this...

-=-=-
Check out my excellent homepage!
Mon, 31 Oct 2022, 05:27
Jayenkai
.. not sure what's going on there!!
Mon, 31 Oct 2022, 06:50
rockford
I'm sure there's some logic there, but like Jay, I haven't got a clue what's going on there either.
Mon, 31 Oct 2022, 07:13
spinal
Oh, you guys will like it. The logic is only partially in place, finding it tricky to code on the switch, it think the editor is a bit crap.

-=-=-
Check out my excellent homepage!
Mon, 31 Oct 2022, 07:50
Jayenkai
What's wrong with the editor? I haven't had any issues.
My biggest issue with the language in general is that I keep leaving out then's in multi-line if's.

-=-=-
''Load, Next List!''
Mon, 07 Nov 2022, 16:28
spinal


Apparently I have a type mismatch error in 637 that I just can't see

Update buttons is called first.


Edit. Fixed

-=-=-
Check out my excellent homepage!
Mon, 14 Nov 2022, 03:06
spinal

View on YouTube

Very simple game, struggling to code it, but still, very simple game.

Turn over a card, the number value of that card dictates how many moves you have to make befor turning over the next card. There are of course other rules to be added, obvious "card doesn't have a number value" situations, but that's all taken care of in my head.

-=-=-
Check out my excellent homepage!
Page : 1 2 3 Prev 4 5 Next