a2-4am / 4cade

100s of games at your fingertips, as long as your fingertips are on an Apple ][
https://archive.org/details/TotalReplay
MIT License
153 stars 21 forks source link

4cade compilation error #544

Closed QUIZASERAQ closed 1 year ago

QUIZASERAQ commented 1 year ago

Hello From Germany, I tried compiling the latest code on win10 today..

Unfo it does not find 'asmprelaunch' .. and gives me two indexing errors..
with runtime errors in MS JScript 'buildpre.js(11, 1)' and 'addfile.js(4, 1)'

.hdv has been generated but wont continue to boot in AppleWIn right after TOTAL REPLAY logo.

Is this an error on my side or can you help fixing it? Thanks

Q.

peterferrie commented 1 year ago

try "winmake clean" first, every time now.

QUIZASERAQ commented 1 year ago

already did.. and made sure the build folder is wiped.. but it does not solve the problem..

philtimmes commented 1 year ago

You must go into Windows Defender settings, and set Windows Defender to ignore the 4cade folder

peterferrie commented 1 year ago

what was the last "indexing" string that it showed before the error?

QUIZASERAQ commented 1 year ago

WIndows Defender was already off.. but I added an exclusion for that folder to be sure.. didn't help..

QUIZASERAQ commented 1 year ago

image

QUIZASERAQ commented 1 year ago

Am off Keyboard now, thx for investigation.. but no pressures.. can also wait for next binary release..

peterferrie commented 1 year ago

I would like to solve this rather than you waiting. When you return, does a "build/PRELAUNCH.INDEXED" directory exist?

philtimmes commented 1 year ago

Try typing chcp 437 on the command line before running winmake dsk.

QUIZASERAQ commented 1 year ago

Jep, does exist but is empty..

I would like to solve this rather than you waiting. When you return, does a "build/PRELAUNCH.INDEXED" directory exist?

QUIZASERAQ commented 1 year ago

Try typing chcp 437 on the command line before running winmake dsk.

image

Does not help.. PRELAUNCH.INDEXED empty again

peterferrie commented 1 year ago

I overlooked the first error. asmprelaunch target is not found. Please attach your winmake.bat. Maybe a bad download? Perhaps the answer will become clear.

QUIZASERAQ commented 1 year ago

Well.. i just dlded the package two days ago and did not alter anything.. winmake.zip

peterferrie commented 1 year ago

I thought that the file might be truncated, which is why asmprelaunch could not be found, but that is not the reason. Please change the first line of winmake to "rem @echo off", then run "winmake dsk > debug.txt", then send the debug.txt.

QUIZASERAQ commented 1 year ago

well.. did so.. that debug.txt shows less then console did.. debug.txt

does the path play a role.. i did compile it in c:/4cade/4cade-main

QUIZASERAQ commented 1 year ago

That cdmd output s like before.. do i need to update JScript or anything.. sorry the noob questions.. am no coder nor Win proof

Das Sprungziel - asmprelaunch wurde nicht gefunden. C:\4cade\4cade-main\bin\buildpre.js(11, 1) Laufzeitfehler in Microsoft JScript: Die Datei wurde nicht gefunden. C:\4cade\4cade-main\bin\addfile.js(4, 1) Laufzeitfehler in Microsoft JScript: Die Datei wurde nicht gefunden.

peterferrie commented 1 year ago

I don't think that you need to update anything, but the debug.txt should contain more text than that. Please delete the "@echo off" line entirely, save the winmake.bat, and then run "winmake.bat > debug.txt". The debug.txt should contain lines like "rem 4cade Makefile for Windows" if it worked.

peterferrie commented 1 year ago

I don't think the path is the problem, but I will try building it that way to be sure.

QUIZASERAQ commented 1 year ago

wow.. that took def longer to compile.. at least u got st to read now ;-) debug.txt

peterferrie commented 1 year ago

does this print "1", "2", "3" if you run "winmake dsk"? winmake.zip

