PDA

View Full Version : lgeneral achtung ( Panzer General ) howto


Biased turkey
November 6th, 2005, 09:21 PM
1)Using synaptic install:
lgeneral
lgc-pg

Lgeneral package installs:
a) lgeneral ( binary executable ) in /usr/games
b) /usr/share/games/lgeneral folder
c) doc in /usr/share/doc/lgeneral

lgc-pg installs:
a) lgc-pg ( binary executable ) in /usr/bin
b) /usr/share/games/lgc-pg folder
c) /usr/share/doc/lgc-pg folder
d) man in /usr/share/man/man6

2) open a console and type "lgeneral" just to check that the binary is working.
Remember, we don't have any installed scenario yet
Exit the game.

3) from
http://lgames.sourceforge.net/index.php?project=LGeneral
download "pg-data.tar.gz"
Untar and unzip it to your home directory.
You now have the "pg-data" folder in your home dir


4) Installing the data:
Obviously, the person who created the lgc-pg Ubuntu package ( thanks to him/her ) did a few small mistakes, but we'll correct them.
So, with the "sudo nautilus" command open the pg-data folder and rename the following files:
flags.shp to FLAGS.SHP
tacicons.shp to TACICONS.SHP
explode.shp to EXPLODE.SHP
tacmap.shp to TACMAP.SHP
scenstat.bin to SCENSTAT.BIN

Now, we are ready to install the data using the lgc-pg program.
lgc-pg needs 2 directories:
a) the source directory ( where the pg-data dir is located. In our case, our home directory )
b) the destination directory ( where to install the data, in our case, /usr/share/games/lgeneral )
So, open a console and type ( in 1 line )

sudo lgc-pg -s /home/YourHomeDirectory/pg-data -d /usr/share/games/lgeneral

If successful, that's the message you should get:
LGeneral Converter for Panzer General (DOS version) v0.32
Copyright 2002 Michael Speck
Released under GNU GPL
---
Settings:
Source: /home/bourdouj/pg-data
Destination: /usr/share/games/lgeneral
Use Individual Palettes
Converting:
nation database...
nation flag graphics...
unit data base...
unit graphics...
terrain database...
terrain graphics...
maps...
scenarios...
Done!

pappo
November 11th, 2005, 05:36 PM
Does this game require that you own Panzer General cdrom ?

Biased turkey
November 13th, 2005, 06:36 PM
Does this game require that you own Panzer General cdrom ?

Oups, sorry, I forgot about that post.
To answer your question: No, You don't need to own the Panzer General CDROM.
The PG data are available at the link I mentioned in the item 1) of my post.
The name of the data file to download is:
pg-data.tar.gz

pappo
November 13th, 2005, 10:09 PM
I downloaded the pg-data and followed your instructions to run the lgc-pg executable to convert the data.

lgeneral loads and I see the game screens, but there is nothing in the campaigns or scenario menus.
I checked /usr/share/games/lgeneral/campaigns and scenarios directories and nothing is in them.

I tried downloading some of the custom scenarios but cannot get them to work either.

Any help would be appreciated.

pappo

Biased turkey
November 15th, 2005, 12:33 AM
I downloaded the pg-data and followed your instructions to run the lgc-pg executable to convert the data.

lgeneral loads and I see the game screens, but there is nothing in the campaigns or scenario menus.
I checked /usr/share/games/lgeneral/campaigns and scenarios directories and nothing is in them.

I tried downloading some of the custom scenarios but cannot get them to work either.

Any help would be appreciated.

pappo

I agree, the campaigns directory is empty, but at least I got some scenarios in the /usr/share/games/lgeneral/scenarios directory.
Did you get any error message when running the data installation script ( item 7 ) ?

pappo
November 17th, 2005, 10:47 PM
Here is the results from doing item 7:

pappo@ubuntu:~/lgeneral/lgeneral-1.2beta-9/lgc-pg$ sudo /usr/bin/lgc-pg -s /home/pappo/lgeneral/pg-data -d /usr/share/games/lgeneral
Password:
LGeneral Converter for Panzer General (DOS version) v0.32
Copyright 2002 Michael Speck
Released under GNU GPL
---
Settings:
Source: /home/pappo/lgeneral/pg-data
Destination: /usr/share/games/lgeneral
Use Individual Palettes
Converting:
nation database...
nation flag graphics...
unit data base...
unit graphics...
/home/pappo/lgeneral/pg-data/TACICONS.SHP: file not found

