Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I want to start the games of doomsday from gameex, I identified the command line for every game inside the file "KickStart.out"

Every game has a command line very different and very long not to be possible *. lnk, how can I do?

With batch files is not working well

I do not know autoit use, help me... :(

Examples of my command line :

" Doom 2 (Doomsday engine) " :

jdoom -bd M:\Giochi\Emulatori\Doomsday\ -mem 512m -sfxchan 32 -b 32 -wh 800 600 -g M:\Giochi\Emulatori\Doomsday\bin\jDoom.dll -d M:\Giochi\Emulatori\Doomsday\defs\jDoom\jDoom.ded M:\Giochi\Emulatori\Doomsday\defs\jdoom\doomdata.ded -f M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata.pk3 M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata1.pk3 -vtxar -novtxar -r M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll

" Doom Sony Playstation Edition (Doomsday Engine) "

jdoom -bd M:\Giochi\Emulatori\Doomsday\ -mem 512m -sfxchan 32 -b 32 -wh 800 600 -g M:\Giochi\Emulatori\Doomsday\bin\jdoom.dll -d M:\Giochi\Emulatori\Doomsday\defs\cdoom\cdoom.ded -f M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa M:\Giochi\Emulatori\Doomsday\Wads\cdoom.gwa M:\Giochi\Emulatori\Doomsday\Wads\cdoom.wad M:\Giochi\Emulatori\Doomsday\Wads\cdoommus.wad -vtxar -novtxar -nohightex -nohighpat -nohudmod -nomonstermod -noplayermod -nogweaponmod -noitemmod -nofxmod -nodecormod -r M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll

" Heretic : Shadow Of the Serpent Riders (Doomsday Engine) "

jdoom -bd M:\Giochi\Emulatori\Doomsday\ -mem 512m -sfxchan 32 -b 32 -wh 800 600 -g M:\Giochi\Emulatori\Doomsday\bin\jHeretic.dll -d M:\Giochi\Emulatori\Doomsday\defs\jHeretic\jHeretic.ded -f M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.WAD M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.gwa M:\Giochi\Emulatori\Doomsday\data\jHeretic\hereticdata.pk3 -vtxar -novtxar -r M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll

Posted

Maybe use AutoIt...

Doom 2 (Doomsday engine)

RunWait ( @ScriptDir & '\jdoom.exe -bd & _
M:\Giochi\Emulatori\Doomsday\ & _
-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g & _
M:\Giochi\Emulatori\Doomsday\bin\jDoom.dll -d & _
M:\Giochi\Emulatori\Doomsday\defs\jDoom\jDoom.ded & _
M:\Giochi\Emulatori\Doomsday\defs\jdoom\doomdata.ded -f & _
M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD & _
M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa & _
M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata.pk3 & _
M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata1.pk3 & _
-vtxar -novtxar -r & _
M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )

Doom Sony Playstation Edition (Doomsday Engine)

RunWait ( @ScriptDir & '\jdoom.exe -bd & _
M:\Giochi\Emulatori\Doomsday\ & _
-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g & _
M:\Giochi\Emulatori\Doomsday\bin\jdoom.dll -d & _
M:\Giochi\Emulatori\Doomsday\defs\cdoom\cdoom.ded -f & _
M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD & _
M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa & _
M:\Giochi\Emulatori\Doomsday\Wads\cdoom.gwa & _
M:\Giochi\Emulatori\Doomsday\Wads\cdoom.wad & _
M:\Giochi\Emulatori\Doomsday\Wads\cdoommus.wad & _
-vtxar -novtxar -nohightex -nohighpat -nohudmod & _
-nomonstermod -noplayermod -nogweaponmod & _
-noitemmod -nofxmod -nodecormod -r & _
M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )

Heretic: Shadow Of the Serpent Riders (Doomsday Engine)

RunWait ( @ScriptDir & '\jdoom.exe -bd & _
M:\Giochi\Emulatori\Doomsday\ & _
-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g & _
M:\Giochi\Emulatori\Doomsday\bin\jHeretic.dll -d & _
M:\Giochi\Emulatori\Doomsday\defs\jHeretic\jHeretic.ded -f & _
M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.WAD & _
M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.gwa & _
M:\Giochi\Emulatori\Doomsday\data\jHeretic\hereticdata.pk3 & _
-vtxar -novtxar -r & _
M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )

Posted

The problem is not resolved, bat and autoit give the same result :

The game run but gameex returns active .

I have gameex and doom active, what can I do?

gameex config ?

Posted

The only reason GameEx would take over again is if it thinks the game is done. This would happen if the process GameEx launches terminates. So, for example:

* if you launch a game and then quit, it will go back to GameEx

* if you launch a script that launches a game and the script exits, it will go back to GameEx

* if you lauhch a script that launches a game and waits for the game to exit, GameEx won't take over until the script terminates

* if you launch a script that launches a game launcher, the script will exit when the launcher terminates and will cause the game to play in the background of GameEx

If you are experiencing the 4th case, then you would need to have the script watch for the game to exit before it terminates. I don't know anything about doomsday, so I can't say if it's a launcher or not. I'm just throwing out a few ideas for you to consider and maybe you will see the actual problem.

Posted
The problem is not resolved, bat and autoit give the same result :

The game run but gameex returns active .

I have gameex and doom active, what can I do?

gameex config ?

Ahhh, I forgot about that. You should have posted the issue you were having, I set it up so long ago I forgot about that...

Make an advanced config. Add "doomsday.exe" to the list of additional processes to wait for.

I wrote my own custom launcher (prior to GameEx's advanced config) that does essentially the same thing.

alternatively you can try adding this to the bottom of your .bat file

:loop

rem this ping command effectively sleeps for a second

ping 127.0.0.1 -n 2 -w 1000 > nul

tasklist | find "doomsday.exe"

if not errorlevel 1 goto loop

This loops waiting for doomsday.exe to exit. If you're running xp home you may need to verify that your PC has "tasklist.exe", it may only come with xp media center or pro. If you don't have it you can probably find it on the net somewhere.

Posted
:loop

rem this ping command effectively sleeps for a second

ping 127.0.0.1 -n 2 -w 1000 > nul

tasklist | find "doomsday.exe"

if not errorlevel 1 goto loop

Many thanks !!! With this method it works... :)

Posted

If you go with a batch file and you have winXP, there is also a sleep command available. You have to download sleep.exe, but it's easy to use. Either way works, but I thought I would post it since I've used it before and it works great!

Detailed how to...

Posted

Yeah, I have a huge "utils" directory that has tons of Unix ports of command line tools and all sorts of other assorted things to make my batch file life simpler. I was trying to keep things as simple as possible for him. The ping command as an alternative to sleep doesn't look pretty but it's just as effective and available on every XP machine. :)

