To try the link please copy it and remove all commas - for obvious reasons
Kind regards
Hi Guys,
Nice to meet you all...
I'm very new on the forum (although have been a fan of terraria for a veeery long time)
As I always have been interested in being able to generate bigger worlds, I have been able to modify a source code for Terraria (version 1.2.3.1) and allowed to extend a width of the world by 50% (12600 tiles) and not running out of memory. Dungeon generation is also fixed (previously changing size variables would result in an error during dungeon generation) - this can easily be fixed changing offset for dungeon starting position.
I have succeded in terms of the world gen procedures and can now can generate AND PLAY any world with enlarged size.....
However I'm having a problem with the map draw calls - as the game does not seem to be able to accommodate larger size world and get it's map drawn properly.
Initially I was getting an error "index is out of bounds of the array" on DrawToMap, DrawToMapSection, and CheckMap methods when entering the game....i figured that this had to do with "textureMaxWidth" static variable in Main.cs - it's set at 2000. when raised to 3000 the error has vanished and I can play the game with larger worlds, however the map does not get drawn at all....(it's automatically turned off and cant be access neither as minimap nor fullscreen).
Any ideas anyone? I'm currently trying to find my way around float calculation in DrawMap / DrawToMap / CheckMap methods, but do not fully understand the scaling factors based on MaxTiles sizes.
Kind regards
Paul
PS. Just as an example, please try attached link. It contains two enlarged size worlds for Terraria (12600 x 2400 tiles) which are generated correctly and can be played. Newest version of TEDIT can view them easily.
Tried to go twice the width (16800 tiles) - however this results in memory allocation exception during generation (signed 32-bit integers are not enough it seems).
h,t,t,p,s://dl.drop,boxuser,conten*****m/u/1032,94630/World,s.zip
In any case - food for thought, any help would be appreciated
Kind regards
To try the link please copy it and remove all commas - for obvious reasons
Kind regards
Aaannnddd what would you use this for?
For me I just want bigger worlds and wondered if there are people here who messed with the source code and point me to solution of being able to play them.
Besides I figured out the ability to draw a map.....now problem is that it doesn't save ))