Jump to content

how solve this err Save: quest::PC::Save : cannot find . in FlagMap


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

can we have more details please.Tell us when it gets triggered.

Implemented something new?

Is a new map?

Found this in src/questpc.cpp

Spoiler

	void PC::Save()
	{
		if (m_FlagSaveMap.empty())
			return;

		static std::vector<TQuestTable> s_table;
		s_table.resize(m_FlagSaveMap.size());

		int i = 0;

		TFlagMap::iterator it = m_FlagSaveMap.begin();

		while (it != m_FlagSaveMap.end())
		{
			const std::string & stComp = it->first;
			long lValue = it->second;

			++it;

			int iPos = stComp.find(".");

			if (iPos < 0)
			{
				sys_err("quest::PC::Save : cannot find . in FlagMap");
				continue;
			}

			string stName;
			stName.assign(stComp, 0, iPos);

			string stState;
			stState.assign(stComp, iPos + 1, stComp.length());

			if (stName.length() == 0 || stState.length() == 0)
			{
				sys_err("quest::PC::Save : invalid quest data: %s", stComp.c_str());
				continue;
			}

			sys_log(1, "QUEST Save Flag %s, %s %d (%d)", stName.c_str(), stState.c_str(), lValue, i);

			if (stName.length() >= QUEST_NAME_MAX_LEN)
			{
				sys_err("quest::PC::Save : quest name overflow");
				continue;
			}

			if (stState.length() >= QUEST_STATE_MAX_LEN)
			{
				sys_err("quest::PC::Save : quest state overflow");
				continue;
			}

			TQuestTable & r = s_table[i++];

			r.dwPID = m_dwID;
			strlcpy(r.szName, stName.c_str(), sizeof(r.szName));
			strlcpy(r.szState, stState.c_str(), sizeof(r.szState));
			r.lValue = lValue;
		}

		if (i > 0)
		{
			sys_log(1, "QuestPC::Save %d", i);
			db_clientdesc->DBPacketHeader(HEADER_GD_QUEST_SAVE, 0, sizeof(TQuestTable) * i);
			db_clientdesc->Packet(&s_table[0], sizeof(TQuestTable) * i);
		}

		m_FlagSaveMap.clear();
	}

 

 

Link to comment
Share on other sites

  • Premium

Syslog

 

Feb 16 15:08:52 :: no sectree for spawn at 935449 35106638 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934850 35106709 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934784 35107148 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 935223 35106775 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934604 35107169 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 935363 35106485 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 933901 35106339 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 933791 35107111 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934635 35106657 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934604 35106631 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 935696 35107018 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934654 35106354 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934812 35106988 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 935575 35106625 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 933788 35107064 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: no sectree for spawn at 934165 35107538 mobvnum 34901 mapindex 41
Feb 16 15:08:52 :: DISCONNECT: Exquisite (DESC::~DESC)
Feb 16 15:08:52 :: SAVE: Exquisite 960367x271423
SYSERR: Feb 16 15:08:52 :: Save: quest::PC::Save : cannot find . in FlagMap

 

 

(I haven't new map implemented)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.