Posted

Agreed. I was just pointing out that there is a more elegant solution if needed. I don't use it currently since almost all of my scripts are now in AHK format.

Posted

Well since I didn't have all the info...still don't really but the following should now work fine.

Corrected:

Doom 2 (Doomsday engine)

Run ( @ScriptDir & '\jdoom.exe -bd ' & _
'M:\Giochi\Emulatori\Doomsday\ ' & _
'-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g ' & _
'M:\Giochi\Emulatori\Doomsday\bin\jDoom.dll -d ' & _
'M:\Giochi\Emulatori\Doomsday\defs\jDoom\jDoom.ded ' & _
'M:\Giochi\Emulatori\Doomsday\defs\jdoom\doomdata.ded -f ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa ' & _
'M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata.pk3 ' & _
'M:\Giochi\Emulatori\Doomsday\data\jDoom\doomdata1.pk3 ' & _
'-vtxar -novtxar -r ' & _
'M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )
ProcessWait ( 'doomsday.exe' )
ProcessWaitClose( 'doomsday.exe' )

Doom Sony Playstation Edition (Doomsday Engine)

Run ( @ScriptDir & '\jdoom.exe -bd ' & _
'M:\Giochi\Emulatori\Doomsday\ ' & _
'-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g ' & _
'M:\Giochi\Emulatori\Doomsday\bin\jdoom.dll -d ' & _
'M:\Giochi\Emulatori\Doomsday\defs\cdoom\cdoom.ded -f ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.WAD ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\DOOM2.gwa ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\cdoom.gwa ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\cdoom.wad ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\cdoommus.wad ' & _
'-vtxar -novtxar -nohightex -nohighpat -nohudmod ' & _
'-nomonstermod -noplayermod -nogweaponmod &' & _
'-noitemmod -nofxmod -nodecormod -r ' & _
'M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )
ProcessWait ( 'doomsday.exe' )
ProcessWaitClose( 'doomsday.exe' )

Heretic: Shadow Of the Serpent Riders (Doomsday Engine)

Run ( @ScriptDir & '\jdoom.exe -bd ' & _
'M:\Giochi\Emulatori\Doomsday\ ' & _
'-mem 512m -sfxchan 32 -b 32 -wh 800 600 -g ' & _
'M:\Giochi\Emulatori\Doomsday\bin\jHeretic.dll -d ' & _
'M:\Giochi\Emulatori\Doomsday\defs\jHeretic\jHeretic.ded -f ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.WAD ' & _
'M:\Giochi\Emulatori\Doomsday\Wads\HERETIC.gwa ' & _
'M:\Giochi\Emulatori\Doomsday\data\jHeretic\hereticdata.pk3 ' & _
'-vtxar -novtxar -r ' & _
'M:\Giochi\Emulatori\Doomsday\Bin\drOpenGL.dll' )
ProcessWait ( 'doomsday.exe' )
ProcessWaitClose( 'doomsday.exe' )

  • 3 months later...
Posted

Please help me writing down a script!

I'm using:

deng-1.9.0-beta5.1-setup.exe last version

autoit-v3-setup.exe last version

The exe file is in C:\Programmi\Doomsday\bin\Doomsday.exe

This is the command line out of Doomsday Engine

-basedir "C:\Programmi\Doomsday"

-userdir "C:\Programmi\Doomsday\snowberry\runtime"

-gl drOpenGL.dll

-sfxchan 16

-texcomp

-anifilter

-wh 800 600

-game jDoom.dll

-iwad "C:\Documents and Settings\utente\Documenti\DoomII\(32)[sCD](MAP01-MAP32){id Software}Doom II v1.9.wad"

-allowsoftware

-bpp 32

Please help me writing down the script for AutoIt.

Thanks

Posted

mmm something like this I guess:

Run ( @ScriptDir & '\Doomsday.exe ' & _ 
'-basedir "C:\Programmi\Doomsday" ' & _
'-userdir "C:\Programmi\Doomsday\snowberry\runtime" ' & _
'-gl drOpenGL.dll ' & _
'-sfxchan 16 ' & _
'-texcomp ' & _
'-anifilter ' & _
'-wh 800 600 ' & _
'-game jDoom.dll ' & _
'-iwad "C:\Documents and Settings\utente\Documenti\DoomII\(32)[SCD](MAP01-MAP32){id Software}Doom II v1.9.wad" ' & _
'-allowsoftware ' & _
'-bpp 32 ' )

ProcessWaitClose( 'doomsday.exe' )

Posted
mmm something like this I guess:

Run ( @ScriptDir & '\Doomsday.exe ' & _ 
'-basedir "C:\Programmi\Doomsday" ' & _
'-userdir "C:\Programmi\Doomsday\snowberry\runtime" ' & _
'-gl drOpenGL.dll ' & _
'-sfxchan 16 ' & _
'-texcomp ' & _
'-anifilter ' & _
'-wh 800 600 ' & _
'-game jDoom.dll ' & _
'-iwad "C:\Documents and Settings\utente\Documenti\DoomII\(32)[SCD](MAP01-MAP32){id Software}Doom II v1.9.wad" ' & _
'-allowsoftware ' & _
'-bpp 32 ' )

ProcessWaitClose( 'doomsday.exe' )

I have understood why in your avatar i see "Ultimate GameEX Guru".

It work like a charm, Thanks.

Another question....

I'm working in a testing machine can i copy this file in the production machine or i need to intsall AutoIt also in production machine.

Thanks for all.

Posted
Another question....

I'm working in a testing machine can i copy this file in the production machine or i need to intsall AutoIt also in production machine.

For copy i mean the exe file!

Sorry for double post!

Posted

I have tested it it work very well!

Another question......

How to set up a Emulator configuration to start doomsday?

I have a DoomII.exe ( AutoIt compiled script ) but i dont have roms like emulator....

Every [GAME].exe files is my roms....

When i select the Doomsday ( Emulator 11 ) folder i didnt find any item in the list!

Please help me, sending some code :)

Thanks

Posted

Thanks if work great, ( i have removed *.wad in the filter roms! )

Now i have another problem....

When DoomII.exe start i see a "DOS box" cmdline windows with:

CD directory.....

Start Xpadder.exe .....

DoomII.exe

tskill xpadder

c:\Program\Doomsday\bin\doomsday.exe PAUSE

[Press a key to continue]

But my cabinet didnt have any key set ( i think the xpadder didnt start! ), i must enter using the remote desktop to start Doom, but it find some problem duo a Remote desktop ecc.

Question:

I must integrate Xpadder call in the AutoIt script?

How to do this?

Another general question, exiting the GameEx i didnt have the try bar, it is a know problem or you think it is a HideXP problem?

Thanks for all

Beer payed for you!

Posted

I was having net problems last night so wasn't able to answer...and now I'm heading out of town till Sunday night...so you'll have to wait for me or get one of the other guys to lend a hand.

Posted
I was having net problems last night so wasn't able to answer...and now I'm heading out of town till Sunday night...so you'll have to wait for me or get one of the other guys to lend a hand.

I wait you :)