pappo
November 17th, 2005, 10:55 PM
I went back and checked pg-data and found that TACICONS.SHP was in lowercase in my pg-data directory so I changed it to upper case. I also did the same for EXPLODE.SHP, TACMAP.SHP, and SCENSTAT.BIN and then it worked.

When I reran the "item 7" command, this was the result:

sudo /usr/bin/lgc-pg -s /home/pappo/lgeneral/pg-data -d /usr/share/games/lgeneral
LGeneral Converter for Panzer General (DOS version) v0.32
Copyright 2002 Michael Speck
Released under GNU GPL
---
Settings:
Source: /home/pappo/lgeneral/pg-data
Destination: /usr/share/games/lgeneral
Use Individual Palettes
Converting:
nation database...
nation flag graphics...
unit data base...
unit graphics...
terrain database...
terrain graphics...
maps...
scenarios...
Done!
.................................
Then when I checked my scenarios directory it looked like this:
ls /usr/share/games/lgeneral/scenarios/pg
Anvil Berlin Caucasus ElAlamein Kursk Moscow42 Sealion40 Torch
Anzio BerlinEast Cobra France LowCountries Moscow43 Sealion43 Warsaw
Ardennes BerlinWest Crete Husky MarketGarden NorthAfrica SealionPlus Washington
Balkans Budapest D-Day Kharkov MiddleEast Norway Sevastapol
Barbarossa Byelorussia EarlyMoscow Kiev Moscow41 Poland Stalingrad


Thanks for all your help.

pappo

Biased turkey
November 20th, 2005, 06:34 PM
So, you did it Herr General.
I found it strange that some of your Panzer-general fils are in uppercas.My data files were all lower-case so I didn't have that problem.
Where did you download the data files from ?
There are som axtra scenarios an campaigns at:
http://lgames.sourceforge.net/index.php?project=LGeneral&sub=Scenarios
As I was born in Belgium , I'll try to install the Bastogne ( Battle of the Bulge ) tonight and try to sink the Bismark too.

pappo
November 23rd, 2005, 12:31 PM
Biased Turkey

Thanks for all your replies and assistance.
Yes, it was strange about the "case issue".
I downloaded the files from the location in your original post.
Oh well, it works now and that is fine with me. It is great to play these strategy games on the computer. No dice rolling and pages of manuals to read.

I did download some "extra" scenarios when I was at that original download site, but I cannot seem to get them to work.
What do you do to add these extra scenarios ?? Do you use the lgc-pg command for them as well.

I don't know if you celebrate Thanksgiving where you live, but if you do let me wish you a good day.

Regards,

Pappo

tim15856
November 24th, 2005, 10:39 AM
Perhaps someone can help me to get this to work. I installed the game through Synaptic. I then downloaded both files from sourceforge. After I unzip them, I have two folders; pg-data and lgeneral-1.2beta-9. Inside the lgeneral folder is a folder named lgc-pg, but no executable of that name. Could someone please help this poor newbie?

Clunsford
November 24th, 2005, 01:17 PM
thanks for the help!

Biased turkey
November 24th, 2005, 03:31 PM
Perhaps someone can help me to get this to work. I installed the game through Synaptic. I then downloaded both files from sourceforge. After I unzip them, I have two folders; pg-data and lgeneral-1.2beta-9. Inside the lgeneral folder is a folder named lgc-pg, but no executable of that name. Could someone please help this poor newbie?

I apology, maybe I forgot to mention some extra steps in the process.
Like in the item 1) how to create the lgc-pg binary:
Let's assume that the lgeneral-1.2beta-9.tar.gz was untar and unzip in our home directory:
1a) "cd" ( to be sure we are in our home dir )
1b) "cd lgeneral-1.2beta-9" ( we are in the lgeneral dir now )
We'll now compile the lgeneral source to extract the lgc-pg binary
1d)" ./configure"
1e) "make"
1f) "sudo make install"

