Author Topic: CooperMaster [Source-Compilation]  (Read 669 times)

0 Members and 1 Guest are viewing this topic.

Offline Spliffer

  • ZX 81
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
CooperMaster [Source-Compilation]
« on: April 30, 2018 »
Dear Sirs,

i found the CopperMaster source on your great site and i was very happy  :|| because this is a very amazing remake and it is in FB!
I downloaded the source and the nzo_funcs from here:http://www.dbfinteractive.com/forum/index.php?topic=4673.0

In addition i downloaded the TinyPTC_EXT++ from the fixed thread. I added all to the source but i'm not able to compile it.
I got some errors like duplicate variables and then the FB-Compiler breaks down  :'(.

I can't decrunch the CopperMaster.exe because of the VirusKiller. But that's not important, i only want to compile the source.

I'm not a FreeBasic pro, i'm coming from C++ and Java but i'm learning FB now for about 5 days and i want to learn from the demo source how to code these fantastic oldschool effects.
I want recode Amiga and C64 cracktos/ demos too.

It would be very great of you if you could provide infos, step-by-step descriptions on how to compile the sources and perhaps new working source files .

I hope my question is not too stupid and you have not a lot of work if you help but we can really learn a lot from it!

My system:
Windows 10 Pro
FreeBASIC 1.05.0 for Windows (ickl. Setup)
FBIde 1.0.7.6c
TinyPTC_Ext++ from the fixed thread on your site
nzo_funcs from the link above

This is the first error-output:

C:\PROGRAMMIERUNG\FreeBasic\fbc -lang deprecated -s gui "CopperMaster.bas"
D:\PROGRAMMIERUNG\FREE_BASIC\000 ZIP'S 000\nzo_funcs.bas(8) error 4: Duplicated definition, PI
  Const AS DOUBLE PI=3.1415926535897932
                     ^
D:\PROGRAMMIERUNG\FREE_BASIC\000 ZIP'S 000\nzo_funcs.bas(84) warning 18(1): The length of the parameters list is too large, consider passing UDT's BYREF, BlitImage
D:\PROGRAMMIERUNG\FREE_BASIC\000 ZIP'S 000\nzo_funcs.bas(142) warning 18(1): The length of the parameters list is too large, consider passing UDT's BYREF, BlitImage


When I comment the Const PI the compiler breaks down




Best regards and many thanks for your help and advice,
Spliffer
« Last Edit: April 30, 2018 by Spliffer »

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2698
  • Karma: 483
    • View Profile
    • http://www.rbraz.com/
Re: CooperMaster [Source-Compilation]
« Reply #1 on: May 01, 2018 »
Hi,

You will need an old Freebasic version (0.17) to compile this one, fortunately I've one copy of it on my hd.
Of course, this code can be ported to the new/recent FB version but it's time consuming, a lot of things changed since 0.17 ver.

Anyway, if you like, you can download the 0.17 version from here:
www.rbraz.com/temp/FreeBASIC017.zip

And in the source there is some duplicated variables, just comment or remove those lines in the CooperMaster.bas, those lines are already defined in nzo_func.bas

Code: [Select]
Const XRES=640
CONST YRES=480
Const PI=3.141 
Const Sin_PI=PI/180
Const twopi=PI*2
Challenge Trophies Won:

Offline Spliffer

  • ZX 81
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: CooperMaster [Source-Compilation]
« Reply #2 on: May 01, 2018 »
Hi RBZ,
thanks for your fast reply and the old FB Version :).
I will try to compile it today in the evening.

I will send a message of the progress!

Best regards and many thanks,
Spliffer

Offline Spliffer

  • ZX 81
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: CooperMaster [Source-Compilation]
« Reply #3 on: May 01, 2018 »
Hi RBZ,
many thanks, it is working  :) :bananaphallus: :carrot: :clap:

Live long and prosper,
Spliffer