Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Still can't build screensaver #265119
05/10/09 13:28
05/10/09 13:28
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Dear Conitec,

Congratulations on a GREAT product. smile

I am trying to make a screensaver, out of a level, that Windows can launch automatically when my computer is idle. Following the manual, I did the following:

1. I made a level (just a room), named it myscreen. Gave it an ordinary A6 script.

2. I built it like a level (Build BSP Map). It runs fine when I press "Run"

3. I published it by checking the "resource" and "compile EXE" checkboxes.

4. I get a folder named myscreen.cd which contains the files: acknex.dll, d3dx9_30.dll, myscreen.wrs, palette, and the application myscreen.exe.

5. I renamed the application myscreen in myscreen.cd folder to myscreen.scr (right click-> rename-> etc.).

6. I copy/paste these 5 files in the C:/Windows/system folder.

7. BUT, when I right-click on the desktop -> Properties -> Screen Saver -> List of screensavers, I do no see any of the files I copy/pasted (I also tried C/P in system32).

Also, when I simply click on myscreen.scr (in system or system 32), I get an error message about a bad image or it does not launch at all.

I tried this procedure on 3 PCs (all running WinXP pro), including a brand new Lenovo laptop set up at the factory, but with no success.

I think I used all the information in the manual on this subject. I tried getting help on the "Starting with Gamestudio" and "C-script and wdl" forums. Everybody kept saying that what I did should work. I did get some info about how to set up the screen saver to react to keyboard and mouse input (with the command_str command) when the screensaver is running.

However, I can't do the first step, i.e. selecting myscreen and getting Windows to launch it.

Since it's not 3DGS or my 3 PCs which are at fault, I'm assuming that I am the problem.

Please tell me what am I doing wrong? Is there a special build or Run option, or something I have to put in the script, or something else ...? Seems I can win 2 Gamestudio contests, but I cannot do that particular simple thing. crazy

Many Thanks in advance.

Thomas Gisiger

PS: I am using A7.7 Pro

Re: Still can't build screensaver [Re: ngisiger] #265121
05/10/09 13:54
05/10/09 13:54
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Hi,

you should rename your program back to .exe and start it again from your windows folder where you placed your screensaver.
What is your Windows Version? XP Home, XP Pro, Vista 32/64, Windows 7 Beta/RC...

Re: Still can't build screensaver [Re: slacer] #265132
05/10/09 15:37
05/10/09 15:37
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
@slacer:
Quote:
I tried this procedure on 3 PCs (all running WinXP pro)


Re: Still can't build screensaver [Re: Cowabanga] #265138
05/10/09 16:14
05/10/09 16:14
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
oops, missed that line...

Re: Still can't build screensaver [Re: slacer] #265143
05/10/09 17:52
05/10/09 17:52
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Thanks guys for your help. smile

Sorry about the long post. Yes, I have Win XP Pro on all machines.

If I rename myscreen.scr (the one in the Windows/system folder) back to myscreen.exe and double-click on it, I get the same Bad Image message as before.

It starts by complaining about avicap.dll, then avifile.dll, then commdlg.dll, then lzexpand.dll, then mmsystem.dll, then msvideo.dll, olecli.dll, then olescr.dll, then shell.dll, then tapi.dll, then ver.dll, before finally running level (all greek to me, I must admit).

Stupid question: to rename the application to myscreen.scr, I just do right click->rename-> and type .scr at the end. That's the correct way, right?

Thanks.

Re: Still can't build screensaver [Re: ngisiger] #265156
05/10/09 19:52
05/10/09 19:52
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
You probably should test this with an extremely simple demo.
Just an empty level with a rotating object. Something like that.

BTW, in your quite detailed description I'm missing the part about testing the exe before you renamed it and copied it into the windows folder etc.

Re: Still can't build screensaver [Re: Pappenheimer] #265169
05/10/09 21:18
05/10/09 21:18
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Hi Pappenheimer, thanks for your input.

Quote:
You probably should test this with an extremely simple demo.

I am using a small room with 4 walls, ceiling and floor, with the default texture and a camera. Can't be simpler than that. smile

Quote:
BTW, in your quite detailed description I'm missing the part about testing the exe before you renamed it and copied it into the windows folder etc.

I think we might be getting somewhere here:

As long as I copy/paste the myscreen.cd folder with all its content (i.e. acknex.dll, d3dx9_30.dll, myscreen.scr, myscreen.wrs and palette), then the level runs fine when I double-click on myscreen.scr or myscreen.exe (if I rename it that way), no matter where it is on the computer: on the Desktop, C:, /c:windows, C:windows/system or C:windows/system32, etc. So, that parts works perfectly.

But, when I just copy the 5 files contained in myscreen.cd (see above), and then paste them (so without a folder to hold them), then clicking on myscreen.scr does not work in /c:windows, C:windows/system or C:windows/system32.

It does work however on the desktop, in C:, in C:Programs Files, etc.

Re: Still can't build screensaver [Re: ngisiger] #265207
05/11/09 08:01
05/11/09 08:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The reason of your problem is probably simple: Windows/system32 is not a folder where the engine should search for engine plugins. Set the plugins directory to a different folder.

From the manual:

"On startup, the engine scans for plugin DLLs in the current folder and in the PLUGINDIR folder. This can lead to a slow start when the folders contain lots of DLLs that are no engine plugins - for instance, when the engine is used as a screensaver and started from a Windows folder. If a DLL crashes on opening, the engine crashes also. Thus make sure that PLUGINDIR is set to a folder that only contains engine plugin DLLs."

Re: Still can't build screensaver [Re: jcl] #265299
05/11/09 20:40
05/11/09 20:40
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Many thanks to JCL, and to all the nice people who gave their input.

I put

PLUGINDIR = "dummy";

in the wdl file of my level, and published the level like I did before. I then copy/pasted the 5 files I obtained (acknex.dll, palette, mysaver.scr, mysaver.wrs and d3dx9_30.dll) into the C:windows/system32 folder, and I also added an empty folder "dummy" there. This way, the engine does not look for plugins in the windows folder, but in the empty "dummy" folder.

Now, when I click on myscreen.scr, the level launches perfectly. Great! grin

However, I still do not see anything that looks like "mysaver" in the list of screen savers I get when doing right click ->properties -> screen saver. cry cry cry

Isn't it supposed to be there somewhere, so that I can select the level as screensaver?

I really feel like such a pest, but I promise: if I ever get it to work, I'll write a tutorial so that the whole community can benefit from this. smile

Thomas

Re: Still can't build screensaver [Re: ngisiger] #265311
05/11/09 22:24
05/11/09 22:24
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
you are put the .scr in a wrong folder?
also you try to press the rigth button over .scr and press
install screensaver

Last edited by Felixsg; 05/12/09 10:03.
Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1