Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Hadeki on December 18, 2008, 10:49:07 pm

Title: Mode7 Help
Post by: Hadeki on December 18, 2008, 10:49:07 pm
Hi, it's me again.
I'm attempting to use that Mode7 script by MGCaladtogel with RPG Maker XP, but every time I try to use the call script command "$scene.spriteset.tilemap.M7_set_p(45)", I get this message: "NoMethodError occurred while running the script. undefined method for `M7_set_p' for #<Tilemap_mode7:0x6a80748>".
(This is all for redrawing progressively with Mode7.)

And then when I try to use "$scene.spriteset.tilemap.mode7_set(45)" it tells me I have the "wrong number of arguments(0 for 1)".
(And this is all for redrawing instantly with Mode7.)

I've tried both of these commands on multiple maps. A really big one, and then a small one. I have no idea what's going on.
Title: Re: Mode7 Help
Post by: Ryex on December 18, 2008, 11:55:45 pm
I'm not sure many people here could help you only MGCaladtogel would really be able to help you if you can find out what forum he is on you should ask him

EDIT: here's the official tread he made on rmxp.org ask there for better help
http://www.rmxp.org/forums/index.php?topic=19976.0 (http://www.rmxp.org/forums/index.php?topic=19976.0)

Edit: It just occurred to me that your script might not be set up correctly. do you have the "MGCmode7.dll" file from the demo in your games base folder?
Title: Re: Mode7 Help
Post by: Hadeki on December 19, 2008, 12:39:33 am
Oh, I didn't know there was a .dll file that I needed. And... I can't find the file anywhere in the demo folder.
I will ask on that forum you showed me though.
Title: Re: Mode7 Help
Post by: Ryex on December 19, 2008, 01:23:03 am
there is a dill file in the same folder as the demos game.exe if you cant see it go in to folder options from you control pannel and click "show system files" or some such
Title: Re: Mode7 Help
Post by: Hadeki on December 19, 2008, 01:58:46 am
All right, first things first, I'm using Vista. So half the time I have no idea what the heck's going on.
Anyway, I could only uncheck the "Hide protected operating system files" box. Which didn't do anything.
There is an .ini file in the game folder. Is that it?
Title: Re: Mode7 Help
Post by: Ryex on December 19, 2008, 02:28:06 am
did you download the demo form the forum? because there is a .dll file in it called Mode7 something you need to put it into your games base folder if you cant find it just redownload it should only take a second

Title: Re: Mode7 Help
Post by: Hadeki on December 19, 2008, 02:35:01 am
Um... I downloaded it again and I found the .dll file.
But now I just get the "wrong argument(0 for 1)" thing for progressively redrawing the map and instantly redrawing it.
Title: Re: Mode7 Help
Post by: Ryex on December 20, 2008, 01:12:18 am
well I can't help you any further as I don't kn ow the script if putting the dll file in your game folder did't work I'd ask the author at that forum i linked to.
Title: Re: Mode7 Help
Post by: Hadeki on December 30, 2008, 09:59:37 pm
All right, I just discovered the Neo Mode 7 script (which enables rotation and zooming and whatever), but I have yet another error. It's on line 493 and it says something about the NilClass not being able to be converted into a bitmap. Here's the line:

@map_tileset.blt(32 * ((k - 1) % 8), 32 * ((k - 1) / 8), bitmap, rect)

Someone posted the same problem on the main Mode 7 forum and then they said they fixed it. There was an empty layer or something. I have no idea what that means and they didn't say how they fixed it.
Title: Re: Mode7 Help
Post by: Blizzard on December 31, 2008, 06:46:31 am
You should probably contact MGCaladtogel about this issue. :/
Title: Re: Mode7 Help
Post by: Hadeki on January 02, 2009, 10:54:55 pm
Eeeeeeeeerrrgh.
I guess I should. But I keep feeling like I'm just retarded and it's my fault nothing's working.
I did figure out that if I just use the terrain ID 1, and not 2, then it works perfectly. But that is sort of annoying when making maps and stuff... I dunno. I think I will contact him somehow.