Tonight, I'll remove the Lgeneral package, reinstall it , write down every step so I can edit my original post.
I don't want my HOWTO to confuse more than it helps.
The only reason why we have to compile the lgeneral source is to extract the data installer, we don't need the rest because that was installed when using synaptic to install the lgeneral package.

So, if you can hold on a few more hours :)
Or try it by yourself with those few extra details

I have to admit that it took me 2 hours to have a workable Lgeneral.

tim15856
November 24th, 2005, 08:59 PM
So, if you can hold on a few more hours :)
Or try it by yourself with those few extra details.


I still have four hours until I get off of work, so I can wait :-) I really appreciate your help.

Biased turkey
November 24th, 2005, 11:46 PM
I still have four hours until I get off of work, so I can wait :-) I really appreciate your help.

I completely rewrote my original post ( check it ) because at that time I didn't know that Ubuntu includes the lgc-pg package too, I just discovered that tonight.
Tomorrow, I'll explain how to add new scenarios ( I just dit it 5 minutes ago and it works nicely ).
See ya

Biased "Rommel" turkey :)

tim15856
November 25th, 2005, 03:23 AM
Very good. It's working now. Just need to get sound working. I found the sound files and they play fine in Totem. Also need to get some campaigns added. Thanks a lot for your help.

Biased turkey
November 25th, 2005, 10:07 PM
Very good. It's working now. Just need to get sound working. I found the sound files and they play fine in Totem. Also need to get some campaigns added. Thanks a lot for your help.

I'm glad it works for you.
About that sound problem , I really can't help because the sound always worked nicely with any application.

Just to give you a moral support I'll tell you how to add extra scenarios:

1) Goto the Lgeneral website on the page where you can download additional scenarios:
http://lgames.sourceforge.net/index.php?project=LGeneral&sub=Scenarios

2) Let's select a new scenario to download , Bismark 1.0 for example
To download a scenario right-click on the disk symbol, choose Save link document as... and save it somewhere to the scenarios directory of your LGeneral installation.

And voilà

I didn't try a campaign because I'm not a Panzer general expert and can barely handle tough scenarios.

If you can get the Windows program "Panzer General Scorched Earth" ( From Ubisoft ) don't miss that. It's Lgeneral but in 3D.
That program is discontinued but I got my version on Ebay ( The 1st time in my life I ever purchased some item on Ebay ) and I paid $ 8.00 for it.

P.S. I still suggest to download the Lgeneral source code "lgeneral-1.2beta-9.tar.gz" and unzip it because it contains some icons that can be used if you add Lgeneral to the games menu.

tim15856
November 25th, 2005, 11:37 PM
P.S. I still suggest to download the Lgeneral source code "lgeneral-1.2beta-9.tar.gz" and unzip it because it contains some icons that can be used if you add Lgeneral to the games menu.

Yep, that's where I got a png of a tank that I used in the menu.

DirtDawg
October 23rd, 2006, 03:43 PM
I've been trying to get this to work for awhile now and this method seems the most promising. But when I follow the instructions, when I enter the command:
sudo lgc-pg -s ~/pg-data -d /usr/share/games/lgeneral
a window opens labeled "??", which is completely black. Then the terminal prints:
LGeneral Converter for Panzer General (DOS version) v0.32
Copyright 2002 Michael Speck
Released under GNU GPL
---
Settings:
Source: ~/pg-data
Destination: /usr/share/games/lgeneral
Use Individual Palettes
Converting:
nation database...
nation flag graphics...

and freezes.

Any help would be appreciated. I'm more interested in just getting things to work than actually playing the game at this point :D

EDIT: I'm using a PPC, which may or may not be an important point.

braddcadd
November 22nd, 2006, 11:17 PM
message removed

tim15856
November 24th, 2006, 03:39 PM
I've been trying to get this to work for awhile now and this method seems the most promising.

Have you tried to install via Synaptic? It's in the repos now.

CKeizer
February 24th, 2011, 12:04 AM
What does "sudo nautilus" enable me to do?

More to the point, why does lgc-pg fail to find files when I properly changed their names to all capitol letters?

Is there some special magic required to rename a file from lower case to upper case letters?

Thanks,

Colin Keizer

Artificial Intelligence
February 24th, 2011, 01:08 AM
Necromancing. Thread closed.