haroldo-ok / BlocklyVN8bit

This is a mashup between BlocklyVN32X and 8Bit-Unity. It allows you to make Visual Novels for classic 8bit computers and consoles, using a visual scripting language.
Apache License 2.0
11 stars 0 forks source link

finishing game! #43

Open zartan9 opened 1 year ago

zartan9 commented 1 year ago

hi im finally finishing my game! i figured the error below is caused by adding " " into say text! I see the window text can be moved, can the option text also be moved down below? Also can background sound be added to a game? thanks 64\VIC2.c(41): Warning: Integer constant is long unity\C64\VIC2.c(42): Warning: Integer constant is long unity\C64\VIC2.c(43): Warning: Integer constant is long unity\C64\VIC2.c(58): Warning: Integer constant is long unity\C64\VIC2.c(59): Warning: Integer constant is long unity\C64\VIC2.c(60): Warning: Integer constant is long projects/secret/src/vn_engine.c(72): Warning: Control reaches end of non-void function projects/secret/src/vn_engine.c(72): Warning: Variable 'selected' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'charW' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'spaceW' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'i' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_option_1' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_2' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_3' is defined but never used projects/secret/src/generated_script.c(46): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(78): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(91): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(126): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(128): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(130): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(134): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(164): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(165): Error: ')' expected projects/secret/src/generated_script.c(165): Error: ';' expected projects/secret/src/generated_script.c(165): Error: Undefined symbol: 'Guard'

haroldo-ok commented 1 year ago

Hello!

zartan9 commented 1 year ago

ok great! Im also almost done with the sega engine game cant wait to show you these (i can always update once/if it gets gif/vid support for sega)! hope you like them.

haroldo-ok commented 1 year ago

Good luck! I can't wait!

zartan9 commented 1 year ago

hi just testing exportin to platforms. Atari Im not sure what to press next, and how can I set up lynx ? also apple The system cannot find the path specified. apple2gen.exe or something . Oric shows a picture but when i press 1 or any key nothing happens. Lastly the c64 works, which is my main platform :) on one of the games it says : Compilation failed! Error: Failed to copy file. any ideas what that is? t thanks. erratari errlynx

haroldo-ok commented 1 year ago

In theory, it should just work; I would need the full log, in order to see what went wrong.

zartan9 commented 1 year ago

ok bit by bit.. this is for apple 64k the first log is from a game that outputs to c64.. the second log still for apple 64k is from a game that errors outputing to c64 (hoping to find/fix the error(s)) i can wait to send the other platform logs if you want these 1 at a time... :)

Loading project... The project was loaded!

Starting compilation... The file was saved: src/generated_script.c The file was saved: secret.builder The chunk file was saved: chunks-atari.txt The chunk file was saved: chunks-apple.txt The chunk file was saved: chunks-c64.txt The chunk file was saved: chunks-lynx.txt The chunk file was saved: chunks-oric.txt Compilation done!

Building and starting emulator...

