Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

pl8 format - Lords of the Realm 2, Caesar 2, etc

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
DrAsik
ultra-n00b
Posts: 1
Joined: Sun Mar 18, 2012 5:12 am
Been thanked: 1 time

pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by DrAsik »

Some tips for parsing this one? Pretty sure it's an image format, perhaps a spritesheet. Here are some names and file sizes:

Image

Some files are included for reference.
You do not have the required permissions to view the files attached to this post.
herbert3000
veteran
Posts: 143
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 145 times
Contact:

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by herbert3000 »

A PL8 file can contain different images:
* ordinary bitmaps (for backgrounds)
* isometric tiles
* run-length encoded sprites

I will see if I can find some detailed info about file format on my PC.
Would some undocumented java source code be useful too?
CASTLE1A.PNG
You do not have the required permissions to view the files attached to this post.
herbert3000
veteran
Posts: 143
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 145 times
Contact:

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by herbert3000 »

Here's a half-finished PL8 -> PNG extractor (Eclipse project with java sources):
https://drive.google.com/file/d/1hCD7RL ... sp=sharing

The algorithms work but the usability leaves much to be desired.
Arguments and options are hard-coded in Main.java so every time you want to convert another file, you'll have to recompile the project. :oops: I haven't had the time to fix that.

Inside the zip there's also a txt that contains a list of nearly all pl8 files and their corresponding palette and type.
Last edited by herbert3000 on Sun Mar 06, 2022 3:02 pm, edited 1 time in total.
Alchemist
ultra-n00b
Posts: 1
Joined: Sun Dec 29, 2019 9:40 pm
Has thanked: 2 times
Been thanked: 2 times

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by Alchemist »

pl8 Magic can convert them png files.

Drag and Drop the pl8 and 256 files on the browser.

https://pl8magic.binaryalchemist.com/
pl8Magic.png
You do not have the required permissions to view the files attached to this post.
H3ll0w33n
ultra-n00b
Posts: 2
Joined: Wed Mar 02, 2022 3:11 pm
Has thanked: 1 time

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by H3ll0w33n »

Hello!
I´ve trying to process .pl8 images into bmps. I had success with 1 sprite images, but I had no lucky with multiple sprites .pl8 and also, the links to "tools" you posted here no longer work.
Is there any tool I could use to turn .pl8 + .256 into .bmp? Open source codes would be awesome.
User avatar
ikskoks
Moderator
Posts: 1570
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 623 times
Been thanked: 374 times
Contact:

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by ikskoks »

Here is the mirror for Lords2_PL8_Extractor_v0.1.zip

https://drive.google.com/file/d/1C1SfvA ... sp=sharing
H3ll0w33n
ultra-n00b
Posts: 2
Joined: Wed Mar 02, 2022 3:11 pm
Has thanked: 1 time

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by H3ll0w33n »

ikskoks wrote: Wed Mar 02, 2022 8:48 pm Here is the mirror for Lords2_PL8_Extractor_v0.1.zip

https://drive.google.com/file/d/1C1SfvA ... sp=sharing
Thank you very much man! I spent three days trying to do this!
Prokuneo
ultra-n00b
Posts: 3
Joined: Fri Jul 22, 2022 12:50 pm
Has thanked: 1 time
Been thanked: 1 time

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by Prokuneo »

herbert3000 wrote: Sat Nov 21, 2015 11:20 pm Here's a half-finished PL8 -> PNG extractor (Eclipse project with java sources):
https://drive.google.com/file/d/1hCD7RL ... sp=sharing

The algorithms work but the usability leaves much to be desired.
Arguments and options are hard-coded in Main.java so every time you want to convert another file, you'll have to recompile the project. :oops: I haven't had the time to fix that.

Inside the zip there's also a txt that contains a list of nearly all pl8 files and their corresponding palette and type.
Hi, sorry to reopen this old topic, but I've been interested in making a LOTR2 remake for myself, (and with the permission of its creators, for the public), remaking each sprite in higher resolution, but the biggest obstacle I have now is this conversion from PL8 to PNG (and vice versa), could you please explain how it is done? I already installed Eclipse IDE for Java Developers and Eclipse Modeling Tools, although they look identical to me I have no idea how they operate and how to make the project that you kindly shared here work. I'm not a programmer, but a graphic designer.

This is an example of what I want to do, I got the png thanks to the post here where you shared it.

