Page 2 of 2

Re: Karateka of Persia?

Posted: March 18th, 2017, 9:47 pm
by Norbert
endriuw wrote:mods 0000020 and especially 0000122


For 0000020, the basic shapes are unchanged. The protagonist is sheathing his sword in an alternative manner, but when he's doing so you can see the (body) alignment hops around randomly: look at his feet during this animation. And 0000122 also leaves all basic shapes and animations in-tact. Changing colors of (basically unchanged) shapes is not a problem.

Re: Karateka of Persia?

Posted: March 18th, 2017, 9:50 pm
by endriuw
Many thanks for everything Norbert :)

Re: Karateka of Persia?

Posted: March 19th, 2017, 9:58 am
by David
Norbert wrote:Attached are some of the frames. Just screenshots for now.
Not cut out or transparent yet, nor using the precise colors yet.

If someone is interested: I figured out the format of Karateka (DOS) DAT files (in 2011).
I can post the images and the extractor if someone wants. Done. (and/or write a specification into the wiki)

Here are the images together with the extractor:
Karateka_images.zip
(58.17 KiB) Downloaded 5 times


Norbert wrote:Made it to that freaking gate twice, and it killed me twice, even though I was inching forward towards it.

If I recall correctly, you have to kick it first so that it closes without killing you. Then you have to run under it quickly before it closes again.
(For some reason it won't close on your opponents. Unfair! Maybe they have a passcard? :) )

endriuw wrote:I noticed that, even if karateka is way more "primitive" than PoP1,
they have still some similarities, like the way the kid runs, the fact
that if he is hit when he is not in a "combat" position he will die
immediately, ecc.

And don't forget the triangle-shaped hitpoints.
Or the "dynamic guards" who didn't appear again until PoP2.
And that bird is probably just as annoying as the flying heads? :)

Re: Karateka of Persia?

Posted: March 19th, 2017, 2:10 pm
by endriuw
Many thanks David! This topic is becoming very supportive for who may be interested in doing the mod at the end (including me!), it's becoming a very nice tutorial with all the explanations and many files provided! Thanks a lot, i like this community!

PS other things in common between Karateka and PoP1:

- The intro animation with the "Broderbund presents...", with the tale text
and with the "boss" holding the princess as prisoner....

- When I played PoP1 for the first time and I saw the gates, they
reminded me the gate in Karateka and I was scared they would kill
me!

- The way the karateka and the prince run....

- The position karateka has when dying (see res045 file among David's generated files):

- The "blowing up" symbol appearing on people's body when they get hit....

- etc. etc. etc.

Re: Karateka of Persia?

Posted: March 20th, 2017, 4:31 pm
by endriuw
PS I got this after playing a little bit with the files automatically
generated by David's scripts.... I will start thinking more seriously
about this from April :-)

PS In the mod with ID 0000122 they also managed to edit the sword,
making a shorter one with a different shape... do you know how
they managed to do this? I would like to replace it with something
totally transparent and maybe the final part of karateka's foot...

Re: Karateka of Persia?

Posted: March 20th, 2017, 5:57 pm
by endriuw
Great news! :-)

I am using Linux and I have found a great package called ImageMagick to
automatically modify all the files generated automatically using David's
scripts in order to adapt them to the PoP1 graphics!

More precisely (I have just tested it!), using the "convert" command I can
do the following things automatically.

1. Putting the head of karateka on each karateka body, by appending the
corresponding files and setting the gravity to "center" (unfortunately
the head of the karateka is in a separate file, this is why we need this
first step).

2. Transforming the "green" background color in all images into transparent,
and converting the images from BMP to PNG.

3. Resizing all the images such that the karateka has the same size as the
prince, then we don't need to make space measurements when he moves!

There is still a lot to do, like trying to make the karateka and the prince as
similar as possible, in order to reuse the prince image when climbing or
jumping, but it is already a first step...

Unfortunately I cannot start working on this before April, and my work will
be very slow because of all my commitments at work, but I hope to slowly
reach some results eventually....

Re: Karateka of Persia?

Posted: March 21st, 2017, 4:24 pm
by endriuw
Hi everyone,

in PoP1, do you know exactly which files correspond to which moves ?

For example, which moves do correspond to running?

I guess the following files are involved:
res401.png, res402.png, ...., res413.png, res414.png

But how can I know in which order and if there is some loop?
(for example when the prince keeps running)

Is there any documentation about these moves somewhere on the web?

(for example about fighting, jumping, etc.)

Many thanks....

Re: Karateka of Persia?

Posted: March 25th, 2017, 11:06 am
by David
endriuw wrote:PS In the mod with ID 0000122 they also managed to edit the sword,
making a shorter one with a different shape... do you know how
they managed to do this? I would like to replace it with something
totally transparent and maybe the final part of karateka's foot...

The images of the sword are in PRINCE.DAT.

endriuw wrote:in PoP1, do you know exactly which files correspond to which moves ?

See here: viewtopic.php?p=15726#p15726
The source of SDLPoP can also be useful.