Author Topic: pschardata.cpp  (Read 1243 times)

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
pschardata.cpp
« on: January 19, 2005, 04:20:43 pm »
Hi!

I have been trying to update from CVS the latest PS the whole day, but for the whole day I didn\'t get any specific update, therefore I constantly compile with MSVC 7.1 and I get a lot of errors.

Specifically:
I think that this
plgpfcharacterdata fatal error C1083: Cannot open source file: \'\\development\\planeshift\\src\\common\\psprop\\character\\pschardata.cpp\': No such file or directory

deserves to be mentioned!

I hope tomorrow the project file for MSVC will be updated with the fact that it shouldn\'t go and searc for pschardata.cpp

(Are my suppositions correct?)

Ary
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

Feran

  • Traveller
  • *
  • Posts: 40
    • View Profile
(No subject)
« Reply #1 on: January 19, 2005, 04:47:44 pm »
If your suspicions are correct, you can just delete that particular cpp file plus it\'s header file from the project and build again. Select the Files tab in the project list window (usually located on the right) and find which project contains this particular beast (the build should give you a hint). And just select and hit the delete key.

- F

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #2 on: January 19, 2005, 05:17:32 pm »
Hi!

I am just afraid that also other part of the CVS are not updated and maybe they will go and search for that file as well? ( I get a lot of other errors as well...)

Some example:
ibpsserverobjects.lib(pscharacter.obj) : error LNK2019: unresolved external symbol \"public: void __thiscall psServerVitals::SetPP(int)\" (?SetPP@psServerVitals@@QAEXH@Z) referenced in function \"public: void __thiscall psCharacter::SetProgressionPoints(unsigned int,bool)\" (?SetProgressionPoints@psCharacter@@QAEXI_N@Z)
libpsserverobjects.lib(pscharacter.obj) : error LNK2019: unresolved external symbol \"public: struct psCharVital & __thiscall psVitalManager::GetVital(int)\" (?GetVital@psVitalManager@@QAEAAUpsCharVital@@H@Z) referenced in function \"public: float __thiscall psCharacter::GetHitPointsMax(void)\" (?GetHitPointsMax@psCharacter@@QAEMXZ)
libpsserverobjects.lib(pscharacter.obj) : error LNK2019: unresolved external symbol \"public: struct psCharVital & __thiscall psServerVitals::DirtyVital(int,int)\" (?DirtyVital@psServerVitals@@QAEAAUpsCharVital@@HH@Z) referenced in function \"public: float __thiscall psCharacter::AdjustHitPoints(float)\" (?AdjustHitPoints@psCharacter@@QAEMM@Z)
libpsserverobjects.lib(pscharacter.obj) : error LNK2019: unresolved external symbol \"public: bool __thiscall psServerVitals::Update(unsigned int)\" (?Update@psServerVitals@@QAE_NI@Z) referenced in function \"public: bool __thiscall psCharacter::UpdateStatDRData(unsigned int)\" (?UpdateStatDRData@psCharacter@@QAE_NI@Z)
libpsserverobjects.lib(pscharacter.obj) : error LNK2019: unresolved external symbol \"public: bool __thiscall psServerVitals::ConstructDRData(class MsgEntry *,int)\" (?ConstructDRData@psServerVitals@@QAE_NPAVMsgEntry@@H@Z) referenced in function \"public: bool __thiscall psCharacter::GetStatDRData(class MsgEntry *,int)\" (?GetStatDRData@psCharacter@@QAE_NPAVMsgEntry@@H@Z)
psbuild\\debug\\temp\\apppsserver\\psserver.exe : fatal error LNK1120: 17 unresolved externals

Ary
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #3 on: January 19, 2005, 06:13:41 pm »
I did a bit of refactoring last night and removed the pfcharacterdata class and replaced it with the vitals class.  So chances are that the project files you have are out of sync.  I use linux for development so I cannot properly update other project files ( like MSVC ).  I will mention to Vengeance to see if he can commit updated ones.   If you want to try yourself you should be able to do:

1) Delete the plgpfcharacterdata project
2) Add vitals.cpp file to the librpgrules project
3) Add clientvitals to the psclient project
4) Add servervitals to the libbulkobjects project.