Image
herbert3000
veteran
Posts: 143
Joined: Wed Jun 02, 2010 4:53 am
Has thanked: 20 times
Been thanked: 145 times
Contact:

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by herbert3000 »

Hey Prokuneo, that looks fantastic!

However, I see a few obstacles:
- At the moment we only have a PL8 to PNG converter but no tool to repack the PNGs back into a PL8.
- Even if we had a PNG to PL8 converter, the dimensions of the modified tiles would have to match the dimensions of the original tiles.
- Without modification of the the game's code, it will only run in 640x480.

I think I could help with the first issue.
Maybe the admin of the LotR2 discord server could modify the executable to allow a higher resolution: https://discord.gg/P68BSne

I've uploaded a compiled version of the extractor here:
https://retrogamesvault.com/lords2/file ... ractor.zip
Last edited by herbert3000 on Sat Jul 23, 2022 3:09 pm, edited 1 time in total.
Prokuneo
ultra-n00b
Posts: 3
Joined: Fri Jul 22, 2022 12:50 pm
Has thanked: 1 time
Been thanked: 1 time

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by Prokuneo »

herbert3000 wrote: Sat Jul 23, 2022 1:33 am Hey Prokuneo, that looks fantastic!

However, I see a few obstacles:
- At the moment we only have a PL8 to PNG converter but no tool to repack the PNGs back into a PL8.
- Even if we had a PNG to PL8 converter, the dimensions of the modified tiles would have to match the dimensions of the original tiles.
- Without modification of the the game's code, it will only run in 640x480.

I think I could help with the first issue.
Maybe the admin of the LotR2 discord server could modify the executable to allow a higher resolution: https://discord.gg/P68BSne
Thank you very much, it means a lot to me.

To adjust the resolution, I had thought of modifying the SIERRA.INF file or the .CFG file as necessary (if it has one, I have not thoroughly reviewed it), the SIERRA.INF file has this section, so in "theory" should force the display of the tiles to the new size they will have, but this is a test that could only be done when you have PL8 files that contain tiles of 354 pixels wide, in the same way I will contact the admin you mention and maybe there is a viable technical solution. Again, thank you very much.

[Requirements]
SetupVer=3.2.2.1
Colors=256
ScreenWidth=640
ScreenHeight=480

VideoSpeed=0
Wave=1
MIDI=0
CDROM=2
MemKB=0
PhysicalMem=7700
CPU=486-66
Joystick=0
Printer=0
WinVer=395
jballou
ultra-n00b
Posts: 1
Joined: Wed Sep 14, 2022 11:05 pm

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by jballou »

Prokuneo wrote: Fri Jul 22, 2022 4:49 pm Hi, sorry to reopen this old topic, but I've been interested in making a LOTR2 remake for myself, (and with the permission of its creators, for the public), remaking each sprite in higher resolution, but the biggest obstacle I have now is this conversion from PL8 to PNG (and vice versa), could you please explain how it is done? I already installed Eclipse IDE for Java Developers and Eclipse Modeling Tools, although they look identical to me I have no idea how they operate and how to make the project that you kindly shared here work. I'm not a programmer, but a graphic designer.

This is an example of what I want to do, I got the png thanks to the post here where you shared it.

Image
I have looked at doing as simple a remake as possible of LOTR2 in another engine about 50 times, but it's just such a pile of work. Are you doing a straight HD upgrade of the art assets, or will there be engine updates as well?
Prokuneo
ultra-n00b
Posts: 3
Joined: Fri Jul 22, 2022 12:50 pm
Has thanked: 1 time
Been thanked: 1 time

Re: pl8 format - Lords of the Realm 2, Caesar 2, etc

Post by Prokuneo »

jballou wrote: Wed Sep 14, 2022 11:09 pm I have looked at doing as simple a remake as possible of LOTR2 in another engine about 50 times, but it's just such a pile of work. Are you doing a straight HD upgrade of the art assets, or will there be engine updates as well?
What I am trying to do is make a purely visual improvement, which will require some adjustment in the configuration (in theory), only that I am at a standstill since I need a way to convert a single PNG file into a PL8 file to do a technical test, if I could achieve that, I would redesign all the PL8s (which are not few) and then convert them all to PL8 and voilá, but I don't know programming, only graphic design. So, no engine updates from me (or at least, I don't know if it deserves it yet)
Post Reply