Giter VIP home page Giter VIP logo

Comments (13)

lautis0503 avatar lautis0503 commented on May 23, 2024

Same here. I said that two weeks ago in #73 .

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

i haven't been able to repro this

cargo build -r --features=ega

... snip ...

warning: `martypc_pixels_desktop` (lib) generated 3 warnings (run `cargo fix --lib -p martypc_pixels_desktop` to apply 1 suggestion)
    Finished release [optimized] target(s) in 17.32s

D:\newdev\my_projects\marty\install>cargo --version
cargo 1.74.1 (ecb9851af 2023-10-18)

D:\newdev\my_projects\marty\install>rustc -V
rustc 1.74.1 (a28077b28 2023-12-04)

that said i do see what it is complaining about and think i can fix it. i just don't know why it's not complaining to ME.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

@rationalism @lautis0503 can you try it now

from martypc.

rationalism avatar rationalism commented on May 23, 2024

@dbalsom Works now! However, I have to manually create a bunch of directories in output/ for the provided config file to work

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

Side effect of reorganizing some things and Git not checking in empty folders.
I think the reasonable thing to do is to have the emulator create the specified folders if they don't exist.

from martypc.

lautis0503 avatar lautis0503 commented on May 23, 2024

It works. Something confuses me: Why sometimes use [[]] and sometimes [] in configurations?

And something related to configs.
[2023-12-26T......Z ERROR martypc_pixels_desktop::emulator] Number of videocards installed does not match number of cards in config!
What I have is config_name = "ibm5160_hdd" and there's [[overlay.video]] in my overlay. What's wrong?

from martypc.

lautis0503 avatar lautis0503 commented on May 23, 2024

The vhd file defined in martypc.toml or overlay is not selected in Menu->Media->Load VHD in Drive 0.

If I define 256K memory in overlay
[overlay.memory]
conventional.size = 0x40000
MartyPC still provide 640K memory.
It works correctly if I define memory in machine config file, not in overlay.

from martypc.

lautis0503 avatar lautis0503 commented on May 23, 2024

One thing to consider. If there's two floppy drives in machine config, and then I write two floppy drives in overlay. Is there totally four drives or only the two in overlay take effect? I have not checked the source code yet. Maybe it's better to add drive number like PCE does.

from martypc.

lautis0503 avatar lautis0503 commented on May 23, 2024

The vhd filename in machine config does not take effect? If I do not specify filename from martypc.toml, then the vhd file is not loaded.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

Please bear in mind that this is all under active development and a lot of this stuff isn't finished. Sorry if that is frustrating but I do appreciate you kicking the tires, so to speak.

Something confuses me: Why sometimes use [[]] and sometimes [] in configurations?

basic TOML grammar. see https://toml.io/en/
in short, double brackets indicate an array of items. so you will have [[thing]] wherever you might have multiple Things at the same time. Deserialized in Rust, they become Vectors.

And something related to configs. [2023-12-26T......Z ERROR martypc_pixels_desktop::emulator] Number of videocards installed does not match number of cards in config! What I have is config_name = "ibm5160_hdd" and there's [[overlay.video]] in my overlay. What's wrong?

It's a remnant of reading video cards from the main config, since there shouldn't be any cards in there now it will install more (from machine config) then are in the main config (0) and thus get worried. i will remove all the video card stuff from the main config as it should all now be handled by machine configuration and overlays.

The vhd file defined in martypc.toml or overlay is not selected in Menu->Media->Load VHD in Drive 0.

not implemented yet. VHD menu is going to be rewritten with the new resource manager / file browser

It works correctly if I define memory in machine config file, not in overlay.

it's not implemented. overlays can add various cards, but not conventional memory. i think it would be useful to add though, especially since memory could have been added via expansion card. eventually i suppose i should specify how much on-board memory vs expansion card memory there is, because in theory it could have different wait states (especially on platforms like PCJr)

One thing to consider. If there's two floppy drives in machine config, and then I write two floppy drives in overlay. Is there totally four drives or only the two in overlay take effect? I have not checked the source code yet. Maybe it's better to add drive number like PCE does.

You cannot overlay floppies by themselves, you overlay floppy drive controller(s) which have drives defined/connected to it. So the number of drives will be entirely determined by the number specified in the overlay. Any array of items will work the same way, so you cannot say, add a second video card to an existing video card in an overlay, you will replace all video cards if you specify 1 or more video cards in an overlay. So to have dual CGA and MDA you can see I defined a "cga_and_mda" overlay.

if there's a better way to handle this i'm willing to consider it, but i don't know how best to differentiate replacing a card vs adding an additional card in an overlay definition. let me know if you have an idea.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

VHD support in machine configurations will be a bit awkward now, since you currently have to manually create all VHDs, and it would be up to you to name them the same as the name given in the configuration, and ensure you created it as a compatible type...

so I am thinking if a VHD name is specified in a machine configuration and does not exist, MartyPC should create a compatible VHD automatically when you start the machine. I can make this optional, or maybe prompt for confirmation first

something like

[emulator.media]
auto_vhd = true

from martypc.

lautis0503 avatar lautis0503 commented on May 23, 2024

basic TOML grammar. see https://toml.io/en/

Thanks. I had never read TOML docs before.

i think it would be useful to add though, especially since memory could have been added via expansion card. eventually i suppose i should specify how much on-board memory vs expansion card memory there is, because in theory it could have different wait states (especially on platforms like PCJr)

Yes, it's useful. I'm using 640K RAM in machine config for all machines, and one of the machines uses 256K RAM in overlay.

if there's a better way to handle this i'm willing to consider it, but i don't know how best to differentiate replacing a card vs adding an additional card in an overlay definition. let me know if you have an idea.

The situation now is good enough. What I want is free of misunderstanding. Later in docs should there be explaination about this behaviour.

from martypc.

dbalsom avatar dbalsom commented on May 23, 2024

@dbalsom Works now! However, I have to manually create a bunch of directories in output/ for the provided config file to work

I have added flags to the path definitions that will instruct MartyPC to create the output folders if they don't exist.

from martypc.

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.