world map edit?

10/10/2025 20:59 earl97#1
hey, i found nothing relating to how to edit the worldmap.

i know that i can edit minimap with nfmapedit, but how do i edit/update worldmap and how do i edit icons on it?

i would really appreciate any information!
10/11/2025 00:00 atherounge3#2
Didnt I tell you in discord? But to edit it in globally, you need to modify it in source, it's hardcoded. And here alpha maps also. But for dungeon icons on zoomed global maps I still dont know. But rendering NPCs for sure dynamical. And you also can set global by adding /tserver:test in launch args

Code:
bool SUIMinimapWnd::IsRenderNPC(ENC_INT id)
{
	//std::string strCountry;
	//strCountry = ENV().GetString("country");

	NpcResourceBase* pNpcRes(NULL);
	NpcEventPeriodResourceBase* pNpcPrdRes(NULL);
	pNpcRes = GetNpcResourceDB().GetNpcInfo(id);
	if (!pNpcRes)	return false;

	if (pNpcPrdRes = GetNpcResourceDB().GetNpcPeriodInfo(id))
	{
		time_t nowtime;
		time(&nowtime);
		if (pNpcPrdRes->begin_of_period > nowtime
			|| pNpcPrdRes->end_of_period < nowtime)
		{
			return false;
		}
	}

	int nlocal_flag(pNpcRes->local_flag);

	if ((GameRule::EXCLUDE_TEST_SERV & nlocal_flag) && (ENV().GetString("tserver") == "test"))
		return false;

	if ((GameRule::EXCLUDE_SERVICE_SERV & nlocal_flag) && (ENV().GetString("tserver") != "test"))
		return false;

	return true;
}