Main Menu

Issue with print #1 command

Started by xboxisfinished, 07 Aug, 2021, 03:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SamuraiCrow

#15
Reading method:
-------------------

Load "dh1:amos/code/test/level0.dat", 16
Bank Code ROR.w 16, 5
Bank Code xor.w 16, $a55a
For Height=0 to 49
  For Width=0 to 49
      offset=Leek((Height*49+Width)*4+Start(16))
      LEVELGETCARD$(Width, Height)=Peek$(12001+Start(16) + Offset)
      LEVEL(Width, Height)=Peek(Start(16)+9604+(49*Height+Width))
  Next Width
Next Height
Erase Bank 16

Save:
StringLength=0
For Height=0 to 49
   For Width=0 to 49
      LevelGetCard$(width, height)=LevelGetCard$(width,height)+Chr$(0)
      StringLength=StringLength+Len(LevelGetCard$(width,height))
    Next width
Next Height
Reserve as work bank 16, (StringLength+12001+3) And Not 3
Offset=12001
For Height=0 to 49
   for Width=0 to 49
        Poke$(start(16)+offset),VarPtr(LevelGetCard$(Width,Height))+2
        Loke Start(16)+(49*Height+Width)*4,offset
        offset=offset+Len(LevelGetCard$(Width,Height))
        Poke start(16)+(49*height+width)+9604, level(width,height)
   Next Width
Next Height

Bank Code xor.w 16, $a55a
Bank Code ROL.w 16, 5
save"dh1:amos/code/test/level0.dat",16
Erase bank 16


I changed the encryption commands to something that should fully reverse itself.  It seems odd that the "Bank code mix.w" command doesn't have an inverse.  I also chose bank 16 for you and encryption keys.  Hopefully this should work.

Please credit me for my work if you release your game publicly.  My name is Samuel D. Crow.

xboxisfinished

IT IS A DEAL!! DEAL!! DEAL!! DEAL!! DEAL!!!

SamuraiCrow

I fixed a typo in the save loop.  It wasn't writing the level bytes correctly.

xboxisfinished


SamuraiCrow


xboxisfinished

I do not know if it is too late for you to read this, since we closed it by saying thank you. I will try again though, in hopes you can still reply here or else I may need to make an entire new post. The extension AMCAF is not working. I am having a hard time installing it. I keep getting the same error message even after placing it in slot 5 and typing the name exactly. What advice do you have?

SamuraiCrow

Is the file in the right directory?

xboxisfinished


SamuraiCrow


xboxisfinished

#24
That!!




Problem with that is...that once this happens...replacing the config file again with a backup before changes doesn't do anything. I need to delete everything, restart the system, THEN AND ONLY then, extra lha again back for it to work. It is a dramatic reinstall.


It doesn't matter if this is the original AMOS or AMOS Unity with added features that is in current development. This happens regardless. It doesn't matter if it is in WinUAE or on my Amiga 500 or Vampire 4. This happens again and again and again.

SamuraiCrow

Are there any directories inside APSystem?

xboxisfinished

#26
No. By the way, I am going to post this publicly for download with donation button. Any money coming in donation, even if it is a 1 dollar you are getting 50% royalty for helping in additional to getting full credit.

I will be putting under credit screen:

Programming By:
XboxOwn
<YOUR NAME> not SamuraiCrow as you told me to put it

This will give people the idea you have 50% if not more input in it's development, in additional you get 50% royalty for any money generated as donation.


xboxisfinished

I only copied AMCAF to APSysem...should I also copy amos.library, explore.library and powerpacker.library to the libs directory too?

SamuraiCrow

Put powerpacker.library and explode.library in Libs: and see if it helps.  The custom Amos.lib shouldn't be required.

xboxisfinished