[Question] Adding Map

12/18/2017 15:15 khemomo#1
What could be the possible reason why I cant add a new map in my files? I mean

I added a new map detailed in

defineworld.h
Code:
#define WI_WORLD_SKANDIA		245
World.inc
Code:
WI_WORLD_SKANDIA	"WdSkandia"

WI_WORLD_SKANDIA		SetTitle
(
	IDS_WORLD_INC_000003
);
World.txt.txt
Code:
	IDS_WORLD_INC_000003  SAMPLE MAP
CoreServer.ini
Code:
	245     0       0       5       5       00      00
And then after that, I will go and open the program and then the worldserver will automatically close with-out giving any error log.

My question is, What could be the possible reason why that problem happen?

Thank you :)
12/18/2017 15:40 xTwiLightx#2
Start your Worldserver in a debug session in Visual Studio and wait for an exception to occur - it should show the last lines executed/called.
12/18/2017 19:10 Sammyz#3
Make sure the map folder WdSkandia has no .res or w/e packed files in general will cause this sometimes.
12/19/2017 01:07 khemomo#4
Quote:
Originally Posted by xTwiLightx View Post
Start your Worldserver in a debug session in Visual Studio and wait for an exception to occur - it should show the last lines executed/called.
This is the result of my debug, in call stack
Code:
 	7. World.exe!CRespawnInfo::GenResPoint(CWorld * pWorld) Line 97	C++
 	7. World.exe!CWorld::ReadRespawn(CScript & s) Line 771	C++
 	7. World.exe!CWorld::LoadRegion() Line 808	C++
 	7. World.exe!CDPDatabaseClient::OnBaseGameSetting(CAr & ar, unsigned long __formal, unsigned long __formal) Line 1756	C++
 	7. World.exe!CDPDatabaseClient::UserMessageHandler(DPMSG_GENERIC * lpMsg, unsigned long dwMsgSize, unsigned long idFrom) Line 261	C++
 	7. World.exe!CDPMng::ReceiveMessage() Line 187	C++
 	7. World.exe!CRunObject::Run() Line 381	C++
>	7. World.exe!CRunObject::_Run(void * pParam) Line 305	C++
Error line in sequence











Quote:
Originally Posted by Sammyz View Post
Make sure the map folder WdSkandia has no .res or w/e packed files in general will cause this sometimes.
Yes I'am sure that there's no encrypted files inside the World folder I also make sure that I got the same World folder and the name in the World.inc
WI_INSTANCE_DUCASTULA "DuSample"
12/19/2017 02:02 Sammyz#5
Use a clean .rgn file, empty it out.