Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yesure

Pages: [1] 2
1
Technical Help: Problems BEFORE entering the game /
« on: September 02, 2004, 02:45:50 am »
Thanks, Skibereen. But the libmysql.dll is in its exact path already.

I think I\'ve found the cause and solved this problem. I used the wrong version of psserver.cfg. The setting in the older one is as below.

; Planeshift plugins
System.PlugIns.iConnection = planeshift.database.mysql


The newer one is this.

; Planeshift plugins
System.PlugIns.iDataConnection = planeshift.database.mysql

Just use the newer one and solve the problem.

2
Technical Help: Problems BEFORE entering the game /
« on: August 31, 2004, 01:29:33 am »
Now this is really truely finally. I overcome many proplems and compiled the whole psall.sln, all the twenty projects including the appupdater and the apppartview, successfully.

For newbies, don\'t try to compile the ps code, at least not by yourself alone. It\'s too tough. Why? In one word, \"missing\". There are always something missing somehwere in the code. Missing .lib, missing declares, missing include, missing .cpp, missing this, missing that, missing something, even missing everything maybe.

3
Technical Help: Problems BEFORE entering the game /
« on: August 28, 2004, 07:35:37 am »
I re-compiled the psall.sln again and found only the projects appupdater and apppartview failed. Does this matter?

And, which version of MySQL is more stable and you prefer to use?

4
Technical Help: Problems BEFORE entering the game /
« on: August 26, 2004, 04:01:26 pm »
The dbmysql.dll was created correctly, even no a warning.

I noticed there were two warnings before the errors, maybe this was a clue?

-----------------------------------------------------------------------------
WARNING: Could not load plugin \'Crystalspace.motion.manager.default\'

WARNING: Could not load plugin \'planeshift.database.mysql\'
-----------------------------------------------------------------------------

5
Technical Help: Problems BEFORE entering the game / Finally...
« on: August 25, 2004, 08:04:34 am »
Finally, I successfully compiled the ps sever and the client. It\'s really tough to compile the code especially for a newbie. Why? It\'s a little bit hard to explain...

Now I try to lanuch the ps server, hower, I get the error message listed as below.

---------------------------------------------------------------------------
planeshift.application.server:
No idataConnection plugin!

<\\Ps\\planeshift\\src\\server\\psserver.cpp:183> psServer::Initialize:
Could not create database or connect to it.
---------------------------------------------------------------------------

I trully have the database run and work fine. But how come?
Could anyone help me to sovle this problem?

6
Technical Help: Problems BEFORE entering the game /
« on: August 14, 2004, 07:42:25 am »
Thank you very much for your reply. I\'ve ordered one copy of CD from the MS website.

I\'m glad and eager to join the IRC, but can\'t connect to the server of Freenode. Is the address http://irc.freenode.net correct?

7
Technical Help: Problems BEFORE entering the game /
« on: August 13, 2004, 06:41:09 am »
Quote
Originally posted by Androgos
 ... or download MSVC 8.0 (2005) Beta free from MS site


I\'ve browsed the MS website but haven\'t found any clue for downloading of MSVC 8.0 beta. Could you post the link address?

8
Technical Help: Problems BEFORE entering the game /
« on: August 12, 2004, 12:37:09 pm »
My compiler is visual studio 6.0 + service pack 5

So, did you ever compile the CVS version of planeshift (Crystal Blue) successfully?

9
And, there are errors from the compilation of the client, too.

--------------------Configuration: apppsclient - Win32 Release--------------------
...
D:\\PS\\planeshift\\planeshift\\src\\client\\gui/pawsbuddy.h(95) : error C2248: \'currentBuddy\' : cannot access private member declared in class \'pawsBuddyWindow\'
        D:\\PS\\planeshift\\planeshift\\src\\client\\gui/pawsbuddy.h(127) : see declaration of \'currentBuddy\'

The original code is:
class pawsBuddyWindow : public pawsControlledWindow, public iNetSubscriber
{
public:
...
    class OnRemovedEntered : public iOnStringEnteredAction
    {
        public:
            ...
            void Execute(const csString & text)
            {
                if ( text.Length() > 0 )
                {          
                    ...                  
                    wnd->currentBuddy = \"\"; // Here the error is caused
                }                
            }                                
        private:
            csString currentBuddy;
            pawsBuddyWindow * wnd;
    };      
...        
private:
    pawsListBox* buddyList;  
    csString currentBuddy;      
};


Sorry to post so many errors to ask help. It would be very much appreciated for any solution!

10
Besides, maybe some .lib files are not linked into the project.

