Need little help with windows 7

Results 1 to 11 of 11
  1. #1
    Enthusiast roplys_ is offline
    MemberRank
    Nov 2004 Join Date
    49Posts

    Need little help with windows 7

    I have created Cabal server on my old pc with win xp long ago, it was the oldest server files without EP2 stuff.

    I just got a new PC with Windows 7.
    Restored databases with MSSQL2005 Express + sp3 I think everything went fine. Used chump_db_9.8.2008 databases
    I Used VMware Workstation v6.5.1 and installed CentOS v4.8 still no errors.
    I have installed Chumpy's-Cabal-repack-v2.5-final server files into CentOS and all services run just fine.
    Only left 1 problem.
    Now I have 2 PC's so I used router to create a mini LAN so both PC's would have internet, but now I don't know how to connect my CentOS machine with MSSQL. I keep getting DB connect failed errors in DBagent log files
    my IP from ipconfig in cmd: 192.168.1.100
    WAN IP:77.221.78.194
    CentOS IP:192.168.159.128
    I can only connect to CentOS with WinSCP using this IP 192.168.159.128

    Which IP addresses I should enter when I type cabal_config
    IP players will connect to [192.168.159.128] : ???.???.???.???
    Enter MSSQL server IP : ???.???.???.???
    Enter MSSQL DB username : sa
    Enter MSSQL DB password (text is not displayed) :

    Fri Mar 5 09:00:24 CET 2010: WAN IP check called but is disabled.
    Starting GlobalDBAgent: [ OK ]
    Starting GlobalMgrSvr: [ OK ]
    Starting CashDBAgent: [ OK ]
    Starting DBAgent_01: [ OK ]
    Starting ChatNode_01: [ OK ]
    Starting WorldSvr_01_01: [ OK ]
    Starting LoginSvr_01: [ OK ]

    This is the error in logs
    Code:
    [Fri Mar  5 2010 09:08:04.387727 3002682272]: [##ERROR##] DB ERROR(MSG)      : [unixODBC][FreeTDS][SQL Server]Server is unavailable or does not exist.
    [Fri Mar  5 2010 09:08:04.387950 3002682272]: [##ERROR##] DB ERROR(CODE)     : 20009
    [Fri Mar  5 2010 09:08:04.388051 3002682272]: [##ERROR##] DB ERROR(VAR_INFO) : 
    [Fri Mar  5 2010 09:08:04.388120 3002682272]: [##ERROR##] DB ERROR(SQLSTATE) : 08S01
    [Fri Mar  5 2010 09:08:04.388209 3002682272]: [##ERROR##] DB ERROR(STM_TEXT) : 
    [Fri Mar  5 2010 09:08:04.388285 3002682272]: [##ERROR##] Database Connect Fail (uid=sa;pwd=xxxxx;dsn=CabalAccount;APP=GlobalDBAgent)
    [Fri Mar  5 2010 09:08:04.388582 3002682272]: [##ERROR##] check 'pDB' fail
    [Fri Mar  5 2010 09:08:04.388656 3002682272]: [##ERROR##] 'OnIPCAuthAccount' fail (Database/Auth.cpp:96)
    [Fri Mar  5 2010 09:08:04.388739 3002682272]: [##ERROR##] UsrMap Fail : MainCmd(30) Ret(60:0:96) Addr(127.0.0.1)
    Last edited by roplys_; 05-03-10 at 10:09 AM.


  2. #2
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: Need little help with windows 7

    in my opinion...

    1st...
    u must change ur CentOS ip from 192.168.159.128 to 192.168.1.xxx
    dis is they way to make ur centos and ur mssql connect
    2nd...
    u must freeze ur ip(Mssql)setting ur router..if u not..u will config ur ip everytime when u start ur mssql pc..use Address Reservation in ur router (setting ur MAC add.)

    Which IP addresses I should enter when I type cabal_config
    IP players will connect to [192.168.159.128] : Centos IP(offline mode) and WAN IP(for Online Mode)
    Enter MSSQL server IP : 192.168.1.100<<--ur mssql ip
    Enter MSSQL DB username : sa
    Enter MSSQL DB password (text is not displayed) :

    hope it would help...
    am i rite??tell me if i wrong

  3. #3
    Enthusiast roplys_ is offline
    MemberRank
    Nov 2004 Join Date
    49Posts

    Re: Need little help with windows 7

    Well, you ARE right but when I change CentOS IP to 192.168.1.x then WinSCP stops working (can't connect to CentOS) and I can't install server files :/

    And I have already freezed my IP to 192.168.1.100

    Can you explain me how to change CentOS IP and connect to that IP ?
    Because when I open terminal type setup then go to Network Configuration and configure it to 192.168.1.x and restart I can't connect with WinSCP
    Maby I need to configure something in VMware first ? I used Bridged connection type

    P.S. Does it have to be internet on CentOS when launching firefox in it ?
    Last edited by roplys_; 05-03-10 at 02:21 PM.

  4. #4
    Account Upgraded | Title Enabled! FastBlade is offline
    MemberRank
    May 2009 Join Date
    BucharestLocation
    212Posts

    Re: Need little help with windows 7

    [QUOTE=roplys_;5545408]I have created Cabal server on my old pc with win xp long ago, it was the oldest server files without EP2 stuff.

    I just got a new PC with Windows 7.
    Restored databases with MSSQL2005 Express + sp3 I think everything went fine. Used chump_db_9.8.2008 databases
    I Used VMware Workstation v6.5.1 and installed CentOS v4.8 still no errors.
    I have installed Chumpy's-Cabal-repack-v2.5-final server files into CentOS and all services run just fine.
    Only left 1 problem.
    Now I have 2 PC's so I used router to create a mini LAN so both PC's would have internet, but now I don't know how to connect my CentOS machine with MSSQL. I keep getting DB connect failed errors in DBagent log files
    my IP from ipconfig in cmd: 192.168.1.100
    WAN IP:77.221.78.194
    CentOS IP:192.168.159.128
    I can only connect to CentOS with WinSCP using this IP 192.168.159.128

    Which IP addresses I should enter when I type cabal_config
    IP players will connect to [192.168.159.128] : ???.???.???.???
    Enter MSSQL server IP : ???.???.???.???
    Enter MSSQL DB username : sa
    Enter MSSQL DB password (text is not displayed) :

    Fri Mar 5 09:00:24 CET 2010: WAN IP check called but is disabled.
    Starting GlobalDBAgent: [ OK ]
    Starting GlobalMgrSvr: [ OK ]
    Starting CashDBAgent: [ OK ]
    Starting DBAgent_01: [ OK ]
    Starting ChatNode_01: [ OK ]
    Starting WorldSvr_01_01: [ OK ]
    Starting LoginSvr_01: [ OK ]

    if you want your server on LAN mode put in centos 192.168.1.101
    when you execute cabal_config type there 192.168.1.101
    then your mssql IP is your lan ip(the one you found with ipconfig in cmd)192.168.1.100
    default username on MSSQL is :sa
    The password only you know it...
    After this in WinSCP enter your centos IP 192.168.1.101 to be able to connect..
    P.S:When you"re done with this you will probably want gm tools...there you enter your lan ip 192.168.1.100
    hope it helped

  5. #5
    Member fireblade3 is offline
    MemberRank
    Jun 2009 Join Date
    Pahang MYLocation
    91Posts

    Re: Need little help with windows 7

    when ur centos in a range(router IP setting)u can connnect to internet when lunching a firefox(centos)
    try check ur adepter

  6. #6
    Enthusiast roplys_ is offline
    MemberRank
    Nov 2004 Join Date
    49Posts

    Re: Need little help with windows 7

    OK I managed to change CentOS IP to 192.168.1.101 and now there is internet inside CentOS :) and WinSCP WORKS :)

    But I still get this
    Code:
    [Fri Mar  5 2010 13:33:12.306031 3044264864]: [##ERROR##] DB ERROR(MSG)      : [unixODBC][FreeTDS][SQL Server]Server is unavailable or does not exist.
    [Fri Mar  5 2010 13:33:12.306188 3044264864]: [##ERROR##] DB ERROR(CODE)     : 20009
    [Fri Mar  5 2010 13:33:12.306264 3044264864]: [##ERROR##] DB ERROR(VAR_INFO) : 
    [Fri Mar  5 2010 13:33:12.306318 3044264864]: [##ERROR##] DB ERROR(SQLSTATE) : 08S01
    [Fri Mar  5 2010 13:33:12.306365 3044264864]: [##ERROR##] DB ERROR(STM_TEXT) : 
    [Fri Mar  5 2010 13:33:12.306416 3044264864]: [##ERROR##] Database Connect Fail (uid=sa;pwd=xxx;dsn=CabalGame01;APP=DBAgent_01)
    [Fri Mar  5 2010 13:33:12.306637 3044264864]: [##ERROR##] check 'pDB' fail
    [Fri Mar  5 2010 13:33:12.306685 3044264864]: [##ERROR##] 'OnIPCCensusNation' fail (Database/Nation.cpp:9)
    [Fri Mar  5 2010 13:33:12.306784 3044264864]: [##ERROR##] UsrMap Fail : MainCmd(57) Ret(9:0:9) Addr(127.0.0.1)
    [Fri Mar  5 2010 13:36:21.297267 3086224288]: [##ERROR##] DB ERROR(MSG)      : [unixODBC][FreeTDS][SQL Server]Server is unavailable or does not exist.
    [Fri Mar  5 2010 13:36:21.297673 3086224288]: [##ERROR##] DB ERROR(CODE)     : 20009
    [Fri Mar  5 2010 13:36:21.297760 3086224288]: [##ERROR##] DB ERROR(VAR_INFO) : 
    [Fri Mar  5 2010 13:36:21.297885 3086224288]: [##ERROR##] DB ERROR(SQLSTATE) : 08S01
    [Fri Mar  5 2010 13:36:21.297968 3086224288]: [##ERROR##] DB ERROR(STM_TEXT) : 
    [Fri Mar  5 2010 13:36:21.298077 3086224288]: [##ERROR##] Database Connect Fail (uid=sa;pwd=xxxx;dsn=CabalGame01;APP=DBAgent_01)
    [Fri Mar  5 2010 13:36:21.298183 3086224288]: [##ERROR##] check 'pDB' fail
    [Fri Mar  5 2010 13:36:21.298246 3086224288]: [##ERROR##] 'OnIPCIWarGetLastNationRewardWarResults' fail (Database/InstantWar.cpp:140)
    [Fri Mar  5 2010 13:36:21.298371 3086224288]: [##ERROR##] UsrMap Fail : MainCmd(600) Ret(8C:0:140) Addr(127.0.0.1)
    [Fri Mar  5 2010 13:39:30.287301 3086224288]: [##ERROR##] DB ERROR(MSG)      : [unixODBC][FreeTDS][SQL Server]Server is unavailable or does not exist.
    [Fri Mar  5 2010 13:39:30.287495 3086224288]: [##ERROR##] DB ERROR(CODE)     : 20009
    [Fri Mar  5 2010 13:39:30.287543 3086224288]: [##ERROR##] DB ERROR(VAR_INFO) : 
    [Fri Mar  5 2010 13:39:30.287589 3086224288]: [##ERROR##] DB ERROR(SQLSTATE) : 08S01
    [Fri Mar  5 2010 13:39:30.287634 3086224288]: [##ERROR##] DB ERROR(STM_TEXT) : 
    [Fri Mar  5 2010 13:39:30.287683 3086224288]: [##ERROR##] Database Connect Fail (uid=sa;pwd=ailina;dsn=CabalGame01;APP=DBAgent_01)
    [Fri Mar  5 2010 13:39:30.287742 3086224288]: [##ERROR##] check 'pDB' fail
    [Fri Mar  5 2010 13:39:30.287787 3086224288]: [##ERROR##] 'OnIPCIWarGetLastNationRewardWarResults' fail (Database/InstantWar.cpp:140)
    [Fri Mar  5 2010 13:39:30.287846 3086224288]: [##ERROR##] UsrMap Fail : MainCmd(600) Ret(8C:0:140) Addr(127.0.0.1)
    [Fri Mar  5 2010 13:42:39.290472 3086224288]: [##ERROR##] DB ERROR(MSG)      : [unixODBC][FreeTDS][SQL Server]Server is unavailable or does not exist.
    [Fri Mar  5 2010 13:42:39.290794 3086224288]: [##ERROR##] DB ERROR(CODE)     : 20009
    [Fri Mar  5 2010 13:42:39.290866 3086224288]: [##ERROR##] DB ERROR(VAR_INFO) : 
    [Fri Mar  5 2010 13:42:39.290933 3086224288]: [##ERROR##] DB ERROR(SQLSTATE) : 08S01
    [Fri Mar  5 2010 13:42:39.290997 3086224288]: [##ERROR##] DB ERROR(STM_TEXT) : 
    [Fri Mar  5 2010 13:42:39.291070 3086224288]: [##ERROR##] Database Connect Fail (uid=sa;pwd=xxx;dsn=CabalGame01;APP=DBAgent_01)
    [Fri Mar  5 2010 13:42:39.291161 3086224288]: [##ERROR##] check 'pDB' fail
    [Fri Mar  5 2010 13:42:39.291226 3086224288]: [##ERROR##] 'OnIPCIWarGetLastNationRewardWarResults' fail (Database/InstantWar.cpp:140)
    [Fri Mar  5 2010 13:42:39.291321 3086224288]: [##ERROR##] UsrMap Fail : MainCmd(600) Ret(8C:0:140) Addr(127.0.0.1)

  7. #7
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Need little help with windows 7

    You may as well stop looking at the logs because nothing is going to work until windows and centos can ping each other. I think you keep changing the centos IP to something that isn't in the correct network range which is why it stops working. Leave it on the setting that allows you to connect with winscp.

    If you followed the guide and installed sql as a default instance and enabled remote connections then it is probably the Win7 firewall as that gave me a bit of trouble too. As it has several profiles more than one settings needs applying or disabling.

    Also try the query below on any db and post the results. That will tell me if SQL is properly configured or not.
    PHP Code:
    Declare @insname varchar(25)
    if 
    convert(varchar(25),serverproperty('instancename')) is null
      set 
    @insname='MSSQLSERVER'
    else
      
    set @insname=convert(varchar(25),serverproperty('instancename'))
      
    select @insname as 'Instance',
      
    serverproperty('productversion') as 'Ver'serverproperty('productlevel') as 'SP',
      
    serverproperty('edition') as 'Edition'
      
    if @insname<>'MSSQLSERVER'
      
    begin
        select 
    'THIS IS BAD! You must reinstall MSSQL. Please follow the guides next time.' as 'MSSQL is a named instance!'
      
    end

      begin
        
    Declare @inspath varchar(10),@reg varchar(100),@tcpremote as int
        EXEC master
    .dbo.xp_regread @rootkey='HKEY_LOCAL_MACHINE',
        @
    key='Software\Microsoft\Microsoft SQL Server\Instance Names\SQL\',
        @value_name=@insname,
        @value=@inspath OUTPUT
        set @reg='
    Software\Microsoft\Microsoft SQL Server\' + @inspath + '\MSSQLSERVER\SuperSocketNetLib\tcp\'
        EXEC master.dbo.xp_regread @rootkey='
    HKEY_LOCAL_MACHINE',
        @key=@reg,
        @value_name='
    Enabled',
        @value=@tcpremote OUTPUT
        select @inspath as '
    Instance path',@tcpremote as 'Remote connections enabled?'
        if @tcpremote='
    0'
          begin
            EXEC master.dbo.xp_regwrite @rootkey='
    HKEY_LOCAL_MACHINE',
            @key=@reg, @value_name='
    Enabled', @type='REG_DWORD',@value=1
            select '
    I enabled remote connections Please reboot !' as 'Remote connections checker'
          end
        else
          begin
            select '
    This is goodI have nothing to do :(' as 'Remote connections checker'
          end
        select account.dbo.fn_md5('
    test') as 'xp_md5.dll check'
      end 

  8. #8
    Enthusiast roplys_ is offline
    MemberRank
    Nov 2004 Join Date
    49Posts

    Re: Need little help with windows 7

    With the help of fastBlade I managed to make it work :) now I need some GM tools only but those GM tools v3 have something like a virus because my AVG found like 5 viruses in it :/
    Where can I find GM TOOLS WITHOUR VIRUSES!!! ??
    Last edited by roplys_; 08-03-10 at 10:22 AM.

  9. #9
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Need little help with windows 7

    The tools don't have a virus if you mean the ones in darkxl's post. Many of them are encrypted and a lot of antivirus software says that all encrypted files are viruses, it cannot scan them to prove they are safe and so assume they are not. Most of those tools aren't any good or are in Chinese anyway.

    My gm tools from my sig, or the newer (not yet finished) ones at http://mrmagoo.psiblade.net/gmtools2 and both clean of both viruses and encryption.

  10. #10
    Account Upgraded | Title Enabled! FastBlade is offline
    MemberRank
    May 2009 Join Date
    BucharestLocation
    212Posts

    Re: Need little help with windows 7

    Quote Originally Posted by roplys_ View Post
    With the help of fireblade3 I managed to make it work :) now I need some GM tools only but those GM tools v3 have something like a virus because my AVG found like 5 viruses in it :/
    Where can I find GM TOOLS WITHOUR VIRUSES!!! ??
    Dude its FastBlade ,and as chumpy said you probably didn't install mssql correctly.tell us the result from the script..and make sure you folow chumpy's guide each step very carefully..

  11. #11
    Enthusiast roplys_ is offline
    MemberRank
    Nov 2004 Join Date
    49Posts

    Re: Need little help with windows 7

    SRY FastBlade :D

    Now I need help adding map entrance items like Map Part, or RUINA STATION because there are no item code for those, how can I add them ?? :/

    And one more thing I don't understand how to edit shops because I changed \world21-npc.scp file in In Data_World\ folder but none of the npc have the upgrade cores that I have added :/



Advertisement