Map size.

Hello, 


I was wondering if there was a way to increase the size of the map beyond 500 by 500. 
I say a thread on MV where you can edit the map file, but it didn't seem to work for VX Ace as i couldn't find the hight or width, or even 500 written in the map.rvdata2,


Looking at the other thread I saw a fair few people saying there's no need and to use separate maps. I know how to transfer to another map. but I don't believe they are active. so i cant run an event in one map while in another, so i would like to have things in a single map for what I am playing around with. Though if i am in map1 and can mess around with event's in map2 then that would be something i would like to know as well. 


Thank you.
How do you mean "mess around with event's in map2"? If you give more of a description of this, then maybe we could help find another answer because what you have read is accurate. There is no need for a bigger map of 500x500. On top of the size, all the events and npcs you would add to that map would create a lot of lag for the player.
How do you mean "mess around with event's in map2"? If you give more of a description of this, then maybe we could help find another answer because what you have read is accurate. There is no need for a bigger map of 500x500. On top of the size, all the events and npcs you would add to that map would create a lot of lag for the player.

I made it so I had a test house's interior and exterior. I could then use an event and a time system to move the event and manually path find the npc to go about his day. outside working, going home, sitting at home, to going to bed,sleeping,to waking up, and then to going back to work. (simple to what i have planned for the actual npc's)


Having the interior of the house in a separate map. I was unable to move him. so transferring the event to the entrance of the house would stop the movement path and leave his move event at the entrance of his house rather than continuing to move.


I was thinking of having a smaller map and playing around with making a persistent world. I would likely be able to fit the map of the world in the 500x500 map. but the issue is when i start thinking of adding interiors, as they take up a lot of space. screenshoot.png
For that town I'm working on in that image, there would be another 8 spaces for interiors for the houses, but there would also need to be space for the castle interior, and this take's up a lot of space. 



But the plan is to get everything persistent and to try and get everything to work like it was interacting with each other, This may not be viable because of lag, but it is something I would like to try and get working how I picture it. So if there is a way to increase the map size, that would be nice. even if it would be unrealistic for players, it could work how I want and I could work at mimicking it in a more viable way.
 
It kinda works in MV (not really, as people have found it crashes their editor) because MV's files are plain text.  You would not be able to edit the RMXP, RMVX or RMVXAce files as they are all binary files.


Why do you want to put interiors on the same map as the exterior?  They use different tilesets.  Just break your map up into smaller chunks - you don't need to have everything in a single map.  And yes, lag WILL be an issue, so it's probably better to make a decision to avoid it straight up, because making a huge map, finding out it lags terribly and then having to adjust all your events when you have to split the map up will be an absolute nightmare.
It kinda works in MV (not really, as people have found it crashes their editor) because MV's files are plain text.  You would not be able to edit the RMXP, RMVX or RMVXAce files as they are all binary files.


Why do you want to put interiors on the same map as the exterior?  They use different tilesets.  Just break your map up into smaller chunks - you don't need to have everything in a single map.  And yes, lag WILL be an issue, so it's probably better to make a decision to avoid it straight up, because making a huge map, finding out it lags terribly and then having to adjust all your events when you have to split the map up will be an absolute nightmare.


Yeah, I looked into that because someone wanted a bigger map and MV and couldn,t find a way of getting it to work. someone also mentioned an external map editor, which I don't know if there is one for VXA.

The tilesets are easy, when I go into an interior I just tell it to change to an interior tileset. Here's a video of the test npc going into a test house.
 










The npc will go about doing what he does whether you are there or not, I was planning on having 2 towns and a bandit lair. The town would trade and the bandits would rob the caravans going between which would effect the caravan of the store that was robbed. leaving the bandits would made them stronger and cause more damage every time they succeed in robbing the caravan. everyone in the towns would go about their day, all the bandits would. and the world would be persistent this way.


I can make everything pseudo-persistent with different maps. but i would like to know how it would be actually persistent, so i have something to work off to make sure it feels and acts persistent, if i was to make it a system in a game.
I think you should stop trying to make bigger maps (as that is a no-go for a lot of reasons) but instead look for a different way to handle your original problem.


If I read correctly, you only tried bigger maps because you want to have the NPCs a real life wandering around, but events can't transfer to different maps.


Well - they don't need to. You can pretend they're walking on different maps by having them disabled on one map while a different event on a different map pretends to be that same NPC.


You'll need a time system or a number of switches (or both) to control that and to make sure that of the dozen events pretending to be the same NPC only one is active at any given time, but that is the way people usually handle that.
I think you should stop trying to make bigger maps (as that is a no-go for a lot of reasons) but instead look for a different way to handle your original problem.


If I read correctly, you only tried bigger maps because you want to have the NPCs a real life wandering around, but events can't transfer to different maps.


Well - they don't need to. You can pretend they're walking on different maps by having them disabled on one map while a different event on a different map pretends to be that same NPC.


You'll need a time system or a number of switches (or both) to control that and to make sure that of the dozen events pretending to be the same NPC only one is active at any given time, but that is the way people usually handle that.



Ok i understand that it is not great, this isn't what i'm asking, i will willingly accept that there will likely be unbelievable amounts of lag and it is impractical to use this method in this engine, and I can make a pseudo-persistent world and it doesn't need to actually be persistent. 


This is not a game i'm making, I don't feel jumping right in and making a game would lead to me making a good game, or even a complete project, i'm looking for the limits and what i can or cant do. learning how the events work what is an isn't possible,


even if it is impractical.


or i may find i get half way through a game, then want to re-create the first half because I learned halfway through how to make everything better. I feel it is better to learn the engine, how the events work. how much of this persistent world could be built before the lag starts, how much more could be added with an anti-lag script. and learn the syntax to make my own scripts.


The issue is events can transfer to different maps, but they stop being active as events don't run in maps that are not active as far as i can see. so in the video i posted in the house once he transferred there,  if it was a separate map, he would transfer to the entrance and stay there because his move event would have stopped after he left the map i'm in.  Not sure What i did now but i cant transfer an event to another map now, so i must not have.


If it is not possible in any way to increase the map to a larger size, such as with MV (Not concerned about the stability issue that has been mentioned) I would prefer it just said that it is not possible and I will have to try with shrinking everything down and fitting everything in a 500x500. 


Though thanks for the advice as i know you are trying to help.
The issue is events can transfer to different maps, but they stop being active as events don't run in maps that are not active as far as i can see. so in the video i posted in the house once he transferred there,  if it was a separate map, he would transfer to the entrance and stay there because his move event would have stopped after he left the map i'm in.



Not exactly, which is why we usually say that events can't be transferred - there are clone scripts that can do that, but the main problem is that only one map exists at any time, and even if you place an event on another map's data that event won't exist until the player enters that map - because the entire map won't exist until the transfer, it will only be a file on the HDD but nothing in the game engine until the player goes there.


On most computers, the map will start to lag when you go beyond several hundreds decorative events, and your NPCs will be complex events, not decorative ones. I don't know your computer specs, but I doubt that it could handle more than a few dozen of those NPCs on a single map.


So if this is only for testing purposes, I suggest you make a village map first (where everything fits into these 500x500) and then check how many NPCs you can place there before the map becomes unplayable - I really doubt that you'll be able to fill it up with enough people...


EDIT: The main problem with lag here is that Ace is a double interpreted engine - that looses a lot of processing power even on most modern computers. And that can't be changed
Events will NOT transfer to other maps.  I'm not sure what you've seen/read that makes you think they will.  You can only make them APPEAR to by duplicating them on several maps and using conditions to control which one is active at a time.


Your other concern with events on other maps not updating because the map isn't loaded is true - the events there will only start updating when you, the player, transfer to that map.  However, the same thing happens on the map that IS loaded, if the event is more than a certain distance away from the player and/or screen.  As an anti-lag measure, if an event is located such that it can't be seen by the player, its movement will not update and its sprite will not update.  So if you transfer an event from your outdoors section of the current map to the indoors section, if it ends up being more than a few tiles past the visible part of the map, it will stop updating - just like events on maps that aren't loaded.  However, it WILL be checked several times every frame, to see if it needs to be updated (2 tests run on each out-of-the-way event), if the player is able to interact with it (at least 2 tests on each event), if another event is about to run into it (1 test on each event, multiplied by how many events need to check - so if you have 100 events on your map, that's up to 10,000 checks every single frame, on an event that isn't in sight).  Starting to understand the lag here, and why every person who's responded is advising you to find another way?


