citruskoala

Villager
Member
Joined
Jan 3, 2019
Messages
14
Reaction score
1
First Language
English
Primarily Uses
RMXP
Is it possible to make a map smaller than 20x15 in rpg maker xp? I am trying to make a gameboy styled game and i have lowered the resolution to 160 144, and i want the map size to be 10x9, or, if there is a script to make it so a map only scrolls every 10 tiles on the x axis and 9 on the y.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
351
Reaction score
136
First Language
English
Primarily Uses
RMXP
Here's an example of how you do it:
Code:
map_data = Marshal.load(File.open('Data/Map002.rxdata'))
map_data.width = 10
map_data.height = 9
file = File.open('Data/Map002.rxdata', 'wb')
Marshal.dump(map_data, file)
file.close

p 'Reduced the size! Please reopen your project.'
Throw this script above Main and it will resize your second map to 10x9. The editor will still say 20x15, so be sure to close and reopen your project. Now it will say 10x9 (but don't try to change anything in the Map Properties as you will be prompted to change the map size). On the map editor, it will still appear as 20x15, but everything beyond 10x9 is ignored in-game. Simply remove the above script and see for yourself.
Granted, if you want to change ALL of your maps to this size, then I can whip up a loop for you so you don't have to manually run the above script for each file.
 

citruskoala

Villager
Member
Joined
Jan 3, 2019
Messages
14
Reaction score
1
First Language
English
Primarily Uses
RMXP
Thank you, a loop would be great if it doesn't cause you much trouble to create. Also, do you have any advice on learning rubyscript if you have basically no programming experience?
 

DerVVulfman

Resident Werewolf
Veteran
Joined
Jun 26, 2012
Messages
315
Reaction score
155
First Language
English
Primarily Uses
RMXP
Well, off topic. But....

Make a separate project... tear scripts apart and test things... see what you screwed up one piece at a time. Learn from what you had done. Do small things. And start with the Window Menu sections so you can actually see changes you did more easily. Construction through destruction.

I had no manual on Rubyscripting, so that's what I did. ^_-
 

Latest Threads

Latest Posts

Latest Profile Posts


Swag collecting in the new randomly generated area. Now the mini map also shows the randomly generated features... And even illustrates the whole "bubble" system" that I made to manage memory... Though that part's inadvertent. We'll just call that "the fog of war"... Yes, that's what we'll do. Nobody will be the wiser! :kaopride:
not me being not lazy for 5 seconds and drawing another char portrait (her name is hazel)
its_hazel.png
Been a while since the last time I made a song remix. Had a blast making this
One thing those jp developer still get wrong about boob physic is that... men's muscly hard pecs can jiggle too.
Definitely glad I haven't released a few of my plugins that are technically done. As I learn more, I find ways to make my code more efficient, and in one case so far, discovered an existing function that did EXACTLY what I created my own function to do.

Forum statistics

Threads
110,452
Messages
1,053,424
Members
143,541
Latest member
Neikoku
Top