GithubHelp home page GithubHelp logo

Comments (9)

dmsc avatar dmsc commented on June 21, 2024

Hi!

I don't completely understand your question.

Are you using the PC compiler?

Do you want to generate an ATR image with the Atari executable inside?

Have Fun!

from fastbasic.

drarem avatar drarem commented on June 21, 2024

Yes I'm using the PC compiler and created a large map using fastbasic. Want to be able to load/save or just integrate it directly into program. Able to generate and use the ATR image without having to manually create one would be ideal, but i would settle for even a bunch of DATA statements I can use for the program/game.

from fastbasic.

dmsc avatar dmsc commented on June 21, 2024

Hi!

To integrate data directly to the program, you can use the DATA FILE statement:

  DATA mydata() BYTEFILE "my-local-file.bin"

This will read the binary file "my-local-file.bin" into your program, as the mydata() byte array. You can also use "WORDFILE" for reading as a word array.

Note that this does not work in the Atari compiler, only using the PC compiler.

Is this what you need?

Have Fun!

from fastbasic.

drarem avatar drarem commented on June 21, 2024

from fastbasic.

dmsc avatar dmsc commented on June 21, 2024

Hi!

You can run the XEX directly in the emulator, you don't need an ATR.

Or I still don't really understand your use case :(

Have Fun!

from fastbasic.

drarem avatar drarem commented on June 21, 2024

from fastbasic.

dmsc avatar dmsc commented on June 21, 2024

Hi!

I understand now, you want to test the game preserving the data in the disk image.

What I normally do is to activate the "H:" device in the emulator, and load/save the data from the H: device during development.

This way, I can load the emulator with my XEX and have it access all the data files in the H: device instantly, without the need for an ATR file. This also has the advantage that I can directly copy (and backup) the data files.

If you are using Altirra, you can load the emulator with Altirra /hdpathrw my_folder my_file.xex

Have Fun!

from fastbasic.

drarem avatar drarem commented on June 21, 2024

from fastbasic.

dmsc avatar dmsc commented on June 21, 2024

Closing as seems resolved.

from fastbasic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.