C:\Users\zarta\OneDrive\Desktop\BlocklyVN8bit-0.3.0\BlocklyVN8bit-0.3.0\8bit-Unity\build>echo off A subdirectory or file apple already exists. --------------- CONVERT ASSETS --------------- DONE! --------------- COMPILE PROGRAM --------------- unity\charmap.c(235): Warning: Parameter 'palette' is never used unity\charmap.c(355): Warning: Converting pointer to integer without a cast unity\charmap.c(356): Warning: Converting pointer to integer without a cast unity\charmap.c(357): Warning: Converting pointer to integer without a cast unity\charmap.c(358): Warning: Converting pointer to integer without a cast unity\charmap.c(363): Warning: Converting pointer to integer without a cast unity\charmap.c(367): Warning: Converting pointer to integer without a cast unity\charmap.c(414): Warning: Variable 'dst' is defined but never used unity\charmap.c(414): Warning: Variable 'col' is defined but never used unity\chunks.c(138): Warning: Converting pointer to integer without a cast unity\chunks.c(211): Warning: Converting pointer to integer without a cast unity\music.c(96): Warning: Converting pointer to integer without a cast unity\music.c(98): Warning: Converting pointer to integer without a cast unity\net-base.c(83): Warning: Control reaches end of non-void function unity\net-base.c(83): Warning: Parameter 'ip' is never used unity\net-url.c(80): Warning: Parameter 'timeOut' is never used unity\net-tcp.c(52): Warning: Parameter 'slot' is never used unity\net-udp.c(44): Warning: Converting pointer to integer without a cast unity\net-udp.c(55): Warning: Parameter 'slot' is never used unity\net-web.c(50): Warning: Parameter 'port' is never used unity\net-web.c(50): Warning: Parameter 'timeOut' is never used unity\net-web.c(70): Warning: Parameter 'buffer' is never used unity\net-web.c(70): Warning: Parameter 'length' is never used unity\net-web.c(80): Warning: Parameter 'buffer' is never used unity\net-web.c(80): Warning: Parameter 'length' is never used unity\net-web.c(107): Warning: Parameter 'timeOut' is never used unity\print.c(164): Warning: Variable 'dataAux' is defined but never used unity\print.c(583): Warning: Converting pointer to integer without a cast unity\print.c(584): Warning: Converting pointer to integer without a cast unity\sfx.c(184): Warning: Converting pointer to integer without a cast unity\sfx.c(250): Warning: Converting pointer to integer without a cast unity\sfx.c(256): Warning: Converting pointer to integer without a cast unity\sprites.c(230): Warning: Parameter 'cols' is never used unity\sprites.c(230): Warning: Parameter 'spriteColors' is never used unity\sprites.c(243): Warning: Parameter 'index' is never used unity\sprites.c(243): Warning: Parameter 'offset' is never used unity\sprites.c(243): Warning: Parameter 'color' is never used unity\sprites.c(284): Warning: Converting pointer to integer without a cast unity\sprites.c(303): Warning: Converting integer to pointer without a cast unity\sprites.c(429): Warning: Converting pointer to integer without a cast unity\sprites.c(456): Warning: Converting pointer to integer without a cast unity\Apple\files.c(55): Warning: Converting integer to pointer without a cast unity\Apple\files.c(57): Warning: Converting integer to pointer without a cast unity\Apple\files.c(77): Warning: Converting integer to pointer without a cast unity\Apple\files.c(93): Warning: Converting pointer to integer without a cast unity\Apple\files.c(109): Warning: Converting pointer to integer without a cast unity\Apple\hires.c(40): Warning: Converting integer to pointer without a cast projects/secret/src/vn_engine.c(72): Warning: Control reaches end of non-void function projects/secret/src/vn_engine.c(72): Warning: Variable 'selected' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'charW' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'spaceW' is defined but never used projects/secret/src/vn_engine.c(224): Warning: Expression result unused projects/secret/src/vn_engine.c(225): Warning: Expression result unused projects/secret/src/vn_engine.c(231): Warning: Variable 'i' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_option_1' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_2' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_3' is defined but never used projects/secret/src/generated_script.c(46): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(78): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(91): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(126): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(128): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(130): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(134): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(164): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(166): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(168): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(170): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(173): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(205): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(207): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(209): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(211): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(247): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(297): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(303): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(305): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(307): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(309): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers Reading "build/apple/secret.bin", loading from $0803 to $8546. Crunching from $0803 to $8546. Phase 1: Instrumenting file

Length of indata: 32067 bytes.

Instrumenting file, done.

Phase 2: Calculating encoding

pass 1: optimizing ..

size 99611.0 bits ~12452 bytes pass 2: optimizing ..

size 99408.0 bits ~12426 bytes pass 3: optimizing ..

size 99367.0 bits ~12421 bytes pass 4: optimizing .. Calculating encoding, done.

Phase 3: Generating output file

