svennd / vita-tetromino Goto Github PK
View Code? Open in Web Editor NEWTetris alike game written in lua for the PS VITA
License: GNU General Public License v3.0
Tetris alike game written in lua for the PS VITA
License: GNU General Public License v3.0
First check then drop the blocks maybe race condition ?
based on suggestion, add time/playtime.
Show an animation or something to indicate level up.
hold option for a tetris
About game, game count, all games, blocks, ...
level indication shows 0 during some times.
psp2dump analysed by Rinnegatamante and xyz
TETR00001
ID: 0x40010003
Stop reason: 0x30004 (Data abort exception)
Status: 0x1 (Running)
PC: 0x811d3f88 (lpp-vita.elf@1 + 0x180f88)
SceCommonDialogWorker
ID: 0x40010073
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
SceShellUtilClientThread
ID: 0x4001009b
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe0011064 (SceLibKernel@1 + 0x61c4)
SceGxmDisplayQueue
ID: 0x400100a7
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00115b4 (SceLibKernel@1 + 0x6714)
Audio Thread
ID: 0x400100ed
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0x8127b128 (lpp-vita.elf@1 + 0x228128)
Audio Thread
ID: 0x400100ef
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
Audio Thread
ID: 0x400100f1
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0x8127b128 (lpp-vita.elf@1 + 0x228128)
Audio Thread
ID: 0x400100f3
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0x8127b128 (lpp-vita.elf@1 + 0x228128)
Audio Thread
ID: 0x400100f5
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
Audio Thread
ID: 0x400100f7
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
Audio Thread
ID: 0x400100f9
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
Audio Thread
ID: 0x400100fb
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
Mic Thread
ID: 0x400100fd
Stop reason: 0x0 (No reason)
Status: 0x8 (Waiting)
PC: 0xe00111a4 (SceLibKernel@1 + 0x6304)
=== THREAD "TETR00001" <0x40010003> CRASHED (Data abort exception) ===
DISASSEMBLY AROUND PC: 0x811d3f88 (ARM):
00180f78 <gc_sweep+0x48>:
180f78: e3540000 cmp r4, #0
180f7c: 0a00001b beq 180ff0 <gc_sweep+0xc0>
180f80: e3550000 cmp r5, #0
180f84: 0a000019 beq 180ff0 <gc_sweep+0xc0>
!!! e5d43005 ldrb r3, [r4, #5]
180f8c: e3530006 cmp r3, #6
180f90: 0a000011 beq 180fdc <gc_sweep+0xac>
180f94: e5d43004 ldrb r3, [r4, #4]
DISASSEMBLY AROUND LR: 0x811cd998 (ARM):
0017a988 <mem_alloc+0x10>:
17a988: e1a01004 mov r1, r4
17a98c: fa0267a0 blx 214814 <realloc>
17a990: e8bd8010 pop {r4, pc}
17a994: fa0260a5 blx 212c30 <free>
!!! e1a00004 mov r0, r4
17a99c: e8bd8010 pop {r4, pc}
0017a9a0 <adjuststack.isra.0.part.1>:
17a9a0: e92d41f0 push {r4, r5, r6, r7, r8, lr}
17a9a4: e1a06000 mov r6, r0
REGISTERS:
R0: 0x81530d60
R1: 0x81594680
R2: 0x3
R3: 0x4b
R4: 0x4749524f
R5: 0x7ffffef1
R6: 0x81530d60
R7: 0x40
R8: 0x812cc438
R9: 0x7fffff00
R10: 0x81594680
R11: 0x8127e5d4
R12: 0x0
SP: 0x81480e40
PC: 0x811d3f88 (lpp-vita.elf@1 + 0x180f88)
LR: 0x811cd998 (lpp-vita.elf@1 + 0x17a998)
STACK CONTENTS AROUND SP:
0x81480e00: 0x813d1f68 (lpp-vita.elf@2 + 0x51f68)
0x81480e04: 0x0
0x81480e08: 0x0
0x81480e0c: 0x81264319 (lpp-vita.elf@1 + 0x211319)
0x81480e10: 0x0
0x81480e14: 0x811cd978 (lpp-vita.elf@1 + 0x17a978)
0x81480e18: 0x81530d60
0x81480e1c: 0x40
0x81480e20: 0x812cc438 (lpp-vita.elf@1 + 0x279438)
0x81480e24: 0x811cd998 (lpp-vita.elf@1 + 0x17a998)
0x81480e28: 0x81530d60
0x81480e2c: 0x811d5a38 (lpp-vita.elf@1 + 0x182a38)
0x81480e30: 0x81599570
0x81480e34: 0x7ffffef3
0x81480e38: 0x81530d60
0x81480e3c: 0x811d3fd8 (lpp-vita.elf@1 + 0x180fd8)
SP => 0x81480e40: 0x81530d60
0x81480e44: 0x81530d60
0x81480e48: 0xff00
0x81480e4c: 0x811bfeb8 (lpp-vita.elf@1 + 0x16ceb8)
0x81480e50: 0x9
0x81480e54: 0x0
0x81480e58: 0xdeadbeef
0x81480e5c: 0x811d4c14 (lpp-vita.elf@1 + 0x181c14)
0x81480e60: 0x81530d60
0x81480e64: 0x81530d30
0x81480e68: 0x0
0x81480e6c: 0x811bfeb8 (lpp-vita.elf@1 + 0x16ceb8)
0x81480e70: 0x9
0x81480e74: 0x811bfe10 (lpp-vita.elf@1 + 0x16ce10)
0x81480e78: 0x81530d30
0x81480e7c: 0x81530d60
0x81480e80: 0x0
0x81480e84: 0x811c0198 (lpp-vita.elf@1 + 0x16d198)
0x81480e88: 0x813873b8 (lpp-vita.elf@2 + 0x73b8)
0x81480e8c: 0x815d9a48
0x81480e90: 0x1
0x81480e94: 0x0
0x81480e98: 0x81385a28 (lpp-vita.elf@2 + 0x5a28)
0x81480e9c: 0x400100d1```
IRC chat :
<xyz[m]> looks like heap corruption
could I get that from lua ?
btw i've seen you're using bitshift funcs
yes those work
<xyz[m]> if you look at r4 it's 0x4749524f
or "ORIG" in little endian
i've noticed with rinCheat SE i'm updating that i'm getting strange crashes too
dunno if lbit32 is kind of fucked
<xyz[m]> well your script shouldn't cause that, it's likely a bug in lpp
ORIG?
<xyz[m]> yes
<xyz[m]> if you hex decode it
<xyz[m]> that's what you get
<xyz[m]> try figuring where this comes from i guess
after game over leave some time to ajust the screen
feedback from https://www.reddit.com/r/vitahacks/comments/74h6cj/release_tetromino_tetris_clone_in_lua/
most tetris games have only 10 size field.
Looks like the icon in "vita-tetromino/sce_sys/livearea/contents/startup.png" is misspelled (or at least inconsistent).
"tetronimo" vs "tetromino"
Add menu ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.