libpsutil.lib(psstring.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsnet.lib(charmessages.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsrpgrules.lib(psmoney.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsutil.lib(psxmlparser.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsutil.lib(strutil.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
usermanager.obj : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
workmanager.obj : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
...(the same errors as above)

psrelease\\temp\\apppsserver\\psserver.exe : fatal error LNK1120: 67 unresolved externals

11
Many thanks, acraig.

Now, the compilation process arises another errors.

--------------------Configuration: apppsserver - Win32 Release--------------------
Compiling...
adminmanager.cpp
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(243) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(243) : error C2252: \'FLOODMAXBUFFSIZE\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(244) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(244) : error C2252: \'FLOODWARBUFFSIZE\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(245) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(245) : error C2252: \'FLOODFORGIVETIME\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(246) : error C2065: \'FLOODMAXBUFFSIZE\' : undeclared identifier
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(246) : error C2057: expected constant expression
...(the same errors as above)

psserver.exe - 233 error(s), 117 warning(s)



The errors are caused by the orginal code as below.

#ifndef __CLIENT_H__
...
class Client : protected NetBase::Connection
{
...
protected:
...
  //Flood control
 static const int FLOODMAXBUFFSIZE = 5; //Mute client
    static const int FLOODWARBUFFSIZE = 3; //Warn client
    static const int FLOODFORGIVETIME = 10000; //Warn client
    csArray FloodMessagebuff[FLOODMAXBUFFSIZE];
...
};
#endif


I modified the code as follows.
...
  //Flood control
 static const int FLOODMAXBUFFSIZE; //Mute client
    static const int FLOODWARBUFFSIZE; //Warn client
    static const int FLOODFORGIVETIME; //Warn client
    csArray FloodMessagebuff[5];
...
};
const int Client::FLOODMAXBUFFSIZE = 5; //Mute client
const int Client::FLOODWARBUFFSIZE = 3; //Warn client
const int Client::FLOODFORGIVETIME = 10000; //Warn client
#endif

Then the errors change to these:

authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
...

12
Technical Help: Problems BEFORE entering the game /
« on: August 11, 2004, 03:50:27 pm »
Quote
Originally posted by Androgos
VFS_FILE_APPEND is in CS.


Thanks, Androgos. But I\'ve checked the CVS version of Crystal Space and have not found it. Could you please describe in detail where to get it?

13
Hi all,

I\'m trying to compile the CVS version of planeshift but encounter two problems as follows.

1) Missing file --- \"pawsguildjoinwindow.cpp\"

--------------------Configuration: libgui - Win32 Release--------------------
Compiling...
pawsguildjoinwindow.cpp
fatal error C1083: Cannot open source file: \'D:\\PS\\planeshift\\planeshift\\src\\client\\gui\\pawsguildjoinwindow.cpp\': No such file or directory
pawspetitiongmwindow.cpp
D:\\PS\\planeshift\\planeshift\\src\\client\\gui\\pawspetitiongmwindow.cpp(539) : warning C4018: \'<\' : signed/unsigned mismatch
Generating Code...
Error executing cl.exe.

psclient.exe - 1 error(s), 1 warning(s)



2) Undeclared identifier --- \"VFS_FILE_APPEND\"

--------------------Configuration: apppsserver - Win32 Release--------------------
Compiling...
...
psserverchar.cpp
D:\\PS\\planeshift\\planeshift\\src\\server\\psserverchar.cpp(129) : error C2065: \'VFS_FILE_APPEND\' : undeclared identifier
...
Generating Code...
Error executing cl.exe.

psserver.exe - 1 error(s), 11 warning(s)



How can I solve these problems? Any help would be appreciated. Thanks in advance!

14
Development Deliberation /
« on: July 29, 2004, 03:59:25 pm »
Quote
Originally posted by calloc
It seems the bug only occurs from using a later version of MYSQL. I\'m using an alpha version 5.0.  That versions is releasing the MYSQL_FIELD data, when the next row is read, while apparently older versions of MYSQL don\'t.  



Yes. Previously I used version 4.0.20a and got error. Now I use version 4.1.3-beta. It works fine. Maybe you might try this one. The bug is from the libmysql.lib and makes MYSQL_FIELD read the first row of data only.

15
Development Deliberation / Bug Caught
« on: July 26, 2004, 04:08:02 pm »
Now, the game is over. The bug hides in libmysql.lib and is caused by MYSQL_FIELD from the version 4.0.20a of mySQL.

I have to apologize to the authors of the server code and all the readers of this thread sincerely for my stupid and stubborn manner and thank Karosh and Androgos also.

All I have gained is unforgettable debugging experience and learned much from the code and the database.

Thank you all, thank you very much!

Bye!

Pages: [1] 2