I understand what you're trying to do, but you're not going to accomplish it by making the map bigger.  Multiple maps really is the way to go.  Don't you think if there was a better way, that other people who have been using the engines for years, would have figured it out, and everybody would be doing it that way?
Events will NOT transfer to other maps.  I'm not sure what you've seen/read that makes you think they will.  You can only make them APPEAR to by duplicating them on several maps and using conditions to control which one is active at a time.

I did put a strike-through and said "Not sure What i did now but i cant transfer an event to another map now, so i must not have."


I know i attempted it. I thought i did it, but I obviously I did not.


Advice is good I'm happy with the advice, I don't think anyone had given bad advice, or that i know better than anyone who answered, i'm new, i don't and i wasn't trying to imply that i did, but am i not allowed to make my own mistakes if i choose? 


My insistence in my replies was that my question was not directly answered, which I am now just assuming that making it bigger is not possible, though i've not been told whether it is or not, just that i shouldn't if i can. I liked your post as you at least answered that it is not possible in the way that you can on MV where you confirmed my belief that i couldn't edit the map file in VXA, since they are all binary files.


I have since down-scaled to make the map, I'm not doubting the advice, or saying it is wrong. I even said I accept there will likely be an unbelievable amount of lag, it would be probably be un-playable. I know that even if it works on mine, not everyone is going to have a computer that would be powerful enough to run it, nor for what it is, should need that powerful computer. This is me learning, not making a game for release.
You edited your post and put the strikethrough and added that extra information after I posted (check my post time vs your edit time)  😉


Sure, it's your decision.  But those who have posted can see all the issues with doing this, and they think it's a waste of time.  You can proceed if you want, and it's your time you waste.  But by asking others to help you, it's also taking/wasting THEIR time  😉


The only way I can think of to make a map larger than the allowed size is to write a script that will run once only, to change the dimensions of the map.  This would involve changing the width and height, as well as the table that holds all the flags containing all the tile ids.  I was thinking about giving this to you in my previous post, but I'm not sure I've got it right, and if I've got it wrong, or if it's not going to work, it could well destroy what you've created on the map so far.  So I decided not to.


Some time later ...


I've just tested out my theory this morning, and though it let me resize a map to 1000x1000, the editor crashed the moment I tried to draw tiles.  It lets me resize to 500x500 with this method with no hassles, but if I change it to 600x600 the editor also crashes.  So I'm going to say, unless you have a way to build your maps without using the editor, it's impossible - at least imo.  And that hour or so is really all I'm willing to spend trying to find a solution that I'm not sure exists.


There are some map limit breaker scripts around, which you might be interested in having a look through.  But I suspect they might be more geared towards letting you have MORE maps, not LARGER maps.  Still, if you insist, it would probably be the best place to start.  Check the master script list and search for 'map limit breaker'


And just in case you want to test it for yourself, here's the script:

Code:
MAP_ID = 2
WIDTH = 600
HEIGHT = 600
#=======================================================
map = load_data(sprintf("Data/Map%03d.rvdata2", MAP_ID))
map.width = WIDTH
map.height = HEIGHT
map.data = Table.new(WIDTH, HEIGHT, 4)
File.open(sprintf("Data/Map%03d.rvdata2", MAP_ID), "wb") do |file|
  Marshal.dump(map, file)
end

Create a NEW map, add the script to the appropriate place, setting the MAP_ID, WIDTH and HEIGHT appropriately (no leading zeros on the map id), and save.  Select a DIFFERENT map in the editor (so the new one is not currently loaded), and run the game.  As soon as the title screen appears, close, return to your editor and go back to your new map.  If you had added any tiles, they will be gone (which is why I say to add a NEW map and not do this with any maps you've started working on).  When you go back to your new map you will see it has been resized successfully.  But if it's too big (potentially 501x501), the editor will crash the moment you try to place a tile.  This is the same problem that happened in MV when people manually changed the map size to something larger than the editor would allow.
You edited your post and put the strikethrough and added that extra information after I posted (check my post time vs your edit time)  😉


Sure, it's your decision.  But those who have posted can see all the issues with doing this, and they think it's a waste of time.  You can proceed if you want, and it's your time you waste.  But by asking others to help you, it's also taking/wasting THEIR time  😉


The only way I can think of to make a map larger than the allowed size is to write a script that will run once only, to change the dimensions of the map.  This would involve changing the width and height, as well as the table that holds all the flags containing all the tile ids.  I was thinking about giving this to you in my previous post, but I'm not sure I've got it right, and if I've got it wrong, or if it's not going to work, it could well destroy what you've created on the map so far.  So I decided not to.


Some time later ...


I've just tested out my theory this morning, and though it let me resize a map to 1000x1000, the editor crashed the moment I tried to draw tiles.  It lets me resize to 500x500 with this method with no hassles, but if I change it to 600x600 the editor also crashes.  So I'm going to say, unless you have a way to build your maps without using the editor, it's impossible - at least imo.  And that hour or so is really all I'm willing to spend trying to find a solution that I'm not sure exists.


There are some map limit breaker scripts around, which you might be interested in having a look through.  But I suspect they might be more geared towards letting you have MORE maps, not LARGER maps.  Still, if you insist, it would probably be the best place to start.  Check the master script list and search for 'map limit breaker'


And just in case you want to test it for yourself, here's the script:

Code:
MAP_ID = 2
WIDTH = 600
HEIGHT = 600
#=======================================================
map = load_data(sprintf("Data/Map%03d.rvdata2", MAP_ID))
map.width = WIDTH
map.height = HEIGHT
map.data = Table.new(WIDTH, HEIGHT, 4)
File.open(sprintf("Data/Map%03d.rvdata2", MAP_ID), "wb") do |file|
  Marshal.dump(map, file)
end

Create a NEW map, add the script to the appropriate place, setting the MAP_ID, WIDTH and HEIGHT appropriately (no leading zeros on the map id), and save.  Select a DIFFERENT map in the editor (so the new one is not currently loaded), and run the game.  As soon as the title screen appears, close, return to your editor and go back to your new map.  If you had added any tiles, they will be gone (which is why I say to add a NEW map and not do this with any maps you've started working on).  When you go back to your new map you will see it has been resized successfully.  But if it's too big (potentially 501x501), the editor will crash the moment you try to place a tile.  This is the same problem that happened in MV when people manually changed the map size to something larger than the editor would allow.





You're right with the time, I read it the times wrong, sorry. 


and thank you for taking the time to write that script  🙂
Just an added info (I hope I remember everything correctly, memory was triggered by Shaz explanations): Tsukihime had experimented with a map size breaker for Ace (I don't know if that script is still available somewhere on her site), but found out that there is a hard limit not on the size of the map, but on the number of tiles.


500x500 = 250000 is the maximum allowed number of tiles if I remember correctly, and you can only make maps who stay below that total. So a map of 100x2500 will work, but not a map of 501x501.


That would be consistent with the crashes on drawing that Shaz reported.
That's interesting.  If that's the case, you could use my little script above, just making sure width x height does not exceed 250000.
Yes, and I remembered correctly, even the tile limit number


http://himeworks.com/2013/02/map-creator/
I'm not sure this will be a solution, however, your mapping style could be reduced in size significantly as well. There is absolute no need for your maps to be that big, specifically interiors. I understand what you're trying to do, and I'm not talking about dimensions of the map, just general stuff like the sizes of the houses is ludicrous, the paths around the city are stupidly big etc.


But like people have said before, there are ways of carrying out time specific events over multiple maps using very skilled eventing, there may potentially be a script or two out there as well?


maybe kill your darlings and look at other solutions rather than being dead set on this method of doing it.

Original thread: https://forums.rpgmakerweb.com/threads/map-size.63570/