PlaneShift
Support => Technical Help: Problems BEFORE entering the game => Topic started by: Psybur on June 22, 2004, 05:19:52 pm
-
src/server/psdatabase.cpp: In member function `virtual int
psDatabase::InsertQuestEvent(char*, int)\':
src/server/psdatabase.cpp:2374: error: ambiguous overload for \'operator+\' in \'
questName + spos\'
src/server/psdatabase.cpp:2374: error: candidates are: operator+(const char*,
int)
/opt/CS/include/csutil/csstring.h:484: error: const csString&
csString::operator+(const csString&) const
/opt/CS/include/csutil/csstring.h:519: error: csString
operator+(const char*, const csString&)
/opt/CS/include/csutil/csstring.h:525: error: csString
operator+(const csString&, const char*)
g++ -c -o ./out/linuxx86/psdatabase.o -I/opt/CS/include -I/opt/cel/include -fe
xceptions -Isrc/server -I. -I./include -I./src/common -I./src/client -I./src/se
rver src/server/psdatabase.cpp
...failed C++ ./out/linuxx86/psdatabase.o ...
^ Linux
-
CVS or MB?
-
I think you mean this line:
temp.Append(questName + spos, epos-spos);
Change it into
temp.Append((const char*) questName + (int) spos, epos-spos);
-
LinkApplication psserver
./out/linuxx86/libpsutil.a(pserror.o)(.text+0x2e): In function `errorhalt(char c
onst*, char const*, int, char const*)\':
: multiple definition of `errorhalt(char const*, char const*, int, char const*)\'
./out/linuxx86/error.o(.text+0x0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: W
arning: size of symbol `errorhalt(char const*, char const*, int, char const*)\' c
hanged from 250 in ./out/linuxx86/error.o to 72 in ./out/linuxx86/libpsutil.a(ps
error.o)
./out/linuxx86/libpsutil.a(pserror.o)(.text+0x76): In function `errormsg(char co
nst*, char const*, int, char const*)\':
: multiple definition of `errormsg(char const*, char const*, int, char const*)\'
./out/linuxx86/error.o(.text+0xfa): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: W
arning: size of symbol `errormsg(char const*, char const*, int, char const*)\' ch
anged from 5 in ./out/linuxx86/error.o to 60 in ./out/linuxx86/libpsutil.a(pserr
or.o)
./out/linuxx86/libpsbehave.a(psbehave.o)(.text+0x1170): In function `psBehaviour
Actor::SendMessageV(char const*, iBase*, char*)\':
: undefined reference to `CmdHandler::Publish(char const*)\'
./out/linuxx86/libpsbehave.a(psbehave.o)(.text+0x12ce): In function `psBehaviour
Actor::SendMessageV(char const*, iBase*, char*)\':
: undefined reference to `CmdHandler::Publish(char const*)\'
collect2: ld returned 1 exit status
g++ -o psserver ./out/linuxx86/psserverdr.o ./out/linuxx86/weathermanager.o ./
out/linuxx86/guildmanager.o ./out/linuxx86/command.o ./out/linuxx86/psserver.o .
/out/linuxx86/authentserver.o ./out/linuxx86/psdatabase.o ./out/linuxx86/chatman
ager.o ./out/linuxx86/main.o ./out/linuxx86/clients.o ./out/linuxx86/netthread.o
./out/linuxx86/adminmanager.o ./out/linuxx86/spawnmanager.o ./out/linuxx86/psce
lserver.o ./out/linuxx86/psserverchar.o ./out/linuxx86/client.o ./out/linuxx86/u
sermanager.o ./out/linuxx86/combatmanager.o ./out/linuxx86/psserverbehave.o ./ou
t/linuxx86/serverstatus.o ./out/linuxx86/error.o ./out/linuxx86/libpsnet.a ./out
/linuxx86/libpsengine.a ./out/linuxx86/libpsutil.a ./out/linuxx86/libpsbehave.a
./out/linuxx86/libpsrpgrules.a ./out/linuxx86/libpsadminnet.a -L/opt/CS/./out/li
nuxx86/optimize/libs/cssys -L/opt/CS/./out/linuxx86/optimize/libs/csutil -L/opt/
CS/./out/linuxx86/optimize/libs/cstool -L/opt/CS/./out/linuxx86/optimize/libs/cs
engine -L/opt/CS/./out/linuxx86/optimize/libs/csgfx -L/opt/CS/./out/linuxx86/opt
imize/libs/csgeom -L/opt/CS/./out/linuxx86/optimize/libs/csws -lcstool -lcsgfx -
lcsgeom -lcsutil -lcssys -lcsgeom -lcsutil -lm -ldl -lnsl -lpthread
...failed LinkApplication psserver ...
GRR
-
Comment out the errorhalt() and errormsg() functions in error.cpp and execute
jam -a server
-
LinkApplication psserver
./out/linuxx86/libpsbehave.a(psbehave.o)(.text+0x1170): In function `psBehaviour
Actor::SendMessageV(char const*, iBase*, char*)\':
: undefined reference to `CmdHandler::Publish(char const*)\'
./out/linuxx86/libpsbehave.a(psbehave.o)(.text+0x12ce): In function `psBehaviour
Actor::SendMessageV(char const*, iBase*, char*)\':
: undefined reference to `CmdHandler::Publish(char const*)\'
collect2: ld returned 1 exit status
g++ -o psserver ./out/linuxx86/psserverdr.o ./out/linuxx86/weathermanager.o ./
out/linuxx86/guildmanager.o ./out/linuxx86/command.o ./out/linuxx86/psserver.o .
/out/linuxx86/authentserver.o ./out/linuxx86/psdatabase.o ./out/linuxx86/chatman
ager.o ./out/linuxx86/main.o ./out/linuxx86/clients.o ./out/linuxx86/netthread.o
./out/linuxx86/adminmanager.o ./out/linuxx86/spawnmanager.o ./out/linuxx86/psce
lserver.o ./out/linuxx86/psserverchar.o ./out/linuxx86/client.o ./out/linuxx86/u
sermanager.o ./out/linuxx86/combatmanager.o ./out/linuxx86/psserverbehave.o ./ou
t/linuxx86/serverstatus.o ./out/linuxx86/error.o ./out/linuxx86/libpsnet.a ./out
/linuxx86/libpsengine.a ./out/linuxx86/libpsutil.a ./out/linuxx86/libpsbehave.a
./out/linuxx86/libpsrpgrules.a ./out/linuxx86/libpsadminnet.a -L/opt/CS/./out/li
nuxx86/optimize/libs/cssys -L/opt/CS/./out/linuxx86/optimize/libs/csutil -L/opt/
CS/./out/linuxx86/optimize/libs/cstool -L/opt/CS/./out/linuxx86/optimize/libs/cs
engine -L/opt/CS/./out/linuxx86/optimize/libs/csgfx -L/opt/CS/./out/linuxx86/opt
imize/libs/csgeom -L/opt/CS/./out/linuxx86/optimize/libs/csws -lcstool -lcsgfx -
lcsgeom -lcsutil -lcssys -lcsgeom -lcsutil -lm -ldl -lnsl -lpthread
...failed LinkApplication psserver ...
-
In src/common/psbehave/psbehave.h:
change
#include
to
#include
#include \"net/msghandler.h\"
and again:
jam -a server
-
I cannot find these includes in the .h file.
I added them to the .h and .cpp file, still the same error.
Also, I see char const*... shouldnt it be const *char?
-
here is the beginning of the psbehave.h file:
/*
* psbehave.h - author Matze Braun
*
* Copyright (C) 2001 PlaneShift Team (info@planeshift.it,
* http://www.planeshift.it)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation (version 2 of the License)
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef __PSBEHAVE_H__
#define __PSBEHAVE_H__
#include
#include
#include
#include
#include \"net/msghandler.h\"
struct iCelEntity;
struct iObjectRegistry;
class psRaceDefinition;
class csVector3;
-
Still the same... maybe I should get a new psbehave.cpp
-
Are you guys fixing some root problem or just trying to cure the symptoms?
-
Hmm... do you have Aineko\'s mods applied, Psybur? Because I have.
And what do you mean, dfryer? I have already a running server, I just try to help Psybur to get his one running.
-
I just got a new fresh psbehave.cpp from CVS. I will apply aineko\'s mods now.
-
planeshift.application.server: No iConnection plugin!
I probably just have to recompile CS now that I installed mysql D:
Nope, no dice.
-
Nope, you have to patch the PS configure script. Change all lines with
mysql_connect(0,0,0,0);
to
mysql_real_connect(0,0,0,0,0,0,0,0);
Then libmysql will be found by configure and dbmysql.so will compile
-
When I try to log on:
guest/guest is using version 17 and is not a new user.
Check Login for: \'Guest\'
Guild info: Player is Peon (4) in guild Whicever (10).
User \'Guest\' (2) added to active client list
Requested World!
CreateActor: Could not CreateActor because sector specified was NULL.
Error while creating Entity for Player \'Guest\'
Remove player \'Guest\' (2)
***Warning: Error while creating player in world!
In file src/server/pscelserver.cpp function void psCelServer::HandlePersistMessage(MsgEntry*) line 895
GRR. I also get stuff when I type spawn:
CreateActor: Could not CreateActor because sect
or specified was NULL.
Error while creating Entity for NPC 32
CreateActor: Could not CreateActor because sect
or specified was NULL.
Error while creating Entity for NPC 33
CreateActor: Could not CreateActor because sect
or specified was NULL.
Error while creating Entity for NPC 38
CEL is searching for meshfact \'/this/art/things/chest\'...Not Found, so loading /
this/art/things/chest.spr
CreateItem: Could not create Item because could
not find the specified sector for Object #5
CEL is searching for meshfact \'/this/art/things/chest\'...Not Found, so loading /
this/art/things/chest.spr
CreateItem: Could not create Item because could
not find the specified sector for Object #7
CEL is searching for meshfact \'/this/art/things/weapons/cleaver\'...Not Found, so
loading /this/art/things/weapons/cleaver.spr
CreateItem: Could not create Item because could
not find the specified sector for Object #8
CEL is searching for meshfact \'/this/art/things/weapons/long02c\'...Not Found, so
loading /this/art/things/weapons/long02c.spr
CreateItem: Could not create Item because could
not find the specified sector for Object #9
-
You have to edit the database and load the correct maps into the server. For further details look here (http://www.planeshift3d.com/wbboard/thread.php?threadid=9275&boardid=17).
-
mysql> source dbpatch.sql
ERROR 1062: Duplicate entry \'0\' for key 1
ERROR 1062: Duplicate entry \'1\' for key 1
ERROR 1062: Duplicate entry \'2\' for key 1
ERROR 1062: Duplicate entry \'3\' for key 1
ERROR 1062: Duplicate entry \'4\' for key 1
ERROR 1062: Duplicate entry \'5\' for key 1
ERROR 1062: Duplicate entry \'6\' for key 1
ERROR 1062: Duplicate entry \'7\' for key 1
ERROR 1062: Duplicate entry \'8\' for key 1
ERROR 1062: Duplicate entry \'9\' for key 1
ERROR 1062: Duplicate entry \'10\' for key 1
ERROR 1062: Duplicate entry \'11\' for key 1
ERROR 1062: Duplicate entry \'12\' for key 1
ERROR 1062: Duplicate entry \'13\' for key 1
ERROR 1062: Duplicate entry \'14\' for key 1
ERROR 1062: Duplicate entry \'15\' for key 1
ERROR 1062: Duplicate entry \'16\' for key 1
ERROR 1062: Duplicate entry \'17\' for key 1
ERROR 1062: Duplicate entry \'18\' for key 1
ERROR 1062: Duplicate entry \'19\' for key 1
ERROR 1062: Duplicate entry \'20\' for key 1
ERROR 1062: Duplicate entry \'21\' for key 1
ERROR 1062: Duplicate entry \'22\' for key 1
ERROR 1062: Duplicate entry \'23\' for key 1
-
Ah, I was just surprised that there was so many problems getting the server to work, that\'s all- if that\'s normal then ignore me :)
-
Yeah, it is not easy ;)
Hmm, ok, then try this one Psybur:
DROP TABLE IF EXISTS `races`;
CREATE TABLE `races` (
`race_id` int(10) NOT NULL default \'0\',
`name` varchar(35) NOT NULL default \'\',
`mesh` varchar(35) NOT NULL default \'0\',
`min_armor_size` tinyint(1) unsigned default \'0\',
`max_armor_size` tinyint(1) unsigned default \'0\',
`base_texture` varchar(30) default \'0\',
`sex` char(1) NOT NULL default \'M\',
`start_x` float(10,2) default \'0.00\',
`start_y` float(10,2) default \'0.00\',
`start_z` float(10,2) default \'0.00\',
`start_sector` varchar(50) default NULL,
PRIMARY KEY (`race_id`)
) TYPE=MyISAM;
INSERT INTO `races` VALUES (0, \'Stonebreaker\', \'maledwarf\', 0, 0, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (1, \'Enkidukai\', \'maleenk\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (2, \'Ynnwn\', \'maleynnwn\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (3, \'Ylian\', \'maleylian\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (4, \'Xacha\', \'malexacha\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (5, \'Nolthrir\', \'malenolthrir\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (6, \'Dermorian\', \'maledermorian\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (7, \'Hammerwielder\', \'maledwarfh\', 0, 0, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (8, \'Diaboli\', \'malediaboli\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (9, \'Kran\', \'kran\', 0, 1, \'1.png\', \'N\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (10, \'Lemur\', \'malelemur\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (11, \'Klyros\', \'maleklyros\', 0, 1, \'1.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (12, \'Enkidukai\', \'femenk\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (13, \'Stonebreaker\', \'femdwarf\', 0, 0, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (14, \'Ynnwn\', \'femynnwn\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (15, \'Ylian\', \'femylian\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (16, \'Xacha\', \'femxacha\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (17, \'Nolthrir\', \'femnolthrir\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (18, \'Dermorian\', \'femdermorian\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (19, \'Hammerwielder\', \'femdwarfh\', 0, 0, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (20, \'Diaboli\', \'femdiaboli\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (21, \'Lemur\', \'femlemur\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (22, \'Klyros\', \'femklyros\', 0, 1, \'1.png\', \'F\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
INSERT INTO `races` VALUES (23, \'Rogue\', \'malerogue01\', 0, 1, \'malerogue_skin_01.png\', \'M\', \'19.18\', \'-4.05\', \'-115.22\', \'hydlaa_plaza\');
DROP TABLE IF EXISTS `sector_info`;
CREATE TABLE `sector_info` (
`name` varchar(30) NOT NULL default \'\',
`rain_min_gap` int(10) unsigned NOT NULL default \'0\',
`rain_max_gap` int(10) unsigned NOT NULL default \'0\',
`rain_min_duration` int(10) unsigned NOT NULL default \'0\',
`rain_max_duration` int(10) unsigned NOT NULL default \'0\',
`rain_min_drops` int(10) unsigned NOT NULL default \'0\',
`rain_max_drops` int(10) unsigned NOT NULL default \'0\',
`lightning_min_gap` int(10) unsigned NOT NULL default \'0\',
`lightning_max_gap` int(10) unsigned NOT NULL default \'0\',
PRIMARY KEY (`name`)
) TYPE=MyISAM;
INSERT INTO `sector_info` VALUES (\'room\', 25, 50, 25, 50, 500, 3000, 5, 10);
INSERT INTO `sector_info` VALUES (\'temple\', 100, 200, 100, 200, 100, 500, 10, 20);
INSERT INTO `sector_info` VALUES (\'podium\', 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `sector_info` VALUES (\'tavern\', 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `sector_info` VALUES (\'library\', 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `sector_info` VALUES (\'large\', 25, 50, 25, 50, 500, 3000, 5, 10);
Same procedure as before, but this will definately work ;)
-
Karosh... this isnt working...
The source dbpatch.sql; works, but I still get the error when I try to spawn >:O
-
Hmmmm, it should work if you have loaded all maps (hydlaa, dungeon, temple, tower) into the server. I will look further into this when I come home.