I don't know what compiler you are using but this won't compile in visual studios 2015 or 2017. I can compile otclient just fine but this throws errors.
These are the errors and I have not made any changes to the source
It's really not that important I just wanted to make you aware of this.Code:Severity Code Description Project File Line Suppression State Error C2976 'std::set': too few template arguments otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 297 Severity Code Description Project File Line Suppression State Error C2079 'floors' uses undefined class 'std::set' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 297 Severity Code Description Project File Line Suppression State Error C2228 left of '.insert' must have class/struct/union otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 301 Severity Code Description Project File Line Suppression State Error C2589 '(': illegal token on right side of '::' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 316 Severity Code Description Project File Line Suppression State Error C2062 type 'unknown-type' unexpected otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 316 Severity Code Description Project File Line Suppression State Error C2059 syntax error: ')' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 316 Severity Code Description Project File Line Suppression State Error C3312 no callable 'begin' function found for type 'int' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 321 Severity Code Description Project File Line Suppression State Error C3312 no callable 'end' function found for type 'int' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 321 Severity Code Description Project File Line Suppression State Error C2679 binary '<<': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion) otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 323 Severity Code Description Project File Line Suppression State Error C2664 'void Map::drawMap(std::string,int,int,short,int,uint32)': cannot convert argument 4 from 'overloaded-function' to 'short' otclient C:\Users\User\Downloads\otclient_mapgen-master\src\client\mapio.cpp 324 Severity Code Description Project File Line Suppression State Error C2668 'push_luavalue': ambiguous call to overloaded function (compiling source file ..\src\client\luafunctions.cpp) otclient c:\users\user\downloads\otclient_mapgen-master\src\framework\luaengine\luainterface.h 359
What map do you use? What parameters do you pass to prepareclient?I was trying to get this working but it seems like the OTC is closing after doing the prepareclient.
Thank you Gesior.Fixed compilation on VS2017:
gesior/otclient_mapgen
@samco
I will test it with big map on Windows this week.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35655680 bytes) in /Users/samuelcorzo/Personal/otclient_mapgen/website_and_php_files/1_pre_tile_generator.php on line 42
Processing images may require more RAM then default PHP limit. You need to find PHP settings (file php.ini). Not 'Apache PHP settings', but CLI (command line interface) PHP settings. There you must find line with '128M' and change to '1024M'.Thank you Gesior.
i did a git pull on master and now im able to compile in MacOS aswell, so i guess i will be able to compile in Windows when i reach home. Will try to make the process in mac, and see if OTC closes or not. Will update later.
It seems i cant edit my previous post:
I'm using a server 11.49, and items.otb is from OTX modified.
I managed to get it working using prepareClient(1098,'blabla/items.otb'...blabla) Because using 1149 was throwing error.
Now im generating images, will update when finishes...126,572 images.. part 1 of 5
Update:
The images are now generated.
Now im trying the PHP process to make all the steps, but fails at step1.
Code:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35655680 bytes) in /Users/samuelcorzo/Personal/otclient_mapgen/website_and_php_files/1_pre_tile_generator.php on line 42
I don't think this OTC is intended to be used to play, just for map generationI would like to add this to my OTclient and iam using systems not available in this client, so how i can take your changes from this src? couldn't find commit in github
Hahahahahaha, just knew that while trying it xD thank youI don't think this OTC is intended to be used to play, just for map generation
> prepareClient(860, '/things/860/items.otb', '/map.otbm', 2, 4)
Loading client data... (it will freez client for FEEEEW seconds)
ERROR: lua function callback failed: LUA ERROR:
/otclientrc.lua:46: attempt to call field 'initializeMapGenerator' (a nil value)
stack traceback:
[C]: in function 'initializeMapGenerator'
/otclientrc.lua:46: in function </otclientrc.lua:45>
Solved