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 / correct way to. distribute your program.

Author
Message
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 19th Feb 2015 03:56
so after 3 years of effort, my product release has failed due to incompatibilities with Windows and Darkbasic compiled program. the only addons I have used are DarkAI, DarkClouds and Matrix1Util. What in the world should I release besides the exe (and my own media) and DirectX 9.0c? Obviously there is. something missing, my customers are experiencing a lockup and appcrash, or it runs like a champ. I am lost as to the cause and facing refunds up to $12k to unhappy. customers. Distributing DB apps was supposed to. be seamlesss...so far, far from it.
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 19th Feb 2015 04:03
i'm getting file not found errors on files that are clearly not missing.
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 19th Feb 2015 13:08
Quote: "i'm getting file not found errors on files that are clearly not missing."

Might be an administrator privilege thing; your program must have the correct access rights to read / write to most folders that doesn't belong to the "My Documents" branch of the current user on Windows Vista and later if the UAC is active.

As for crashes, it may be that certain plugins are required that you as a developer have on your system but your customers may not.
If you really have made $12K in sales, you should probably test your program on a clean-install of the target OS(:es) to see if there are such issues. If you are unable to do this you could try it on a hardware accellerated virtual machine install instead.
If you find any dynamic link libraries missing, you can just include these with your executable (as in put them in the same folder as your program) assuming they don't require any specific licenses. If they do you might be in for some problems, though most runtime libraries can be downloaded free of charge by the user, if not included by you yourself. If this is the case you should provide your customers with a link and description of where and what they are to download.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Feb 2015 15:15
You might also like to contact other forum users who are successful developers. For example, CumQuat has produced Malevolence, which I believe uses DGDK rather than DBPro but probably encounters similar issues to those found with DBPro. He might have some relevant suggestions/advice.



Powered by Free Banners
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 19th Feb 2015 15:54 Edited at: 19th Feb 2015 16:04
Quote: "You might also like to contact other forum users who are successful developers. For example, CumQuat"


Following on... CumQuat is your best bet as mentioned by GG stated; also Lee Bamber, Evolved and IanM will have unparalled DBP experience and distributing DBP runtimes such as FPSC.

Meanwhile all I can an do to help is dependant on how much information about such file access errors you can provide; and whether or not you or one of your associates can reproduce the error and whether you can provide me with a test program to see for myself; I have all of the plugins.

I have run and tested DBP on Windows XP, Vista, 7 and 8.1 and have never seen this error.

Do well to find a solution fast by breaking down the program into independant pieces, provide test data and compile test .EXEs with notes; like the fox on one side of the fence, strip down all features and introduce them into a test program so that the root cause is found.

Run through a checklist of questions to find the cause; what is accessing the files and why? What kind of files? What happens if the files are stored in file blocks? Can they be loaded using other means? Do they need to be loaded from disk or can they be embedded, or downloaded?

Sometimes it is best to compromise a feature to give you more time to find a better solution.

and note this point from IanM's Matrix1
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)

One thing about DBP development, is that it does not feature any installation wizard or dependancy list; you have to do it all yourself.

SFSW
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 19th Feb 2015 21:55 Edited at: 19th Feb 2015 22:09
GreenGandalf brought your issues to my attention and asked if I might be able to help, so here are some thoughts I had based on your descriptions.

The majority of the problems may be associated with missing dependencies. This can especially be true with external plugins added into the mix. Some plugins have dependencies not related to the 'regular' dependencies DBPro has. I can't say if this will solve some/most of the issues for you or not, but here is the list of files I need to include with the base set of DLL's and plugins that I use and appear to be commonly needed for many other DBPro apps/games (the x_input files are needed for a control plugin I use, they may not be needed without it), the DLL's are included in any install folder along with the DBPro compiled EXE:

- Direct X cab's -> April 2007 (x_input_x64 + x_input_x86), August 2007 (d3dx9_35_x64 + d3dx9_45_x86), and October 2006 (d3dx9_31_x64 + d3dx9_31_x86)
And of course, the installer files to go along with them than run as part of the installation script:
-dsetup.dll, dsetup32.dll, dxdllreg_x86.dll, dxsetup.exe, dxupdate.cab
- mfc71.dll
- msvcp71.dll
- msvcr71.dll
- msvcr100.dll

Check for memory use. Several of the problems you report can apply on systems with a narrow memory window. Crashes, missing/loading file errors, and freezes may occur on systems that lack enough consecutive available memory to run the DBPro game. Doesn't matter if they have 4 GB or 8 GB or more installed, what matters is how much is consecutively available to the game when the user launches it and whether or not it remains available during runtime. Outside factors can impact this significantly and block certain addresses (or even hard drive operations) while the game is running (resulting in somewhat random crash/error/freeze points). For these issues, the user may need to include the game in an exception list for any security program(s) they may have running. Valve maintains a list of known 'Steam' interfering security programs here for reference: https://support.steampowered.com/kb_article.php?ref=9828-SFLZ-9289

Check for how much memory the game is using. If it's approaching around 1 GB, then you're near the limit of what can be accessed with 'normal' settings, regardless of how much memory the user may have installed and regardless of how much may be consecutively available. Using memory at/near those levels can result in a higher frequency of crashes/errors/freezing, especially on systems with compromised memory conditions (due to security programs or other running background tasks). If you can't or don't want to bring the memory use down, you may want to consider making your game 'LAA' (which stands for Large Address Aware). You'll find many recent games utilize this option in their binary to allow them more memory flexibility. If this memory level issue applies to your game, you can load the EXE in CFF Explorer > File Header > Characteristics > then check the box next to 'App can handle > 2gb address space' > click OK, then save the EXE. Launch and test for changes.

A few issues may be out of the developer's control, such as display related factors. They won't really relate to your game and are more system related problems. Some users may be running their desktop in 16-bit rather than 32-bit, which can cause launch errors. Some may have certain display resolution limitations and/or driver issues. Updating drivers and making sure proper driver/settings are applied to the monitor being used (rather than some kind of 'generic' driver) may help those users. As noted by others, it’s generally best to launch a DBPro game/app in the most compatible display setting using the Windowed full screen mode.

If problems persist, I'd be happy to chat with you directly, you can contact me via e-mail (starwraith.com > contact).

aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 20th Feb 2015 00:05
thanks for this great info. I already see a few DLLs that I did not distribute in response to the Matrix1utl addon. I will definitely take your advice.

I am using a lot of 3d objects and bitmaps. There are 700+ files in the application folder. It's an airport scene with its own set of models, and then there are 42 3d models of aircraft, their paint images, and also a large pushbutton interface using many bitmaps.

I've developed it on a pretty low end 2.73 MHz PC with 2 GB of RAM. Nothing fancy and not that fast at all. I am running it at 1920x1080x32 with no problem whatsoever. Most of the users who are installing this have a much better PC than I do, and way faster.

I'd like both Chris and SFSW to both take a look at it if you don't mind.

Write to me at [email protected] with your email accounts, and I'll send a link to download.
tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 20th Feb 2015 00:38 Edited at: 20th Feb 2015 00:38
You are using 7.61 do you have to use an older version of DBPro for your plugins (Extends, etc. ) ? If you do not I would upgrade to latest.

Perhaps this is the security-related "file not found" stuff you are experiencing. Is it only happening to Win7 users?



http://forum.thegamecreators.com/?m=forum_view&t=180294&b=1

Cescano
11
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 20th Feb 2015 01:11
tiresius, about this latest upgrade (7.7), are you aware of any bugs that are not present in the 7.62 version? I do have this one and I don't want to broke something by upgrading.
Other from the things listed in the link, can you or someone list the pros and cons? performance are the same?
aerostudios
17
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 20th Feb 2015 02:54
Thanks for the info about Windows 7, but it's not limited to Windows 7, the app was written under Windows 7 Ultimate. After 3 years, I would have discovered a problem related to Windows 7. I've actually tested on 3 Windows 7 versions.

I think its come down to the fact that I did not know that, just as in .NET development in Visual Studio, you still need to distribute DLLs with your DBPro application.
tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 20th Feb 2015 07:21
I have been using 7.7 latest RC for years with no problems but I am not using the plugins you listed (except for Matrix1). It was just a thought given the weird errors you are hearing about ...

I'm surprised you are using Extends plugin from what I remember it was abandoned and not updated for later versions of DBPro/Windows and proved problematic for some people. But maybe I remember it wrong.

It shouldn't be a guessing game on what DLLs your executable is using. Look into Process Explorer, it is a free tool and will give you this information. I don't know if it will work with DLLs that use other DLLs but worth a shot. There are many utilities for this.

Cescano
11
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 20th Feb 2015 09:43 Edited at: 20th Feb 2015 09:51
Just updated to 7.7, found the 1st problem, sounds seems to be with a lower volume than 7.62, I can barely hear the sounds now while the music track is playing on the game, while before with the 7.62 I was able to hear them with no problem

Edit:

It's the music that is louder, the command set music volume it's broken, 4 years since the update and nobody noticed this?

Login to post a reply

Server time is: 2026-07-11 18:26:49
Your offset time is: 2026-07-11 18:26:49