QUIZASERAQ commented 1 year ago

echoes: "1" "2" building prelaunch..."3"

QUIZASERAQ commented 1 year ago

Puts this into build folder:image

QUIZASERAQ commented 1 year ago

afk for today.. have a good one..

peterferrie commented 1 year ago

when you return, does this also print "1", "2", "3" when you "winmake dsk"? winmake.zip

QUIZASERAQ commented 1 year ago

that one went through all steps:

C:\4cade\4cade-main>winmake dsk building fx...done "1" "2" building prelaunch...done "3" building demos...done converting gamehelp...done indexing prelaunch...done indexing titles...done indexing gamehelp...done indexing slideshows...done indexing fx...done indexing (d)hgr action...done indexing (d)gr action...done indexing shr...done indexing demos...done indexing single-loaders...done indexing search...done preparing index file...done

C:\4cade\4cade-main>

.. but the built .hdv says UNABLE TO LOAD PRODOS in AppleWIn

peterferrie commented 1 year ago

.. but the built .hdv says UNABLE TO LOAD PRODOS in AppleWIn

I expected that. To make your testing faster, I disabled the final step. However, I think that means my other fix worked. Please download the latest version and retest.

peterferrie commented 1 year ago

Ah, now I know the cause. It's a line-ending issue on Windows. Until I can solve this automatically, you can open the winmake.bat in Microsoft Word, Save As plain text, select "Windows encoding". Then it will work as it's supposed to.

QUIZASERAQ commented 1 year ago

Well.. it compiles fine now.. but.. sorry to tell u.. the.hdv loading still seems to be broken.. hangs on home screen.. seems to continuously read from HD but does only show TR logo.. tried on both AppleWin for WIndows and MicroM8 for OSX.. Screen Shot 2023-04-18 um 09 48 58

peterferrie commented 1 year ago

That's some progress, at least. Please attach the .hdv, so that I can compare with a working version.

QUIZASERAQ commented 1 year ago

4cade.zip

wow.. there seems to be just some air in it... although file size is 31,9 MB (33.553.920 Bytes)

peterferrie commented 1 year ago

No files in there. If your winmake.bat has a "goto:EOF" next to the line that says "echo|set/p="adding files...", then remove the "goto:EOF" line (or download again from the repo).

QUIZASERAQ commented 1 year ago

sry.. that goto was not there.. anyhow I dlded again whole package.. but result still crappy.. 4cade.zip

peterferrie commented 1 year ago

you have Cadius in your path? That's needed for the final step.

philtimmes commented 1 year ago

Make sure it's the cadius in the readme.md... the first one that comes up in Google searches does not work.

On Tue, Apr 18, 2023, 11:31 AM Peter Ferrie @.***> wrote:

you have Cadius in your path? That's needed for the final step.

— Reply to this email directly, view it on GitHub https://github.com/a2-4am/4cade/issues/544#issuecomment-1513623701, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ5LB76MSOOZDWZXTZVUVTXB3MXRANCNFSM6AAAAAAW7QVGY4 . You are receiving this because you commented.Message ID: @.***>

QUIZASERAQ commented 1 year ago

afk right now.. will check tomorrow.. although I am quite sure I got this one: https://www.brutaldeluxe.fr/products/crossdevtools/cadius/Cadius_v1.1.zip and put it in path env.. should'nt it give a error messy if wrong version or installment?

peterferrie commented 1 year ago

we require https://github.com/mach-kernel/cadius because we're using a switch that the other one doesn't support, and will refuse to run. That might explain why there are no files in the image.

QUIZASERAQ commented 1 year ago

you should update the readme for WIndows then. It points to orig version!?: You will need

and.. Is there a precompiled Win version of the mach-kernel cadius avail somewhere? I do not want to run into another compilation maze ;-) Thanks

peterferrie commented 1 year ago

yes, I will update this. The first link points to the correct version, but the second one (that you show) does not. prebuilt version: http://pferrie.epizy.com/misc/tmp/cadius.zip