I am not 100% sure on the project names ( since I am not sure how the are called in windows ) but I should be close.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #4 on: January 22, 2005, 05:30:39 pm »
I have similar problems. I managed to compile planeshift with vc6, but then I\'ve got a bunch of link errors even after deleting some obsolete cpp-s from the project file. (Although i didnt delete the corresponding headers, can this be a problem?) I guess it is because the project file is far out of date, which is not a problem (since noone can expect  updating these with every change.). But It would be nice to have a list of involved libs and obj-s which are precompiled. Or is source available for all?
Also I had to rewrite the code because of compile errors (guess because of the more rigid compiler of VC6.)
1) VC6 doesnt allow redefinition of cycle variables:
2) VC6 doesnt allow redefining parameters with local varaibals.
3) C6 doesnt allow   csArray stats
(this is the case of cascading type defs)
I think
csArray stats
should be used (this compiled for me)
Is it possible to check-in so every c++ compiler accepts it? Are there any options to redefine visual c-s compiling rules?
Also is this libcsengine.lib (and an other one, dont remember) needed? or can I just through it out from the project file?

Here are some of link errors in case anyone could help me out where to look for a solution:

uthentclient.obj : error LNK2001: unresolved external symbol \"public: void __thiscall pawsLoginWindow::ConnectionFailed(void)\" (?ConnectionFailed@pawsLoginWindow@@QAEXXZ)
cmdadmin.obj : error LNK2001: unresolved external symbol \"public: __thiscall psAdminMessage::psAdminMessage(class MsgEntry *)\" (??0psAdminMessage@@QAE@PAVMsgEntry@@@Z)
cmdusers.obj : error LNK2001: unresolved external symbol \"public: void __thiscall pawsDetailWindow::RequestDetails(void)\" (?RequestDetails@pawsDetailWindow@@QAEXXZ)
cmdusers.obj : error LNK2001: unresolved external symbol \"public: void __thiscall pawsChatWindow::Clear(void)\" (?Clear@pawsChatWindow@@QAEXXZ)
cmdusers.obj : error LNK2001: unresolved external
« Last Edit: January 22, 2005, 05:32:18 pm by bitula »

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #5 on: January 22, 2005, 07:57:40 pm »
I think I\'ve found out the cause of the link errors: a bunch of files are not added to the project (well, that may take a few hours too add all:)

Other compiler errors:
1) Calling private and protected functions from outside (I think vc6 correctly prohibits this)

2) error C2258: illegal pure syntax, must be \'= 0\'
error C2252: \'x\' : pure specifier can only be specified for functions

but this is actually a vc6 bug. can be resolved by using enum instead of static const.

An other question:
why doesnt server compile with mysql debug version?

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #6 on: January 22, 2005, 11:11:10 pm »
Ok, ive succesfully compiled the client. Now working on server.
answering to:
\"I hope tomorrow the project file for MSVC will be updated with the fact that it shouldn\'t go and searc for pschardata.cpp\"

I\'ve resolved this to.

You musnt wait till the project file is updated, all you have to do is remove migrated or deleted files from project, then look at the link errors. Search for unresolved objects/functions in the header files (use something like the search function of total comander starting fro src folder), then just include them into the project. Otherwise the cvs seems absolutely consistent so far. (discluding that message.cpp which can be found in a tar.gz on sourceforge.) There is also a tricky iDataConnection or so named external pointer. It is found in psdatabase.cpp or so.



just finished server! :) :)

if anyone works on vc6, just email me, ill send the updated project files for client and server. But you will have to manually rewrite the code because of compiler diffs, until some platform-independent coding standards are not set.

I\'m looking forward to contribute in the future. Would be nice if the coding standards could include vc6 compiler.
« Last Edit: January 22, 2005, 11:42:50 pm by bitula »

nightshadow

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
bitula
« Reply #7 on: January 26, 2005, 12:47:35 am »
I would like to email I am using c++ 6.0 but I can not find you email.  please post it or email me so I can talk to you I having similar problems you had.

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #8 on: January 29, 2005, 01:07:52 pm »
my email is Mytrovych.Natalia@chello.hu atm
(It lives only for 2 weeks)