Pixelmovement Script: v1.52 released!

Thanks. I'll test it and write the result.

//EDIT: Works fine. Can you include it to next version of script? Anyway I figure out another error/bug/something wrong. When I enter to menu in demo (I wasn't copy script to my game yet) I get a message window "d" (looks like the print("\"d\"") or print('"d"') command in use). Maybe this is my fault, because I kicked (commented) out SDK and MCLAB... But I think this is something in Scene_Menu. I'll copy script to empty project (of course without SDK and MCLAB, because my scripts are not compatible) and check it. Maybe this is only in demo.

//EDIT2: This is only in demo. Anyway: You created Pixelmovement Data directory for what purpose? And the rxdatas in subdirectory Tables and Waypoints are for what? I mean how to use the Pixelmovement Data directory?
the message window with the "d" appears because I added this in the Scene_Menu class of the demo to test something and I forgot to delete it... normally the "d" doesnt come because the SDK/MCLAB rewrites this method..

I cannot include this step length thing into a new version.. as you see in the script posted earlier, I had to rewrite some parts of the pixelmovements.. it wont be possible to combine it.. :(

The Pixelmovement Data includes the waypoints for the pathfinding (the PF only creates ways from waypoint to waypoint) and the tables are to fasten the passable? methods (the collision map pictures are converted into a table and saved into a file - its much faster to read from a table than from a picture). There may also be tables for Surface Maps.. I had to create this new folder, because the files inside have to be rewritten sometimes during the game and this wouldnt be possible in a encrypted game if the tables or waypoints would be in the data folder for example..
This is maybe a stupid question, but what mean "Pixelmovement"???!!! ;(.
What it this script do?.
Thanks f0tz! for explanations. And why you don't include it to next version? You don't like challenges? Anyway I don't use SDK in my game, because my scripts aren't compatible. Bye and have nice day (in place from I writing there is a day already ;) )
Sorry for bumping, but if I does not do it, the nobody will look at this.
I have problem with moving events on route. I will pack A demo into rar file, so f0tz!, if you can look on it...
Because the events move are stoping on some way. In events everything good (without your script all works fine), but I think something is wrong with compatibility. And please - don't put into my game SDK or MACL - some of my scripts aren't compatible, or probably not compatible. Here you are demo:

http://dl.getdropbox.com/u/210143/Dragonplanet.rar

Please look on it in freizeit... (meine deustch isn't good ;( )
Vear wrote:
Please look on it in freizeit... (meine deustch isn't good ;( )

so you're lucky that I understand English :P

well.. the first problem is.. "$steps" has to be a multiple of 2, so 3 is not possible.. the second one.. if you change $steps to a 4 for example, this also means, that all events and the player only move 4 steps while using the move route command.. If you dont want to have this, just delete the first 190 lines in the "Steps" script.. (;
Finally I've found the topic for this script! 

I have a few instillation questions as I can't seem to find instructions for instillation here, on your web site, in the demo, or anywhere else.

The demo has 17 scripts under the pixel movement section in the editor so MY first question is

Do I need all the scripts in the demo? (SDK, MCLAB 2.1, anti lag, ect.? dose the script not work with out them? seams a bit ridiculous to need all of them.) NOTE: I saw that many of the scripts seem to be just sections from the script in the .txt file that can be downloaded from your site.

the "Pixelmovment Data" folder in the demo is that required?

basically how do I install the script into my game?

I really hope that this works with out all that extra stuff because the SDK seems to add a lot of incompatibility errors with Blizz's tons of addons and i'm not sure that any of my other scripts work with it either.
All those scripts in the demo are just section form the .txt file.. (;
(except SDK, MCLAB, Anti-Lag which are compatible but not necessary!)

So you only need to copy the script out of the txt file into you script base (above main, or at least below all other non-custom scripts)
The Pixelmovement Data folder is required.. but you only need to create an empty folder in your project folder.. the script will create the files inside itself..
thank you for your help!
Can you make that script compatible with the DSK script?
what is dsk?
Hi.. my page got a new URL..

http://elamshin.rpg-studio.de

But the old one still works.. (;
f0tz!baerchen wrote:
what is dsk?

Diablo Starter Kit
mh.. never heard of this.. where do I get it?
f0tz!baerchen wrote:
mh.. never heard of this.. where do I get it?

its right at the Script Analysis page, just scroll to the bottom.
Mh.. I think it would be quite difficult and I dont have the time for such time consuming projects at the time.. sorry.. :( maybe later..
Hi  again.. I plan to make a "light" version of the pixelmovement.. this means a version, with no (or only few) other features than the pixelmovement itself..

So.. Which features I should add to this Light version?
- Collsion Maps (I think this is clear..)
- 8Dir movement (?, without support for 8Dir graphics?)
- Support for more Frames/Direction Graphics (?)
- ???

Please tell me, which features you want to see in that version.. (;
A barebones version with just the collision maps would be interesting, I guess... but like you said, for like a light version with minimal features, you should include collision maps, 8way-movement with support for those graphics, but not necessarily for more frames or poses.
More frames are a good feature to be contained in the lite version. It doesn't use too much CPU power, giving a great amount of functionality.
So, the collision maps, 8-dir movement and multi-frame movement is my candidate for the perfect lite version of the script :)

p.s. btw. f0tz, could you check again the passability of events? I've encountered some disturbing situation, numerous times, when events still got stuck with the player. None of my script modifies any of the classes concerning the passability, so there still might be some bug, I think.

Cheers.
Hey! fOtz!bacrchen! Is there any possibility of getting a VX version of this script? Or a no-can do? It'd be awesome if you could! But of course if you can't it's fine...

Amos36
Hi.. so I'll add
- Collision Maps
- 8-Dir Movement
- 8-Dir Graphics, More Frames

Anything else?

Arev: When do you get those problems? Can you reproduce them or can I reproduce them for testing in the Pixelmovement Demo?

Amos36: sorry.. I dont have the VX and I never took a look at the RGSS2 things..
I figure since you're going for a light version, you shouldn't look much futher for stuff to add... but I said that before ^^

As for the VX, I'll check out your light version for sure, and I guess I can modify it to work with RGSS2... it's not any hard, but I figure you should at least have VX to be able to try it out ^^"
So yeah, I'd do that if you don't mind.
I'm thinking of things that should be gotten rid of for a lite version, like the minimap, caterpillar, possibly ice sliding and/or height maps.  What should be done with pathfinding?  I couldn't decide on my own...
Hey f0tz, the problem seems to occur only in isometric mode. Usually when walking near an event that is moving. The player and the event walk at each other and get stuck. I've tried different sizes for player and event, but it didn't help.
The effect can be recreated in your demo - on the isometric map I've set event's movement to random, got rid of the party (for better aiming :D) and got stuck after few seconds.
No worries, but if anyone knows, I'd very much like to know if it could be done; (converting this awesome script into VX/RGSS2).
I feel really stupid, because I was supposed to more thoroughly test this before it was released, but...it seemes like "Stopped Animation" doesn't work in events. I've got a waterfall graphic which doesn't work now because it animates by facing different directions, with different parts of the waterfall being in different frames in what would normally be the walking animation. Again, I should have caught this earlier, I'm very sorry.

EDIT: f0tz!, I've been trying to understand various parts of how this script works, and I'm curious, why does the cache of collision/swamp/height maps need to be cleared and reloaded when the game is saved?
Hi.. sorry that I didnt answer earliert.. but Im short of time at the moment.. (;

Those things have to be cleared because these maps are bitmaps and you cannot save a bitmap to a file.. The waypoints (which are no bitmaps) are cleared, because they would make the save file very big..

The Light Version will come soon.. it's finished but it's still tested.. ^^
For the bitmap saving (also look here):
Bitmap Dump Script by SephirothSpawn Spoiler
module BitmapDump
  def self.save_bitmap(bitmap, filename)
    red = Table.new(bitmap.width, bitmap.height)
    green = Table.new(bitmap.width, bitmap.height)
    blue = Table.new(bitmap.width, bitmap.height)
    alpha = Table.new(bitmap.width, bitmap.height)
    for i in 0...bitmap.width
      for j in 0...bitmap.height
        color = bitmap.get_pixel(i, j)
        red[i, j] = color.red
        green[i, j] = color.green
        blue[i, j] = color.blue
        alpha[i, j] = color.alpha
      end
    end
    file = File.open("#{filename}.rxdata", 'wb')
      Marshal.dump([red, green, blue, alpha], file)
    file.close
  end
  def self.read_bitmap(filename)
    file = File.open("#{filename}.rxdata", 'rb')
      colors = Marshal.load(file)
    file.close
    red, green, blue, alpha = colors[0], colors[1], colors[2], colors[3], colors[4]
    bitmap = Bitmap.new(red.xsize, red.ysize)
    for i in 0...bitmap.width
      for j in 0...bitmap.height
        bitmap.set_pixel(i, j, Color.new(red[i, j], green[i, j], blue[i, j], alpha[i, j]))
      end
    end
    return bitmap
  end
end
Expand to see the code.


Also, i'm glad you're up and running with that light version... I still want to convert it to VX, so I'll check back here ;)
You can't save bitmaps to a file? You mean that the Bitmap object is a special object, which Marshal doesn't know how to compress? And when you remove and reload the waypoints, I'm assuming that they've been cached in the Waypoints folder already, and saving them to the individual save file would be redundant, right? Is this also the case for the bitmaps that get cleared?
Hello, excuse my bad english. I'm french.
Well, f0tz!baerchen, your pixel movement script is very amazing and I'd like to use it (and credit you by the way). But I have a little problem to use it.
My hero sprite have 8 directions, 9 frames (1 standing frame).
So my settings are:
$pixelmovement.player_frame_order = [2, 3, 4, 5, 6, 7, 8, 9]
$pixelmovement.player_stand_frame_order = [1]
$pixelmovement.player_direction_order = [1, 2, 3, 4, 5, 6, 7, 8, 9]

But this is not working. Are my settings wrong?
The caracter is splitted. (This is the Ragnarok sprite used in the demo).

But when I turn back the default settings in the script and "call" the settings by an event that works fine.

What's the matter?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=624