Best frm converter source WAS:Aligning scenery - offset

Karel

Still Mildly Glowing
Hello,

is there a simple way to align scenery in frm - to adjust offset correctly? (Other than trying in mapper for a long time)?

Are there any methods to simplify it? E.g. by creating tiles with a certain width/height etc?

aligningbt2.png
 
I wonder if it would be possible to modify FIFE to do it... Imagine free-floating part of scenery, automatically set to nearest hex and displaying offset as you move it to fit to other parts.
 
Chris Parks said:
Can't you just use Frame animator and adjust the offsets in that program when you create the frm?
For a big scenery? It's pretty hard to guess correct numbers.
 
Done!

alignedbc1.png

The key is to understand the way in which Fallout aligns everything to the hex.

This test image:
testor9.png

is aligned to the center of the hex. It's height 66, width 48. It's designed to take two hexes at width, 3 at height and overleap by several px.
aligning2mg7.png


So, basically, if you create images with height of powers of 32 and width of powers of 16 (except the last row), you will get scenery which is always aligned.


Extremely dirty and simple script in php, which does the job - takes image in png, splits it into parts and resizes the last one to be of the size of preceding parts.

------------ total size 96 px ------------
--tileOne 64 px --- tileTwo 32px + 32px of space
...

Script for stripping the image can be found here with description:
http://www.towerofcreation.com/page.php?18

I'm not sure what the extra space does in the game (probably nothing with current memory possibilities).
 
I don't get it, but great job! :D

And... If we're talking about huge scenery art... Does anyone know what is maximum allowed dimension of single frm? I've noticed that engine have some problems with big frms :o
 
Continuum said:
I don't get it, but great job! :D

And... If we're talking about huge scenery art... Does anyone know what is maximum allowed dimension of single frm? I've noticed that engine have some problems with big frms :o

I'm working on an easy to use program :)

convert.py -source file_to_convert.png

which will essentially produce a lot of frms you don't have to align (and possibly write entry to scenery.lst if I have enough time).

My current problem is to find source for FRM converter - gif2frm has the best source code, but still, it's pretty raw and low level (but better than Pascal-Deplhi used for most of other tools).
 
Isn't there a possibility to write scripts in FRM Animator?

Also, that water tower looks nice, but the perspective and the colours could be (much?) better.
 
lisac2k said:
Also, that water tower looks nice, but the perspective and the colours could be (much?) better.
Camera angle is wrong.

Colors: I think this is a typical error while painting textures for Fallout (and his 228 colors). I've made such while I was working on hibernators... First you must create solid background and test it (convert render to FRM or texture to indexed color by using FO's palette) before you'll start adding details to the texture.
 
lisac2k said:
Isn't there a possibility to write scripts in FRM Animator?

Also, that water tower looks nice, but the perspective and the colours could be (much?) better.

There is possibility to write scripts in FrameAnimator, unfortunately, the documentation is in Russian and it can only do these actions:
Code:
SET_FRAME_OFFSET
ADD_FRAMES
MOVE_FRAME
REMOVE_FRAMES
LOAD_PALETTE
SET_SAMPLE_COLOR
SET_OPTION
NEW
OPEN
RUN_SCRIPT
SAVE

Well, I was given the tower in Blender file, I only rendered it. The angle is a bit off, but I have no knowledge about Blender (except few simple things like rendering), so I can't move the camera (or change the texture). I will ask the artist who created it :)
 
Back
Top