I do some test....

After launching the Autoit exe file i see:

Promt> C:

c:> cd c:\Program\Doomsday\bin

@Echo off ( this is a launch before command )

DoomII.exe

Echo ON

c:\Program\Doomsday\bin\>PAUSE

Press a key to continue

Run(@ComSpec & " /c " & '@ECHO OFF', "", @SW_HIDE)

Run ( 'c:\Programmi\xpadder\xpadder.exe "DoomII.xpadderprofile" "DoomII-1.xpadderprofile" /M' )

Run ( @ScriptDir & '\Doomsday.exe ' & _
'-basedir "C:\Programmi\Doomsday" ' & _
'-userdir "C:\Programmi\Doomsday\snowberry\runtime" ' & _
'-gl drOpenGL.dll ' & _
'-sfxchan 16 ' & _
'-nowsk' & _
'-texcomp ' & _
'-anifilter ' & _
'-wh 640 480 ' & _
'-game jDoom.dll ' & _
'-iwad "C:\Emulators\Doomsday\DoomII\(32)[SCD](MAP01-MAP32){id Software}Doom II v1.9.wad" ' & _
'-bpp 32 ' )

ProcessWaitClose( 'doomsday.exe' )

Run ( "tskill xpadder" )

This is the code of script.

I wait your reply

