Author Topic: a little help  (Read 12002 times)

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
a little help
« on: February 15, 2014, 07:35:50 PM »
so, i get these errors with a compile of dkong.cpp

trying to get this to work in fbl.

Quote
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl I8039NewFrame(void)" (?I8039NewFrame@@YAXXZ)
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl BurnSamplePlay(int)" (?BurnSamplePlay@@YAXH@Z)
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl BurnSampleStop(int)" (?BurnSampleStop@@YAXH@Z)
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl BurnSampleExit(void)" (?BurnSampleExit@@YAXXZ)
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl BurnSampleRender(short *,unsigned int)" (?BurnSampleRender@@YAXPAFI@Z)
d_dkong.obj : error LNK2001: unresolved external symbol "void __cdecl BurnSampleReset(void)" (?BurnSampleReset@@YAXXZ)
Release/Default.exe : fatal error LNK1120: 6 unresolved externals

mahalo
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: a little help
« Reply #1 on: February 15, 2014, 07:59:16 PM »
I know it's not my help your after :wink: but looking at the errors most are related to sound samples maybe worth checking
any sound source files linked with the donkey kong driver

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #2 on: February 15, 2014, 08:13:00 PM »
I don't mind your input gf. I know it's related to sound. just trying to add dk and have nothing to compare it to. I was looking for something similar for a few but couldn't find anything.
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: a little help
« Reply #3 on: February 15, 2014, 10:38:53 PM »
Have you added the sample player and i8039 files? (samples.cpp/samples.h & i8039.cpp/i8039.h) they may also have been updated since fbal was ported.


Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #4 on: February 16, 2014, 01:10:00 PM »
clear as day when the obvious is the simpliest answer and one still doesn't even consider it.  :rolleyes:

thanks iq_132
« Last Edit: February 16, 2014, 03:06:13 PM by destronger »
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: a little help
« Reply #5 on: February 16, 2014, 01:52:43 PM »
clear as day when the obvious is the simpliest answer and one still doesn't even consider it.  :rolleyes:

thanks iq_132

I'm a firm believer and follower of the K.I.S.S. principle. :)
http://en.wikipedia.org/wiki/KISS_principle


Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #6 on: February 16, 2014, 03:06:42 PM »
thanks for the um... kiss iq_132.  :S

it looks like the samples.ccp & samples.h aren't used in the solution for fbl v1.12. they are in the source folders though. i added the existing samples and i get this:

Quote
Linking...
samples.obj : error LNK2001: unresolved external symbol "int __cdecl ZipLoadOneFile(char const *,char const *,void * *,int *)" (?ZipLoadOneFile@@YAHPBD0PAPAXPAH@Z)
samples.obj : error LNK2001: unresolved external symbol _szAppSamplesPath
Release/Default.exe : fatal error LNK1120: 2 unresolved externals

is dkong.ccp the only driver that uses this?

i tried looking for any other possible driver that uses samples in the latest fba source so i could compare but still nothing.
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: a little help
« Reply #7 on: February 16, 2014, 04:13:55 PM »
That's related to the zip file operations. IIrc fbal uses a different zip library from fba. You'll have to find that in the current fba sources and compare what it is in the fbal sources. If not... well... you may have to explore other options.


Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #8 on: February 16, 2014, 04:43:23 PM »
 :eek:

my brain is going to mush!

so what your saying is that to add donky kong to fbl would require modifying the way fbl handle zip files? :S
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: a little help
« Reply #9 on: February 16, 2014, 05:12:42 PM »
Open burner.h

find this

// zipfn.cpp
struct ZipEntry { char* szName;   unsigned int nLen; unsigned int nCrc; };

add this after

int ZipOpen(const char* szZip);
int ZipClose();
int ZipGetList(struct ZipEntry** pList, int* pnListCount);
int ZipLoadFile(unsigned char* Dest, int nLen, int* pnWrote, int nEntry);


Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #10 on: February 16, 2014, 09:48:03 PM »
I'll give it a shot. thanks iq_132!
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #11 on: February 20, 2014, 09:46:19 PM »
Open burner.h

