07th-mod / 07th-mod/umineko-answer
Crash in ep5 with gap effect [spoiler]
- Lingua principale
- Python
- Stelle
- 29
- Fork
- 8
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
We had a crash reported at this scene in episode 5:

Gaap says this, drops to the bottom of the screen (obviously meant to represent her putting a hole under herself) and then the application crashes. I can't seem to get past it. Any tips?
These are the text files the pinned messages said to post after having it crash in debug mode. I'm running it on Windows, and the laptop I'm using is an ROG Strix, if that's the name I should be looking for.
[stderr(3).zip](https://github.com/07th-mod/umineko-question/files/9255563/stderr.3.zip)
```
langen:dwave_eng 0, "voice\32\53700095.ogg":^ ......Leave it to me. I'll handle it."^\
textoff
ut_mld l,":b;sprites\gap\1\gap_a11_warai3.png",80
wait 500
mov %Free2,5
for %Free1 = 1 to 32
msp msp_l,0,%Free2
print 1
inc %Free2
next
se1 52
mcl l,0
bg black,28
bg new_g1f_s1bp,0
_ld r,":b;sprites\bea\1\bea_a11_majime4.png",22
```
I thought this was due to the animation effect not having any delay in it. But with this code:
```
langen:dwave_eng 0, "voice\32\53700095.ogg":^ ......Leave it to me. I'll handle it."^\
textoff
ut_mld l,":b;sprites\gap\1\gap_a11_warai3.png",80
wait 500
; mov %Free2,5
; for %Free1 = 1 to 32
; msp msp_l,0,%Free2
; print 1
; inc %Free2
; next
se1 52
mcl l,0
bg black,28
bg new_g1f_s1bp,0
_ld r,":b;sprites\bea\1\bea_a11_majime4.png",22
```
it still crashes
This version ended up fixing it
```
langen:dwave_eng 0, "voice\32\53700095.ogg":^ ......Leave it to me. I'll handle it."^\
; textoff
; ut_mld l,":b;sprites\gap\1\gap_a11_warai3.png",80
; wait 500
; mov %Free2,5
; for %Free1 = 1 to 32
; msp msp_l,0,%Free2
; print 1
; inc %Free2
; next
; se1 52
mcl l,0
; bg black,28
; bg new_g1f_s1bp,0
; _ld r,":b;sprites\bea\1\bea_a11_majime4.png",22
```
(the mcl is to clear a sprite from earlier)
Most (some?) of the for loop animations in the game look like this:
```
for %Free1 = 1 to 7
resettimer
add %Free3,%Free1
sub %Free4,%Free1
msp msp_l,%Free3,0
msp msp_r,%Free4,0
print 1
waittimer 20
next
```
Ideally, I'd go through and fix all the for loop animations to insert the wait. However it is strange that most people can play the game without crashing, even without the delay in for loop animations. BUt due to the above I don't think this is the real problem
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Il crash si verifica in una scena specifica con un effetto di animazione a ciclo for. Esamina i file di script intorno alla posizione del crash, probabilmente in uno script di scena per l'episodio 5. Osserva il codice di animazione che coinvolge comandi 'msp' e cicli for. Prova le modifiche eseguendo il gioco in modalità debug per vedere se l'aggiunta di un 'waittimer' o di un ritardo simile nel ciclo previene il crash. Controlla altre animazioni simili con cicli for nella codebase per coerenza.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- game-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100