Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[XP Script] Dynamic Maps Expanded
Author Message
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#1
Dynamic Maps Expanded

Dynamic Maps Expanded
Version: 1.5


Introduction
This script allows the user  to allow  the contents  of their maps retain their settings prior to exiting or teleporting.   This means  that events that have moved on a map, or have changed their graphics through a simple self-switch, do not reset if the player leaves the map and later returns.


Screenshots
Yeeeaaahhhhh.... no.   Nothing visible for a screenie.


Script
Here there be Dragons!


Instructions
Post this Below Scene_Debug and above Main.  If used with either Big Maps (by DerVVulfman) and/or Fog of War (by Wachunga), it must be below 'em'.  It should take effect after that.


FAQ
I only did this rewrite after testing Near's early 2007 era work, only to see it didn't function properly between different game saves under specific conditions.


Compatibility
Designed for RPGMaker XP.   As a bonus, compatible with my Big Maps at no extra cost.


Recommended
The Charlie Mini-Map / Dynamic Maps Patch if this script is in use with the Charlie's Mini-Map Extended system.


Credits and Thanks
Credits definitely to Near Fantastica for the initial work and Wachunga for his edit to make Near's original work more compliant with other map scripts.  And lastly, credit to Melana for a a request to clear map data, and in detection of a logic error involving ignored maps.


Terms and Conditions
Free for use, even in commercial projects.  Due credit is required, not only for me but for Near Fantastica, Wachunga and Melana.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

(This post was last modified: 07-06-2021, 04:01 AM by DerVVulfman.)
07-27-2017, 04:51 AM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#2
RE: Dynamic Maps Expanded

BUMP
to version 1.1

This script now includes two new script calls that lets you clear dynamic map data, returning the map to its default settings rather than hold onto the saved settings.  If a map event was 'erased' and this condition was saved by the dynamic map system, running these commands nullify this.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

06-18-2020, 06:19 PM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#3
RE: Dynamic Maps Expanded

BUMP
to version 1.2

Oops. There was a hiccup with one of the two new script calls. One of the values/variables was mis-named and would crash the game if it was invoked.

But this issue was simple, and easily fixed. Enjoy the new version.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

06-18-2020, 09:08 PM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#4
RE: Dynamic Maps Expanded

BUMP
to version 1.3

A nice new feature has been added now, a module where you can list those maps that may be skipped by the system or those that may be the only ones that are used.

Yes, you can limit the Dynamic Maps now.

The first array is called the "IGNORED_MAP_IDs". Here, you can list the IDs of maps that will never be dynamic maps. In the default script, it currently has maps 1 and 2 blocked. They are NOT dynamic and will never be. It can be set to 'nil' instead of having an array of map IDs if you wish.

The second array is called the "REQUIRED_MAP_IDs". Here, you can list the IDs of maps that must be dynamic maps, this under the assumption that maps not listed are 'not' dynamic maps. Currently, it is set to 'nil'. However, if this value was set to an array like REQUIRED_MAP_IDs = [4,5,7,8], then these four maps are the ONLY ones that would be dynamic maps.

Saving games with Dynamic Maps does create larger game save files, not only with this system but others (I am not gonna plug any names). However, this new feature should allow mitigation and lessen the resulting file size.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

06-30-2020, 05:24 PM
Find Reply
kyonides Offline
Darth Scriptus
*****
Registered

Posts: 2,630
Joined: Dec 2009 {mydownloads_submissions}
#5
RE: Dynamic Maps Expanded

Then let me ask you a question that might be interesting for users like Melana herself.
What if anyone added the same map to both arrays by mistake?
Will it trigger the dynamic maps? Or would it be cancelled altogether by the latter?

"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 2 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX
06-30-2020, 07:12 PM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#6
RE: Dynamic Maps Expanded

Then the map will not be a dynamic map, the array holding the IDs of excluded maps confirming this.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

07-01-2020, 03:09 AM
Find Reply
Melana Offline
Asleep in the Fantasy
****
Registered

Posts: 405
Joined: Sep 2015 {mydownloads_submissions}
#7
RE: Dynamic Maps Expanded

I noticed that the IGNORED_MAP_IDs feature doesn't seem to work.
If I include a map in the array, it will still save it's state and won't reset after leaving.
09-27-2020, 11:34 PM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,547
Joined: May 2009 {mydownloads_submissions}
#8
RE: Dynamic Maps Expanded

Aaarrgh!

 ONE  [Image: Dizzy.gif]
    STUPID  [Image: Nervous.gif]
        LINE!!!!  [Image: Thud.gif]

BUMP
To Version 1.4

One single line within the code performed a test on the WRONG value, testing the existence of the Required Maps array instead!  Ugh... 

Well, that's been fixed, and I changed the 'names' of the alias commands for the last couple of methods of this script.  Seripusly, I had 'LYCAN' in one of the alias commands which woulda been a problem if anyone used this with my ABS.

Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

09-28-2020, 04:28 AM
Find Reply
Melana Offline
Asleep in the Fantasy
****
Registered

Posts: 405
Joined: Sep 2015 {mydownloads_submissions}
#9
RE: Dynamic Maps Expanded

Hmm I noticed that in the newest version of this script all maps reset after leaving them regardless if they are in the IGNORED_MAP_IDs array or not
It doesn't happen in the old 1.1 version.

EDIT: It was my bad..I forgot to set the REQUIRED_MAP_IDs array to nil.
Everything works as it should now.
(This post was last modified: 10-25-2020, 05:34 PM by Melana.)
10-24-2020, 12:28 PM
Find Reply
Melana Offline
Asleep in the Fantasy
****
Registered

Posts: 405
Joined: Sep 2015 {mydownloads_submissions}
#10
RE: Dynamic Maps Expanded

Uhm I just noticed that if you save and load a savegame all maps will reset.
Right now I'm able to respawn all defeated enemies and all other erased events simply by leaving a map and reloading the game.
I don't think this should happen at all? :o

It's funny that I never noticed this until now after testplaying my game for more than 50 hours the last months.^^

Edit: I managed to save the dynamic maps into the savegames now to prevent the respawning of events after loading with these lines of code in the save and load methods for now:

Code:
Marshal.dump($game_map_d, file)
Code:
$game_map_d = Marshal.load(file)

Do you think this will cause any trouble?
It works for me so far..
(This post was last modified: 07-05-2021, 06:26 PM by Melana.)
07-05-2021, 04:24 PM
Find Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   BIG MAPS DerVVulfman 28 10,464 12-08-2020, 04:34 AM
Last Post: DerVVulfman
   DoubleX RMMZ Dynamic Data DoubleX 1 1,123 09-22-2020, 03:10 PM
Last Post: DoubleX
   Expanded Encounter Areas DerVVulfman 3 1,423 08-09-2020, 03:34 AM
Last Post: DerVVulfman
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 1 1,414 07-01-2020, 03:32 AM
Last Post: DerVVulfman
   Diablo II Waypoints - Expanded DerVVulfman 1 1,175 06-18-2020, 04:36 AM
Last Post: DerVVulfman
   H-Mode7 maps in RMVX Ace MGC 5 34,087 12-29-2018, 05:04 PM
Last Post: Kamillo
   DoubleX RMMV Dynamic Settings Compatibility DoubleX 0 2,357 08-28-2016, 03:13 PM
Last Post: DoubleX
   DoubleX RMMV Dynamic Settings DoubleX 0 2,771 08-15-2016, 03:36 PM
Last Post: DoubleX
   DoubleX RMMV Dynamic Data DoubleX 5 5,135 01-29-2016, 01:40 AM
Last Post: DoubleX
   DoubleX RMVXA Dynamic Data DoubleX 2 3,509 11-12-2015, 01:54 AM
Last Post: DoubleX



Users browsing this thread: