Results 1 to 4 of 4
  1. #1
    oVERFIEND1981's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Modified WorldGen - able to generate big maps - minimap problem though!!

    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

  2. #2
    oVERFIEND1981's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    To try the link please copy it and remove all commas - for obvious reasons


    Kind regards

  3. #3
    SURPRISE23's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    1
    My Mood
    Bitchy
    Aaannnddd what would you use this for?

  4. #4
    oVERFIEND1981's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    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 ))

Similar Threads

  1. [Release] Rust Map (Minimap Overlay)
    By revolver4 in forum Rust Hacks / Cheats
    Replies: 34
    Last Post: 10-23-2014, 04:46 PM
  2. [Help] Big Combat Arms problem.
    By noobretard in forum Combat Arms Discussions
    Replies: 3
    Last Post: 12-26-2011, 02:18 PM
  3. minimap problem
    By leggend96 in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 08-27-2010, 12:24 AM
  4. new mutation mode maps and break though mode maps!
    By dfireball122 in forum CrossFire Discussions
    Replies: 22
    Last Post: 04-12-2010, 03:56 PM
  5. [Discus] the big Waverider map in EU topic [Screenshot's]
    By sjoerdskate in forum Combat Arms Europe Hacks
    Replies: 42
    Last Post: 02-27-2009, 01:39 AM