Posted

Run(@ComSpec & " /c " & '@ECHO OFF', "", @SW_HIDE)

Echo Off only really applies to Batch scripts....so thats not needed.

Run ( 'c:\Programmi\xpadder\xpadder.exe "DoomII.xpadderprofile" "DoomII-1.xpadderprofile" /M' )

Probably would be better to just use Launch Before: than in the script...but really doesn't matter...are the profiles in the Xpadder folder...or the Doom folder? As it sits Xpadder will assume the profiles are in its folder & not else where...even then should probably be written as:

Run ( 'c:\Programmi\xpadder\xpadder.exe ".\DoomII.xpadderprofile" ".\DoomII-1.xpadderprofile" /M' )

You also probably don't need the /M switch as there is a option in Xpadder to minimize on profile load...which would probably be better.

Now with the newer builds of Xpadder you should be able to just use Launch Before:

Xpadder ".\DoomII.xpadderprofile" ".\DoomII-1.xpadderprofile"

And thats it...unless your running Vista...then you'll need to be running Xpadder with Admin rights to do that...other wise you'll have to add the pathing to where Xpadder is like you did prior.

Also you don't need to Task Kill Xpadder as it will die of its own accord if told to do so using Launch After:

Xpadder /C

That said if you wanted it all in AutoIt...it should look like so:

Run ( 'c:\Programmi\xpadder\xpadder.exe ".\DoomII.xpadderprofile" ".\DoomII-1.xpadderprofile"' )

Run ( @ScriptDir & '\Doomsday.exe ' & _
'-basedir "C:\Programmi\Doomsday" ' & _
'-userdir "C:\Programmi\Doomsday\snowberry\runtime" ' & _
'-gl drOpenGL.dll ' & _
'-sfxchan 16 ' & _
'-nowsk ' & _
'-texcomp ' & _
'-anifilter ' & _
'-wh 640 480 ' & _
'-game jDoom.dll ' & _
'-iwad "C:\Emulators\Doomsday\DoomII\(32)[SCD](MAP01-MAP32){id Software}Doom II v1.9.wad" ' & _
'-bpp 32 ' )

ProcessWaitClose( 'doomsday.exe' )

ProcessClose ( 'xpadder.exe' )

Posted
Promt> C:

c:> cd c:\Program\Doomsday\bin

DoomII.exe

Echo ON

c:\Program\Doomsday\bin\>PAUSE

Press a key to continue

The same!

Thanks for the support, i'm afraid for your ban.

If anyone can help me, please reply.

Thanks for all in the comunity

Guest
This topic is now closed to further replies.
×
×
  • Create New...