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

"Error creating setup directories" when trying to execute 0.91 release #108

Open
mikr123 opened this issue Nov 22, 2019 · 11 comments
Open

Comments

@mikr123
Copy link

mikr123 commented Nov 22, 2019

Finding Game Data...
Original Game Data Found!
Copyright (c) 1995 Bullfrog Productions Ltd.
All rights reserved.
Magic Carpet 2 (Netherworlds)
Error creating setup directories.

System: Windows 10
Game version: GOG release
Game install dir: E:\remc2-0.91

@joshbtdev
Copy link

Same issue here using the CD version of the game.

Capture

@turican0
Copy link
Owner

Did you write right for the game directory? Try to run it as administrator. Or try it run in the user directory. Please write what the result.

@joshbtdev
Copy link

After moving the folders to the user directory and running as Administrator it's still coming up with the same error unfortunately.

@turican0
Copy link
Owner

I report this problem after removing access for write to game folder:
2019-12-12 19_29_42-Window

After grant write access to folder(and subfolders) game is running:
2019-12-12 19_34_10-Window

@joshbtdev
Copy link

This is what I am getting running CMD as administrator and all files and folders have write access:

Capture

@turican0
Copy link
Owner

Please make this test:
1)Make download remc2-debug.zip from https://github.com/turican0/remc2/releases/tag/0.91
(exe with debug info)
2)Unzip files to game folder (rewrite remc2.exe)
3)run remc2.exe or remc2-debug.bat(this batch give output to test.txt)
4)Report output to here

May output is:

Finding Game Data...
Original Game Data Found!
Copyright (c) 1995 Bullfrog Productions Ltd.
All rights reserved.
Magic Carpet 2 (Netherworlds)
Init:Begin of creating dirs
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F1FA0 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/save
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/save
myaccess:exit:0A8F1938 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F2230 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/cdata
myaccess:exit:0A8F24C0 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F24C0 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/clevels
myaccess:exit:0A8F2378 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F17F0 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/sound
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/sound
myaccess:exit:0A8F20E8 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F1D10 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/language
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/language
myaccess:exit:0A8F1E58 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0A8F1FA0 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/shots
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/shots
myaccess:exit:0A8F1D10 0
sub_53D10:End value 3
Init:End of creating dirs
Checking Setup Version ..
Setting Up Levels ..myaccess:orig path:levels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game\levels
myaccess:exit:0A8F1A80 0
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/clevels
myaccess:exit:0A8F24C0 0
246810121416182022252729313335373941434548505254565860626466687173757779818385878991939698100
Finding Game Data...
Original Game Data Found!
Copyright (c) 1995 Bullfrog Productions Ltd.
All rights reserved.
Magic Carpet 2 (Netherworlds)
Init:Begin of creating dirs
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:00000000 2
mymkdir:path: C:/netherw
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/save
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/save
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/save
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/save
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0ADFDF98 2
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/cdata
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/cdata
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/cdata
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0ADFDF98 2
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/clevels
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/clevels
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/clevels
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0ADFD930 2
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/sound
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/sound
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/sound
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/sound
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0ADFDD08 2
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/language
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/language
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/language
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/language
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw
myaccess:exit:0ADFDA78 2
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/shots
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/shots
myaccess:exit:00000000 2
mymkdir:path: C:/netherw/shots
mymkdir:path2: c:\prenos\testbinaryremc2\original-game/netherw/shots
mymkdir:path3: c
mymkdir:end: 0
sub_53D10:End value 3
Init:End of creating dirs
Checking Setup Version ..
Creating Setup Directories 1 ..myaccess:orig path:data
myaccess:fix path:c:\prenos\testbinaryremc2\original-game\data
myaccess:exit:0ADFDE50 2
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/cdata
myaccess:exit:0ADFE0E0 2
4913182327323641465055596469737882879296100
Creating Setup Directories 2 ..myaccess:orig path:data
myaccess:fix path:c:\prenos\testbinaryremc2\original-game\data
myaccess:exit:0ADFD6A0 2
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/cdata
myaccess:exit:0ADFD6A0 2
4914182328333742475156616670758085899499100
Creating Setup Directories 3 ..myaccess:orig path:data
myaccess:fix path:c:\prenos\testbinaryremc2\original-game\data
myaccess:exit:0ADFDA78 2
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/cdata
myaccess:exit:0ADFDA78 2
7142128354250576471788592100
Setting Up Levels ..myaccess:orig path:levels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game\levels
myaccess:exit:0ADFDBC0 2
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:c:\prenos\testbinaryremc2\original-game/netherw/clevels
myaccess:exit:0ADFD6A0 2
246810121416182022252729313335373941434548505254565860626466687173757779818385878991939698100

And this is folder before:
2019-12-13 22_43_57-Window
and after directories creating:

2019-12-13 22_42_14-Window

@joshbtdev
Copy link

The game loaded fine with the debug EXE. But the application still crashes when loading a level.

Finding Game Data...
Original Game Data Found!
Copyright (c) 1995 Bullfrog Productions Ltd.
All rights reserved.
Magic Carpet 2 (Netherworlds)
Init:Begin of creating dirs
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/save
myaccess:fix path:C:\MC2\original-game/netherw/save
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/cdata
myaccess:fix path:C:\MC2\original-game/netherw/cdata
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:C:\MC2\original-game/netherw/clevels
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/sound
myaccess:fix path:C:\MC2\original-game/netherw/sound
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/language
myaccess:fix path:C:\MC2\original-game/netherw/language
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
sub_53D10:Begin
sub_53D10:Disc Free
myaccess:orig path:C:/netherw
myaccess:fix path:C:\MC2\original-game/netherw
myaccess:exit:0CB96B90 0
sub_53D10:After access and mkdir
sub_53D10:Before second access and mkdir
myaccess:orig path:C:/netherw/shots
myaccess:fix path:C:\MC2\original-game/netherw/shots
myaccess:exit:0CB96B90 0
sub_53D10:End value 3
Init:End of creating dirs
Checking Setup Version ..
Setting Up Levels ..myaccess:orig path:levels
myaccess:fix path:C:\MC2\original-game\levels
myaccess:exit:0CC19568 0
myaccess:orig path:C:/netherw/clevels
myaccess:fix path:C:\MC2\original-game/netherw/clevels
myaccess:exit:0CC19568 0
246810121416182022252729313335373941434548505254565860626466687173757779818385878991939698100

@turican0
Copy link
Owner

Strange, after adding debug info, creating directories is OK. This is may be problem with synchronisation directory creating and game code.
Second problem I report too. Problem is only in release exe not in debug.
I add debug exe in remc2-fix.zip to relesase page.
Please test it if it's ok.
I add some code to writing debug information, too(not necessary use remc2-debug.bat, now).
Thank you.

@joshbtdev
Copy link

Using the EXE from remc2-fix.zip the game will start ok. Still crashing on level load however. Also the audio playback in cinematics is too fast and out of sync with the video.

@turican0
Copy link
Owner

turican0 commented Dec 21, 2019

Than you, I test it.
Speed you can change in config file(config.ini):
[game]
speed = 35 ; speed game, millisecond between frames (1000/FPS)
animspeed = 100 ; speed videos, millisecond between frames (1000/FPS)

Remc2 use reverse-engineering code. This is same in original game.
But in original game speed(game and videos) is dependent on power of cpu.
For me is this setting best. When you add speed of video,
is a problem to read.

@joshbtdev
Copy link

The video playback speed is normal with that setting, but the audio is still very fast. I have uploaded a test video to demonstrate the issue here.

#109

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