run .exe-files on other machines
Blitz3D Forums/Blitz3D Beginners Area/run .exe-files on other machines
Dear community,
Why do my .exe-files not run on other machines? Do I have to produce an installation package including .dll's? If yes, how? Or what's wrong?
Thanx.
BlitzPlus exes should work on any machine running win 9X,NT and 2000/XP.
Blitz3D and Blitz2D exes need DirectX 7 to be installed, in order to run.
If you are using non standard DLLs, you have to install it in the same directory where your exe is located.
Could you be more specific about the troubles you are experiencing with ?
Sergio.
I am using B+
I am not using any special DLLs, as far as I know ...
I am using GUI functions (so Direct X)
The "other machines" have Win2000, like my computer (the one where I produce the .exe-files)
Mimi
... and the error message I get is not very informative:
"-----.exe" produced an error and was closed
mimi
Which graphic setting do you use in your program ? Perhaps the target pc can't work with the resolution you use on your development pc.
Try to use a simply windowed mode proggy like:
Graphics 640,480,16,2
setbuffer backbuffer()
text 0,0,"test"
flip
waitkey
end
make an exe and check if it works on the other pcs.
Sergio.
Yes, it works.
In my other program I am not using the "graphics"-command at all, only windows with canvases. So I guess the error cannot be because of the wrong graphics resolution, can it?
mimi
Have a read of this FAQ entry and see if it helps:
http://www.blitzbasic.com/faq/faq_entry.php?id=20I'd *guess* it just can't find its files. (Also make sure you're not using floats for object handles.)
Also is your artwork, "canvas" in the correct directory. Pathways are pretty specific.
-RZ
sorry to dig this out, but i am experiencing the same problem now... i have uploaded the dedicated server of our upcoming game to our gameserver (which runs under win2k). when i doubleclick the exe, the small blitzwindow pops up and closes again. no error, no warning, nothing. i even used the following code (which runs fine on my xp-system, but does not work on the win2000 machine):
graphics 640,480,16,2
print "hello"
waitkey
end
both machines have lots of ram, dx9 installed, and 3d-capable graphics card. where is the problem?
Are you using the latest version of BlitzPlus (or is it Blitz3D)?
Are you running in debug or release mode?
Try this:
Graphics 640,480
Text 5,5, "hello"
Flip
WaitKey
End
..and this..
Graphics 640,480,0,2
Text 5,5, "hello"
Flip
WaitKey
End
its newest blitz3d version. i tried debug and release mode - made no difference. i'll check your 2 sources... be right back.
first source didn't work. second source: njet, nothing, nada... same as my example. damned... this MUST work....
battletanksII did not work, too!
very strange problem... i'll install win2k on my testmachine (i always have one spare computer for such things) and check it out again. i already tried filemon for finding out if a few dlls were missing....
heres the log:
1 20:02:02 explorer.exe:776 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: All
2 20:02:02 explorer.exe:776 QUERY INFORMATION D:\Standalone\test.exe SUCCESS Attributes: A
3 20:02:02 explorer.exe:776 SET INFORMATION D:\Standalone\test.exe SUCCESS FileBasicInformation
4 20:02:02 explorer.exe:776 READ D:\Standalone\test.exe SUCCESS Offset: 0 Length: 64
5 20:02:02 explorer.exe:776 READ D:\Standalone\test.exe SUCCESS Offset: 256 Length: 64
6 20:02:02 explorer.exe:776 READ D:\Standalone\test.exe SUCCESS Offset: 328 Length: 4
7 20:02:02 explorer.exe:776 READ D:\Standalone\test.exe SUCCESS Offset: 348 Length: 4
8 20:02:02 explorer.exe:776 CLOSE D:\Standalone\test.exe SUCCESS
9 20:02:02 explorer.exe:776 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: Execute
10 20:02:02 explorer.exe:776 CLOSE D:\Standalone\test.exe SUCCESS
11 20:02:02 explorer.exe:776 QUERY INFORMATION D:\Standalone\test.exe SUCCESS Attributes: A
12 20:02:02 explorer.exe:776 QUERY INFORMATION D:\Standalone\test.exe SUCCESS Attributes: A
13 20:02:02 explorer.exe:776 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: Execute
14 20:02:02 explorer.exe:776 CLOSE D:\Standalone\test.exe SUCCESS
15 20:02:02 test.exe:600 OPEN D:\Standalone SUCCESS Options: Open Directory Access: Traverse
16 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WSOCK32.dll NOT FOUND Attributes: Error
17 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WSOCK32.dll NOT FOUND Attributes: Error
18 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\WSOCK32.dll SUCCESS Attributes: A
19 20:02:02 test.exe:600 OPEN C:\WINNT\system32\WSOCK32.dll SUCCESS Options: Open Access: Execute
20 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\WSOCK32.dll SUCCESS
21 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WS2_32.DLL NOT FOUND Attributes: Error
22 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WS2_32.DLL NOT FOUND Attributes: Error
23 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\WS2_32.DLL SUCCESS Attributes: A
24 20:02:02 test.exe:600 OPEN C:\WINNT\system32\WS2_32.DLL SUCCESS Options: Open Access: Execute
25 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\WS2_32.DLL SUCCESS
26 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WS2HELP.DLL NOT FOUND Attributes: Error
27 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WS2HELP.DLL NOT FOUND Attributes: Error
28 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\WS2HELP.DLL SUCCESS Attributes: A
29 20:02:02 test.exe:600 OPEN C:\WINNT\system32\WS2HELP.DLL SUCCESS Options: Open Access: Execute
30 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\WS2HELP.DLL SUCCESS
31 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WINMM.dll NOT FOUND Attributes: Error
32 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\WINMM.dll NOT FOUND Attributes: Error
33 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\WINMM.dll SUCCESS Attributes: A
34 20:02:02 test.exe:600 OPEN C:\WINNT\system32\WINMM.dll SUCCESS Options: Open Access: Execute
35 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\WINMM.dll SUCCESS
36 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\d3dxof.dll NOT FOUND Attributes: Error
37 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\d3dxof.dll NOT FOUND Attributes: Error
38 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\d3dxof.dll SUCCESS Attributes: A
39 20:02:02 test.exe:600 OPEN C:\WINNT\system32\d3dxof.dll SUCCESS Options: Open Access: Execute
40 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\d3dxof.dll SUCCESS
41 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DPLAYX.dll NOT FOUND Attributes: Error
42 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DPLAYX.dll NOT FOUND Attributes: Error
43 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\DPLAYX.dll SUCCESS Attributes: A
44 20:02:02 test.exe:600 OPEN C:\WINNT\system32\DPLAYX.dll SUCCESS Options: Open Access: Execute
45 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\DPLAYX.dll SUCCESS
46 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DDRAW.dll NOT FOUND Attributes: Error
47 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DDRAW.dll NOT FOUND Attributes: Error
48 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\DDRAW.dll SUCCESS Attributes: A
49 20:02:02 test.exe:600 OPEN C:\WINNT\system32\DDRAW.dll SUCCESS Options: Open Access: Execute
50 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\DDRAW.dll SUCCESS
51 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DCIMAN32.dll NOT FOUND Attributes: Error
52 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DCIMAN32.dll NOT FOUND Attributes: Error
53 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\DCIMAN32.dll SUCCESS Attributes: A
54 20:02:02 test.exe:600 OPEN C:\WINNT\system32\DCIMAN32.dll SUCCESS Options: Open Access: Execute
55 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\DCIMAN32.dll SUCCESS
56 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DINPUT.dll NOT FOUND Attributes: Error
57 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\DINPUT.dll NOT FOUND Attributes: Error
58 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\DINPUT.dll SUCCESS Attributes: A
59 20:02:02 test.exe:600 OPEN C:\WINNT\system32\DINPUT.dll SUCCESS Options: Open Access: Execute
60 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\DINPUT.dll SUCCESS
61 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\MSACM32.dll NOT FOUND Attributes: Error
62 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\MSACM32.dll NOT FOUND Attributes: Error
63 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\MSACM32.dll SUCCESS Attributes: A
64 20:02:02 test.exe:600 OPEN C:\WINNT\system32\MSACM32.dll SUCCESS Options: Open Access: Execute
65 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\MSACM32.dll SUCCESS
66 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\test.exe.Local NOT FOUND Attributes: Error
67 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\mmdrv.dll NOT FOUND Attributes: Error
68 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\mmdrv.dll NOT FOUND Attributes: Error
69 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\mmdrv.dll SUCCESS Attributes: A
70 20:02:02 test.exe:600 OPEN C:\WINNT\system32\mmdrv.dll SUCCESS Options: Open Access: Execute
71 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\mmdrv.dll SUCCESS
72 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\rpcss.dll SUCCESS Attributes: A
73 20:02:02 test.exe:600 OPEN C:\WINNT\system32\rpcss.dll SUCCESS Options: Open Access: Execute
74 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\rpcss.dll SUCCESS Length: 212240
75 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\rpcss.dll SUCCESS
76 20:02:02 test.exe:600 OPEN C:\WINNT\win.ini SUCCESS Options: Open Access: All
77 20:02:02 test.exe:600 LOCK C:\WINNT\win.ini SUCCESS Excl: No Offset: 0 Length: -1
78 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\win.ini SUCCESS Length: 436
79 20:02:02 test.exe:600 READ C:\WINNT\win.ini SUCCESS Offset: 0 Length: 436
80 20:02:02 test.exe:600 UNLOCK C:\WINNT\win.ini RANGE NOT LOCKED Offset: 0 Length: -1
81 20:02:02 test.exe:600 CLOSE C:\WINNT\win.ini SUCCESS
82 20:02:02 test.exe:600 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: All
83 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 0 Length: 64
84 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 256 Length: 248
85 20:02:02 test.exe:600 CLOSE D:\Standalone\test.exe SUCCESS
86 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\D3DIM700.DLL NOT FOUND Attributes: Error
87 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\D3DIM700.DLL NOT FOUND Attributes: Error
88 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\D3DIM700.DLL SUCCESS Attributes: A
89 20:02:02 test.exe:600 OPEN C:\WINNT\system32\D3DIM700.DLL SUCCESS Options: Open Access: Execute
90 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\D3DIM700.DLL SUCCESS
91 20:02:02 test.exe:600 OPEN C:\WINNT\win.ini SUCCESS Options: Open Access: All
92 20:02:02 test.exe:600 LOCK C:\WINNT\win.ini SUCCESS Excl: No Offset: 0 Length: -1
93 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\win.ini SUCCESS Length: 436
94 20:02:02 test.exe:600 READ C:\WINNT\win.ini SUCCESS Offset: 0 Length: 436
95 20:02:02 test.exe:600 UNLOCK C:\WINNT\win.ini RANGE NOT LOCKED Offset: 0 Length: -1
96 20:02:02 test.exe:600 CLOSE C:\WINNT\win.ini SUCCESS
97 20:02:02 test.exe:600 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: All
98 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 0 Length: 64
99 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 256 Length: 248
100 20:02:02 test.exe:600 CLOSE D:\Standalone\test.exe SUCCESS
101 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\HID.DLL NOT FOUND Attributes: Error
102 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\HID.DLL NOT FOUND Attributes: Error
103 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\HID.DLL SUCCESS Attributes: A
104 20:02:02 test.exe:600 OPEN C:\WINNT\system32\HID.DLL SUCCESS Options: Open Access: Execute
105 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\HID.DLL SUCCESS
106 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\SETUPAPI.DLL NOT FOUND Attributes: Error
107 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\SETUPAPI.DLL NOT FOUND Attributes: Error
108 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\SETUPAPI.DLL SUCCESS Attributes: A
109 20:02:02 test.exe:600 OPEN C:\WINNT\system32\SETUPAPI.DLL SUCCESS Options: Open Access: Execute
110 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\SETUPAPI.DLL SUCCESS
111 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\USERENV.DLL NOT FOUND Attributes: Error
112 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\USERENV.DLL NOT FOUND Attributes: Error
113 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT\system32\USERENV.DLL SUCCESS Attributes: A
114 20:02:02 test.exe:600 OPEN C:\WINNT\system32\USERENV.DLL SUCCESS Options: Open Access: Execute
115 20:02:02 test.exe:600 CLOSE C:\WINNT\system32\USERENV.DLL SUCCESS
116 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT SUCCESS Attributes: DA
117 20:02:02 test.exe:600 OPEN C:\ SUCCESS Options: Open Directory Access: All
118 20:02:02 test.exe:600 DIRECTORY C:\ SUCCESS FileBothDirectoryInformation: WINNT
119 20:02:02 test.exe:600 CLOSE C:\ SUCCESS
120 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT SUCCESS Attributes: DA
121 20:02:02 test.exe:600 OPEN C:\ SUCCESS Options: Open Directory Access: All
122 20:02:02 test.exe:600 DIRECTORY C:\ SUCCESS FileBothDirectoryInformation: WINNT
123 20:02:02 test.exe:600 CLOSE C:\ SUCCESS
124 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT SUCCESS Attributes: DA
125 20:02:02 test.exe:600 OPEN C:\ SUCCESS Options: Open Directory Access: All
126 20:02:02 test.exe:600 DIRECTORY C:\ SUCCESS FileBothDirectoryInformation: WINNT
127 20:02:02 test.exe:600 CLOSE C:\ SUCCESS
128 20:02:02 test.exe:600 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: All
129 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 0 Length: 64
130 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 256 Length: 248
131 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\test.exe SUCCESS Length: 1314816
132 20:02:02 test.exe:600 CLOSE D:\Standalone\test.exe SUCCESS
133 20:02:02 test.exe:600 OPEN D:\Standalone\test.exe SUCCESS Options: Open Access: All
134 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 0 Length: 64
135 20:02:02 test.exe:600 READ D:\Standalone\test.exe SUCCESS Offset: 256 Length: 248
136 20:02:02 test.exe:600 QUERY INFORMATION D:\Standalone\test.exe SUCCESS Length: 1314816
137 20:02:02 test.exe:600 CLOSE D:\Standalone\test.exe SUCCESS
138 20:02:02 test.exe:600 QUERY INFORMATION C:\WINNT SUCCESS Attributes: DA
139 20:02:02 test.exe:600 OPEN C:\ SUCCESS Options: Open Directory Access: All
140 20:02:02 test.exe:600 DIRECTORY C:\ SUCCESS FileBothDirectoryInformation: WINNT
141 20:02:02 test.exe:600 CLOSE C:\ SUCCESS
142 20:02:02 test.exe:600 CLOSE D:\Standalone SUCCESS
everything looks good... blitzbasic support are you reading this? any hints?
Could it be that is gets a keydown somehow ? Try Flushkeys() before waitkey() or else try delay 5000.
does not help. same as above.
on the freshly installed win2k it works... now installing dx90c and testing again...
works too. hmpf - i cannot reinstall my gameserver, because it's 600km away from here ;(
i am not giving up ;-)
i installed b3d demo on my gameserver - and now i get an errormessage:
mouse: CreateDeviceEx failed
and
Startup Error: input_create failed
at this machine there is no keyboard or mouse connected, cause its a server. maybe this is it?
looks like this is it. unplugged my mouse from my testmachine, and voila b3d does not work anymore...
time to move this thread to BUGS...
well, glad you found it. do i understand correctly that b3d doesn't work without a mouse ?
B3D wont work without a sound card, even if your program doesn't use sound. I guess it won't work without a mouse or keyboard either.
if no keyboard is connected, blitz3d works fine. its just the missing mouse problem. hope mark can fix it.
maybe you could find some virtual mouse device ?
maybe, yeah, but thats not a solution (for me). our upcoming shooter will be a commercial product, and i cannot force the customers to install some virtual mouse device drivers on their servers... i don't think its a hard job for mark for fixing this issue... fingers crossed ;)