Enc: 1111222134138A5D,2122,2132222244556679,433556677899ADCE Length of crunched data: 12450 bytes. Crunched data reduced 19617 bytes (61.18%) Literal sequences are used, length 1 sequences are used, length 123 mirrors are not used, max length used is 8190 and the safety offset is 2. Target is self-decrunching Apple ][+ executable, jmp address $0803. Writing "build/apple/loader" as AppleSingle, saving from $0803 to $39C0. Memory layout: |Start |End | Crunched data | $0801| $38A2| Decrunched data | $0803| $8546| Decrunch table | $0334| $03D0| Decruncher | $00FD| $01BB| and $EF,$EB,$EC,$ED,$EE Decrunch effect writes to $07F7. Decruncher: |Enter |During|Exit | IRQ enabled | 1| 1| 1| DONE! --------------- APPLE DISK BUILDER --------------- The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 1 file(s) copied. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 'Applewin.exe' is not recognized as an internal or external command, operable program or batch file. DONE Press any key to continue . . .

// Loading project secret Loading project... The project was loaded!

Starting compilation... The file was saved: src/generated_script.c The file was saved: secret.builder The chunk file was saved: chunks-atari.txt The chunk file was saved: chunks-apple.txt The chunk file was saved: chunks-c64.txt The chunk file was saved: chunks-lynx.txt The chunk file was saved: chunks-oric.txt Compilation done!

Building and starting emulator...

C:\Users\zarta\OneDrive\Desktop\BlocklyVN8bit-0.3.0\BlocklyVN8bit-0.3.0\8bit-Unity\build>echo off A subdirectory or file apple already exists. --------------- CONVERT ASSETS --------------- DONE! --------------- COMPILE PROGRAM --------------- unity\charmap.c(235): Warning: Parameter 'palette' is never used unity\charmap.c(355): Warning: Converting pointer to integer without a cast unity\charmap.c(356): Warning: Converting pointer to integer without a cast unity\charmap.c(357): Warning: Converting pointer to integer without a cast unity\charmap.c(358): Warning: Converting pointer to integer without a cast unity\charmap.c(363): Warning: Converting pointer to integer without a cast unity\charmap.c(367): Warning: Converting pointer to integer without a cast unity\charmap.c(414): Warning: Variable 'dst' is defined but never used unity\charmap.c(414): Warning: Variable 'col' is defined but never used unity\chunks.c(138): Warning: Converting pointer to integer without a cast unity\chunks.c(211): Warning: Converting pointer to integer without a cast unity\music.c(96): Warning: Converting pointer to integer without a cast unity\music.c(98): Warning: Converting pointer to integer without a cast unity\net-base.c(83): Warning: Control reaches end of non-void function unity\net-base.c(83): Warning: Parameter 'ip' is never used unity\net-url.c(80): Warning: Parameter 'timeOut' is never used unity\net-tcp.c(52): Warning: Parameter 'slot' is never used unity\net-udp.c(44): Warning: Converting pointer to integer without a cast unity\net-udp.c(55): Warning: Parameter 'slot' is never used unity\net-web.c(50): Warning: Parameter 'port' is never used unity\net-web.c(50): Warning: Parameter 'timeOut' is never used unity\net-web.c(70): Warning: Parameter 'buffer' is never used unity\net-web.c(70): Warning: Parameter 'length' is never used unity\net-web.c(80): Warning: Parameter 'buffer' is never used unity\net-web.c(80): Warning: Parameter 'length' is never used unity\net-web.c(107): Warning: Parameter 'timeOut' is never used unity\print.c(164): Warning: Variable 'dataAux' is defined but never used unity\print.c(583): Warning: Converting pointer to integer without a cast unity\print.c(584): Warning: Converting pointer to integer without a cast unity\sfx.c(184): Warning: Converting pointer to integer without a cast unity\sfx.c(250): Warning: Converting pointer to integer without a cast unity\sfx.c(256): Warning: Converting pointer to integer without a cast unity\sprites.c(230): Warning: Parameter 'cols' is never used unity\sprites.c(230): Warning: Parameter 'spriteColors' is never used unity\sprites.c(243): Warning: Parameter 'index' is never used unity\sprites.c(243): Warning: Parameter 'offset' is never used unity\sprites.c(243): Warning: Parameter 'color' is never used unity\sprites.c(284): Warning: Converting pointer to integer without a cast unity\sprites.c(303): Warning: Converting integer to pointer without a cast unity\sprites.c(429): Warning: Converting pointer to integer without a cast unity\sprites.c(456): Warning: Converting pointer to integer without a cast unity\Apple\files.c(55): Warning: Converting integer to pointer without a cast unity\Apple\files.c(57): Warning: Converting integer to pointer without a cast unity\Apple\files.c(77): Warning: Converting integer to pointer without a cast unity\Apple\files.c(93): Warning: Converting pointer to integer without a cast unity\Apple\files.c(109): Warning: Converting pointer to integer without a cast unity\Apple\hires.c(40): Warning: Converting integer to pointer without a cast projects/secret/src/vn_engine.c(72): Warning: Control reaches end of non-void function projects/secret/src/vn_engine.c(72): Warning: Variable 'selected' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'charW' is defined but never used projects/secret/src/vn_engine.c(146): Warning: Variable 'spaceW' is defined but never used projects/secret/src/vn_engine.c(224): Warning: Expression result unused projects/secret/src/vn_engine.c(225): Warning: Expression result unused projects/secret/src/vn_engine.c(231): Warning: Variable 'i' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_option_1' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_2' is defined but never used projects/secret/src/vn_engine.c(231): Warning: Variable 'mn_choice_3' is defined but never used projects/secret/src/generated_script.c(46): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(78): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(91): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(126): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(128): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(130): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(134): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(164): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(166): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(168): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(170): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(173): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(205): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(207): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(209): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(211): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(247): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(297): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(303): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(305): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(307): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers projects/secret/src/generated_script.c(309): Warning: Pointer assignment to 'char ' from 'const char ' discards qualifiers Reading "build/apple/secret.bin", loading from $0803 to $8546. Crunching from $0803 to $8546. Phase 1: Instrumenting file

Length of indata: 32067 bytes.

Instrumenting file, done.

Phase 2: Calculating encoding

pass 1: optimizing ..

size 99611.0 bits ~12452 bytes pass 2: optimizing ..

size 99408.0 bits ~12426 bytes pass 3: optimizing ..

size 99367.0 bits ~12421 bytes pass 4: optimizing .. Calculating encoding, done.

Phase 3: Generating output file

Enc: 1111222134138A5D,2122,2132222244556679,433556677899ADCE Length of crunched data: 12450 bytes. Crunched data reduced 19617 bytes (61.18%) Literal sequences are used, length 1 sequences are used, length 123 mirrors are not used, max length used is 8190 and the safety offset is 2. Target is self-decrunching Apple ][+ executable, jmp address $0803. Writing "build/apple/loader" as AppleSingle, saving from $0803 to $39C0. Memory layout: |Start |End | Crunched data | $0801| $38A2| Decrunched data | $0803| $8546| Decrunch table | $0334| $03D0| Decruncher | $00FD| $01BB| and $EF,$EB,$EC,$ED,$EE Decrunch effect writes to $07F7. Decruncher: |Enter |During|Exit | IRQ enabled | 1| 1| 1| DONE! --------------- APPLE DISK BUILDER --------------- The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 1 file(s) copied. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 'Applewin.exe' is not recognized as an internal or external command, operable program or batch file. DONE Press any key to continue . . . Loading project secretpart2 Loading project... The project was loaded!

Starting compilation... The file was saved: src/generated_script.c The file was saved: secretpart2.builder Compilation failed! Error: Failed to copy file. Failed to run emulator!

zartan9 commented 1 year ago

secretpart2 - Copy.zip hi still cant figure out just says failed. maybe you can find something? thanks

haroldo-ok commented 1 year ago

Hello; it will still take a few days before I have access to my computer, again; does the problem only happen in the Apple II?

zartan9 commented 1 year ago

ahh no rush. it happens on c64 and other platforms... not sure why the other games im workin on seem to work (at least on c64)... thanks.

haroldo-ok commented 1 year ago

Okay, found the cause: two of the images were actually jpg images, instead of png

Corrected project: issue43.zip

I also opened issues #50, #49, #48, #47, #46, #45 and #44 with the problems found while testing.

zartan9 commented 1 year ago

thanks great all 3 parts work for c64 now! not so much for other platforms but thats ok im focused on commodore for this game! Ill send the choice4genesis game Im workn on and when the vcs editor gets more features id like to use that too! retro gaming hooray!!! wuold be cool if ai/chatgpt could be trained to make a c64 game/engine! thanks.

haroldo-ok commented 1 year ago

Thanks for your interest! ;)