QUIZASERAQ commented 1 year ago

Yiiihaaaa... we made it! Using correct cadius did the trick.. have the 484 games version running without probs! THANK YOU!

btw.. i accidentially hit ? outside the front page and found that game control hints pages. That new? Did never realize they exist. always thought ? works on front page only.. you def should indicate that function somewhere...

btw#2.. there do exist some JoyStick/ButtonFix versions.. at least I know for BANDITS (button 1 for fire) and APPLE PANIC and GORGON (JoyControl).. can provide them if needed...

Great project that brings back nostalgic feeling every time I power up mi Pi4... keep on rolling and let me know in case u need a tester or supporter anyhow.

Cheers from Germany!

Q.

peterferrie commented 1 year ago

Yiiihaaaa... we made it! Using correct cadius did the trick.. have the 484 games version running without probs! THANK YOU!

Yay!

btw.. i accidentially hit ? outside the front page and found that game control hints pages. That new? Did never realize they exist. always thought ? works on front page only.. you def should indicate that function somewhere...

The title screen says "press ? for help". We didn't want to add it to all of the other pages. It's been there for a long time. Many games are missing their help files, and we'd love help to fill in the gaps. :-)

btw#2.. there do exist some JoyStick/ButtonFix versions.. at least I know for BANDITS (button 1 for fire) and APPLE PANIC and GORGON (JoyControl).. can provide them if needed...

Please send them.

Great project that brings back nostalgic feeling every time I power up mi Pi4... keep on rolling and let me know in case u need a tester or supporter anyhow.

Thanks.

QUIZASERAQ commented 1 year ago

The title screen says "press ? for help". We didn't want to add it to all of the other pages. It's been there for a long time. Many games are missing their help files, and we'd love help to fill in the gaps. :-)

No need to add it to all page.. maybe just include in help page again.. 4Cade Help Idea

Do you have a special template for the Game Hints pages.. will help when i find some time..

QUIZASERAQ commented 1 year ago

btw#2.. there do exist some JoyStick/ButtonFix versions.. at least I know for BANDITS (button 1 for fire) and APPLE PANIC and GORGON (JoyControl).. can provide them if needed... Please send them.

Attached the altered games:

Plus some other games I like that you may consider adding to the collection(s)!?

hth

Q. 4CADE SUPPORT.zip

peterferrie commented 1 year ago

The title screen says "press ? for help". We didn't want to add it to all of the other pages. It's been there for a long time. Many games are missing their help files, and we'd love help to fill in the gaps. :-)

I understand now. I will see if I can fit one more line. We don't control the vertical spacing, so it's going to be tight.

peterferrie commented 1 year ago

Attached the altered games:

  • Apple Panic and Gorgon now playable with Joystick

I like that very much.

  • Lode Runner with buttons switched for more intuitive hole digging

I had some other people ask for this, too. It seems like a popular change.

  • Bandit with Shield set to Button 1 (instead of space)

I will check on this. Shield is 'S', space is for shooting, in our version.

Plus some other games I like that you may consider adding to the collection(s)!?

Thanks. I will see what I can do with the space that we have left.

a2-4am commented 1 year ago

Eliminator is already in as Exterminator.

Night Flight is already in as Battle Cruiser.

Triple Arcade Insanity is a set of Arcade Machine games, which we will not include.

Word Munchers is an educational game, which we generally do not include. Likewise Robot Odyssey.

Cytron Masters could only be included if we could forward-port it to work on all supported Apple II models (incl. IIgs), and even then I'm not sure it's a good fit.

a2-4am commented 1 year ago

We already have the Applesoft version of Woz's Breakout.

QUIZASERAQ commented 1 year ago
  • Bandit with Shield set to Button 1 (instead of space) I will check on this. Shield is 'S', space is for shooting, in our version.

After CTRL-P when bandits arrive - the one I sent is Btn0 for fire and Btn1 for shield.... just played it few mins ago ;-)