Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DBPro 9Ex and Windows 10

Author
Message
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 28th Jul 2024 16:13 Edited at: 28th Jul 2024 18:34
Hello!
I've been using DBProEx compiler on Windows 7 for a long time, cause it compiles a way faster especially complex code with many lines.
Unfortunately I found that on Windows 10 (version 21H1) I have a completely useless .exe that silently crashes.
After few tests I got that .exe will silently crash if you use in your code such commands:

It happens even if you don't call them directly and just have them somewhere in your code.
So you can write like:
set display mode 800,600,32,1
wait 1000
end
and it will work fine, but if you wiil use any command for 3d object it will crash.
Also there is problem with Matrix1Utils plugins: crash with message: Failed to load DLL (3: Matrix1Util_23.dll)
I gues it is similar to that post: https://forum.thegamecreators.com/thread/229228
From this point I think that DBProEx is useless on Windows 10 and above...
Let me know if you have such troubles or you just use original compiler?
PS
Matrix1Utils plugins don't work even with original compiler.Seems not good, they were very useful.
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 29th Jul 2024 19:19
I haven't used DBProEX it was always a big job to port everything and I never got around to doing that.

Lets see here:


Seems to work, both with 3D object command Object Exist and the Matrix1 Util command DISPLAY DEPTH().

Windows Version:


DBP 1.077


DBP 9EX 1009

Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 29th Jul 2024 19:32
Generally speaking I can also mention some issues are not documented.
DBP has a number of bugs and it is possible to do things wrong, and still get by thinking everything is okay. This can lead to strange behavior out of nowhere especially if the project gets bigger.

Some examples:
1. You should never return a raw value from a function, always return a variable. You will think that it is okay. The program will begin to destabilize and glitch out if you ignore this.
2. Loading an image always resets the U/V values of all loaded sprites. You'd think after all these years someone would have noticed.

The point being, you may need to double check that you are doing everything safely/properly elsewhere in your program.
Also your Windows 10 install is out of date. You should be on 22H2 and not 22H1. You might also be missing some dependencies like directx or some sort of Visual C redistributable or etc.

I should also mention I separately have a Windows 10 22H2 laptop with an AMD APU and the correct video driver is not supported by Windows 10. This results in the DBP programs crashing when ever the screen is synced. So only a simple program that never invokes the screen can be run. It seems similar to your issue. Perhaps you have a video driver issue.




Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 29th Jul 2024 20:56
Thanks for performing tests, Mage!
Quote: "You might also be missing some dependencies like directx or some sort of Visual C redistributable or etc."

you mean that Matrix1Utils can require some additional stuff, more than DBPro requires? Like DarkPhysics requires PhysX to be installed?
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 29th Jul 2024 22:13
It's one of the suggestions I can offer here considering the code apparently works on my computer and not yours.
The official thread for IANM's Matrix Utils explains there are dependencies that you need to have installed.

https://forum.thegamecreators.com/thread/85209
Quote: "If the DLLs fail to load, then you may need the files in the following download:
VC++ redistributables : https://forumfiles.thegamecreators.com/download/959271

- For 32 bit systems, place the contents in c:\Windows\System32
- For 64 bit systems, place the contents in c:\Windows\SysWOW64
- Alternatively, if you are uncomfortable placing these files in those folders, or if you don't have the correct permissions to do so, place the files in the same directory as your executable."


The true list of dependencies for DBP and the plugins is all poorly circulated information, and its very easy for a programmer to find the program works on their PC only for the program to fail on other people's computers. This forum often focuses on really surface level things like how a command works or even some undocumented function. Rarely do we discuss things like rolling out software to thousands of people.

Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 30th Jul 2024 21:03
Quote: "Rarely do we discuss things like rolling out software to thousands of people."
Exactly!
I want to finish my new program ( converter from 3D animated objects into sprites ) and I'd like to share it for free. So It will be mush better, if such freeware stuff will run smoothly out of the box. By the way modern folks don't like to mess around with installing additional soft, even if it is just VC++ redistributables
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 31st Jul 2024 03:06 Edited at: 31st Jul 2024 03:12
You should check this thread. It is two implementations of how to capture a screenshot with a transparent background.
This also preserves partial transparency of objects, so your sprites won't need to be all opaque.
https://forum.thegamecreators.com/thread/184514

It's possible you'd want your sprites to not have to rely on a solid color key background.
The no shader version is slower but you shouldn't have any issues saving/using the images it generates.

It's possible there is an undocumented screen mode or something that can achieve the same thing but it's been over a decade since I was looking into the issue.

Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!
Kuper
16
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 20th Aug 2024 19:08 Edited at: 20th Aug 2024 20:35
DBProEx begin working after randomly installed UEPrereqSetup_x64.exe ( this is pack of necessary programs for Unreal Engine executables )
Windows said that was installed C++ 2015-2022 Redistributable x64 14.34.31938 from this pack.

Whole list looks like this: ( hope permalinks will not be changed )

C++ Redistributable 2010
https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe
https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe

C++ Redistributable 2013
https://aka.ms/highdpimfc2013x86enu
https://aka.ms/highdpimfc2013x64enu

C++ Redistributable 2015-2022
https://aka.ms/vs/17/release/vc_redist.x86.exe
https://aka.ms/vs/17/release/vc_redist.x64.exe

Also don't forget to update DirectX ( but it is not a common issue as I know )

for Matrix1 plugin:
Quote: "The official thread for IANM's Matrix Utils explains there are dependencies that you need to have installed."
It worked! I guess it is better to just place this two dlls with your .exe file
So thanks for help!
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 20th Aug 2024 20:09
Keep in mind if we are being professional here:
Those files are copyrighted, and the license agreement requires that they be distributed with the official redistributable.
This is why for example, game launchers will install the redistributables/dependencies on first launch. Most installer software will also install the redistributables/dependencies as a step also.

Mage's Modular Code - Get awesome UI controls and powerful Bitmap Fonts!
Screen Device Recovery - Stop your apps from crashing when minimized/tabbed/screen locked.
CPU Friendly Frame Limiter - Make your app generate less computer heat + noise, and use less battery life!

Login to post a reply

Server time is: 2024-11-21 10:20:15
Your offset time is: 2024-11-21 10:20:15