Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 04-02-2004, 06:35 AM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

there is a quick fix to run the simulator on windows, for those who don't have *nix text utilities installed.

in EQ\dbaccess.pl file, in the first lines, comment out a block and add another, starting line 14 :
Code:
#foreach $var ( "user","host","password","database"){
# print "reading ",$var, "\n";
# #$dbvars{"db".$var}=`cat $dbinifile | egrep $var | sed 's/$var=//'`;
# $dbvars{"db".$var}=`cat $dbinifile | sed 's/#.*//' | egrep $var | sed 's/$var=
# chomp($dbvars{"db".$var});
#}
 
open(DBINI,$dbinifile);
while(<DBINI>){
  chomp;
  s/\#.*$//;
  if(m/(\w+)=(.+)/){
    print "setting $1 to $2\n";
    $dbvars{"db".$1}=$2;
  }
}
close(DBINI);
It should fix db access for win and still work in *nix.

Also, you need the DBI and DBD modules. install them like this :
Code:
C:>ppm
ppm>install DBI
... downloads and installs
ppm>install DBD::mysql
...This will return 2 results so at the prompt just
type 
...install again and it will install the first package
ppm>install
...downloads and installs package 1 DBD-mysql
Thanks StrangeBrew for the help
Reply With Quote
 


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 On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:31 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3