Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: empire pascal game

  1. #1

    empire pascal game

    hello, someone gave me the game empire (source code only) on pascal

    When i try to compile it and run it i get an error mistake that says that the units are missing (the following units are used: Windows, SysUtils, Classes, Graphics, Forms, Controls, Menus, StdCtrls, Dialogs, Buttons, Messages, ExtCtrls, ComCtrls, StdActns, ActnList, ToolWin, ImgList)

    are those units standard units of pascal and i can find them somewhere in the internet or they are custom units?

    thank you

    p.s: if you want i can upload the game files on the internet so you can give a look

  2. #2
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    empire pascal game

    hi christosch,

    whether they are standard units or not depends very much on the version of the compiler you are using. I'd hazard a guess (mainly because I can't remember exactly when ActnList was added), and say that from the looks of it, the code you have requires Delphi 5, possibly 6.

    So, the next big question is what Pascal compiler are you using?
    :: AthenaOfDelphi :: My Blog :: My Software ::

  3. #3

    empire pascal game

    dev-pascal and turbo pascal 7 but none could compile it and gave the same error

  4. #4
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    empire pascal game

    In that case.... you have a couple of options I guess... you could check out www.turboexplorer.com and download the free edition of Turbo Delphi for Win32. Alternatively you could pop over to www.freepascal.org and grab a copy of FreePascal and Lazarus and try that.

    Certainly the code requires a Delphi compatible compiler looking at the uses list.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  5. #5

    empire pascal game

    i installed lazarus and free pascal, so now i have a lot of .pas files (the game parts) and i opened them all with lazarus and when i tried to compiled them i got the following error so did i do something wrong?

    c:\lazarus\fpc\2.0.4\bin\i386-win32\ld.exe: cannot open output file C:\DOCUME~1\user\LOCALS~1\Temp\project1.exe: Permission denied
    project1.lpr(16,1) Error: Error while linking
    Error: c:\lazarus\fpc\2.0.4\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)

  6. #6
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    empire pascal game

    I'm afraid I can't help.... I've never used FreePascal or Lazarus. Hopefully someone who does will be able to help.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  7. #7

    empire pascal game

    Can you verify the compiler can indeed write in that directory? Something must be wrong with it. Try to create a directory c:\pascal\empire or so, try moving the files there and compile there.

  8. #8

    empire pascal game

    Ok, I think I understand the problem a bit better now. By default Lazarus opens a project called "project1", which it is trying to compiler.
    Please close all files and close the project. Then open a new project and select the program .pas file of the game.

  9. #9

    empire pascal game

    Or use the feature of Lazarus that allows you to convert a Delphi project to a Lazarus project. I've done the conversion before, but Lazarus still won't compile the project because it does not convert the .dfm files as part of the process. So you then try to convert each .dfm to a .lfm. I've had very limited success with this.

  10. #10

    empire pascal game

    i tried everything you told but nothing helped, i think tha problem has something to do with the units. here is the zip file with the source files http://rapidshare.com/files/21142040...ource.zip.html its really small (180kb) could someone try to compile it and see what the problem is?

    thank you[/url]

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •