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

My mind is now broken. I just spent over an hour on this stupid issue.
Trying to get a skill to show text depending on enemy ID to show passives.
Well. I tried to call one passive 'Spirit's Way'. See a problem? No? Neither did I until now!
The apostrophe in "Spirit's" ended the text eval... no wonder I kept getting unexpected input errors...I think I'm gonna cry.
Anterograde Fantasy now has a demo build available!

You know you've been working on RPGMaker for a while when you go to move your projects to a 16 GB USB drive and get told not enough space to do this operation.
The latest post on TheDazzlingsAreBack...
besides itch and occasionally here where are people doing game jams at y'all? (plz do not cross reference this with my previous status lol)

Forum statistics

Threads
110,442
Messages
1,053,326
Members
143,512
Latest member
elfperson123
Top