LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 04-17-2004, 03:27 PM   #1
ach1lles
Member
 
Registered: Feb 2004
Distribution: suse
Posts: 60

Rep: Reputation: 15
how do i..


write a script? i'm trying to get diablo 2 to work with wine, and i looked at franks corner.. the exe crack worked, and the game started. but it's running oddly.. the cd's at speed the whole time, and pauses and reads quite a bit, despite it being a full install. the sounds a bit odd as well, for d2 and q3. there's like this.. echo, like it's playing every sound 3 times very quickly. and in d2 all the speech is coming out verrrrrrrrrrrrrry slowly, despite the actual game playing fine. these errors were recorded in console during play, and at exit.

fixme:x11drv:X11DRV_DDHAL_CreatePalette stub
fixme:dsoundIDirectSoundImp1_SetCooperativeLevel level=DSSCL_PRIORITY not fully supported
err:dsoundirectSoundCreate8 dsound already opened
err:dsoundSOUND_MixOne underrun on sound buffer 0x45f70598
fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x403c9848)->(00030021,00000011)
fixme:xvidmode:x11DRV_XF86VM_SetCurrentMode Cannot change screen BPP from 16 to 8
fixme:winmm:MMDRV_Exit Closing while ll-driver open

now, the sound is irritating (moreso in quake) but it's not the pressing concern here. what is, is getting on bnet. i can't. frankscorner says to play on bnet, you have to dl the current patch, and do this:

To play on Battle.net you need a script:

#!/bin/sh
mv -f Game.exe Game1.exe
mv -f Game_crack.exe Game.exe
wine "Game.exe" &
sleep 2
mv -f Game.exe Game_crack.exe
mv -f Game1.exe Game.exe
exit

Save the script as diablo.sh
Now start Diablo 2 by typing sh diablo.sh

now that's all well and good, i hope it works, but i don't know how to do that. i'm assuming you just write it in whatever text program ya like (because doing it in console didn't work) and then just save it and run it, my question is though, where do you save it to? i've never written a script before, i really don't know how it works. :T help?
 
Old 04-17-2004, 03:39 PM   #2
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
simply put that in a text file, save the text file in your diablo2 directory as diablo2.sh, then do this command:
chmod +x diablo2.sh
then, to run it, type (when youre in the diablo2 directory)
./diablo2.sh
 
Old 04-17-2004, 04:05 PM   #3
ach1lles
Member
 
Registered: Feb 2004
Distribution: suse
Posts: 60

Original Poster
Rep: Reputation: 15
hmm ok well..

it worked. i got it in there, started the game, connected to bnet, it dl'd and installed the patch fine, but then when it tried to restart the game it spat out a good 80-100 lines in the console. starting with this:

wine: Unhandled exception (thread 0016), starting debugger...
WineDbg starting on pid 10
Can't find file for ELF 'wine-kthread' ((nil))

then it does about 50 lines of

No debug information from ELF 'lib/ii686/libthread.so.0' (0x4003001c000)

with different libraries, all in ELF though.

then it starts with

No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\BLAHBLAH.DLL' (0x400300348)

and does another 50 or so lines in 32bit DLL

i could perhaps avoid this by applying the patch manually instead of dl'n it from bnet.. but i can't get that to work. i dl'd the patch from bliz.com but it has troubles with the paths. i even saved the patch.zip in the diablo directory, but when i open it it can't find where to go (despite already being there)

any ideas? cause d2 won't open at all now.
 
Old 04-17-2004, 04:33 PM   #4
ach1lles
Member
 
Registered: Feb 2004
Distribution: suse
Posts: 60

Original Poster
Rep: Reputation: 15
k i found this little tidbit..

Patching the Game with New Official Patches:

Set your symbolic links to the original exe's, then patch the game.
Remember that Blizzard patches like to run the game, which will hang
without the NoCD exe's. Do a "killall wine" after patching.

how do i change symbolic links?
 
Old 04-17-2004, 07:13 PM   #5
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
try winex instead of regular wine:
http://transgaming.org
 
Old 04-17-2004, 07:57 PM   #6
ach1lles
Member
 
Registered: Feb 2004
Distribution: suse
Posts: 60

Original Poster
Rep: Reputation: 15
that doesn't help.
 
Old 04-17-2004, 08:05 PM   #7
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
you mean you tried it and same result? hmm...
for the symlinks (SYMbolic LINKS) this command makes one
ln -s file_you_want_to_link_to name_of_file_link
in this case, you want to make a symlink to your non-cracked diablo2 executable.
 
Old 04-20-2004, 10:50 AM   #8
_Master_
LQ Newbie
 
Registered: Sep 2003
Location: Tromsų, Norway
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 15
uhm. i did not get that symlinks stuff :S i can use the script to start D2. But i cant connect to bnet :\ I wanna play online.

I get this error;
bash-2.05b# ln -s Diablo II.exe
ln: ./Diablo II.exe: file exists

Last edited by _Master_; 04-20-2004 at 11:00 AM.
 
Old 04-20-2004, 06:51 PM   #9
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
well, is that your non-cracked file or your cracked file? if its noncracked, move it to diablo2.old and symlink that.
 
Old 04-21-2004, 03:01 PM   #10
_Master_
LQ Newbie
 
Registered: Sep 2003
Location: Tromsų, Norway
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 15
thats the originale game exe. the cracked file is called game.exe
 
Old 04-21-2004, 03:43 PM   #11
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
do this:
mv Diablo II.exe diablo2.old
mv game.exe diablo2.exe
ln -s diablo2.old Diablo II.exe
edit the script as nessesary.
 
Old 04-21-2004, 04:30 PM   #12
_Master_
LQ Newbie
 
Registered: Sep 2003
Location: Tromsų, Norway
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 15
still not working.. just get this error all the time.
Battle.net is unable to properly identify your application version
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration