Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svga_s3 and other modes not working #1

Open
Sporesirius opened this issue Oct 3, 2018 · 6 comments
Open

svga_s3 and other modes not working #1

Sporesirius opened this issue Oct 3, 2018 · 6 comments

Comments

@Sporesirius
Copy link

Sporesirius commented Oct 3, 2018

I tried to change the machine type (svga_s3 and other). apparently only pc98* works.

When I try to use the svga_s3 mode (Browser Console output):

LOG: Early LOG Init complete
LOG: Logging init: beginning logging proper. This is the end of the early init logging
LOG: Logging: No logfile was given. All further logging will be discarded.
LOG: DOSBox-X version 0.82.7
LOG: Host keyboard layout is now us (US English)
LOG: Mapper keyboard layout is now us (US English)
LOG: SDL:Current window pixel format: SDL_PIXELFORMAT_RGB888
LOG: SDL: You are running in 24 bpp mode, this will slow down things!
LOG: USING AVI+ZMBV
LOG: Pentium CMPXCHG8B emulation is enabled
LOG: VOODOO LFB now at d0000000
LOG: ISA Plug & Play BIOS enabled
2 LOG: VGA ROM BIOS init callback
2 LOG: 12 ERROR BIOS:Keyboard layout file auto not found
LOG: XMS: 50 handles allocated for use by the DOS environment
LOG: EMS page frame at 0xe000-0xefff
LOG: COMMAND.COM env size: 720 bytes
LOG: COMMAND.COM environment block: 0x01e9 sz=0x002d
LOG: COMMAND.COM main body (PSP): 0x0217 sz=0x009a
LOG: COMMAND.COM stack: 0x0231
LOG: pixratio 1.350, dw false, dh false
2 Assertion failed: undefined

EDIT:
Hello, it's me again, I have now used your first build commands, but when I run dosbox-x I get the following in the Browser Console:

wasm streaming compile failed: LinkError: import object field '___cxa_call_unexpected' is not a Function
falling back to ArrayBuffer instantiation
failed to asynchronously prepare wasm: LinkError: import object field '___cxa_call_unexpected' is not a Function
LinkError: "import object field '___cxa_call_unexpected' is not a Function"
LinkError: "import object field '___cxa_call_unexpected' is not a Function"

EDIT:
Okay I fixed this error by setting emscripten sdk, clang etc. to incoming.
Now the problem is this:

Uncaught SimulateInfiniteLoop

@Sporesirius Sporesirius changed the title Cannot compile the project svga_s3 and other modes not working Oct 4, 2018
@yksoft1
Copy link
Owner

yksoft1 commented Oct 20, 2018

Did you define -DEMTERPRETER_SYNC , use Emterpreter Sync building JS/WASM files and use the Emterpreter whitelist d3.txt?
Without Emterpreter Sync, you won't be able to run DOSBox's interactive shell at all, this is the case even for em-dosbox.

@yksoft1
Copy link
Owner

yksoft1 commented Oct 20, 2018

Meanwhile, I made static makefile in /make_em in recent commits to tree emscripten. It should work given Emscripten fully installed and EMSCRIPTEN_ROOT set.

@ZaDarkSide
Copy link

ZaDarkSide commented Nov 1, 2018

I can't seem to be able to compile.
What are the commands?

I have used:
git clone https://github.com/yksoft1/dosbox-x-vanilla-sdl.git
cd dosbox-x-vanilla-sdl
./autogen.sh
emconfigure ./configure <-- here I get configure: error: SDL 1.x or SDL 2.x is required to compile this program
make

@yksoft1
Copy link
Owner

yksoft1 commented Nov 2, 2018

I can't seem to be able to compile.
What are the commands?

I have used:
git clone https://github.com/yksoft1/dosbox-x-vanilla-sdl.git
cd dosbox-x-vanilla-sdl
./autogen.sh
emconfigure ./configure <-- here I get configure: error: SDL 1.x or SDL 2.x is required to compile this program
make

Don't use emconfigure. Refer to build_em.txt, or just use the static makefile in /make_em.
And you should git checkout the tree emscripten, as I didn't merge anything to master in many months.

@ZaDarkSide
Copy link

ZaDarkSide commented Nov 2, 2018

I have managed to compile it with instructions from build_em.txt, but it's unstable.

I get errors like RuntimeError: index out of bounds or Assertion failed: undefined or uncaught exception: abort("Assertion failed: undefined"). Build with -s ASSERTIONS=1 for more info. in browser console when running command dir /p or doing random stuff.

Also i need to type always mount c / to mount the preloaded file, is there an automated way to load the preloaded file? I've tried Module['arguments'] = ['mount c /'] it's not working.

@yksoft1
Copy link
Owner

yksoft1 commented Nov 2, 2018

I have managed to compile it with instructions from build_em.txt, but it's unstable.

I get errors like RuntimeError: index out of bounds or Assertion failed: undefined or uncaught exception: abort("Assertion failed: undefined"). Build with -s ASSERTIONS=1 for more info. in browser console when running command dir /p or doing random stuff.

Also i need to type always mount c / to mount the preloaded file, is there an automated way to load the preloaded file? I've tried Module['arguments'] = ['mount c /'] it's not working.

This is a known problem as there are still some calls in DOSBox DOS that may run out of sync randomly even if most of them are Emterpretified. I don't have enough time to deal with this as Emscripten offer absolutely no tools for debugging such situation.
for non PC-98 games, non-DOSBox-X DOSBox should be your choice for now.
If you want to automatically run things, use [autoexec] section in dosbox.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants