Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Cerdiar on November 13, 2010, 02:48:16 AM
-
Hello guys! Not for long, however...so, I'm trying to test out what I have for a minigame so far (using RPGMaker2k3), and this and a simple explanation of what happens:
-Just real quick, I used a custom made charset that I imported into RPGMaker2k3. I'm sure the imported charset is working, for I made a test character with that charset and walked around. It worked. Also, the three Units are placed as dummies until the hero takes their graphic, then they're invisible. Okay, so let's get on with this:
1. I give you three choices of which Unit to move. I have Unit 1, 2, and 3.
When you select Unit One, a switch turns ON which only records your coordinates on every square you walk (let's say you walk on a certain square, then an event I placed on that square activates, which records your x and y coordinates). It doesn't do anything else.
2. I teleport the hero to wherever the Unit is standing on.
3. I change the hero's graphic to that of the Unit's.
4. I change the graphic of the Unit (not the actually hero, but the dummy who stood as the unit) to a blank square the color as the background.
Ok, so that's it so far. I got an error that talks about an "Invalid Image Format" after I choose Unit 1. If anyone can help decode what's wrong, that would be great.
-
Well that sounds odd.
Did you add any kind of odd commands into your codes here?
Also, the "blank square the color as the background" - how did you do this? sounds like it could be the root of your problem perhaps.
-
Well, the invalid image format error maakes it sound like one of the images associated with whatever is going on here was put directly into a folder instead of added to the game via the resource manager. That's about as specific as I can be on something like this.
-
Whoa, something's going on...
Ok, so I tried to re-import the charset (just in case of...I dunno, thought something might happen), and then
I got a message that said "Invalid Image Size"! I'm pretty sure I imported this before, because I can access it
in RPGMaker2003! I did a little research, but the charset looks right. All the right dimensions, saved as a PNG,
256 color...so I don't know what's the problem. If it helps, here's the charset:
(http://i1205.photobucket.com/albums/bb428/Cerdiar/TacticalBattle-KnightGeisky.png)
EDIT:
Oh yeah, and by the "blank charset", I meant that...well, charsets can hold up to eight different
characters, right? I only have 2 used, so the rest empty spaces are the "blank charsets" I'm talking about.
-
Okay... Interesting. And yes, the dimensions of the file is right... Odd
-
When you replace the "dummy" event with a blank transparent image, is it that of the charaset or the chipset your using for the map?
-
If he's using the change graphic from Move event he have to pick a charset. And he said that one of the 6 empty spots in the charset was used for that. Which makes me aloss.
-
Oh sh-, forgot about that. Yeah, I have no idea why you would get that kind of error.
-
I've gotten this error with monsters. It's within size parameters and it's 256 colors. Never was able to fix it, except for making a new file entirely.
-
But using the characters in that charset works right? But not when you change it to the "blank" char?
-
Prpl_Mage:
Grr, this keeps getting more complicated. So, yeah, I test-played the charset, it works well. However, I think the "blank" charset works too!
I changed the hero sprite association to the blank one, and I can still talk to people, enter different maps...
MissingName:
I suppose you might be right, I guess I can try making a new one, or something similar to that, and I'll
see how it goes.
-
Okay... You can use the blank graphic and move around. So nothing should be wrong there. Could you perhaps post a screenshot of the code that messes up? Might find something in there.
Could be some thing like a battle animations or such.
-
Sorry for the late response. Anyway, I did more research.
I'm getting a little closer to the mystery.
Here's a screenshot of my script:
(http://i1205.photobucket.com/albums/bb428/Cerdiar/TroubleshootingError.jpg)
Alright, so I tested out most parts of this, turns out a lot of it works.
I isolated the "Hero, Change Graphic" event, turns out fine. But when I run the whole thing on this map, for some reason,
my hero charset stays as it's usual charset and not the new knight one!
Also, the entire script repeats itself...and that's strange, for I did NOT put a loop in there
(as you can see, the script just ends if you choose Unit 1).
If anyone can tell me why this thing repeats itself, that would be great. I'll be
working to solve this mystery, too!
-
It repeats itself because it's a parallel process and you never turned that switch off. (the precondition switch)
Try to add a wait command after the teleport, those events usually screw things over.
Worst case scenario is that you send me a copy of the game and I'll see what I can do.
-
Yeah, parallel process event loop infinitely, just like auto-start, except parallel processes allow other events to be executed while they're running. To "kill" a parallel process event, just create a page before the parallel process and have the parallel process activated by a switch. That way, you can control exactly when the parallel process works and doesn't work by switching the switch on/off.
-
Alright, thanks guys!
Also for the repeating thing, thanks for info about that! Oh, yeah...
and, it looks like the whole "Invalid Image Format" thing just kinda went away.
Don't know how, but hey, it's fixed!
Thanks for all your help.
Topic Closed! ;)
-
It went away, but what if it comes back?
Well then do this.
Open your sheet you use for the blank image in paint, then open up a different sheet, more so one of the default sheets in another paint window. Hopefully one near the same colors as your other sheet. Paste your character sheet over the default one, and close in the edges till it looks like the original one you wanted. What it does, is it changes the file type to that of the working, default sheet, and then you save it as a new name. Thus it should fix the image error. Same goes for any picture able to be loaded up into the game. Titles, game-overs, pictures. Things such as that. Then it doesn't matter if you insert it directly into the folder, or even upload it via the Manager.
-
Thank you, I will do that if the error comes back.