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.

Newcomers DBPro Corner / My Standalone EXE's won't work. HELP!!

Author
Message
Big Juicy Eyeball
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: United Kingdom
Posted: 15th Apr 2003 20:52
I'm kind of worried about this.

I have the orignal DarkBasic (not professional). Whenever I've tried making my final standalone executable files for my games, they have always worked the first three or so times. Then after that, no matter what, the keep crashing: they won't even load.

This has happened to all my games except that CaveRunner demo. Whenever I try to load one of my EXE files, this message is displayed:



8) USER DEFINED FUNCTIONS caused an invalid page fault in
module at 0000:c48cdd60.
Registers:
EAX=00a6fa18 CS=0167 EIP=c48cdd60 EFLGS=00010246
EBX=00a6fa18 SS=016f ESP=0097001e EBP=0097004c
ECX=009700d0 DS=016f ESI=817230a0 FS=4347
EDX=bff76855 ES=016f EDI=009700f8 GS=0000
Bytes at CS:EIP:
2d ad fc cb a1 c9 f8 0e 91 24 e7 fd ae f6 e4 f8
Stack dump:
0008e00c 00000167 0040cfb1 6849000a 00f8bff7 fa180097 011400a6 00d00097 02140097 68550097 fa18bff7 00e000a6 7fe90097 00f8bff8 fa180097 011400a6

(8) User Defined functions is the program name)


I've tried loading these files on another PC, but the same message comes up (only is replaced with kernell or something).

Could somebody please help me with this, or point me in the direction where I should ask for help.

Why is CaveRunner working but none of my programs? AAAAGGH!!

BTW - apart from this problem I like DB a lot!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 15th Apr 2003 21:16
it would be easier to help if you posted the code for the games you are trying to make .exe's for.

'You were born crying while people around you smiled'
Chief Voyager
21
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 16th Apr 2003 02:27
I have the same problem, when i use matedit, i can't make a final exe, i always have to make a standalone that doesn't include the media. this is very annoying. i always get a runtime error.

You're ate up like a soup sandwich.
CorruptionsMyth
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United States
Posted: 16th Apr 2003 06:33
maybe you are both using the lite version of db

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 16th Apr 2003 13:29
i'd like to see the code cos if the cave runner demo can be made into an .exe your programs should work, unless the code is wrong

'You were born crying while people around you smiled'
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Apr 2003 13:58
out of these two which one are u using?

build exe
build final

Big Juicy Eyeball
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: United Kingdom
Posted: 16th Apr 2003 16:42
OK - more details on my problem:

1) I used DarkBasic Original (Full)
2) I used build exe, and build final. Neither worked.
3) I CAN make the standalone EXE's, but they perform illegal operations before they even load and crash.
4) This is the very simple program I wrote - the standalones didn't work (btw I've been learning just 2 days).

rem * Title : Hello World!
rem * Author : CMP
rem * Date : 15th April 2003
rem ------------------------
rem Hello World!
rem ------------------------
rem Author: CMP

hide mouse


*Here, I have 8 lines of remarks reminding me how to do functions for reference*

Do
BetterPrint(RND(560),RND(400),"Hello World!")
For delay=1 to 25000
next delay
cls
loop

rem ***************Functions*******************

Function BetterPrint(x,y,t$)
set cursor x,y
print t$
ENDFUNCTION



In DarkBasic or DarkEdit, the code works fine. Hello World! flashes all over a dark screen. But the standalones won't work, even for my other simple programs. I can make them, but then they won't even load no matter what computer I try them on.

This is very annoying and is making me slightly reluctant in going on to learning the real stuff, when my standalones will probably always crash.

As I've said before though, the CaveRunner demo standalone works. I don't get it.

btw - the 3D Game Maker, does that save standalones in the same style as DarkBasic. If I got that product would those standalones crash too?

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 17th Apr 2003 00:36
MatEdit exes work fine for me so I dunno.

RPGamer

Current Project: Eternal Destiny
Tech Demo - Colan Island: Currently 716 Lines
Chief Voyager
21
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 17th Apr 2003 01:35
i am also using the full version. my standalones work fine, just the final exe's always crash.

You're ate up like a soup sandwich.
Danmatsuma
21
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 17th Apr 2003 03:05
Suggest compiling a very small program and making it available for download so some of us can try it on our machines, eliminate the possibility that it's not just your system.

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Apr 2003 05:40
reinstall if its gone totally quirky

TrenteTrois
21
Years of Service
User Offline
Joined: 3rd Apr 2003
Location:
Posted: 17th Apr 2003 08:14
LOL, what jerk would comment an 8 line program with his initials, and TWICE above all....

Big Juicy Eyeball
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: United Kingdom
Posted: 17th Apr 2003 12:07
I'll make it available soon for you to test, but I've noticed something. Both computers have direct 7.0a and a Voodoo 3 graphics card. Could this have anything to do with it?

You see, I've downloaded the DarkBasic Pro demos, and they won't load for the same reason.

So is it DarkBasic being buggy, or is it my computer system. I don't want to go out and buy a new graphics card or whatever if it's darkbasic.

I've re-installed it aleady. If it's not my graphics card I'll make it available to download incase it's just my PC.

BTW - the guy that posted before this. The initials are on twice because I loaded it into DarkEdit for copying, and it added the 3 rems with the *'s. And besides, the above was my first program! Obviously I want to continue learning the commands while I'm off school. But when even a simple program like that won't even work. You get put off.

He's a big, juicy eyeball!
Robin
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 17th Apr 2003 13:36
Chief Voyager:
MatEdit MDF files are not included in the exe file. You need to put them in the same folder as the exe file (or whatever path you set for the MDF file)

Robin

[ Download Map Maker 3D Now ]
http://www.thegameszone.has.it
thegameszone@has.it
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Apr 2003 22:54
dx7.0a? is prolly ur problem...upgrade to 9.0 and see what happens

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
Chief Voyager
21
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 18th Apr 2003 01:36
@Robin

thanx, didn't realize that.

You're ate up like a soup sandwich.
Big Juicy Eyeball
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: United Kingdom
Posted: 22nd Apr 2003 13:55
I've even tried upgrading DB using a patch... and it says "version of darkbasic in readme.txt not recognised". What? It won't upgrade!!

I am fed up. Half the DB games I download off the net don't work either. Is DarkBasic this buggy for everyone or just me? There is no way I'm splashing out money for DBPro... if the first DB doesn't work.

Also, I e-mailed DarkBasic quite a while ago. And I have not yet received a reply. This is so annoying. DarkBasic is a great program. But it is very useless if the EXE files don't work. AAAAAAAGGH!

He's a big, juicy eyeball!
just a ji
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 22nd Apr 2003 19:05
don't give up on db just yet.. i'm one of those people that EVERYTHING breaks for, but db is actually quite stable for me (pro that is) i've never had any of these problems, and believe me... my system has ALL the problems. just stick it out a bit longer. did you upgrade to another DirectX? because i think (dbp at least) requires a newer version.. it's just good practice.

there are 10 kinds of people.. those who understand binary logic, and those who don't.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Apr 2003 19:48
You also probably need to make sure the graphics mode is either 16 or 32 bit mode (and not 24-bit).

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2024-09-20 06:53:48
Your offset time is: 2024-09-20 06:53:48