Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some tools to solve LF2 related problems
#1
So I am pretty much posting this thread because of 1 crisis-solver I've wrote. The other 2 were just posted on the way.

So you all know this mod I am working on (namely OPAE). And you all (probably) know how much memory and time does it take for it to run. The main problem was because I had 100s of screen sized grids being loaded when you run the game, which may further result in the buffer overflowing and the appearance of the well-known, most annoying error in existence, THE KILLER "couldn't create art surface" error. The solution was to reduce the memory usage of the game, so I though about changing the color depth of the BMPS (from 24-bit colors to 256 colors. That would have reduced the quality of the sprites, but I cared having the game load successfully). Unfortunately, that didn't work at all. The only solution left was to rework the grids, having their squares exactly fit the sprites its holding, but that was very time consuming and modifying their whole .dat files' centers was required.. Imagine what working out 10 grids and reworking about 2000 x and y coordinates would be like; and that's just for one character's dat file which wasn't enough indeed...

tl;dr:

Ladies and gentle men, I present you all the A-Grid Clipper!! Just drag in your .dat file and the corresponding bitmaps mentioned at its "<bmp> part" and it will recreate your grids and place your sprites in the smallest possible grids you can make. It also changes your .dat coordinates accordingly.
1-The A-Grid Clipper:  
[Image: LNHlH09.png]
A simple test:
How to use (Click to View)
2-The A-Frame Excavator:
A very simple tool that looks for empty frames in your dat files. Very useful for characters with so many moves. Be economic ;D :
[Image: 82ku.png]
How to use (Click to View)

3-The A-Bitmap Mirrorer:
Another macros which can be said to be a simpler version of Someone else's sprite mirrorer program. Extremely simple to use.
[Image: 86ec.png]
How to use: (Click to View)
Advantages:
-Its very easy to use.
-Very portable that it can even be bundled with a mod; that is for when you don't want to mirror the sprites for the mod' size issues. The user who encounters the mirror bug can then be told to run it.
-It doesn't mirror mirrored or already mirrored Bitmaps.
-It doesn't need to read from a .dat file.

Disadvantages:
-It mirrors every Bitmap in its directory (including the faces bmps..etc).
-Its size (which kinda destroys its 2nd advantage.).


Download links:
The A-Grid Clipper:
1.0 (don't use) (Click to View)
The A-Frame Excavator: http://www.mediafire.com/?y0r70y9qov901x1
The A-Bitmap Mirrorer: http://www.mediafire.com/?kxuvb8ocnn9xfdz
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply


Messages In This Thread
Some tools to solve LF2 related problems - by A-Man - 08-20-2013, 11:17 PM



Users browsing this thread: 1 Guest(s)