find this

// zipfn.cpp
struct ZipEntry { char* szName;   unsigned int nLen; unsigned int nCrc; };

add this after

int ZipOpen(const char* szZip);
int ZipClose();
int ZipGetList(struct ZipEntry** pList, int* pnListCount);
int ZipLoadFile(unsigned char* Dest, int nLen, int* pnWrote, int nEntry);

i checked burner.h and the stuff you mentioned above is already there.


//////////////////////////////////////////////////////////////////////////////////

going through cps1 and i receive this error:

note: i have updated the timer.c & cpp & timkpr.h & cpp

Quote
src\burn\capcom\d_cps1.cpp(13626) : error C3861: 'TimeKeeperRead': identifier not found, even with argument-dependent lookup
src\burn\capcom\d_cps1.cpp(13640) : error C3861: 'TimeKeeperWrite': identifier not found, even with argument-dependent lookup
src\burn\capcom\d_cps1.cpp(13653) : error C3861: 'TimeKeeperTick': identifier not found, even with argument-dependent lookup
src\burn\capcom\d_cps1.cpp(13662) : error C3861: 'TimeKeeperScan': identifier not found, even with argument-dependent lookup
src\burn\capcom\d_cps1.cpp(13682) : error C2065: 'TIMEKEEPER_M48T35' : undeclared identifier
src\burn\capcom\d_cps1.cpp(13682) : error C3861: 'TimeKeeperInit': identifier not found, even with argument-dependent lookup
src\burn\capcom\d_cps1.cpp(13689) : error C3861: 'TimeKeeperExit': identifier not found, even with argument-dependent lookup

the only game other that ganbare(cps1.cpp) that has this type of code is d_slapshot.cpp

cps1 example:
Quote
UINT8 __fastcall GanbareTimeKeeperReadByte(UINT32 a)
{
   if (a & 1) {
      return TimeKeeperRead((a & 0xffff) >> 1);
   } else {
      return CpsRamFF[(a & 0xffff) >> 1];
   }
}

slapshot example:
Quote
UINT8 __fastcall Slapshot68KReadByte(UINT32 a)
{
   if (a >= 0xa00000 && a <= 0xa03fff) {
      return TimeKeeperRead((a - 0xa00000) >> 1);
   }

what would be the best way around this?
« Last Edit: February 21, 2014, 02:01:05 AM by destronger »
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: a little help
« Reply #12 on: May 04, 2014, 12:20:10 AM »
well, as things continue in the whole fba to fbl xbox port; i get this error:

Quote
d_actfancr.obj : error LNK2001: unresolved external symbol "int __cdecl h6280CpuScan(int)" (?h6280CpuScan@@YAHH@Z)

for the life of me i've tried and tried to figure it out.

edit: i have noticed that this same h6280CpuScan is related to the following files too:

h6280_intf.h
h6280_intf.ccp
pce.cpp
d_actfancer.cpp
d_dec0.cpp
deco16ic.cpp

i updated all of these files too.
« Last Edit: May 04, 2014, 03:46:39 PM by destronger »
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: a little help
« Reply #13 on: May 05, 2014, 03:50:23 PM »
well, as things continue in the whole fba to fbl xbox port; i get this error:

for the life of me i've tried and tried to figure it out.

edit: i have noticed that this same h6280CpuScan is related to the following files too:

h6280_intf.h
h6280_intf.ccp
pce.cpp
d_actfancer.cpp
d_dec0.cpp
deco16ic.cpp

i updated all of these files too.

sometimes a define error is hard to track down it could be in a src file where you least expect it you might need to update more stuff
keep plugging away im sure you'll find it!!!

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: a little help
« Reply #14 on: May 05, 2014, 03:58:38 PM »
Hey there,
Check to make sure the h6280_intf.h & h6280_intf.cpp is getting compiled and linked correctly, because this is where the function originates. 

best regards,
- dink