• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Compiling on windows 64bit

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,767
Solutions
5
Reaction score
769
../luascript.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
../luascript.cpp: In member function `bool LuaInterface::loadDirectory(const std::string&, Npc*, bool)':
../luascript.cpp:744: error: 'struct std::string' has no member named 'string'
make.exe: *** [obj//luascript.o] Error 1

I get this, I'm using Stian devcpp

- - - Updated - - -

here is the line

std::string s = it->path().filename().string();
 
Brother I know those is only 3 ways for code I have seen before

first one

Code:
for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
	{
		std::string s = it->leaf();
		if(boost::filesystem::is_directory(it->status()))
		{
			if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recursively))
				return false;
		}
		else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
			files.push_back(s);
	}

or this the second type of code

Code:
for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
	{
		std::string s = it->leaf();
		if(!boost::filesystem::is_directory(it->status()) && (s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
			files.push_back(s);
	}

and this is third one

Code:
for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
	{
		std::string s = it->leaf();
		if(boost::filesystem::is_directory(it->status()))
		{
			if(recursively && !loadDirectory(it->path().filename().string() + "/" + s, npc, recursively))
				return false;
		}
		else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
			files.push_back(s);
	}

don't forgot to edit scriptmanager.cpp too
 
the same code
w8 I show u it too
xD

I see this is the best one and in dev 0.4 trunk 3884
and in Printer one 0.3.6

Code:
for(boost::filesystem::directory_iterator it(modsPath), end; it != end; ++it)
	{
		std::string s = it->leaf();
		if(boost::filesystem::is_directory(it->status()) && (s.size() > 4 ? s.substr(s.size() - 4) : "") != ".xml")
			continue;
 
Update libs on dev or try removing the .string() at the end, that might work aswell.
 
Im using Stians Devcpp V2 64bit ;/

Is there a better Dev? with working libs, updated etc..?
 
ok so i updated the boost file and it compiled, but when i run the exe i get this ;/

gtNByqI.png


- - - Updated - - -

jc7Sszw.png
 
it is for me, too, have the exact same error and do not know how to fix it, would be happy to also get it and work!
 
Back
Top